From 70cd33f7fa8a2d66db225f2975e80f0b19ed31dc Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Wed, 13 Feb 2019 11:41:17 -0800 Subject: [PATCH 01/27] regen'd and tested --- ...tancesInstanceGroupManagerHttpRequest.java | 6 +++++ ...RegionInstanceGroupManagerHttpRequest.java | 6 +++++ .../cloud/compute/v1/AcceleratorConfig.java | 6 +++++ .../cloud/compute/v1/AcceleratorType.java | 6 +++++ .../v1/AcceleratorTypeAggregatedList.java | 6 +++++ .../cloud/compute/v1/AcceleratorTypeList.java | 6 +++++ .../v1/AcceleratorTypesScopedList.java | 6 +++++ .../google/cloud/compute/v1/AccessConfig.java | 6 +++++ .../AddAccessConfigInstanceHttpRequest.java | 6 +++++ .../AddHealthCheckTargetPoolHttpRequest.java | 6 +++++ .../v1/AddInstanceTargetPoolHttpRequest.java | 6 +++++ .../AddInstancesInstanceGroupHttpRequest.java | 6 +++++ .../v1/AddNodesNodeGroupHttpRequest.java | 6 +++++ .../v1/AddPeeringNetworkHttpRequest.java | 6 +++++ .../v1/AddRuleSecurityPolicyHttpRequest.java | 6 +++++ ...dSignedUrlKeyBackendBucketHttpRequest.java | 6 +++++ ...SignedUrlKeyBackendServiceHttpRequest.java | 6 +++++ .../com/google/cloud/compute/v1/Address.java | 6 +++++ .../compute/v1/AddressAggregatedList.java | 6 +++++ .../google/cloud/compute/v1/AddressList.java | 6 +++++ .../cloud/compute/v1/AddressesScopedList.java | 6 +++++ ...egatedListAcceleratorTypesHttpRequest.java | 6 +++++ .../AggregatedListAddressesHttpRequest.java | 6 +++++ .../AggregatedListAutoscalersHttpRequest.java | 6 +++++ ...regatedListBackendServicesHttpRequest.java | 6 +++++ .../AggregatedListDiskTypesHttpRequest.java | 6 +++++ .../v1/AggregatedListDisksHttpRequest.java | 6 +++++ ...regatedListForwardingRulesHttpRequest.java | 6 +++++ ...egatedListGlobalOperationsHttpRequest.java | 6 +++++ ...dListInstanceGroupManagersHttpRequest.java | 6 +++++ ...gregatedListInstanceGroupsHttpRequest.java | 6 +++++ .../AggregatedListInstancesHttpRequest.java | 6 +++++ ...istInterconnectAttachmentsHttpRequest.java | 6 +++++ ...AggregatedListMachineTypesHttpRequest.java | 6 +++++ .../AggregatedListNodeGroupsHttpRequest.java | 6 +++++ ...ggregatedListNodeTemplatesHttpRequest.java | 6 +++++ .../AggregatedListNodeTypesHttpRequest.java | 6 +++++ ...gatedListRegionCommitmentsHttpRequest.java | 6 +++++ .../v1/AggregatedListRoutersHttpRequest.java | 6 +++++ .../AggregatedListSubnetworksHttpRequest.java | 6 +++++ ...regatedListTargetInstancesHttpRequest.java | 6 +++++ .../AggregatedListTargetPoolsHttpRequest.java | 6 +++++ ...gatedListTargetVpnGatewaysHttpRequest.java | 6 +++++ .../AggregatedListVpnTunnelsHttpRequest.java | 6 +++++ .../google/cloud/compute/v1/AliasIpRange.java | 6 +++++ .../com/google/cloud/compute/v1/Allowed.java | 6 +++++ .../v1/AttachDiskInstanceHttpRequest.java | 6 +++++ .../google/cloud/compute/v1/AttachedDisk.java | 6 +++++ .../v1/AttachedDiskInitializeParams.java | 6 +++++ .../google/cloud/compute/v1/AuditConfig.java | 6 +++++ .../cloud/compute/v1/AuditLogConfig.java | 6 +++++ .../v1/AuthorizationLoggingOptions.java | 6 +++++ .../google/cloud/compute/v1/Autoscaler.java | 6 +++++ .../compute/v1/AutoscalerAggregatedList.java | 6 +++++ .../cloud/compute/v1/AutoscalerClient.java | 20 ++++++++++++---- .../cloud/compute/v1/AutoscalerList.java | 6 +++++ .../compute/v1/AutoscalerStatusDetails.java | 6 +++++ .../compute/v1/AutoscalersScopedList.java | 6 +++++ .../cloud/compute/v1/AutoscalingPolicy.java | 6 +++++ .../v1/AutoscalingPolicyCpuUtilization.java | 6 +++++ ...oscalingPolicyCustomMetricUtilization.java | 6 +++++ ...scalingPolicyLoadBalancingUtilization.java | 6 +++++ .../com/google/cloud/compute/v1/Backend.java | 6 +++++ .../cloud/compute/v1/BackendBucket.java | 6 +++++ .../compute/v1/BackendBucketCdnPolicy.java | 6 +++++ .../cloud/compute/v1/BackendBucketClient.java | 20 ++++++++++++---- .../cloud/compute/v1/BackendBucketList.java | 6 +++++ .../cloud/compute/v1/BackendService.java | 6 +++++ .../v1/BackendServiceAggregatedList.java | 6 +++++ .../compute/v1/BackendServiceCdnPolicy.java | 6 +++++ .../compute/v1/BackendServiceClient.java | 20 ++++++++++++---- .../compute/v1/BackendServiceGroupHealth.java | 6 +++++ .../cloud/compute/v1/BackendServiceIAP.java | 6 +++++ .../cloud/compute/v1/BackendServiceList.java | 6 +++++ .../compute/v1/BackendServicesScopedList.java | 6 +++++ .../com/google/cloud/compute/v1/Binding.java | 6 +++++ .../compute/v1/CacheInvalidationRule.java | 6 +++++ .../cloud/compute/v1/CacheKeyPolicy.java | 6 +++++ .../google/cloud/compute/v1/Commitment.java | 6 +++++ .../compute/v1/CommitmentAggregatedList.java | 6 +++++ .../cloud/compute/v1/CommitmentList.java | 6 +++++ .../compute/v1/CommitmentsScopedList.java | 6 +++++ .../google/cloud/compute/v1/Condition.java | 6 +++++ .../cloud/compute/v1/ConnectionDraining.java | 6 +++++ .../v1/CreateSnapshotDiskHttpRequest.java | 6 +++++ .../CreateSnapshotRegionDiskHttpRequest.java | 6 +++++ .../compute/v1/CustomerEncryptionKey.java | 6 +++++ .../CustomerEncryptionKeyProtectedDisk.java | 6 +++++ .../com/google/cloud/compute/v1/Data.java | 6 +++++ ...DeleteAccessConfigInstanceHttpRequest.java | 6 +++++ .../compute/v1/DeleteAddressHttpRequest.java | 6 +++++ .../v1/DeleteAutoscalerHttpRequest.java | 6 +++++ .../v1/DeleteBackendBucketHttpRequest.java | 6 +++++ .../v1/DeleteBackendServiceHttpRequest.java | 6 +++++ .../compute/v1/DeleteDiskHttpRequest.java | 6 +++++ .../compute/v1/DeleteFirewallHttpRequest.java | 6 +++++ .../v1/DeleteForwardingRuleHttpRequest.java | 6 +++++ .../v1/DeleteGlobalAddressHttpRequest.java | 6 +++++ ...DeleteGlobalForwardingRuleHttpRequest.java | 6 +++++ .../v1/DeleteGlobalOperationHttpRequest.java | 6 +++++ .../v1/DeleteHealthCheckHttpRequest.java | 6 +++++ .../v1/DeleteHttpHealthCheckHttpRequest.java | 6 +++++ .../v1/DeleteHttpsHealthCheckHttpRequest.java | 6 +++++ .../compute/v1/DeleteImageHttpRequest.java | 6 +++++ .../v1/DeleteInstanceGroupHttpRequest.java | 6 +++++ ...DeleteInstanceGroupManagerHttpRequest.java | 6 +++++ .../compute/v1/DeleteInstanceHttpRequest.java | 6 +++++ .../v1/DeleteInstanceTemplateHttpRequest.java | 6 +++++ ...tancesInstanceGroupManagerHttpRequest.java | 6 +++++ ...RegionInstanceGroupManagerHttpRequest.java | 6 +++++ ...leteInterconnectAttachmentHttpRequest.java | 6 +++++ .../v1/DeleteInterconnectHttpRequest.java | 6 +++++ .../compute/v1/DeleteLicenseHttpRequest.java | 6 +++++ .../compute/v1/DeleteNetworkHttpRequest.java | 6 +++++ .../v1/DeleteNodeGroupHttpRequest.java | 6 +++++ .../v1/DeleteNodeTemplateHttpRequest.java | 6 +++++ .../v1/DeleteNodesNodeGroupHttpRequest.java | 6 +++++ .../v1/DeleteRegionAutoscalerHttpRequest.java | 6 +++++ ...DeleteRegionBackendServiceHttpRequest.java | 6 +++++ .../v1/DeleteRegionDiskHttpRequest.java | 6 +++++ ...RegionInstanceGroupManagerHttpRequest.java | 6 +++++ .../v1/DeleteRegionOperationHttpRequest.java | 6 +++++ .../compute/v1/DeleteRouteHttpRequest.java | 6 +++++ .../compute/v1/DeleteRouterHttpRequest.java | 6 +++++ .../v1/DeleteSecurityPolicyHttpRequest.java | 6 +++++ ...eSignedUrlKeyBackendBucketHttpRequest.java | 6 +++++ ...SignedUrlKeyBackendServiceHttpRequest.java | 6 +++++ .../compute/v1/DeleteSnapshotHttpRequest.java | 6 +++++ .../v1/DeleteSslCertificateHttpRequest.java | 6 +++++ .../v1/DeleteSslPolicyHttpRequest.java | 6 +++++ .../v1/DeleteSubnetworkHttpRequest.java | 6 +++++ .../v1/DeleteTargetHttpProxyHttpRequest.java | 6 +++++ .../v1/DeleteTargetHttpsProxyHttpRequest.java | 6 +++++ .../v1/DeleteTargetInstanceHttpRequest.java | 6 +++++ .../v1/DeleteTargetPoolHttpRequest.java | 6 +++++ .../v1/DeleteTargetSslProxyHttpRequest.java | 6 +++++ .../v1/DeleteTargetTcpProxyHttpRequest.java | 6 +++++ .../v1/DeleteTargetVpnGatewayHttpRequest.java | 6 +++++ .../compute/v1/DeleteUrlMapHttpRequest.java | 6 +++++ .../v1/DeleteVpnTunnelHttpRequest.java | 6 +++++ .../v1/DeleteZoneOperationHttpRequest.java | 6 +++++ .../com/google/cloud/compute/v1/Denied.java | 6 +++++ .../compute/v1/DeprecateImageHttpRequest.java | 6 +++++ .../cloud/compute/v1/DeprecationStatus.java | 6 +++++ .../v1/DetachDiskInstanceHttpRequest.java | 6 +++++ .../v1/DisableXpnHostProjectHttpRequest.java | 6 +++++ .../DisableXpnResourceProjectHttpRequest.java | 6 +++++ .../com/google/cloud/compute/v1/Disk.java | 6 +++++ .../cloud/compute/v1/DiskAggregatedList.java | 6 +++++ .../compute/v1/DiskInstantiationConfig.java | 6 +++++ .../com/google/cloud/compute/v1/DiskList.java | 6 +++++ .../cloud/compute/v1/DiskMoveRequest.java | 6 +++++ .../com/google/cloud/compute/v1/DiskType.java | 6 +++++ .../compute/v1/DiskTypeAggregatedList.java | 6 +++++ .../google/cloud/compute/v1/DiskTypeList.java | 6 +++++ .../cloud/compute/v1/DiskTypesScopedList.java | 6 +++++ .../cloud/compute/v1/DisksResizeRequest.java | 6 +++++ .../cloud/compute/v1/DisksScopedList.java | 6 +++++ .../cloud/compute/v1/DistributionPolicy.java | 6 +++++ .../DistributionPolicyZoneConfiguration.java | 6 +++++ .../v1/EnableXpnHostProjectHttpRequest.java | 6 +++++ .../EnableXpnResourceProjectHttpRequest.java | 6 +++++ .../com/google/cloud/compute/v1/Error.java | 6 +++++ .../com/google/cloud/compute/v1/Errors.java | 6 +++++ ...xpandIpCidrRangeSubnetworkHttpRequest.java | 6 +++++ .../com/google/cloud/compute/v1/Expr.java | 6 +++++ .../com/google/cloud/compute/v1/Firewall.java | 6 +++++ .../cloud/compute/v1/FirewallClient.java | 20 ++++++++++++---- .../google/cloud/compute/v1/FirewallList.java | 6 +++++ .../cloud/compute/v1/FirewallLogConfig.java | 6 +++++ .../cloud/compute/v1/FixedOrPercent.java | 6 +++++ .../cloud/compute/v1/ForwardingRule.java | 6 +++++ .../v1/ForwardingRuleAggregatedList.java | 6 +++++ .../cloud/compute/v1/ForwardingRuleList.java | 6 +++++ .../compute/v1/ForwardingRulesScopedList.java | 6 +++++ .../v1/GetAcceleratorTypeHttpRequest.java | 6 +++++ .../compute/v1/GetAddressHttpRequest.java | 6 +++++ .../compute/v1/GetAutoscalerHttpRequest.java | 6 +++++ .../v1/GetBackendBucketHttpRequest.java | 6 +++++ .../v1/GetBackendServiceHttpRequest.java | 6 +++++ ...GetDiagnosticsInterconnectHttpRequest.java | 6 +++++ .../cloud/compute/v1/GetDiskHttpRequest.java | 6 +++++ .../compute/v1/GetDiskTypeHttpRequest.java | 6 +++++ .../compute/v1/GetFirewallHttpRequest.java | 6 +++++ .../v1/GetForwardingRuleHttpRequest.java | 6 +++++ .../v1/GetFromFamilyImageHttpRequest.java | 6 +++++ .../v1/GetGlobalAddressHttpRequest.java | 6 +++++ .../GetGlobalForwardingRuleHttpRequest.java | 6 +++++ .../v1/GetGlobalOperationHttpRequest.java | 6 +++++ .../GetHealthBackendServiceHttpRequest.java | 6 +++++ .../compute/v1/GetHealthCheckHttpRequest.java | 6 +++++ ...HealthRegionBackendServiceHttpRequest.java | 6 +++++ .../v1/GetHealthTargetPoolHttpRequest.java | 6 +++++ .../v1/GetHttpHealthCheckHttpRequest.java | 6 +++++ .../v1/GetHttpsHealthCheckHttpRequest.java | 6 +++++ .../v1/GetIamPolicyDiskHttpRequest.java | 6 +++++ .../v1/GetIamPolicyImageHttpRequest.java | 6 +++++ .../v1/GetIamPolicyInstanceHttpRequest.java | 6 +++++ ...tIamPolicyInstanceTemplateHttpRequest.java | 6 +++++ .../v1/GetIamPolicyLicenseHttpRequest.java | 6 +++++ .../v1/GetIamPolicyNodeGroupHttpRequest.java | 6 +++++ .../GetIamPolicyNodeTemplateHttpRequest.java | 6 +++++ .../v1/GetIamPolicySnapshotHttpRequest.java | 6 +++++ .../v1/GetIamPolicySubnetworkHttpRequest.java | 6 +++++ .../cloud/compute/v1/GetImageHttpRequest.java | 6 +++++ .../v1/GetInstanceGroupHttpRequest.java | 6 +++++ .../GetInstanceGroupManagerHttpRequest.java | 6 +++++ .../compute/v1/GetInstanceHttpRequest.java | 6 +++++ .../v1/GetInstanceTemplateHttpRequest.java | 6 +++++ .../GetInterconnectAttachmentHttpRequest.java | 6 +++++ .../v1/GetInterconnectHttpRequest.java | 6 +++++ .../GetInterconnectLocationHttpRequest.java | 6 +++++ .../compute/v1/GetLicenseCodeHttpRequest.java | 6 +++++ .../compute/v1/GetLicenseHttpRequest.java | 6 +++++ .../compute/v1/GetMachineTypeHttpRequest.java | 6 +++++ .../GetNatMappingInfoRoutersHttpRequest.java | 6 +++++ .../compute/v1/GetNetworkHttpRequest.java | 6 +++++ .../compute/v1/GetNodeGroupHttpRequest.java | 6 +++++ .../v1/GetNodeTemplateHttpRequest.java | 6 +++++ .../compute/v1/GetNodeTypeHttpRequest.java | 6 +++++ .../compute/v1/GetProjectHttpRequest.java | 6 +++++ .../v1/GetRegionAutoscalerHttpRequest.java | 6 +++++ .../GetRegionBackendServiceHttpRequest.java | 6 +++++ .../v1/GetRegionCommitmentHttpRequest.java | 6 +++++ .../compute/v1/GetRegionDiskHttpRequest.java | 6 +++++ .../v1/GetRegionDiskTypeHttpRequest.java | 6 +++++ .../compute/v1/GetRegionHttpRequest.java | 6 +++++ .../v1/GetRegionInstanceGroupHttpRequest.java | 6 +++++ ...RegionInstanceGroupManagerHttpRequest.java | 6 +++++ .../v1/GetRegionOperationHttpRequest.java | 6 +++++ .../cloud/compute/v1/GetRouteHttpRequest.java | 6 +++++ .../compute/v1/GetRouterHttpRequest.java | 6 +++++ .../v1/GetRouterStatusRouterHttpRequest.java | 6 +++++ .../v1/GetRuleSecurityPolicyHttpRequest.java | 6 +++++ .../v1/GetSecurityPolicyHttpRequest.java | 6 +++++ ...etSerialPortOutputInstanceHttpRequest.java | 6 +++++ .../compute/v1/GetSnapshotHttpRequest.java | 6 +++++ .../v1/GetSslCertificateHttpRequest.java | 6 +++++ .../compute/v1/GetSslPolicyHttpRequest.java | 6 +++++ .../compute/v1/GetSubnetworkHttpRequest.java | 6 +++++ .../v1/GetTargetHttpProxyHttpRequest.java | 6 +++++ .../v1/GetTargetHttpsProxyHttpRequest.java | 6 +++++ .../v1/GetTargetInstanceHttpRequest.java | 6 +++++ .../compute/v1/GetTargetPoolHttpRequest.java | 6 +++++ .../v1/GetTargetSslProxyHttpRequest.java | 6 +++++ .../v1/GetTargetTcpProxyHttpRequest.java | 6 +++++ .../v1/GetTargetVpnGatewayHttpRequest.java | 6 +++++ .../compute/v1/GetUrlMapHttpRequest.java | 6 +++++ .../compute/v1/GetVpnTunnelHttpRequest.java | 6 +++++ .../v1/GetXpnHostProjectHttpRequest.java | 6 +++++ .../GetXpnResourcesProjectsHttpRequest.java | 6 +++++ .../cloud/compute/v1/GetZoneHttpRequest.java | 6 +++++ .../v1/GetZoneOperationHttpRequest.java | 6 +++++ .../compute/v1/GlobalSetLabelsRequest.java | 6 +++++ .../compute/v1/GlobalSetPolicyRequest.java | 6 +++++ .../cloud/compute/v1/GuestOsFeature.java | 6 +++++ .../google/cloud/compute/v1/HealthCheck.java | 6 +++++ .../cloud/compute/v1/HealthCheckClient.java | 20 ++++++++++++---- .../cloud/compute/v1/HealthCheckList.java | 6 +++++ .../compute/v1/HealthCheckReference.java | 6 +++++ .../google/cloud/compute/v1/HealthStatus.java | 6 +++++ .../com/google/cloud/compute/v1/HostRule.java | 6 +++++ .../cloud/compute/v1/HttpHealthCheck.java | 6 +++++ .../cloud/compute/v1/HttpHealthCheck2.java | 6 +++++ .../compute/v1/HttpHealthCheckClient.java | 20 ++++++++++++---- .../cloud/compute/v1/HttpHealthCheckList.java | 6 +++++ .../cloud/compute/v1/HttpSHealthCheck.java | 6 +++++ .../cloud/compute/v1/HttpsHealthCheck2.java | 6 +++++ .../compute/v1/HttpsHealthCheckClient.java | 20 ++++++++++++---- .../compute/v1/HttpsHealthCheckList.java | 6 +++++ .../com/google/cloud/compute/v1/Image.java | 6 +++++ .../google/cloud/compute/v1/ImageList.java | 6 +++++ .../compute/v1/InsertAddressHttpRequest.java | 6 +++++ .../v1/InsertAutoscalerHttpRequest.java | 6 +++++ .../v1/InsertBackendBucketHttpRequest.java | 6 +++++ .../v1/InsertBackendServiceHttpRequest.java | 6 +++++ .../compute/v1/InsertDiskHttpRequest.java | 6 +++++ .../compute/v1/InsertFirewallHttpRequest.java | 6 +++++ .../v1/InsertForwardingRuleHttpRequest.java | 6 +++++ .../v1/InsertGlobalAddressHttpRequest.java | 6 +++++ ...InsertGlobalForwardingRuleHttpRequest.java | 6 +++++ .../v1/InsertHealthCheckHttpRequest.java | 6 +++++ .../v1/InsertHttpHealthCheckHttpRequest.java | 6 +++++ .../v1/InsertHttpsHealthCheckHttpRequest.java | 6 +++++ .../compute/v1/InsertImageHttpRequest.java | 6 +++++ .../v1/InsertInstanceGroupHttpRequest.java | 6 +++++ ...InsertInstanceGroupManagerHttpRequest.java | 6 +++++ .../compute/v1/InsertInstanceHttpRequest.java | 6 +++++ .../v1/InsertInstanceTemplateHttpRequest.java | 6 +++++ ...sertInterconnectAttachmentHttpRequest.java | 6 +++++ .../v1/InsertInterconnectHttpRequest.java | 6 +++++ .../compute/v1/InsertLicenseHttpRequest.java | 6 +++++ .../compute/v1/InsertNetworkHttpRequest.java | 6 +++++ .../v1/InsertNodeGroupHttpRequest.java | 6 +++++ .../v1/InsertNodeTemplateHttpRequest.java | 6 +++++ .../v1/InsertRegionAutoscalerHttpRequest.java | 6 +++++ ...InsertRegionBackendServiceHttpRequest.java | 6 +++++ .../v1/InsertRegionCommitmentHttpRequest.java | 6 +++++ .../v1/InsertRegionDiskHttpRequest.java | 6 +++++ ...RegionInstanceGroupManagerHttpRequest.java | 6 +++++ .../compute/v1/InsertRouteHttpRequest.java | 6 +++++ .../compute/v1/InsertRouterHttpRequest.java | 6 +++++ .../v1/InsertSecurityPolicyHttpRequest.java | 6 +++++ .../v1/InsertSslCertificateHttpRequest.java | 6 +++++ .../v1/InsertSslPolicyHttpRequest.java | 6 +++++ .../v1/InsertSubnetworkHttpRequest.java | 6 +++++ .../v1/InsertTargetHttpProxyHttpRequest.java | 6 +++++ .../v1/InsertTargetHttpsProxyHttpRequest.java | 6 +++++ .../v1/InsertTargetInstanceHttpRequest.java | 6 +++++ .../v1/InsertTargetPoolHttpRequest.java | 6 +++++ .../v1/InsertTargetSslProxyHttpRequest.java | 6 +++++ .../v1/InsertTargetTcpProxyHttpRequest.java | 6 +++++ .../v1/InsertTargetVpnGatewayHttpRequest.java | 6 +++++ .../compute/v1/InsertUrlMapHttpRequest.java | 6 +++++ .../v1/InsertVpnTunnelHttpRequest.java | 6 +++++ .../com/google/cloud/compute/v1/Instance.java | 6 +++++ .../compute/v1/InstanceAggregatedList.java | 6 +++++ .../cloud/compute/v1/InstanceClient.java | 10 ++++++-- .../cloud/compute/v1/InstanceGroup.java | 6 +++++ .../v1/InstanceGroupAggregatedList.java | 6 +++++ .../cloud/compute/v1/InstanceGroupList.java | 6 +++++ .../compute/v1/InstanceGroupManager.java | 6 +++++ .../InstanceGroupManagerActionsSummary.java | 6 +++++ .../InstanceGroupManagerAggregatedList.java | 6 +++++ ...InstanceGroupManagerAutoHealingPolicy.java | 6 +++++ .../v1/InstanceGroupManagerClient.java | 10 ++++++-- .../compute/v1/InstanceGroupManagerList.java | 6 +++++ .../v1/InstanceGroupManagerStatus.java | 6 +++++ .../v1/InstanceGroupManagerUpdatePolicy.java | 6 +++++ .../v1/InstanceGroupManagerVersion.java | 6 +++++ ...eGroupManagersAbandonInstancesRequest.java | 6 +++++ ...ceGroupManagersDeleteInstancesRequest.java | 6 +++++ ...pManagersListManagedInstancesResponse.java | 6 +++++ ...GroupManagersRecreateInstancesRequest.java | 6 +++++ .../v1/InstanceGroupManagersScopedList.java | 6 +++++ ...oupManagersSetInstanceTemplateRequest.java | 6 +++++ ...nceGroupManagersSetTargetPoolsRequest.java | 6 +++++ .../v1/InstanceGroupsAddInstancesRequest.java | 6 +++++ .../v1/InstanceGroupsListInstances.java | 6 +++++ .../InstanceGroupsListInstancesRequest.java | 6 +++++ .../InstanceGroupsRemoveInstancesRequest.java | 6 +++++ .../compute/v1/InstanceGroupsScopedList.java | 6 +++++ .../InstanceGroupsSetNamedPortsRequest.java | 6 +++++ .../google/cloud/compute/v1/InstanceList.java | 6 +++++ .../compute/v1/InstanceListReferrers.java | 6 +++++ .../cloud/compute/v1/InstanceMoveRequest.java | 6 +++++ .../cloud/compute/v1/InstanceProperties.java | 6 +++++ .../cloud/compute/v1/InstanceReference.java | 6 +++++ .../cloud/compute/v1/InstanceTemplate.java | 6 +++++ .../compute/v1/InstanceTemplateList.java | 6 +++++ .../compute/v1/InstanceWithNamedPorts.java | 6 +++++ .../cloud/compute/v1/InstancesScopedList.java | 6 +++++ .../compute/v1/InstancesSetLabelsRequest.java | 6 +++++ .../InstancesSetMachineResourcesRequest.java | 6 +++++ .../v1/InstancesSetMachineTypeRequest.java | 6 +++++ .../v1/InstancesSetMinCpuPlatformRequest.java | 6 +++++ .../v1/InstancesSetServiceAccountRequest.java | 6 +++++ ...nstancesStartWithEncryptionKeyRequest.java | 6 +++++ .../google/cloud/compute/v1/Interconnect.java | 6 +++++ .../compute/v1/InterconnectAttachment.java | 6 +++++ .../InterconnectAttachmentAggregatedList.java | 6 +++++ .../v1/InterconnectAttachmentClient.java | 10 ++++++-- .../v1/InterconnectAttachmentList.java | 6 +++++ ...InterconnectAttachmentPartnerMetadata.java | 6 +++++ .../v1/InterconnectAttachmentPrivateInfo.java | 6 +++++ .../v1/InterconnectAttachmentsScopedList.java | 6 +++++ .../compute/v1/InterconnectCircuitInfo.java | 6 +++++ .../cloud/compute/v1/InterconnectClient.java | 10 ++++++-- .../compute/v1/InterconnectDiagnostics.java | 6 +++++ .../v1/InterconnectDiagnosticsARPEntry.java | 6 +++++ ...InterconnectDiagnosticsLinkLACPStatus.java | 6 +++++ ...terconnectDiagnosticsLinkOpticalPower.java | 6 +++++ .../v1/InterconnectDiagnosticsLinkStatus.java | 6 +++++ .../cloud/compute/v1/InterconnectList.java | 6 +++++ .../compute/v1/InterconnectLocation.java | 6 +++++ .../compute/v1/InterconnectLocationList.java | 6 +++++ .../v1/InterconnectLocationRegionInfo.java | 6 +++++ .../v1/InterconnectOutageNotification.java | 6 +++++ .../InterconnectsGetDiagnosticsResponse.java | 6 +++++ .../v1/InvalidateCacheUrlMapHttpRequest.java | 6 +++++ .../com/google/cloud/compute/v1/Items.java | 6 +++++ .../com/google/cloud/compute/v1/License.java | 6 +++++ .../google/cloud/compute/v1/LicenseCode.java | 6 +++++ .../compute/v1/LicenseCodeLicenseAlias.java | 6 +++++ .../v1/LicenseResourceRequirements.java | 6 +++++ .../compute/v1/LicensesListResponse.java | 6 +++++ .../v1/ListAcceleratorTypesHttpRequest.java | 6 +++++ .../compute/v1/ListAddressesHttpRequest.java | 6 +++++ .../v1/ListAutoscalersHttpRequest.java | 6 +++++ ...ailableFeaturesSslPoliciesHttpRequest.java | 6 +++++ .../v1/ListBackendBucketsHttpRequest.java | 6 +++++ .../v1/ListBackendServicesHttpRequest.java | 6 +++++ .../compute/v1/ListDiskTypesHttpRequest.java | 6 +++++ .../compute/v1/ListDisksHttpRequest.java | 6 +++++ .../compute/v1/ListFirewallsHttpRequest.java | 6 +++++ .../v1/ListForwardingRulesHttpRequest.java | 6 +++++ .../v1/ListGlobalAddressesHttpRequest.java | 6 +++++ .../ListGlobalForwardingRulesHttpRequest.java | 6 +++++ .../v1/ListGlobalOperationsHttpRequest.java | 6 +++++ .../v1/ListHealthChecksHttpRequest.java | 6 +++++ .../v1/ListHttpHealthChecksHttpRequest.java | 6 +++++ .../v1/ListHttpsHealthChecksHttpRequest.java | 6 +++++ .../compute/v1/ListImagesHttpRequest.java | 6 +++++ .../ListInstanceGroupManagersHttpRequest.java | 6 +++++ .../v1/ListInstanceGroupsHttpRequest.java | 6 +++++ .../v1/ListInstanceTemplatesHttpRequest.java | 6 +++++ .../compute/v1/ListInstancesHttpRequest.java | 6 +++++ ...istInstancesInstanceGroupsHttpRequest.java | 6 +++++ ...tancesRegionInstanceGroupsHttpRequest.java | 6 +++++ ...istInterconnectAttachmentsHttpRequest.java | 6 +++++ .../ListInterconnectLocationsHttpRequest.java | 6 +++++ .../v1/ListInterconnectsHttpRequest.java | 6 +++++ .../compute/v1/ListLicensesHttpRequest.java | 6 +++++ .../v1/ListMachineTypesHttpRequest.java | 6 +++++ ...ancesInstanceGroupManagersHttpRequest.java | 6 +++++ ...egionInstanceGroupManagersHttpRequest.java | 6 +++++ .../compute/v1/ListNetworksHttpRequest.java | 6 +++++ .../compute/v1/ListNodeGroupsHttpRequest.java | 6 +++++ .../v1/ListNodeTemplatesHttpRequest.java | 6 +++++ .../compute/v1/ListNodeTypesHttpRequest.java | 6 +++++ .../v1/ListNodesNodeGroupsHttpRequest.java | 6 +++++ .../v1/ListReferrersInstancesHttpRequest.java | 6 +++++ .../v1/ListRegionAutoscalersHttpRequest.java | 6 +++++ .../ListRegionBackendServicesHttpRequest.java | 6 +++++ .../v1/ListRegionCommitmentsHttpRequest.java | 6 +++++ .../v1/ListRegionDiskTypesHttpRequest.java | 6 +++++ .../v1/ListRegionDisksHttpRequest.java | 6 +++++ ...egionInstanceGroupManagersHttpRequest.java | 6 +++++ .../ListRegionInstanceGroupsHttpRequest.java | 6 +++++ .../v1/ListRegionOperationsHttpRequest.java | 6 +++++ .../compute/v1/ListRegionsHttpRequest.java | 6 +++++ .../compute/v1/ListRoutersHttpRequest.java | 6 +++++ .../compute/v1/ListRoutesHttpRequest.java | 6 +++++ .../v1/ListSecurityPoliciesHttpRequest.java | 6 +++++ .../compute/v1/ListSnapshotsHttpRequest.java | 6 +++++ .../v1/ListSslCertificatesHttpRequest.java | 6 +++++ .../v1/ListSslPoliciesHttpRequest.java | 6 +++++ .../v1/ListSubnetworksHttpRequest.java | 6 +++++ .../v1/ListTargetHttpProxiesHttpRequest.java | 6 +++++ .../v1/ListTargetHttpsProxiesHttpRequest.java | 6 +++++ .../v1/ListTargetInstancesHttpRequest.java | 6 +++++ .../v1/ListTargetPoolsHttpRequest.java | 6 +++++ .../v1/ListTargetSslProxiesHttpRequest.java | 6 +++++ .../v1/ListTargetTcpProxiesHttpRequest.java | 6 +++++ .../v1/ListTargetVpnGatewaysHttpRequest.java | 6 +++++ .../compute/v1/ListUrlMapsHttpRequest.java | 6 +++++ .../v1/ListUsableSubnetworksHttpRequest.java | 6 +++++ .../compute/v1/ListVpnTunnelsHttpRequest.java | 6 +++++ .../v1/ListXpnHostsProjectsHttpRequest.java | 6 +++++ .../v1/ListZoneOperationsHttpRequest.java | 6 +++++ .../compute/v1/ListZonesHttpRequest.java | 6 +++++ .../google/cloud/compute/v1/LogConfig.java | 6 +++++ .../v1/LogConfigCloudAuditOptions.java | 6 +++++ .../compute/v1/LogConfigCounterOptions.java | 6 +++++ .../v1/LogConfigDataAccessOptions.java | 6 +++++ .../google/cloud/compute/v1/MachineType.java | 6 +++++ .../compute/v1/MachineTypeAggregatedList.java | 6 +++++ .../cloud/compute/v1/MachineTypeList.java | 6 +++++ .../compute/v1/MachineTypesScopedList.java | 6 +++++ .../cloud/compute/v1/ManagedInstance.java | 6 +++++ .../v1/ManagedInstanceLastAttempt.java | 6 +++++ .../com/google/cloud/compute/v1/Metadata.java | 6 +++++ .../v1/MoveDiskProjectHttpRequest.java | 6 +++++ .../v1/MoveInstanceProjectHttpRequest.java | 6 +++++ .../google/cloud/compute/v1/NamedPort.java | 6 +++++ .../com/google/cloud/compute/v1/Network.java | 6 +++++ .../cloud/compute/v1/NetworkClient.java | 10 ++++++-- .../cloud/compute/v1/NetworkInterface.java | 6 +++++ .../google/cloud/compute/v1/NetworkList.java | 6 +++++ .../cloud/compute/v1/NetworkPeering.java | 6 +++++ .../compute/v1/NetworkRoutingConfig.java | 6 +++++ .../compute/v1/NetworksAddPeeringRequest.java | 6 +++++ .../v1/NetworksRemovePeeringRequest.java | 6 +++++ .../google/cloud/compute/v1/NodeGroup.java | 6 +++++ .../compute/v1/NodeGroupAggregatedList.java | 6 +++++ .../cloud/compute/v1/NodeGroupList.java | 6 +++++ .../cloud/compute/v1/NodeGroupNode.java | 6 +++++ .../compute/v1/NodeGroupsAddNodesRequest.java | 6 +++++ .../v1/NodeGroupsDeleteNodesRequest.java | 6 +++++ .../cloud/compute/v1/NodeGroupsListNodes.java | 6 +++++ .../compute/v1/NodeGroupsScopedList.java | 6 +++++ .../v1/NodeGroupsSetNodeTemplateRequest.java | 6 +++++ .../google/cloud/compute/v1/NodeTemplate.java | 6 +++++ .../v1/NodeTemplateAggregatedList.java | 6 +++++ .../cloud/compute/v1/NodeTemplateList.java | 6 +++++ .../v1/NodeTemplateNodeTypeFlexibility.java | 6 +++++ .../compute/v1/NodeTemplatesScopedList.java | 6 +++++ .../com/google/cloud/compute/v1/NodeType.java | 6 +++++ .../compute/v1/NodeTypeAggregatedList.java | 6 +++++ .../google/cloud/compute/v1/NodeTypeList.java | 6 +++++ .../cloud/compute/v1/NodeTypesScopedList.java | 6 +++++ .../google/cloud/compute/v1/Operation.java | 6 +++++ .../compute/v1/OperationAggregatedList.java | 6 +++++ .../cloud/compute/v1/OperationList.java | 6 +++++ .../compute/v1/OperationsScopedList.java | 6 +++++ .../v1/PatchAutoscalerHttpRequest.java | 24 +++++++++++++++++++ .../v1/PatchBackendBucketHttpRequest.java | 24 +++++++++++++++++++ .../v1/PatchBackendServiceHttpRequest.java | 24 +++++++++++++++++++ .../compute/v1/PatchFirewallHttpRequest.java | 24 +++++++++++++++++++ .../v1/PatchHealthCheckHttpRequest.java | 24 +++++++++++++++++++ .../v1/PatchHttpHealthCheckHttpRequest.java | 24 +++++++++++++++++++ .../v1/PatchHttpsHealthCheckHttpRequest.java | 24 +++++++++++++++++++ .../PatchInstanceGroupManagerHttpRequest.java | 24 +++++++++++++++++++ ...atchInterconnectAttachmentHttpRequest.java | 24 +++++++++++++++++++ .../v1/PatchInterconnectHttpRequest.java | 24 +++++++++++++++++++ .../compute/v1/PatchNetworkHttpRequest.java | 24 +++++++++++++++++++ .../v1/PatchRegionAutoscalerHttpRequest.java | 24 +++++++++++++++++++ .../PatchRegionBackendServiceHttpRequest.java | 24 +++++++++++++++++++ ...RegionInstanceGroupManagerHttpRequest.java | 24 +++++++++++++++++++ .../compute/v1/PatchRouterHttpRequest.java | 24 +++++++++++++++++++ .../PatchRuleSecurityPolicyHttpRequest.java | 6 +++++ .../v1/PatchSecurityPolicyHttpRequest.java | 24 +++++++++++++++++++ .../compute/v1/PatchSslPolicyHttpRequest.java | 24 +++++++++++++++++++ .../v1/PatchSubnetworkHttpRequest.java | 24 +++++++++++++++++++ .../compute/v1/PatchUrlMapHttpRequest.java | 24 +++++++++++++++++++ .../google/cloud/compute/v1/PathMatcher.java | 6 +++++ .../com/google/cloud/compute/v1/PathRule.java | 6 +++++ .../com/google/cloud/compute/v1/Policy.java | 6 +++++ .../compute/v1/PreviewRouterHttpRequest.java | 6 +++++ .../com/google/cloud/compute/v1/Project.java | 6 +++++ .../v1/ProjectsDisableXpnResourceRequest.java | 6 +++++ .../v1/ProjectsEnableXpnResourceRequest.java | 6 +++++ .../compute/v1/ProjectsGetXpnResources.java | 6 +++++ .../v1/ProjectsListXpnHostsRequest.java | 6 +++++ .../ProjectsSetDefaultNetworkTierRequest.java | 6 +++++ .../com/google/cloud/compute/v1/Quota.java | 6 +++++ .../com/google/cloud/compute/v1/RawDisk.java | 6 +++++ ...tancesInstanceGroupManagerHttpRequest.java | 6 +++++ ...RegionInstanceGroupManagerHttpRequest.java | 6 +++++ .../google/cloud/compute/v1/Reference.java | 6 +++++ .../com/google/cloud/compute/v1/Region.java | 6 +++++ .../compute/v1/RegionAutoscalerClient.java | 20 ++++++++++++---- .../compute/v1/RegionAutoscalerList.java | 6 +++++ .../v1/RegionBackendServiceClient.java | 20 ++++++++++++---- .../cloud/compute/v1/RegionDiskTypeList.java | 6 +++++ .../compute/v1/RegionDisksResizeRequest.java | 6 +++++ .../compute/v1/RegionInstanceGroupList.java | 6 +++++ .../v1/RegionInstanceGroupManagerClient.java | 10 ++++++-- .../v1/RegionInstanceGroupManagerList.java | 6 +++++ ...eGroupManagersAbandonInstancesRequest.java | 6 +++++ ...ceGroupManagersDeleteInstancesRequest.java | 6 +++++ ...nceGroupManagersListInstancesResponse.java | 6 +++++ ...nInstanceGroupManagersRecreateRequest.java | 6 +++++ ...nceGroupManagersSetTargetPoolsRequest.java | 6 +++++ ...stanceGroupManagersSetTemplateRequest.java | 6 +++++ .../v1/RegionInstanceGroupsListInstances.java | 6 +++++ ...ionInstanceGroupsListInstancesRequest.java | 6 +++++ ...ionInstanceGroupsSetNamedPortsRequest.java | 6 +++++ .../google/cloud/compute/v1/RegionList.java | 6 +++++ .../compute/v1/RegionSetLabelsRequest.java | 6 +++++ .../compute/v1/RegionSetPolicyRequest.java | 6 +++++ ...emoveHealthCheckTargetPoolHttpRequest.java | 6 +++++ .../RemoveInstanceTargetPoolHttpRequest.java | 6 +++++ ...moveInstancesInstanceGroupHttpRequest.java | 6 +++++ .../v1/RemovePeeringNetworkHttpRequest.java | 6 +++++ .../RemoveRuleSecurityPolicyHttpRequest.java | 6 +++++ .../compute/v1/ResetInstanceHttpRequest.java | 6 +++++ .../compute/v1/ResizeDiskHttpRequest.java | 6 +++++ ...ResizeInstanceGroupManagerHttpRequest.java | 6 +++++ .../v1/ResizeRegionDiskHttpRequest.java | 6 +++++ ...RegionInstanceGroupManagerHttpRequest.java | 6 +++++ .../cloud/compute/v1/ResourceCommitment.java | 6 +++++ .../compute/v1/ResourceGroupReference.java | 6 +++++ .../com/google/cloud/compute/v1/Route.java | 6 +++++ .../google/cloud/compute/v1/RouteList.java | 6 +++++ .../com/google/cloud/compute/v1/Router.java | 6 +++++ .../compute/v1/RouterAdvertisedIpRange.java | 6 +++++ .../compute/v1/RouterAggregatedList.java | 6 +++++ .../google/cloud/compute/v1/RouterBgp.java | 6 +++++ .../cloud/compute/v1/RouterBgpPeer.java | 6 +++++ .../google/cloud/compute/v1/RouterClient.java | 20 ++++++++++++---- .../cloud/compute/v1/RouterInterface.java | 6 +++++ .../google/cloud/compute/v1/RouterList.java | 6 +++++ .../google/cloud/compute/v1/RouterNat.java | 6 +++++ .../compute/v1/RouterNatSubnetworkToNat.java | 6 +++++ .../google/cloud/compute/v1/RouterStatus.java | 6 +++++ .../compute/v1/RouterStatusBgpPeerStatus.java | 6 +++++ .../compute/v1/RouterStatusNatStatus.java | 6 +++++ .../compute/v1/RouterStatusResponse.java | 6 +++++ .../compute/v1/RoutersPreviewResponse.java | 6 +++++ .../cloud/compute/v1/RoutersScopedList.java | 6 +++++ .../com/google/cloud/compute/v1/Rule.java | 6 +++++ .../cloud/compute/v1/SSLHealthCheck.java | 6 +++++ .../google/cloud/compute/v1/Scheduling.java | 6 +++++ .../compute/v1/SchedulingNodeAffinity.java | 6 +++++ .../google/cloud/compute/v1/ScratchDisks.java | 6 +++++ .../cloud/compute/v1/SecurityPolicy.java | 6 +++++ .../compute/v1/SecurityPolicyClient.java | 10 ++++++-- .../cloud/compute/v1/SecurityPolicyList.java | 6 +++++ .../compute/v1/SecurityPolicyReference.java | 6 +++++ .../cloud/compute/v1/SecurityPolicyRule.java | 6 +++++ .../compute/v1/SecurityPolicyRuleMatcher.java | 6 +++++ .../v1/SecurityPolicyRuleMatcherConfig.java | 6 +++++ .../cloud/compute/v1/SerialPortOutput.java | 6 +++++ .../cloud/compute/v1/ServiceAccount.java | 6 +++++ ...ckendServiceTargetSslProxyHttpRequest.java | 6 +++++ ...ckendServiceTargetTcpProxyHttpRequest.java | 6 +++++ .../v1/SetBackupTargetPoolHttpRequest.java | 6 +++++ ...monInstanceMetadataProjectHttpRequest.java | 6 +++++ ...tDefaultNetworkTierProjectHttpRequest.java | 6 +++++ ...DeletionProtectionInstanceHttpRequest.java | 6 +++++ .../SetDiskAutoDeleteInstanceHttpRequest.java | 6 +++++ .../v1/SetIamPolicyDiskHttpRequest.java | 6 +++++ .../v1/SetIamPolicyImageHttpRequest.java | 6 +++++ .../v1/SetIamPolicyInstanceHttpRequest.java | 6 +++++ ...tIamPolicyInstanceTemplateHttpRequest.java | 6 +++++ .../v1/SetIamPolicyLicenseHttpRequest.java | 6 +++++ .../v1/SetIamPolicyNodeGroupHttpRequest.java | 6 +++++ .../SetIamPolicyNodeTemplateHttpRequest.java | 6 +++++ .../v1/SetIamPolicySnapshotHttpRequest.java | 6 +++++ .../v1/SetIamPolicySubnetworkHttpRequest.java | 6 +++++ ...mplateInstanceGroupManagerHttpRequest.java | 6 +++++ ...RegionInstanceGroupManagerHttpRequest.java | 6 +++++ .../compute/v1/SetLabelsDiskHttpRequest.java | 6 +++++ .../compute/v1/SetLabelsImageHttpRequest.java | 6 +++++ .../v1/SetLabelsInstanceHttpRequest.java | 6 +++++ .../v1/SetLabelsRegionDiskHttpRequest.java | 6 +++++ .../v1/SetLabelsSnapshotHttpRequest.java | 6 +++++ ...etMachineResourcesInstanceHttpRequest.java | 6 +++++ .../v1/SetMachineTypeInstanceHttpRequest.java | 6 +++++ .../v1/SetMetadataInstanceHttpRequest.java | 6 +++++ .../SetMinCpuPlatformInstanceHttpRequest.java | 6 +++++ ...SetNamedPortsInstanceGroupHttpRequest.java | 6 +++++ ...edPortsRegionInstanceGroupHttpRequest.java | 6 +++++ .../SetNodeTemplateNodeGroupHttpRequest.java | 6 +++++ ...teIpGoogleAccessSubnetworkHttpRequest.java | 6 +++++ ...tProxyHeaderTargetSslProxyHttpRequest.java | 6 +++++ ...tProxyHeaderTargetTcpProxyHttpRequest.java | 6 +++++ ...icOverrideTargetHttpsProxyHttpRequest.java | 6 +++++ .../v1/SetSchedulingInstanceHttpRequest.java | 6 +++++ ...curityPolicyBackendServiceHttpRequest.java | 6 +++++ .../SetServiceAccountInstanceHttpRequest.java | 6 +++++ ...rtificatesTargetHttpsProxyHttpRequest.java | 6 +++++ ...CertificatesTargetSslProxyHttpRequest.java | 6 +++++ ...tSslPolicyTargetHttpsProxyHttpRequest.java | 6 +++++ ...SetSslPolicyTargetSslProxyHttpRequest.java | 6 +++++ .../v1/SetTagsInstanceHttpRequest.java | 6 +++++ .../SetTargetForwardingRuleHttpRequest.java | 6 +++++ ...TargetGlobalForwardingRuleHttpRequest.java | 6 +++++ ...tPoolsInstanceGroupManagerHttpRequest.java | 6 +++++ ...RegionInstanceGroupManagerHttpRequest.java | 6 +++++ .../SetUrlMapTargetHttpProxyHttpRequest.java | 6 +++++ .../SetUrlMapTargetHttpsProxyHttpRequest.java | 6 +++++ ...etUsageExportBucketProjectHttpRequest.java | 6 +++++ .../google/cloud/compute/v1/SignedUrlKey.java | 6 +++++ ...teMaintenanceEventInstanceHttpRequest.java | 6 +++++ .../com/google/cloud/compute/v1/Snapshot.java | 6 +++++ .../google/cloud/compute/v1/SnapshotList.java | 6 +++++ .../compute/v1/SourceInstanceParams.java | 6 +++++ .../cloud/compute/v1/SslCertificate.java | 6 +++++ .../cloud/compute/v1/SslCertificateList.java | 6 +++++ .../cloud/compute/v1/SslPoliciesList.java | 6 +++++ ...PoliciesListAvailableFeaturesResponse.java | 6 +++++ .../google/cloud/compute/v1/SslPolicy.java | 6 +++++ .../cloud/compute/v1/SslPolicyClient.java | 10 ++++++-- .../cloud/compute/v1/SslPolicyReference.java | 6 +++++ .../compute/v1/StartInstanceHttpRequest.java | 6 +++++ ...tWithEncryptionKeyInstanceHttpRequest.java | 6 +++++ .../compute/v1/StopInstanceHttpRequest.java | 6 +++++ .../google/cloud/compute/v1/Subnetwork.java | 6 +++++ .../compute/v1/SubnetworkAggregatedList.java | 6 +++++ .../cloud/compute/v1/SubnetworkClient.java | 10 ++++++-- .../cloud/compute/v1/SubnetworkList.java | 6 +++++ .../compute/v1/SubnetworkSecondaryRange.java | 6 +++++ .../SubnetworksExpandIpCidrRangeRequest.java | 6 +++++ .../compute/v1/SubnetworksScopedList.java | 6 +++++ ...tworksSetPrivateIpGoogleAccessRequest.java | 6 +++++ .../SwitchToCustomModeNetworkHttpRequest.java | 6 +++++ .../cloud/compute/v1/TCPHealthCheck.java | 6 +++++ .../com/google/cloud/compute/v1/Tags.java | 6 +++++ .../cloud/compute/v1/TargetHttpProxy.java | 6 +++++ .../cloud/compute/v1/TargetHttpProxyList.java | 6 +++++ ...getHttpsProxiesSetQuicOverrideRequest.java | 6 +++++ ...HttpsProxiesSetSslCertificatesRequest.java | 6 +++++ .../cloud/compute/v1/TargetHttpsProxy.java | 6 +++++ .../compute/v1/TargetHttpsProxyList.java | 6 +++++ .../cloud/compute/v1/TargetInstance.java | 6 +++++ .../v1/TargetInstanceAggregatedList.java | 6 +++++ .../cloud/compute/v1/TargetInstanceList.java | 6 +++++ .../compute/v1/TargetInstancesScopedList.java | 6 +++++ .../google/cloud/compute/v1/TargetPool.java | 6 +++++ .../compute/v1/TargetPoolAggregatedList.java | 6 +++++ .../compute/v1/TargetPoolInstanceHealth.java | 6 +++++ .../cloud/compute/v1/TargetPoolList.java | 6 +++++ .../v1/TargetPoolsAddHealthCheckRequest.java | 6 +++++ .../v1/TargetPoolsAddInstanceRequest.java | 6 +++++ .../TargetPoolsRemoveHealthCheckRequest.java | 6 +++++ .../v1/TargetPoolsRemoveInstanceRequest.java | 6 +++++ .../compute/v1/TargetPoolsScopedList.java | 6 +++++ .../cloud/compute/v1/TargetReference.java | 6 +++++ ...getSslProxiesSetBackendServiceRequest.java | 6 +++++ ...TargetSslProxiesSetProxyHeaderRequest.java | 6 +++++ ...etSslProxiesSetSslCertificatesRequest.java | 6 +++++ .../cloud/compute/v1/TargetSslProxy.java | 6 +++++ .../cloud/compute/v1/TargetSslProxyList.java | 6 +++++ ...getTcpProxiesSetBackendServiceRequest.java | 6 +++++ ...TargetTcpProxiesSetProxyHeaderRequest.java | 6 +++++ .../cloud/compute/v1/TargetTcpProxy.java | 6 +++++ .../cloud/compute/v1/TargetTcpProxyList.java | 6 +++++ .../cloud/compute/v1/TargetVpnGateway.java | 6 +++++ .../v1/TargetVpnGatewayAggregatedList.java | 6 +++++ .../compute/v1/TargetVpnGatewayList.java | 6 +++++ .../v1/TargetVpnGatewaysScopedList.java | 6 +++++ .../google/cloud/compute/v1/TestFailure.java | 6 +++++ .../v1/TestIamPermissionsDiskHttpRequest.java | 6 +++++ .../TestIamPermissionsImageHttpRequest.java | 6 +++++ ...TestIamPermissionsInstanceHttpRequest.java | 6 +++++ ...ermissionsInstanceTemplateHttpRequest.java | 6 +++++ ...tIamPermissionsLicenseCodeHttpRequest.java | 6 +++++ .../TestIamPermissionsLicenseHttpRequest.java | 6 +++++ ...estIamPermissionsNodeGroupHttpRequest.java | 6 +++++ ...IamPermissionsNodeTemplateHttpRequest.java | 6 +++++ ...stIamPermissionsRegionDiskHttpRequest.java | 6 +++++ ...TestIamPermissionsSnapshotHttpRequest.java | 6 +++++ ...stIamPermissionsSubnetworkHttpRequest.java | 6 +++++ .../compute/v1/TestPermissionsRequest.java | 6 +++++ .../compute/v1/TestPermissionsResponse.java | 6 +++++ ...UpdateAccessConfigInstanceHttpRequest.java | 6 +++++ .../v1/UpdateAutoscalerHttpRequest.java | 24 +++++++++++++++++++ .../v1/UpdateBackendBucketHttpRequest.java | 24 +++++++++++++++++++ .../v1/UpdateBackendServiceHttpRequest.java | 24 +++++++++++++++++++ .../compute/v1/UpdateFirewallHttpRequest.java | 24 +++++++++++++++++++ .../v1/UpdateHealthCheckHttpRequest.java | 24 +++++++++++++++++++ .../v1/UpdateHttpHealthCheckHttpRequest.java | 24 +++++++++++++++++++ .../v1/UpdateHttpsHealthCheckHttpRequest.java | 24 +++++++++++++++++++ ...teNetworkInterfaceInstanceHttpRequest.java | 24 +++++++++++++++++++ .../v1/UpdateRegionAutoscalerHttpRequest.java | 24 +++++++++++++++++++ ...UpdateRegionBackendServiceHttpRequest.java | 24 +++++++++++++++++++ .../compute/v1/UpdateRouterHttpRequest.java | 24 +++++++++++++++++++ .../compute/v1/UpdateUrlMapHttpRequest.java | 24 +++++++++++++++++++ .../com/google/cloud/compute/v1/UrlMap.java | 6 +++++ .../google/cloud/compute/v1/UrlMapClient.java | 20 ++++++++++++---- .../google/cloud/compute/v1/UrlMapList.java | 6 +++++ .../cloud/compute/v1/UrlMapReference.java | 6 +++++ .../google/cloud/compute/v1/UrlMapTest.java | 6 +++++ .../compute/v1/UrlMapValidationResult.java | 6 +++++ .../compute/v1/UrlMapsValidateRequest.java | 6 +++++ .../compute/v1/UrlMapsValidateResponse.java | 6 +++++ .../cloud/compute/v1/UsableSubnetwork.java | 6 +++++ .../v1/UsableSubnetworkSecondaryRange.java | 6 +++++ .../v1/UsableSubnetworksAggregatedList.java | 6 +++++ .../cloud/compute/v1/UsageExportLocation.java | 6 +++++ .../compute/v1/ValidateUrlMapHttpRequest.java | 6 +++++ .../compute/v1/VmEndpointNatMappings.java | 6 +++++ ...dpointNatMappingsInterfaceNatMappings.java | 6 +++++ .../compute/v1/VmEndpointNatMappingsList.java | 6 +++++ .../google/cloud/compute/v1/VpnTunnel.java | 6 +++++ .../compute/v1/VpnTunnelAggregatedList.java | 6 +++++ .../cloud/compute/v1/VpnTunnelList.java | 6 +++++ .../compute/v1/VpnTunnelsScopedList.java | 6 +++++ .../com/google/cloud/compute/v1/Warning.java | 6 +++++ .../com/google/cloud/compute/v1/Warnings.java | 6 +++++ .../google/cloud/compute/v1/XpnHostList.java | 6 +++++ .../cloud/compute/v1/XpnResourceId.java | 6 +++++ .../com/google/cloud/compute/v1/Zone.java | 6 +++++ .../com/google/cloud/compute/v1/ZoneList.java | 6 +++++ .../compute/v1/ZoneSetLabelsRequest.java | 6 +++++ .../compute/v1/ZoneSetPolicyRequest.java | 6 +++++ .../google-cloud-compute/synth.py | 14 +++++------ 759 files changed, 5241 insertions(+), 69 deletions(-) diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AbandonInstancesInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AbandonInstancesInstanceGroupManagerHttpRequest.java index 55aabac9ba99..242b14dfce9b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AbandonInstancesInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AbandonInstancesInstanceGroupManagerHttpRequest.java @@ -133,6 +133,12 @@ public InstanceGroupManagersAbandonInstancesRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AbandonInstancesRegionInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AbandonInstancesRegionInstanceGroupManagerHttpRequest.java index 498d79646220..e73fde3912bb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AbandonInstancesRegionInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AbandonInstancesRegionInstanceGroupManagerHttpRequest.java @@ -133,6 +133,12 @@ public RegionInstanceGroupManagersAbandonInstancesRequest getApiMessageRequestBo @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorConfig.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorConfig.java index d9f98ddf9d92..684bc918e02e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorConfig.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorConfig.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorType.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorType.java index 612af18e422a..4f2327ee4409 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorType.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorType.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeAggregatedList.java index ffbbf6f06189..4b3296cc9129 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeAggregatedList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeList.java index c235ceb9db5f..a83a6c47fbce 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesScopedList.java index cfb2bf8ac1df..6c70c3a48dfb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypesScopedList.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AccessConfig.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AccessConfig.java index e1f90c548e50..02513ca14de8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AccessConfig.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AccessConfig.java @@ -98,6 +98,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddAccessConfigInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddAccessConfigInstanceHttpRequest.java index 558c0ccd6c6d..423129eea704 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddAccessConfigInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddAccessConfigInstanceHttpRequest.java @@ -126,6 +126,12 @@ public AccessConfig getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddHealthCheckTargetPoolHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddHealthCheckTargetPoolHttpRequest.java index 33f0661da873..12cb3917a5a5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddHealthCheckTargetPoolHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddHealthCheckTargetPoolHttpRequest.java @@ -119,6 +119,12 @@ public TargetPoolsAddHealthCheckRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddInstanceTargetPoolHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddInstanceTargetPoolHttpRequest.java index d1e5649635ed..fdd3efef4e24 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddInstanceTargetPoolHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddInstanceTargetPoolHttpRequest.java @@ -116,6 +116,12 @@ public TargetPoolsAddInstanceRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddInstancesInstanceGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddInstancesInstanceGroupHttpRequest.java index a4bab4eb5a46..bfdcdf724a8a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddInstancesInstanceGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddInstancesInstanceGroupHttpRequest.java @@ -120,6 +120,12 @@ public InstanceGroupsAddInstancesRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddNodesNodeGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddNodesNodeGroupHttpRequest.java index bcdf02b73d67..7c057bf2e0f6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddNodesNodeGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddNodesNodeGroupHttpRequest.java @@ -119,6 +119,12 @@ public NodeGroupsAddNodesRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddPeeringNetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddPeeringNetworkHttpRequest.java index 125276be0506..7b19b696a0ab 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddPeeringNetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddPeeringNetworkHttpRequest.java @@ -118,6 +118,12 @@ public NetworksAddPeeringRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddRuleSecurityPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddRuleSecurityPolicyHttpRequest.java index 28f14193f75c..15f57866652d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddRuleSecurityPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddRuleSecurityPolicyHttpRequest.java @@ -112,6 +112,12 @@ public SecurityPolicyRule getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddSignedUrlKeyBackendBucketHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddSignedUrlKeyBackendBucketHttpRequest.java index 1c79fd3c5c22..f427e945c206 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddSignedUrlKeyBackendBucketHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddSignedUrlKeyBackendBucketHttpRequest.java @@ -119,6 +119,12 @@ public SignedUrlKey getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddSignedUrlKeyBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddSignedUrlKeyBackendServiceHttpRequest.java index 8e4037ed2640..c499fbae6719 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddSignedUrlKeyBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddSignedUrlKeyBackendServiceHttpRequest.java @@ -119,6 +119,12 @@ public SignedUrlKey getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Address.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Address.java index 64f1b3b19515..cbb1c42f33ec 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Address.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Address.java @@ -169,6 +169,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressAggregatedList.java index f88438700cc5..6f76188516b5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressAggregatedList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressList.java index c12f116651af..4c52e900268c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesScopedList.java index c7d0ad0fa5c8..38fa7e5af84c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressesScopedList.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAcceleratorTypesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAcceleratorTypesHttpRequest.java index 0648d76c8db2..163ef4a400e0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAcceleratorTypesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAcceleratorTypesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAddressesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAddressesHttpRequest.java index 8a97d3808f0d..7bd4d296ee27 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAddressesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAddressesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAutoscalersHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAutoscalersHttpRequest.java index 40c5bd7dce9c..20e5e1b97e80 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAutoscalersHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListAutoscalersHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListBackendServicesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListBackendServicesHttpRequest.java index 82d2f101d02c..a4fb9d4ef0b7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListBackendServicesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListBackendServicesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListDiskTypesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListDiskTypesHttpRequest.java index 441487560b20..46a38df32706 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListDiskTypesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListDiskTypesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListDisksHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListDisksHttpRequest.java index 537f35a0d910..a0b64b1ef8ee 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListDisksHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListDisksHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListForwardingRulesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListForwardingRulesHttpRequest.java index 8d9b3c2b031c..833a7e2ab22c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListForwardingRulesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListForwardingRulesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListGlobalOperationsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListGlobalOperationsHttpRequest.java index 03e330705677..3c4579d52a9e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListGlobalOperationsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListGlobalOperationsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupManagersHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupManagersHttpRequest.java index 43b49018fe6a..c912c332992d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupManagersHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupManagersHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupsHttpRequest.java index ba1b811974b9..2327ef93f3f9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstancesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstancesHttpRequest.java index b77b39de7410..747f5a3ef187 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstancesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInstancesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInterconnectAttachmentsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInterconnectAttachmentsHttpRequest.java index 17a8e4677fd3..3b28d74d84e1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInterconnectAttachmentsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListInterconnectAttachmentsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListMachineTypesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListMachineTypesHttpRequest.java index 496297ca9d45..92c1145fb851 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListMachineTypesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListMachineTypesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeGroupsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeGroupsHttpRequest.java index 4ed16fe53e37..56a1207a2d53 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeGroupsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeGroupsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTemplatesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTemplatesHttpRequest.java index 36a00eb8d416..035fffd83ddc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTemplatesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTemplatesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTypesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTypesHttpRequest.java index d2d87d7690cf..be6955ac1fb8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTypesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTypesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListRegionCommitmentsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListRegionCommitmentsHttpRequest.java index 533aede8f66e..fddbf53487a3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListRegionCommitmentsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListRegionCommitmentsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListRoutersHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListRoutersHttpRequest.java index 9e64b7cc4458..ed223021eaa0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListRoutersHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListRoutersHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListSubnetworksHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListSubnetworksHttpRequest.java index 7b5e37ed02f4..2e82be781721 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListSubnetworksHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListSubnetworksHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetInstancesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetInstancesHttpRequest.java index 2582db5d1084..173bdcded2fc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetInstancesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetInstancesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetPoolsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetPoolsHttpRequest.java index 472a7bcd5c58..2059b8805416 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetPoolsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetPoolsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetVpnGatewaysHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetVpnGatewaysHttpRequest.java index e21d848d4973..3539e77b1d7a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetVpnGatewaysHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetVpnGatewaysHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListVpnTunnelsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListVpnTunnelsHttpRequest.java index 1630713aceb1..e68046263e5a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListVpnTunnelsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AggregatedListVpnTunnelsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AliasIpRange.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AliasIpRange.java index f778e71e0509..93b8b1974a52 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AliasIpRange.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AliasIpRange.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Allowed.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Allowed.java index 8db88daa264c..2978683cb960 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Allowed.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Allowed.java @@ -65,6 +65,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachDiskInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachDiskInstanceHttpRequest.java index 26098745125c..94e3950952f8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachDiskInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachDiskInstanceHttpRequest.java @@ -128,6 +128,12 @@ public AttachedDisk getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachedDisk.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachedDisk.java index 502282611723..c625e80f71c7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachedDisk.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachedDisk.java @@ -142,6 +142,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachedDiskInitializeParams.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachedDiskInitializeParams.java index 1ccc29dee6af..15ccf7f63af7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachedDiskInitializeParams.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachedDiskInitializeParams.java @@ -103,6 +103,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuditConfig.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuditConfig.java index e3d61e0b7f73..8342ce1338db 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuditConfig.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuditConfig.java @@ -86,6 +86,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuditLogConfig.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuditLogConfig.java index 54b4aea62b71..9dc045ffd3ef 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuditLogConfig.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuditLogConfig.java @@ -67,6 +67,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuthorizationLoggingOptions.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuthorizationLoggingOptions.java index 7e7666dc84e5..0e45f09ec82b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuthorizationLoggingOptions.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AuthorizationLoggingOptions.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Autoscaler.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Autoscaler.java index 4feadcc87ddd..40a674f00253 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Autoscaler.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Autoscaler.java @@ -137,6 +137,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerAggregatedList.java index 4a4b47333246..302cbdfd2329 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerAggregatedList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java index 1b87ef755788..e1a36fe8bb5e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java @@ -765,7 +765,10 @@ public final UnaryCallable listAutos * autoscaling policy that you define. For more information, read Autoscaling Groups of * Instances. (== resource_for beta.autoscalers ==) (== resource_for v1.autoscalers ==) (== * resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -809,7 +812,10 @@ public final Operation patchAutoscaler( * autoscaling policy that you define. For more information, read Autoscaling Groups of * Instances. (== resource_for beta.autoscalers ==) (== resource_for v1.autoscalers ==) (== * resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -910,7 +916,10 @@ public final UnaryCallable patchAutoscale * autoscaling policy that you define. For more information, read Autoscaling Groups of * Instances. (== resource_for beta.autoscalers ==) (== resource_for v1.autoscalers ==) (== * resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -953,7 +962,10 @@ public final Operation updateAutoscaler( * autoscaling policy that you define. For more information, read Autoscaling Groups of * Instances. (== resource_for beta.autoscalers ==) (== resource_for v1.autoscalers ==) (== * resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerList.java index 2b5905eb576b..4f8e3c5d7fa2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerStatusDetails.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerStatusDetails.java index d6065f5997d2..6a0bca4c5f6a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerStatusDetails.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerStatusDetails.java @@ -57,6 +57,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersScopedList.java index 4b6508a470fe..b5498666b0cd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersScopedList.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicy.java index 81f249b5ef98..79cb3af02bc9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicy.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyCpuUtilization.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyCpuUtilization.java index 2d043b3b975d..01a9cc9c5a89 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyCpuUtilization.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyCpuUtilization.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyCustomMetricUtilization.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyCustomMetricUtilization.java index bc959504a4e1..a8e0f158c337 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyCustomMetricUtilization.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyCustomMetricUtilization.java @@ -65,6 +65,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyLoadBalancingUtilization.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyLoadBalancingUtilization.java index 26b3d1828c70..e50665c5b20c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyLoadBalancingUtilization.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalingPolicyLoadBalancingUtilization.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Backend.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Backend.java index e274f649834c..89ee3ad78fba 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Backend.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Backend.java @@ -109,6 +109,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucket.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucket.java index c1f6470f13e6..684e924bfcb5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucket.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucket.java @@ -109,6 +109,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketCdnPolicy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketCdnPolicy.java index aeb0e1bdd115..213552e5a4ea 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketCdnPolicy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketCdnPolicy.java @@ -59,6 +59,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java index 8dd2e267ee49..108449139b62 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java @@ -858,7 +858,10 @@ public final ListBackendBucketsPagedResponse listBackendBuckets( * @param backendBucket Name of the BackendBucket resource to patch. * @param backendBucketResource A BackendBucket resource. This resource defines a Cloud Storage * bucket. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -895,7 +898,10 @@ public final Operation patchBackendBucket( * @param backendBucket Name of the BackendBucket resource to patch. * @param backendBucketResource A BackendBucket resource. This resource defines a Cloud Storage * bucket. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -987,7 +993,10 @@ public final Operation patchBackendBucket(PatchBackendBucketHttpRequest request) * @param backendBucket Name of the BackendBucket resource to update. * @param backendBucketResource A BackendBucket resource. This resource defines a Cloud Storage * bucket. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -1023,7 +1032,10 @@ public final Operation updateBackendBucket( * @param backendBucket Name of the BackendBucket resource to update. * @param backendBucketResource A BackendBucket resource. This resource defines a Cloud Storage * bucket. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketList.java index 7ea7b6da481d..6d1ca8eba69e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendService.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendService.java index e408a36cd337..5d31e0ecf7db 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendService.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendService.java @@ -204,6 +204,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceAggregatedList.java index c20449a22382..82a4bdb780aa 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceAggregatedList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceCdnPolicy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceCdnPolicy.java index 67119ddb1cfc..2fa70112a89d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceCdnPolicy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceCdnPolicy.java @@ -68,6 +68,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java index c598dd86600f..04290a2a09cd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java @@ -1126,7 +1126,10 @@ public final ListBackendServicesPagedResponse listBackendServices( * @param backendServiceResource A BackendService resource. This resource defines a group of * backend virtual machines and their serving capacity. (== resource_for v1.backendService ==) * (== resource_for beta.backendService ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -1166,7 +1169,10 @@ public final Operation patchBackendService( * @param backendServiceResource A BackendService resource. This resource defines a group of * backend virtual machines and their serving capacity. (== resource_for v1.backendService ==) * (== resource_for beta.backendService ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -1381,7 +1387,10 @@ public final Operation setSecurityPolicyBackendService( * @param backendServiceResource A BackendService resource. This resource defines a group of * backend virtual machines and their serving capacity. (== resource_for v1.backendService ==) * (== resource_for beta.backendService ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -1420,7 +1429,10 @@ public final Operation updateBackendService( * @param backendServiceResource A BackendService resource. This resource defines a group of * backend virtual machines and their serving capacity. (== resource_for v1.backendService ==) * (== resource_for beta.backendService ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceGroupHealth.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceGroupHealth.java index 49129f464bbd..841df748fefb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceGroupHealth.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceGroupHealth.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceIAP.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceIAP.java index 5ec8831753b0..9e31131a99f4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceIAP.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceIAP.java @@ -74,6 +74,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceList.java index 8c36eb2010ac..df52e296abdf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesScopedList.java index 6b4b4e59a4cb..b2281859b9ba 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServicesScopedList.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Binding.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Binding.java index 9a04bca69a59..1941db6fb404 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Binding.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Binding.java @@ -65,6 +65,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CacheInvalidationRule.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CacheInvalidationRule.java index b268dee76312..5cdb1ac5aa70 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CacheInvalidationRule.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CacheInvalidationRule.java @@ -57,6 +57,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CacheKeyPolicy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CacheKeyPolicy.java index 3e292bb4174c..587dbfc3a29d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CacheKeyPolicy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CacheKeyPolicy.java @@ -82,6 +82,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Commitment.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Commitment.java index 45485b7fe9f1..ed0b5dcf9ebc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Commitment.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Commitment.java @@ -148,6 +148,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentAggregatedList.java index c9a7328ff794..52768b913867 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentAggregatedList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentList.java index bfebe4a1d44c..240c9f8d7e7a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentsScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentsScopedList.java index 29d54ab64058..75cba2ca3c4c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentsScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CommitmentsScopedList.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Condition.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Condition.java index 56b70e74d8bb..926326417397 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Condition.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Condition.java @@ -84,6 +84,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ConnectionDraining.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ConnectionDraining.java index d2b79f0f5a9d..8f0716ea60f8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ConnectionDraining.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ConnectionDraining.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CreateSnapshotDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CreateSnapshotDiskHttpRequest.java index 493a7aad0207..af142fd5334c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CreateSnapshotDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CreateSnapshotDiskHttpRequest.java @@ -126,6 +126,12 @@ public Snapshot getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CreateSnapshotRegionDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CreateSnapshotRegionDiskHttpRequest.java index 47eda545f6c6..1c45197d3b96 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CreateSnapshotRegionDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CreateSnapshotRegionDiskHttpRequest.java @@ -119,6 +119,12 @@ public Snapshot getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CustomerEncryptionKey.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CustomerEncryptionKey.java index 1add4e402688..4d36d91cae96 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CustomerEncryptionKey.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CustomerEncryptionKey.java @@ -64,6 +64,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CustomerEncryptionKeyProtectedDisk.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CustomerEncryptionKeyProtectedDisk.java index 3974c97a3e90..c18aad2049a5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CustomerEncryptionKeyProtectedDisk.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/CustomerEncryptionKeyProtectedDisk.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Data.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Data.java index 4bec57861dd9..93d2aa9993c0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Data.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Data.java @@ -61,6 +61,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAccessConfigInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAccessConfigInstanceHttpRequest.java index af8547d10695..0fb602a55742 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAccessConfigInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAccessConfigInstanceHttpRequest.java @@ -126,6 +126,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAddressHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAddressHttpRequest.java index 73f2d3fe8a7d..4edcb79cd0b9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAddressHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAddressHttpRequest.java @@ -109,6 +109,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAutoscalerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAutoscalerHttpRequest.java index 910120eb44f9..85d78d97b952 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAutoscalerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteAutoscalerHttpRequest.java @@ -109,6 +109,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteBackendBucketHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteBackendBucketHttpRequest.java index 76804dc7fe95..d2f814a13181 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteBackendBucketHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteBackendBucketHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteBackendServiceHttpRequest.java index f0a84960a047..f78f6f031f23 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteBackendServiceHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteDiskHttpRequest.java index 7c2ce9d08d84..45d957416a82 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteDiskHttpRequest.java @@ -113,6 +113,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteFirewallHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteFirewallHttpRequest.java index e9ba71b2ef85..009266f3fb92 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteFirewallHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteFirewallHttpRequest.java @@ -109,6 +109,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteForwardingRuleHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteForwardingRuleHttpRequest.java index 89656fa3a125..46d585e40e5c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteForwardingRuleHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteForwardingRuleHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalAddressHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalAddressHttpRequest.java index da5018f09227..baf3227fe74f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalAddressHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalAddressHttpRequest.java @@ -111,6 +111,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalForwardingRuleHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalForwardingRuleHttpRequest.java index b69ee91098b3..dc48e6e0ba34 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalForwardingRuleHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalForwardingRuleHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalOperationHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalOperationHttpRequest.java index 33a79e86a468..92871ba3a4ae 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalOperationHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteGlobalOperationHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHealthCheckHttpRequest.java index d040a8f067c4..4efb64b99f53 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHealthCheckHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHttpHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHttpHealthCheckHttpRequest.java index c3cfa56b090c..c6d5ae17493d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHttpHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHttpHealthCheckHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHttpsHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHttpsHealthCheckHttpRequest.java index d4cc263bfd3a..162fc05e4c68 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHttpsHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteHttpsHealthCheckHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteImageHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteImageHttpRequest.java index 683f9a1879bf..56daf2369d5a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteImageHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteImageHttpRequest.java @@ -109,6 +109,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceGroupHttpRequest.java index d80eed71f823..ee2b14cb250a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceGroupHttpRequest.java @@ -113,6 +113,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceGroupManagerHttpRequest.java index 9ed9e96c706e..6d9f799b5975 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceGroupManagerHttpRequest.java @@ -113,6 +113,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceHttpRequest.java index c39c60bc87d8..2f860fdb85f7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceTemplateHttpRequest.java index 01b29a8b1652..b4d00b1e2329 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstanceTemplateHttpRequest.java @@ -113,6 +113,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstancesInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstancesInstanceGroupManagerHttpRequest.java index 68d7c4ef1039..561b5e97865f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstancesInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstancesInstanceGroupManagerHttpRequest.java @@ -132,6 +132,12 @@ public InstanceGroupManagersDeleteInstancesRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstancesRegionInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstancesRegionInstanceGroupManagerHttpRequest.java index 91be7892ec56..05095040b25b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstancesRegionInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInstancesRegionInstanceGroupManagerHttpRequest.java @@ -133,6 +133,12 @@ public RegionInstanceGroupManagersDeleteInstancesRequest getApiMessageRequestBod @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInterconnectAttachmentHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInterconnectAttachmentHttpRequest.java index 3b946e9d4a28..1875f48b9029 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInterconnectAttachmentHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInterconnectAttachmentHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInterconnectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInterconnectHttpRequest.java index 88d346c1f7f0..728596981adb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInterconnectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteInterconnectHttpRequest.java @@ -109,6 +109,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteLicenseHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteLicenseHttpRequest.java index 4fada09cfa6d..b1259e50544c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteLicenseHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteLicenseHttpRequest.java @@ -109,6 +109,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNetworkHttpRequest.java index f5e66e864f65..64c7d624d217 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNetworkHttpRequest.java @@ -109,6 +109,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodeGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodeGroupHttpRequest.java index 1353e0752cc4..1d935ea71ec6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodeGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodeGroupHttpRequest.java @@ -111,6 +111,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodeTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodeTemplateHttpRequest.java index bd9f6d80555a..8e21c5556640 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodeTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodeTemplateHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodesNodeGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodesNodeGroupHttpRequest.java index cc108f769141..51c7d359c965 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodesNodeGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteNodesNodeGroupHttpRequest.java @@ -119,6 +119,12 @@ public NodeGroupsDeleteNodesRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionAutoscalerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionAutoscalerHttpRequest.java index 797a5204358d..2444e3b6c597 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionAutoscalerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionAutoscalerHttpRequest.java @@ -109,6 +109,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionBackendServiceHttpRequest.java index d5afd0997f72..2f1454ba2304 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionBackendServiceHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionDiskHttpRequest.java index e5b879e216e9..13d7ef498300 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionDiskHttpRequest.java @@ -114,6 +114,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstanceGroupManagerHttpRequest.java index 5b05c48d6eb5..382cc897d462 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionInstanceGroupManagerHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionOperationHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionOperationHttpRequest.java index 4adc5511d445..1b1e2165799a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionOperationHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRegionOperationHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRouteHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRouteHttpRequest.java index 03ec16e08fff..8ff170e89437 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRouteHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRouteHttpRequest.java @@ -109,6 +109,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRouterHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRouterHttpRequest.java index 79151e9bd934..a8f5a93b532b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRouterHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteRouterHttpRequest.java @@ -109,6 +109,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSecurityPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSecurityPolicyHttpRequest.java index 7adb14d2dbe3..e3d6e1e87f66 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSecurityPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSecurityPolicyHttpRequest.java @@ -109,6 +109,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSignedUrlKeyBackendBucketHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSignedUrlKeyBackendBucketHttpRequest.java index cc7291b20b5f..2cc263c3c5df 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSignedUrlKeyBackendBucketHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSignedUrlKeyBackendBucketHttpRequest.java @@ -119,6 +119,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSignedUrlKeyBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSignedUrlKeyBackendServiceHttpRequest.java index ba5329078cb7..e1889fe05720 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSignedUrlKeyBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSignedUrlKeyBackendServiceHttpRequest.java @@ -119,6 +119,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSnapshotHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSnapshotHttpRequest.java index c778335ef474..33c82393cec1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSnapshotHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSnapshotHttpRequest.java @@ -116,6 +116,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSslCertificateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSslCertificateHttpRequest.java index f878ad3630e4..06fbebe74c4c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSslCertificateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSslCertificateHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSslPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSslPolicyHttpRequest.java index efea5ece8f13..bbfb9444ad1f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSslPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSslPolicyHttpRequest.java @@ -113,6 +113,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSubnetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSubnetworkHttpRequest.java index 3af2cbec1fe3..280089fc9508 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSubnetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteSubnetworkHttpRequest.java @@ -109,6 +109,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetHttpProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetHttpProxyHttpRequest.java index d5d8ba302184..4902827baaac 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetHttpProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetHttpProxyHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetHttpsProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetHttpsProxyHttpRequest.java index 55be74894341..d38ace8f77eb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetHttpsProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetHttpsProxyHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetInstanceHttpRequest.java index 1a143a651ac2..c57efa7e0e32 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetInstanceHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetPoolHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetPoolHttpRequest.java index 91d97060d1ec..5887749d452a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetPoolHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetPoolHttpRequest.java @@ -109,6 +109,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetSslProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetSslProxyHttpRequest.java index 15d3d8b37cdf..96f977f026b4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetSslProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetSslProxyHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetTcpProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetTcpProxyHttpRequest.java index 687a31841d10..6bda89ed5f57 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetTcpProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetTcpProxyHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetVpnGatewayHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetVpnGatewayHttpRequest.java index 834d25269819..75e0e7a4ba39 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetVpnGatewayHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteTargetVpnGatewayHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteUrlMapHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteUrlMapHttpRequest.java index 73ebc38eb97c..7397ca969345 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteUrlMapHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteUrlMapHttpRequest.java @@ -109,6 +109,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteVpnTunnelHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteVpnTunnelHttpRequest.java index edf0000f63a7..d04d75250f4c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteVpnTunnelHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteVpnTunnelHttpRequest.java @@ -111,6 +111,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteZoneOperationHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteZoneOperationHttpRequest.java index 87d5f250d701..910b9e3679ed 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteZoneOperationHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeleteZoneOperationHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Denied.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Denied.java index b5bfadfc91c0..f995ab6b0084 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Denied.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Denied.java @@ -65,6 +65,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecateImageHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecateImageHttpRequest.java index 1d25377951ab..b762e4e17c50 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecateImageHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecateImageHttpRequest.java @@ -120,6 +120,12 @@ public DeprecationStatus getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecationStatus.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecationStatus.java index 00c5d0629b64..54d3d506a193 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecationStatus.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DeprecationStatus.java @@ -77,6 +77,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DetachDiskInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DetachDiskInstanceHttpRequest.java index 9b08aa192307..a250d626db8b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DetachDiskInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DetachDiskInstanceHttpRequest.java @@ -116,6 +116,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisableXpnHostProjectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisableXpnHostProjectHttpRequest.java index f1bcda796219..c612f48282ef 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisableXpnHostProjectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisableXpnHostProjectHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisableXpnResourceProjectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisableXpnResourceProjectHttpRequest.java index dc02d776614b..a6f991f2649d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisableXpnResourceProjectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisableXpnResourceProjectHttpRequest.java @@ -119,6 +119,12 @@ public ProjectsDisableXpnResourceRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Disk.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Disk.java index bffb587835ea..4ca32980e3cd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Disk.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Disk.java @@ -251,6 +251,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskAggregatedList.java index 3f372d4f5304..b0892eddd6ed 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskAggregatedList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskInstantiationConfig.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskInstantiationConfig.java index e00808c78e9c..a049ec8d4513 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskInstantiationConfig.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskInstantiationConfig.java @@ -74,6 +74,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskList.java index dd10b35948e1..b9980a8326a0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskMoveRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskMoveRequest.java index 1821acee89f3..731dbc083990 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskMoveRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskMoveRequest.java @@ -57,6 +57,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskType.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskType.java index 69b16602211f..4717e18f8abf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskType.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskType.java @@ -123,6 +123,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeAggregatedList.java index a9635058c82f..c095c2c3d49f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeAggregatedList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeList.java index 012ac9c067d6..7a616596f212 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypeList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypesScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypesScopedList.java index ba027c6a063d..f6713f0e8fa6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypesScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskTypesScopedList.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksResizeRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksResizeRequest.java index cb9078fb5a01..e4d46c6f5749 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksResizeRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksResizeRequest.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksScopedList.java index c6eacdd2a3b2..635ac8387696 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DisksScopedList.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DistributionPolicy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DistributionPolicy.java index 70cb93231928..14ec103e5a3e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DistributionPolicy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DistributionPolicy.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DistributionPolicyZoneConfiguration.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DistributionPolicyZoneConfiguration.java index 43782bb79e67..78e1ee552c48 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DistributionPolicyZoneConfiguration.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DistributionPolicyZoneConfiguration.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/EnableXpnHostProjectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/EnableXpnHostProjectHttpRequest.java index af717092b163..049f1ce4ec44 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/EnableXpnHostProjectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/EnableXpnHostProjectHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/EnableXpnResourceProjectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/EnableXpnResourceProjectHttpRequest.java index 4a88dc242b89..8bd8e29726d7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/EnableXpnResourceProjectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/EnableXpnResourceProjectHttpRequest.java @@ -120,6 +120,12 @@ public ProjectsEnableXpnResourceRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Error.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Error.java index 912e2ff74b75..f1bc99a17c1d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Error.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Error.java @@ -56,6 +56,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Errors.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Errors.java index ecc531c3977d..8e42140f49d4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Errors.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Errors.java @@ -64,6 +64,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ExpandIpCidrRangeSubnetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ExpandIpCidrRangeSubnetworkHttpRequest.java index 3580f677d662..b2ae81346f12 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ExpandIpCidrRangeSubnetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ExpandIpCidrRangeSubnetworkHttpRequest.java @@ -119,6 +119,12 @@ public SubnetworksExpandIpCidrRangeRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Expr.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Expr.java index 078ac8cbb631..49f7635e92bd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Expr.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Expr.java @@ -75,6 +75,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Firewall.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Firewall.java index b718d53d92d7..9169ef8d8c3d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Firewall.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Firewall.java @@ -180,6 +180,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java index 419257aa83ec..6bc1ca517763 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java @@ -607,7 +607,10 @@ public final UnaryCallable listFirewalls * * @param firewall Name of the firewall rule to patch. * @param firewallResource Represents a Firewall resource. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -641,7 +644,10 @@ public final Operation patchFirewall( * * @param firewall Name of the firewall rule to patch. * @param firewallResource Represents a Firewall resource. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -733,7 +739,10 @@ public final UnaryCallable patchFirewallCal * * @param firewall Name of the firewall rule to update. * @param firewallResource Represents a Firewall resource. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -768,7 +777,10 @@ public final Operation updateFirewall( * * @param firewall Name of the firewall rule to update. * @param firewallResource Represents a Firewall resource. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallList.java index 22769fd11467..fbb391646f34 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallLogConfig.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallLogConfig.java index 6f27852bdea2..9872fcbe202f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallLogConfig.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallLogConfig.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FixedOrPercent.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FixedOrPercent.java index ebdb8619b4a1..23c724147d0d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FixedOrPercent.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FixedOrPercent.java @@ -64,6 +64,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRule.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRule.java index 12dae2a519e6..bf88ef0ba396 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRule.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRule.java @@ -199,6 +199,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleAggregatedList.java index 6461a6af5b4c..93960cba86ec 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleAggregatedList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleList.java index db2b54776d65..ae65b5444648 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRulesScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRulesScopedList.java index ca0ed2f01daf..04b925044f58 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRulesScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRulesScopedList.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAcceleratorTypeHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAcceleratorTypeHttpRequest.java index 0534b3ce1e4f..2656e8b47c8a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAcceleratorTypeHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAcceleratorTypeHttpRequest.java @@ -104,6 +104,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAddressHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAddressHttpRequest.java index 89486a2a0259..e0ba0fed4179 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAddressHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAddressHttpRequest.java @@ -102,6 +102,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAutoscalerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAutoscalerHttpRequest.java index 88e3d3ec5cb4..0a42f5439fb0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAutoscalerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetAutoscalerHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetBackendBucketHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetBackendBucketHttpRequest.java index 2f853a8b2053..e23886257e7c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetBackendBucketHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetBackendBucketHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetBackendServiceHttpRequest.java index 4b3846404893..49e5cd987912 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetBackendServiceHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiagnosticsInterconnectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiagnosticsInterconnectHttpRequest.java index ea899ca95b01..134b84e76fea 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiagnosticsInterconnectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiagnosticsInterconnectHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiskHttpRequest.java index 60cf4065ade4..23c010db90d4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiskHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiskTypeHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiskTypeHttpRequest.java index 69f9ac37dc14..4dc10a510dd5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiskTypeHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetDiskTypeHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetFirewallHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetFirewallHttpRequest.java index 1193d6a23b8c..8b57c7c672d7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetFirewallHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetFirewallHttpRequest.java @@ -102,6 +102,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetForwardingRuleHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetForwardingRuleHttpRequest.java index e65a38ffb0e4..2a1d8c96b234 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetForwardingRuleHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetForwardingRuleHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetFromFamilyImageHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetFromFamilyImageHttpRequest.java index 853825a0c111..48c2b2298361 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetFromFamilyImageHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetFromFamilyImageHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalAddressHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalAddressHttpRequest.java index 0e07b218bc98..a7ac091f3618 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalAddressHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalAddressHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalForwardingRuleHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalForwardingRuleHttpRequest.java index 8f2f4519eee9..82e78d583279 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalForwardingRuleHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalForwardingRuleHttpRequest.java @@ -106,6 +106,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalOperationHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalOperationHttpRequest.java index bd7716e410f4..fcf27c87dae8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalOperationHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetGlobalOperationHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthBackendServiceHttpRequest.java index 4e9da245a254..1075670e7fad 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthBackendServiceHttpRequest.java @@ -112,6 +112,12 @@ public ResourceGroupReference getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthCheckHttpRequest.java index 39f1e8de796e..10a1e97d8b06 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthCheckHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthRegionBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthRegionBackendServiceHttpRequest.java index cc616e295afb..087b634420f2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthRegionBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthRegionBackendServiceHttpRequest.java @@ -112,6 +112,12 @@ public ResourceGroupReference getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthTargetPoolHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthTargetPoolHttpRequest.java index 8a96352ef9b1..86efb01a01ae 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthTargetPoolHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHealthTargetPoolHttpRequest.java @@ -112,6 +112,12 @@ public InstanceReference getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHttpHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHttpHealthCheckHttpRequest.java index 7dc03fd1573b..32227aed929b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHttpHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHttpHealthCheckHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHttpsHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHttpsHealthCheckHttpRequest.java index ec9532e514e9..61dba7ac4c26 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHttpsHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetHttpsHealthCheckHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyDiskHttpRequest.java index d8a6f0044bf8..0fea032b87cc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyDiskHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyImageHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyImageHttpRequest.java index 40fa14fefb1d..e4eef7d1b613 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyImageHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyImageHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstanceHttpRequest.java index cba3d62f13e2..1ea2f7c149f9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstanceHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstanceTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstanceTemplateHttpRequest.java index fa5305ecd342..9562dbd3cc87 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstanceTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyInstanceTemplateHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyLicenseHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyLicenseHttpRequest.java index 2baa20f94c03..f97e61d63f7d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyLicenseHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyLicenseHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyNodeGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyNodeGroupHttpRequest.java index 372003ac5290..b4806524440f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyNodeGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyNodeGroupHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyNodeTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyNodeTemplateHttpRequest.java index 0a31e73b9975..989eacbb8662 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyNodeTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicyNodeTemplateHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicySnapshotHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicySnapshotHttpRequest.java index fb622c501932..36de3c7837ae 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicySnapshotHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicySnapshotHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicySubnetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicySubnetworkHttpRequest.java index e1a8ae4141ca..ec48405ff1c2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicySubnetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetIamPolicySubnetworkHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetImageHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetImageHttpRequest.java index bb07537299ce..a21b8f7786ee 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetImageHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetImageHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceGroupHttpRequest.java index 3acc1f0cb21b..4ad9734dce43 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceGroupHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceGroupManagerHttpRequest.java index 8964fe172260..c9adb2d2e4e7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceGroupManagerHttpRequest.java @@ -106,6 +106,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceHttpRequest.java index cafa2181931a..33ed430439c9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceTemplateHttpRequest.java index 5ec87e1a4961..72e142a2223b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInstanceTemplateHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectAttachmentHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectAttachmentHttpRequest.java index 2fd8575bdecd..446a1ab0008f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectAttachmentHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectAttachmentHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectHttpRequest.java index 343fec9148e2..91bd90ac1609 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectLocationHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectLocationHttpRequest.java index 13a293e91fb7..5ebf5cfaeb29 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectLocationHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetInterconnectLocationHttpRequest.java @@ -106,6 +106,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetLicenseCodeHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetLicenseCodeHttpRequest.java index 637c46956aa2..76847087d5f8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetLicenseCodeHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetLicenseCodeHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetLicenseHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetLicenseHttpRequest.java index 86d41ff0faea..275eb397f6bf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetLicenseHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetLicenseHttpRequest.java @@ -102,6 +102,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetMachineTypeHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetMachineTypeHttpRequest.java index a481f0c1a22f..1f2f4798582a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetMachineTypeHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetMachineTypeHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNatMappingInfoRoutersHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNatMappingInfoRoutersHttpRequest.java index e5ca0488d647..e43590ef2570 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNatMappingInfoRoutersHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNatMappingInfoRoutersHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNetworkHttpRequest.java index 22accf3b4d8d..e98e9ff6406e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNetworkHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeGroupHttpRequest.java index 87f1a27084ab..ce5077cea1a0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeGroupHttpRequest.java @@ -106,6 +106,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeTemplateHttpRequest.java index 404c0ccc0ef1..07418e3ae7db 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeTemplateHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeTypeHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeTypeHttpRequest.java index f1d81ac5001f..016b67049972 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeTypeHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetNodeTypeHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetProjectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetProjectHttpRequest.java index 3debc44d4e28..1dd010a2c583 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetProjectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetProjectHttpRequest.java @@ -102,6 +102,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionAutoscalerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionAutoscalerHttpRequest.java index cc0161ac9af3..93b31983ec42 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionAutoscalerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionAutoscalerHttpRequest.java @@ -102,6 +102,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionBackendServiceHttpRequest.java index 760667a64f4d..f790138e85c0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionBackendServiceHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionCommitmentHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionCommitmentHttpRequest.java index e906de944763..6e6116beee44 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionCommitmentHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionCommitmentHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionDiskHttpRequest.java index 28cdec399070..58d710e52c20 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionDiskHttpRequest.java @@ -104,6 +104,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionDiskTypeHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionDiskTypeHttpRequest.java index 4e33f827944f..bd6647c98cae 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionDiskTypeHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionDiskTypeHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionHttpRequest.java index f714c1c83cba..02cc9c883aee 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupHttpRequest.java index 2d2d805575d5..a32779843cd8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupManagerHttpRequest.java index eec02f9eeba9..e9993fb101f4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionInstanceGroupManagerHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionOperationHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionOperationHttpRequest.java index bd302b0d0e66..25d97be1ec39 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionOperationHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRegionOperationHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouteHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouteHttpRequest.java index 08fcf2a000c3..010cceb62393 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouteHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouteHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouterHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouterHttpRequest.java index 2a3a7ddd9da0..703ac7b372f6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouterHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouterHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouterStatusRouterHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouterStatusRouterHttpRequest.java index c79fdc10941e..93cd22fe5834 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouterStatusRouterHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRouterStatusRouterHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRuleSecurityPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRuleSecurityPolicyHttpRequest.java index 0f4f90c1c5bf..b8c5d76005b6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRuleSecurityPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetRuleSecurityPolicyHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSecurityPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSecurityPolicyHttpRequest.java index 0ddba6bf30b9..94668203beec 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSecurityPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSecurityPolicyHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSerialPortOutputInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSerialPortOutputInstanceHttpRequest.java index a5b4f160e489..b200f666f56f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSerialPortOutputInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSerialPortOutputInstanceHttpRequest.java @@ -119,6 +119,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSnapshotHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSnapshotHttpRequest.java index 9e959f6b79fe..b254b3399e7c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSnapshotHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSnapshotHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSslCertificateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSslCertificateHttpRequest.java index 2563e6b3f497..c964d6e1af6c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSslCertificateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSslCertificateHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSslPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSslPolicyHttpRequest.java index 0ed3599cbf6c..4a7e9fab7771 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSslPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSslPolicyHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSubnetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSubnetworkHttpRequest.java index d0bdb0be84c5..26663ef32538 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSubnetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetSubnetworkHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetHttpProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetHttpProxyHttpRequest.java index f76e2bdeb119..bec9fe2701d8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetHttpProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetHttpProxyHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetHttpsProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetHttpsProxyHttpRequest.java index 2ab85ff75a75..09743101b194 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetHttpsProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetHttpsProxyHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetInstanceHttpRequest.java index d6652cdc0119..a7ec4132547e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetInstanceHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetPoolHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetPoolHttpRequest.java index 5bff929a8a21..ab6f862e5a3d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetPoolHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetPoolHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetSslProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetSslProxyHttpRequest.java index 0240798eb174..5b7ab4232c65 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetSslProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetSslProxyHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetTcpProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetTcpProxyHttpRequest.java index db1eff873ffb..9571c3492865 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetTcpProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetTcpProxyHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetVpnGatewayHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetVpnGatewayHttpRequest.java index 7639612a8465..c6d82cb2ee15 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetVpnGatewayHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetTargetVpnGatewayHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetUrlMapHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetUrlMapHttpRequest.java index d694fbffa77f..a3c2cd8b9bd3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetUrlMapHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetUrlMapHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetVpnTunnelHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetVpnTunnelHttpRequest.java index 4d66182628c9..214543d1fa00 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetVpnTunnelHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetVpnTunnelHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetXpnHostProjectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetXpnHostProjectHttpRequest.java index 00a994803d64..ba1f4b5987a0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetXpnHostProjectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetXpnHostProjectHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetXpnResourcesProjectsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetXpnResourcesProjectsHttpRequest.java index a43fc839e472..403dfb5106ce 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetXpnResourcesProjectsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetXpnResourcesProjectsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetZoneHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetZoneHttpRequest.java index 873e0f39f198..4060ffa86085 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetZoneHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetZoneHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetZoneOperationHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetZoneOperationHttpRequest.java index ce7f60a182b1..b6584c02a8ec 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetZoneOperationHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GetZoneOperationHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalSetLabelsRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalSetLabelsRequest.java index 8387db8c7981..0723e582f6f5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalSetLabelsRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalSetLabelsRequest.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalSetPolicyRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalSetPolicyRequest.java index 25ac5ff4c1e3..18367f05fabd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalSetPolicyRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalSetPolicyRequest.java @@ -64,6 +64,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GuestOsFeature.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GuestOsFeature.java index 183c67522521..2bc4e57b48ce 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GuestOsFeature.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GuestOsFeature.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheck.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheck.java index 064f09a2b2cf..94c651277baf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheck.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheck.java @@ -154,6 +154,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java index 05e323c0cd94..0eaa5d6ed784 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java @@ -619,7 +619,10 @@ public final ListHealthChecksPagedResponse listHealthChecks(ListHealthChecksHttp * @param healthCheckResource An HealthCheck resource. This resource defines a template for how * individual virtual machines should be checked for health, via one of the supported * protocols. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -657,7 +660,10 @@ public final Operation patchHealthCheck( * @param healthCheckResource An HealthCheck resource. This resource defines a template for how * individual virtual machines should be checked for health, via one of the supported * protocols. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -749,7 +755,10 @@ public final UnaryCallable patchHealthCh * @param healthCheckResource An HealthCheck resource. This resource defines a template for how * individual virtual machines should be checked for health, via one of the supported * protocols. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -786,7 +795,10 @@ public final Operation updateHealthCheck( * @param healthCheckResource An HealthCheck resource. This resource defines a template for how * individual virtual machines should be checked for health, via one of the supported * protocols. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckList.java index 5e111c720300..8dc2ee9f3bde 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckReference.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckReference.java index c6b5cef98735..196a3aafa1ca 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckReference.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckReference.java @@ -56,6 +56,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthStatus.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthStatus.java index 640419fdac73..5e7c580aeebc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthStatus.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthStatus.java @@ -69,6 +69,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HostRule.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HostRule.java index 107a3318be57..62a0b95ad9be 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HostRule.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HostRule.java @@ -68,6 +68,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheck.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheck.java index dea56466c1d1..e54a127c4ba7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheck.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheck.java @@ -87,6 +87,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheck2.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheck2.java index c9528da6352e..eb0da5b6e87f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheck2.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheck2.java @@ -140,6 +140,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckClient.java index 6679f6e219fc..dd2f1223f2f2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckClient.java @@ -630,7 +630,10 @@ public final ListHttpHealthChecksPagedResponse listHttpHealthChecks( * @param httpHealthCheck Name of the HttpHealthCheck resource to patch. * @param httpHealthCheckResource An HttpHealthCheck resource. This resource defines a template * for how individual instances should be checked for health, via HTTP. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -668,7 +671,10 @@ public final Operation patchHttpHealthCheck( * @param httpHealthCheck Name of the HttpHealthCheck resource to patch. * @param httpHealthCheckResource An HttpHealthCheck resource. This resource defines a template * for how individual instances should be checked for health, via HTTP. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -763,7 +769,10 @@ public final Operation patchHttpHealthCheck(PatchHttpHealthCheckHttpRequest requ * @param httpHealthCheck Name of the HttpHealthCheck resource to update. * @param httpHealthCheckResource An HttpHealthCheck resource. This resource defines a template * for how individual instances should be checked for health, via HTTP. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -800,7 +809,10 @@ public final Operation updateHttpHealthCheck( * @param httpHealthCheck Name of the HttpHealthCheck resource to update. * @param httpHealthCheckResource An HttpHealthCheck resource. This resource defines a template * for how individual instances should be checked for health, via HTTP. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckList.java index 74c2c3d97c6e..cb5135e1e274 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpSHealthCheck.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpSHealthCheck.java index 7cf4b516e0c7..60cfb497ab43 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpSHealthCheck.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpSHealthCheck.java @@ -87,6 +87,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheck2.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheck2.java index f9357afffe02..12643a500eda 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheck2.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheck2.java @@ -140,6 +140,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckClient.java index 9a1cfa86921d..7fcf330f460b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckClient.java @@ -633,7 +633,10 @@ public final ListHttpsHealthChecksPagedResponse listHttpsHealthChecks( * @param httpsHealthCheck Name of the HttpsHealthCheck resource to patch. * @param httpsHealthCheckResource An HttpsHealthCheck resource. This resource defines a template * for how individual instances should be checked for health, via HTTPS. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -671,7 +674,10 @@ public final Operation patchHttpsHealthCheck( * @param httpsHealthCheck Name of the HttpsHealthCheck resource to patch. * @param httpsHealthCheckResource An HttpsHealthCheck resource. This resource defines a template * for how individual instances should be checked for health, via HTTPS. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -766,7 +772,10 @@ public final Operation patchHttpsHealthCheck(PatchHttpsHealthCheckHttpRequest re * @param httpsHealthCheck Name of the HttpsHealthCheck resource to update. * @param httpsHealthCheckResource An HttpsHealthCheck resource. This resource defines a template * for how individual instances should be checked for health, via HTTPS. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -803,7 +812,10 @@ public final Operation updateHttpsHealthCheck( * @param httpsHealthCheck Name of the HttpsHealthCheck resource to update. * @param httpsHealthCheckResource An HttpsHealthCheck resource. This resource defines a template * for how individual instances should be checked for health, via HTTPS. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckList.java index f8e0cbb052f5..77c36b7085d7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Image.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Image.java index 0f2295f0f70f..8e6bc35a8b3e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Image.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Image.java @@ -244,6 +244,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageList.java index a08176a16421..fc3e3678d4e8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertAddressHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertAddressHttpRequest.java index 611407e8e832..41feb6b5f1d2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertAddressHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertAddressHttpRequest.java @@ -119,6 +119,12 @@ public Address getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertAutoscalerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertAutoscalerHttpRequest.java index ef46ac5fa04a..2f1caab05f6c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertAutoscalerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertAutoscalerHttpRequest.java @@ -119,6 +119,12 @@ public Autoscaler getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertBackendBucketHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertBackendBucketHttpRequest.java index ef92fa37d0ee..b6e2d7a3ad0f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertBackendBucketHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertBackendBucketHttpRequest.java @@ -119,6 +119,12 @@ public BackendBucket getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertBackendServiceHttpRequest.java index f071d262ef60..b5050065677b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertBackendServiceHttpRequest.java @@ -121,6 +121,12 @@ public BackendService getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertDiskHttpRequest.java index e8468c4be1a7..e4db3021777f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertDiskHttpRequest.java @@ -128,6 +128,12 @@ public Disk getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertFirewallHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertFirewallHttpRequest.java index 98b754070e3c..4ad129b397be 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertFirewallHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertFirewallHttpRequest.java @@ -119,6 +119,12 @@ public Firewall getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertForwardingRuleHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertForwardingRuleHttpRequest.java index c92d0232bb0d..902419cbba86 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertForwardingRuleHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertForwardingRuleHttpRequest.java @@ -119,6 +119,12 @@ public ForwardingRule getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertGlobalAddressHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertGlobalAddressHttpRequest.java index 933d9a753333..8445578249b3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertGlobalAddressHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertGlobalAddressHttpRequest.java @@ -119,6 +119,12 @@ public Address getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertGlobalForwardingRuleHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertGlobalForwardingRuleHttpRequest.java index 36d5a5d0d824..ccad56774bce 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertGlobalForwardingRuleHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertGlobalForwardingRuleHttpRequest.java @@ -119,6 +119,12 @@ public ForwardingRule getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHealthCheckHttpRequest.java index 2a8f214e907b..a53344f1d7a4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHealthCheckHttpRequest.java @@ -119,6 +119,12 @@ public HealthCheck getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHttpHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHttpHealthCheckHttpRequest.java index caf7cc9d6d66..aa420d7612ce 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHttpHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHttpHealthCheckHttpRequest.java @@ -119,6 +119,12 @@ public HttpHealthCheck2 getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHttpsHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHttpsHealthCheckHttpRequest.java index bf291e92f216..d1ceab1fc5b9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHttpsHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertHttpsHealthCheckHttpRequest.java @@ -119,6 +119,12 @@ public HttpsHealthCheck2 getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertImageHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertImageHttpRequest.java index 53f2c5b3dcc9..90c0d85aa4b6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertImageHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertImageHttpRequest.java @@ -126,6 +126,12 @@ public Image getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceGroupHttpRequest.java index 986f6482ebde..562991160b4a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceGroupHttpRequest.java @@ -119,6 +119,12 @@ public InstanceGroup getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceGroupManagerHttpRequest.java index 90ad9346b075..f2f16f67930c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceGroupManagerHttpRequest.java @@ -125,6 +125,12 @@ public InstanceGroupManager getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceHttpRequest.java index 389d2d74a9a2..121c978e2a20 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceHttpRequest.java @@ -126,6 +126,12 @@ public Instance getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceTemplateHttpRequest.java index 46a2046bb0cb..b28e50d96b1f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInstanceTemplateHttpRequest.java @@ -121,6 +121,12 @@ public InstanceTemplate getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInterconnectAttachmentHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInterconnectAttachmentHttpRequest.java index 3074be985139..38fb0b4eedbe 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInterconnectAttachmentHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInterconnectAttachmentHttpRequest.java @@ -119,6 +119,12 @@ public InterconnectAttachment getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInterconnectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInterconnectHttpRequest.java index 9ce631308dd2..ad0c6b3bb914 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInterconnectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertInterconnectHttpRequest.java @@ -119,6 +119,12 @@ public Interconnect getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertLicenseHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertLicenseHttpRequest.java index f6e1818e01c2..79a6387f2ae3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertLicenseHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertLicenseHttpRequest.java @@ -119,6 +119,12 @@ public License getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNetworkHttpRequest.java index 0678a857f4b7..6e6db9340a01 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNetworkHttpRequest.java @@ -119,6 +119,12 @@ public Network getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNodeGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNodeGroupHttpRequest.java index 0657cc08d63d..c9accd233702 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNodeGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNodeGroupHttpRequest.java @@ -126,6 +126,12 @@ public NodeGroup getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNodeTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNodeTemplateHttpRequest.java index fe1c5d9e54e7..e91ee6606bf3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNodeTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertNodeTemplateHttpRequest.java @@ -119,6 +119,12 @@ public NodeTemplate getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionAutoscalerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionAutoscalerHttpRequest.java index 7a4b61fa1b3c..5a56dfde1dbf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionAutoscalerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionAutoscalerHttpRequest.java @@ -119,6 +119,12 @@ public Autoscaler getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionBackendServiceHttpRequest.java index 9f03122f6020..eb378038b00b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionBackendServiceHttpRequest.java @@ -121,6 +121,12 @@ public BackendService getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionCommitmentHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionCommitmentHttpRequest.java index 9f88a2de0492..b441a791ddc6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionCommitmentHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionCommitmentHttpRequest.java @@ -119,6 +119,12 @@ public Commitment getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionDiskHttpRequest.java index 605b84da2129..5554df8890a2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionDiskHttpRequest.java @@ -126,6 +126,12 @@ public Disk getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionInstanceGroupManagerHttpRequest.java index 29bbe702ea62..6f2a474f79b4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRegionInstanceGroupManagerHttpRequest.java @@ -125,6 +125,12 @@ public InstanceGroupManager getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRouteHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRouteHttpRequest.java index 6ac11a0a66cb..0f63660acea5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRouteHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRouteHttpRequest.java @@ -119,6 +119,12 @@ public Route getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRouterHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRouterHttpRequest.java index df8568dd64a9..4a19e3c2788d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRouterHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertRouterHttpRequest.java @@ -119,6 +119,12 @@ public Router getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSecurityPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSecurityPolicyHttpRequest.java index 114936b9ebc0..6a49117b4b2e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSecurityPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSecurityPolicyHttpRequest.java @@ -119,6 +119,12 @@ public SecurityPolicy getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSslCertificateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSslCertificateHttpRequest.java index 89e3b5f0e6ad..5bf9c0159a28 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSslCertificateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSslCertificateHttpRequest.java @@ -119,6 +119,12 @@ public SslCertificate getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSslPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSslPolicyHttpRequest.java index 49ed8fd5590a..229dd6a4244e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSslPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSslPolicyHttpRequest.java @@ -119,6 +119,12 @@ public SslPolicy getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSubnetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSubnetworkHttpRequest.java index 458cd4eb519a..dab001cf082a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSubnetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertSubnetworkHttpRequest.java @@ -119,6 +119,12 @@ public Subnetwork getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpProxyHttpRequest.java index d262ccec701e..4aed947e13d8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpProxyHttpRequest.java @@ -119,6 +119,12 @@ public TargetHttpProxy getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpsProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpsProxyHttpRequest.java index 1c44419954ed..07d70fe116a0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpsProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpsProxyHttpRequest.java @@ -119,6 +119,12 @@ public TargetHttpsProxy getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetInstanceHttpRequest.java index 4ffd739d8833..fb89aca893b8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetInstanceHttpRequest.java @@ -119,6 +119,12 @@ public TargetInstance getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetPoolHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetPoolHttpRequest.java index db47c40a0c48..ded27ae7546a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetPoolHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetPoolHttpRequest.java @@ -119,6 +119,12 @@ public TargetPool getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetSslProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetSslProxyHttpRequest.java index ee4eec705dfa..e04db6693db8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetSslProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetSslProxyHttpRequest.java @@ -119,6 +119,12 @@ public TargetSslProxy getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetTcpProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetTcpProxyHttpRequest.java index 6260e686e010..e155d9d41a48 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetTcpProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetTcpProxyHttpRequest.java @@ -119,6 +119,12 @@ public TargetTcpProxy getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetVpnGatewayHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetVpnGatewayHttpRequest.java index dff438d8f0db..bf1cb5d46f90 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetVpnGatewayHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertTargetVpnGatewayHttpRequest.java @@ -119,6 +119,12 @@ public TargetVpnGateway getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertUrlMapHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertUrlMapHttpRequest.java index 55c152098402..f0482b0e1326 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertUrlMapHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertUrlMapHttpRequest.java @@ -119,6 +119,12 @@ public UrlMap getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertVpnTunnelHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertVpnTunnelHttpRequest.java index 9cce76bdc645..2624f8cb37f6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertVpnTunnelHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InsertVpnTunnelHttpRequest.java @@ -119,6 +119,12 @@ public VpnTunnel getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Instance.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Instance.java index 8bd5a332e5f2..2a71dc9f88e0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Instance.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Instance.java @@ -223,6 +223,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceAggregatedList.java index 1a476a0a5ea3..2bff1c1fe9d4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceAggregatedList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java index 1e5eb0c61f5f..7458a77b898a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java @@ -3672,7 +3672,10 @@ public final Operation updateAccessConfigInstance(UpdateAccessConfigInstanceHttp * @param instance The instance name for this request. * @param networkInterface The name of the network interface to update. * @param networkInterfaceResource A network interface resource attached to an instance. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -3711,7 +3714,10 @@ public final Operation updateNetworkInterfaceInstance( * @param instance The instance name for this request. * @param networkInterface The name of the network interface to update. * @param networkInterfaceResource A network interface resource attached to an instance. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroup.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroup.java index 5dc4ff85f346..31df9cb28d81 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroup.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroup.java @@ -141,6 +141,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupAggregatedList.java index 346ee995f05b..a4bf0533c4b0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupAggregatedList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupList.java index 9863c5afc543..83f03c370a27 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManager.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManager.java index 5d8d6b64180b..cf2c6c6238b2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManager.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManager.java @@ -198,6 +198,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerActionsSummary.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerActionsSummary.java index d68ef9d7462a..b5b304a80dfe 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerActionsSummary.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerActionsSummary.java @@ -108,6 +108,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerAggregatedList.java index d9fb13c0ffa5..3796d159455f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerAggregatedList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerAutoHealingPolicy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerAutoHealingPolicy.java index b387ca79fcfd..fcfdc119d33d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerAutoHealingPolicy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerAutoHealingPolicy.java @@ -57,6 +57,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java index 72165023ca75..c6beb0d7ec7d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java @@ -1281,7 +1281,10 @@ public final ListInstanceGroupManagersPagedResponse listInstanceGroupManagers( * beta.instanceGroupManagers ==) (== resource_for v1.instanceGroupManagers ==) (== * resource_for beta.regionInstanceGroupManagers ==) (== resource_for * v1.regionInstanceGroupManagers ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -1324,7 +1327,10 @@ public final Operation patchInstanceGroupManager( * beta.instanceGroupManagers ==) (== resource_for v1.instanceGroupManagers ==) (== * resource_for beta.regionInstanceGroupManagers ==) (== resource_for * v1.regionInstanceGroupManagers ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerList.java index 4e018dbd3b19..39b805677914 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatus.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatus.java index fa36cdbd78b4..a11ce750a537 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatus.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatus.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerUpdatePolicy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerUpdatePolicy.java index 66bb66290dd6..f77290902b1f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerUpdatePolicy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerUpdatePolicy.java @@ -70,6 +70,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerVersion.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerVersion.java index 735931737c40..1e36848ef50c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerVersion.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerVersion.java @@ -64,6 +64,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersAbandonInstancesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersAbandonInstancesRequest.java index 2389c15a0f27..dcaba66e4ba4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersAbandonInstancesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersAbandonInstancesRequest.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersDeleteInstancesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersDeleteInstancesRequest.java index 54f9d829e8ee..b041a9554663 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersDeleteInstancesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersDeleteInstancesRequest.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersListManagedInstancesResponse.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersListManagedInstancesResponse.java index bf9313252a87..2996060ac0a3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersListManagedInstancesResponse.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersListManagedInstancesResponse.java @@ -53,6 +53,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersRecreateInstancesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersRecreateInstancesRequest.java index e2b05adf8c67..365dcbde3e24 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersRecreateInstancesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersRecreateInstancesRequest.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersScopedList.java index c766f42bbcd7..452a038e6e90 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersScopedList.java @@ -59,6 +59,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSetInstanceTemplateRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSetInstanceTemplateRequest.java index 5a704184e59d..f049d634b34b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSetInstanceTemplateRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSetInstanceTemplateRequest.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSetTargetPoolsRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSetTargetPoolsRequest.java index 692f5348e6f1..8880b2f3b480 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSetTargetPoolsRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersSetTargetPoolsRequest.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsAddInstancesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsAddInstancesRequest.java index d3f7f99eddf8..d821f4dd1342 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsAddInstancesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsAddInstancesRequest.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsListInstances.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsListInstances.java index 79846065797c..64b0fce06dca 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsListInstances.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsListInstances.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsListInstancesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsListInstancesRequest.java index 8a2add62db08..d6a641d74ce8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsListInstancesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsListInstancesRequest.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsRemoveInstancesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsRemoveInstancesRequest.java index eba33bccf1c0..54fff4a6c2ee 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsRemoveInstancesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsRemoveInstancesRequest.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsScopedList.java index cd129b0f59c0..8d68fa173c83 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsScopedList.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsSetNamedPortsRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsSetNamedPortsRequest.java index 27795bc7f379..1bd1d02af1ac 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsSetNamedPortsRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupsSetNamedPortsRequest.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceList.java index d852bebc822c..ae066e44b99f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceListReferrers.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceListReferrers.java index cabea61e4d17..c9ca00578a27 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceListReferrers.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceListReferrers.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceMoveRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceMoveRequest.java index 6b2d38d7ff91..45e68d0b8a90 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceMoveRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceMoveRequest.java @@ -57,6 +57,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceProperties.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceProperties.java index 9d810d1df1ec..d26c973954bc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceProperties.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceProperties.java @@ -131,6 +131,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceReference.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceReference.java index bf9044b73b40..b43a90d82717 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceReference.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceReference.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplate.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplate.java index ab3fa38ca417..c21b6dfd0326 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplate.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplate.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateList.java index 2a2d72a177aa..349b71119591 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceWithNamedPorts.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceWithNamedPorts.java index 7a67b907c882..bc85a9a38ff8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceWithNamedPorts.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceWithNamedPorts.java @@ -64,6 +64,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesScopedList.java index 9c6c49c71e02..66fca6c83b1b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesScopedList.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetLabelsRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetLabelsRequest.java index b9a16492dcab..d8efa8bc6c6d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetLabelsRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetLabelsRequest.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMachineResourcesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMachineResourcesRequest.java index 30e527723691..7a6920717cbf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMachineResourcesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMachineResourcesRequest.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMachineTypeRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMachineTypeRequest.java index dee3b4cd7de5..ea6e02964374 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMachineTypeRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMachineTypeRequest.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMinCpuPlatformRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMinCpuPlatformRequest.java index 30d712211ed5..01becc4dcdc5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMinCpuPlatformRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetMinCpuPlatformRequest.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetServiceAccountRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetServiceAccountRequest.java index 2036b658b44e..ef51106753b2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetServiceAccountRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesSetServiceAccountRequest.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesStartWithEncryptionKeyRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesStartWithEncryptionKeyRequest.java index 073a84a114de..a960985def0d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesStartWithEncryptionKeyRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstancesStartWithEncryptionKeyRequest.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Interconnect.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Interconnect.java index dddd46327f04..29d937996d25 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Interconnect.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Interconnect.java @@ -205,6 +205,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachment.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachment.java index b6f7078dddcf..74d6e13aaaac 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachment.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachment.java @@ -219,6 +219,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentAggregatedList.java index 1d49a604095c..66c137a3dd73 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentAggregatedList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentClient.java index bce4baa1f366..d5db6755193c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentClient.java @@ -785,7 +785,10 @@ public final ListInterconnectAttachmentsPagedResponse listInterconnectAttachment * @param interconnectAttachmentResource Represents an InterconnectAttachment (VLAN attachment) * resource. For more information, see Creating VLAN Attachments. (== resource_for * beta.interconnectAttachments ==) (== resource_for v1.interconnectAttachments ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -824,7 +827,10 @@ public final Operation patchInterconnectAttachment( * @param interconnectAttachmentResource Represents an InterconnectAttachment (VLAN attachment) * resource. For more information, see Creating VLAN Attachments. (== resource_for * beta.interconnectAttachments ==) (== resource_for v1.interconnectAttachments ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentList.java index f507d61d264a..a3f2e6a5de78 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentPartnerMetadata.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentPartnerMetadata.java index 144b2185c780..77041111be4f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentPartnerMetadata.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentPartnerMetadata.java @@ -69,6 +69,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentPrivateInfo.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentPrivateInfo.java index f8df21e6736b..638547e57c0f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentPrivateInfo.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentPrivateInfo.java @@ -55,6 +55,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentsScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentsScopedList.java index 4399284368be..734f69472a72 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentsScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentsScopedList.java @@ -59,6 +59,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectCircuitInfo.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectCircuitInfo.java index 8a71d21ce8ba..8dceec84dd16 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectCircuitInfo.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectCircuitInfo.java @@ -68,6 +68,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectClient.java index 6e136095c91f..f9063400e48e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectClient.java @@ -727,7 +727,10 @@ public final ListInterconnectsPagedResponse listInterconnects( * a dedicated connection between Google's network and your on-premises network. For more * information, see the Dedicated overview page. (== resource_for v1.interconnects ==) (== * resource_for beta.interconnects ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -766,7 +769,10 @@ public final Operation patchInterconnect( * a dedicated connection between Google's network and your on-premises network. For more * information, see the Dedicated overview page. (== resource_for v1.interconnects ==) (== * resource_for beta.interconnects ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectDiagnostics.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectDiagnostics.java index c68a5372b76b..b25a51586fff 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectDiagnostics.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectDiagnostics.java @@ -71,6 +71,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectDiagnosticsARPEntry.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectDiagnosticsARPEntry.java index d5ed96141f0d..51e59c545b4a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectDiagnosticsARPEntry.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectDiagnosticsARPEntry.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectDiagnosticsLinkLACPStatus.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectDiagnosticsLinkLACPStatus.java index af3ea43ce861..0ebf7dce9950 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectDiagnosticsLinkLACPStatus.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectDiagnosticsLinkLACPStatus.java @@ -64,6 +64,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectDiagnosticsLinkOpticalPower.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectDiagnosticsLinkOpticalPower.java index 91265b064ffc..a38af6872490 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectDiagnosticsLinkOpticalPower.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectDiagnosticsLinkOpticalPower.java @@ -57,6 +57,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectDiagnosticsLinkStatus.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectDiagnosticsLinkStatus.java index 1f63d00908f9..198d2e10b71f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectDiagnosticsLinkStatus.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectDiagnosticsLinkStatus.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectList.java index 58762f64c3da..7c985242832d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocation.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocation.java index a9226a89b833..6be1eae1375c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocation.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocation.java @@ -156,6 +156,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocationList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocationList.java index 8b9a9d8e5875..7074a14b9050 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocationList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocationList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocationRegionInfo.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocationRegionInfo.java index 81df7b5865b6..98fc9d5f0b79 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocationRegionInfo.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectLocationRegionInfo.java @@ -68,6 +68,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectOutageNotification.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectOutageNotification.java index 8da31df2c3f5..4471d2230c8b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectOutageNotification.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectOutageNotification.java @@ -103,6 +103,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectsGetDiagnosticsResponse.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectsGetDiagnosticsResponse.java index e831e63739e1..53bee961d307 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectsGetDiagnosticsResponse.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectsGetDiagnosticsResponse.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InvalidateCacheUrlMapHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InvalidateCacheUrlMapHttpRequest.java index bdbf74c63c38..8af7797ce274 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InvalidateCacheUrlMapHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InvalidateCacheUrlMapHttpRequest.java @@ -119,6 +119,12 @@ public CacheInvalidationRule getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Items.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Items.java index ad58b941adfb..6ce8c4e91222 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Items.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Items.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/License.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/License.java index 4f3c1623ec19..3de6254435a3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/License.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/License.java @@ -116,6 +116,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseCode.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseCode.java index f2cceb1215ae..8d01e22023eb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseCode.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseCode.java @@ -109,6 +109,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseCodeLicenseAlias.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseCodeLicenseAlias.java index 65fd0ae1a9a4..f6bdc115f3fa 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseCodeLicenseAlias.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseCodeLicenseAlias.java @@ -57,6 +57,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseResourceRequirements.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseResourceRequirements.java index 2e11ded886d5..0499ce471847 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseResourceRequirements.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseResourceRequirements.java @@ -57,6 +57,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicensesListResponse.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicensesListResponse.java index 8ba5ebb4ebed..f995040330a7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicensesListResponse.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicensesListResponse.java @@ -77,6 +77,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListAcceleratorTypesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListAcceleratorTypesHttpRequest.java index f86e833f5389..ba1eb06673f7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListAcceleratorTypesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListAcceleratorTypesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListAddressesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListAddressesHttpRequest.java index f05d46fbf8fe..470f654a7468 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListAddressesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListAddressesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListAutoscalersHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListAutoscalersHttpRequest.java index ab7b449be37d..9436d55b1d5c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListAutoscalersHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListAutoscalersHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListAvailableFeaturesSslPoliciesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListAvailableFeaturesSslPoliciesHttpRequest.java index 1cbc8df4c596..3270c8a07acc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListAvailableFeaturesSslPoliciesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListAvailableFeaturesSslPoliciesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListBackendBucketsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListBackendBucketsHttpRequest.java index 947ffcdb40cd..ef90569f9541 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListBackendBucketsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListBackendBucketsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListBackendServicesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListBackendServicesHttpRequest.java index 08f0f2ef1473..e5c96ff43185 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListBackendServicesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListBackendServicesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListDiskTypesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListDiskTypesHttpRequest.java index cb245f1af3de..719d520a2fc6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListDiskTypesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListDiskTypesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListDisksHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListDisksHttpRequest.java index bf049c2475af..3e268e5f64c4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListDisksHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListDisksHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListFirewallsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListFirewallsHttpRequest.java index 58c50b2fc8a5..ed4f6d5aba8f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListFirewallsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListFirewallsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListForwardingRulesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListForwardingRulesHttpRequest.java index 6abb1b3a9ba7..bcca21ba1fae 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListForwardingRulesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListForwardingRulesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListGlobalAddressesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListGlobalAddressesHttpRequest.java index 3ac03e40536e..b1b6861c6bdd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListGlobalAddressesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListGlobalAddressesHttpRequest.java @@ -130,6 +130,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListGlobalForwardingRulesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListGlobalForwardingRulesHttpRequest.java index 109ea86707f7..b00bb4c4db20 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListGlobalForwardingRulesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListGlobalForwardingRulesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListGlobalOperationsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListGlobalOperationsHttpRequest.java index 16bbfe6e8198..4bdf92d5b4d4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListGlobalOperationsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListGlobalOperationsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListHealthChecksHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListHealthChecksHttpRequest.java index 73ca800503d8..d8f8b0795844 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListHealthChecksHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListHealthChecksHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListHttpHealthChecksHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListHttpHealthChecksHttpRequest.java index a6e2ad54e347..7d775366e2c7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListHttpHealthChecksHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListHttpHealthChecksHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListHttpsHealthChecksHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListHttpsHealthChecksHttpRequest.java index 438e94c0ee7a..248e4704e8b6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListHttpsHealthChecksHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListHttpsHealthChecksHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListImagesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListImagesHttpRequest.java index faad236a3719..c736080b1152 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListImagesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListImagesHttpRequest.java @@ -136,6 +136,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstanceGroupManagersHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstanceGroupManagersHttpRequest.java index 711800d2d92b..34340209673a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstanceGroupManagersHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstanceGroupManagersHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstanceGroupsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstanceGroupsHttpRequest.java index d28eac2bb69c..48e55301825d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstanceGroupsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstanceGroupsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstanceTemplatesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstanceTemplatesHttpRequest.java index 7d1bfe2416f6..b3528c0be7d0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstanceTemplatesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstanceTemplatesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstancesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstancesHttpRequest.java index eb6873a10a54..6e5919bce44c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstancesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstancesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstancesInstanceGroupsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstancesInstanceGroupsHttpRequest.java index d3dac8b75a3a..1addc46ec185 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstancesInstanceGroupsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstancesInstanceGroupsHttpRequest.java @@ -140,6 +140,12 @@ public InstanceGroupsListInstancesRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstancesRegionInstanceGroupsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstancesRegionInstanceGroupsHttpRequest.java index 8bc27bc50e2b..91a1c5d229ed 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstancesRegionInstanceGroupsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInstancesRegionInstanceGroupsHttpRequest.java @@ -143,6 +143,12 @@ public RegionInstanceGroupsListInstancesRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInterconnectAttachmentsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInterconnectAttachmentsHttpRequest.java index 9860635308d3..65bfd7afa4d7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInterconnectAttachmentsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInterconnectAttachmentsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInterconnectLocationsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInterconnectLocationsHttpRequest.java index bc2c47c8246f..242702692562 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInterconnectLocationsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInterconnectLocationsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInterconnectsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInterconnectsHttpRequest.java index d31532ea615f..de986d2f1e82 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInterconnectsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListInterconnectsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListLicensesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListLicensesHttpRequest.java index 30586f5ae7c1..158ae2f9293c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListLicensesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListLicensesHttpRequest.java @@ -136,6 +136,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListMachineTypesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListMachineTypesHttpRequest.java index 8cccf41681b2..aac72e1fa082 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListMachineTypesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListMachineTypesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListManagedInstancesInstanceGroupManagersHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListManagedInstancesInstanceGroupManagersHttpRequest.java index 5f4f61bb0d3e..4dbb8a262d08 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListManagedInstancesInstanceGroupManagersHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListManagedInstancesInstanceGroupManagersHttpRequest.java @@ -136,6 +136,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListManagedInstancesRegionInstanceGroupManagersHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListManagedInstancesRegionInstanceGroupManagersHttpRequest.java index 400e3d2282d7..b6837268c758 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListManagedInstancesRegionInstanceGroupManagersHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListManagedInstancesRegionInstanceGroupManagersHttpRequest.java @@ -135,6 +135,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListNetworksHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListNetworksHttpRequest.java index 249bca7db19b..d56298aeed86 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListNetworksHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListNetworksHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListNodeGroupsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListNodeGroupsHttpRequest.java index 628ae3779a23..598059bd1557 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListNodeGroupsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListNodeGroupsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListNodeTemplatesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListNodeTemplatesHttpRequest.java index e90c0b649bb2..07a640aa8522 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListNodeTemplatesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListNodeTemplatesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListNodeTypesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListNodeTypesHttpRequest.java index d586c25395ec..492e41541ab6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListNodeTypesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListNodeTypesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListNodesNodeGroupsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListNodesNodeGroupsHttpRequest.java index 3fd7c0186304..ce85c5d24250 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListNodesNodeGroupsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListNodesNodeGroupsHttpRequest.java @@ -130,6 +130,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListReferrersInstancesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListReferrersInstancesHttpRequest.java index d0847317aff1..755fa7b2bfc9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListReferrersInstancesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListReferrersInstancesHttpRequest.java @@ -134,6 +134,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionAutoscalersHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionAutoscalersHttpRequest.java index 4e36f7d62714..ddbfd5bee846 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionAutoscalersHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionAutoscalersHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionBackendServicesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionBackendServicesHttpRequest.java index 3631fa023be3..18519f8fbaae 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionBackendServicesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionBackendServicesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionCommitmentsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionCommitmentsHttpRequest.java index 9304bcdcbe47..997c1df47e3a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionCommitmentsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionCommitmentsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionDiskTypesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionDiskTypesHttpRequest.java index 51c5ba9bc481..d5cbb0690123 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionDiskTypesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionDiskTypesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionDisksHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionDisksHttpRequest.java index 9680f51f3365..38b4f6239fbd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionDisksHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionDisksHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionInstanceGroupManagersHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionInstanceGroupManagersHttpRequest.java index 348e5f5626be..7c1bad6a0bcd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionInstanceGroupManagersHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionInstanceGroupManagersHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionInstanceGroupsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionInstanceGroupsHttpRequest.java index 1b9313ae7f4f..eb9042a25a17 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionInstanceGroupsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionInstanceGroupsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionOperationsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionOperationsHttpRequest.java index 748c7331467a..ca4c270bf982 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionOperationsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionOperationsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionsHttpRequest.java index 0b99247a5d3f..62265b20fa55 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRegionsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRoutersHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRoutersHttpRequest.java index 6c386498f37e..ad5d693db4e2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRoutersHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRoutersHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRoutesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRoutesHttpRequest.java index 258cff28d29e..89d9a96fff3f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRoutesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListRoutesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListSecurityPoliciesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListSecurityPoliciesHttpRequest.java index 8706f0ff3e35..2a5ae874d9c7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListSecurityPoliciesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListSecurityPoliciesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListSnapshotsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListSnapshotsHttpRequest.java index 746c52f4cf3e..5bcf493aed6b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListSnapshotsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListSnapshotsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListSslCertificatesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListSslCertificatesHttpRequest.java index c507f0612ec0..36e6b17f8790 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListSslCertificatesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListSslCertificatesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListSslPoliciesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListSslPoliciesHttpRequest.java index 46da8fbede82..5a3b5430f217 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListSslPoliciesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListSslPoliciesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListSubnetworksHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListSubnetworksHttpRequest.java index fb5ba8887002..69c59a26fe96 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListSubnetworksHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListSubnetworksHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetHttpProxiesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetHttpProxiesHttpRequest.java index ddf42e9fca56..7d7c5afe7277 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetHttpProxiesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetHttpProxiesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetHttpsProxiesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetHttpsProxiesHttpRequest.java index 9427e5fd8236..4512e92d3fdc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetHttpsProxiesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetHttpsProxiesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetInstancesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetInstancesHttpRequest.java index 8f6bee669fcd..90ae849b1dc9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetInstancesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetInstancesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetPoolsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetPoolsHttpRequest.java index ff3868a326ea..0541c655b6bb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetPoolsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetPoolsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetSslProxiesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetSslProxiesHttpRequest.java index ecb03649f7f2..282c4c75ec08 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetSslProxiesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetSslProxiesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetTcpProxiesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetTcpProxiesHttpRequest.java index bef7bad13c2e..f5d262d5cf6a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetTcpProxiesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetTcpProxiesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetVpnGatewaysHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetVpnGatewaysHttpRequest.java index 131e9ba83abc..8bf5a2f8feb0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetVpnGatewaysHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListTargetVpnGatewaysHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListUrlMapsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListUrlMapsHttpRequest.java index 35983ccf286b..3bd5834c3e9d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListUrlMapsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListUrlMapsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListUsableSubnetworksHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListUsableSubnetworksHttpRequest.java index 3067ab151a30..77398cff1a44 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListUsableSubnetworksHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListUsableSubnetworksHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListVpnTunnelsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListVpnTunnelsHttpRequest.java index 88acd87880e3..7bb88743caf7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListVpnTunnelsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListVpnTunnelsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListXpnHostsProjectsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListXpnHostsProjectsHttpRequest.java index 1a232c22a435..9d6b1be3ea26 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListXpnHostsProjectsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListXpnHostsProjectsHttpRequest.java @@ -140,6 +140,12 @@ public ProjectsListXpnHostsRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListZoneOperationsHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListZoneOperationsHttpRequest.java index eb9ca20331ef..1b22deab451f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListZoneOperationsHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListZoneOperationsHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListZonesHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListZonesHttpRequest.java index e6376d26e09e..98b757280ccd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListZonesHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ListZonesHttpRequest.java @@ -133,6 +133,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LogConfig.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LogConfig.java index afeb813c7aba..920f1134c7e2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LogConfig.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LogConfig.java @@ -67,6 +67,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LogConfigCloudAuditOptions.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LogConfigCloudAuditOptions.java index 9df51cdee947..e89577a27df7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LogConfigCloudAuditOptions.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LogConfigCloudAuditOptions.java @@ -59,6 +59,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LogConfigCounterOptions.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LogConfigCounterOptions.java index 281ff9dcb005..dabaee2b1bba 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LogConfigCounterOptions.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LogConfigCounterOptions.java @@ -78,6 +78,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LogConfigDataAccessOptions.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LogConfigDataAccessOptions.java index ee0f1de69237..ff12f69de17e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LogConfigDataAccessOptions.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LogConfigDataAccessOptions.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineType.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineType.java index 1cbad3237c22..943e6be69595 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineType.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineType.java @@ -155,6 +155,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypeAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypeAggregatedList.java index 27e56f9745cd..abbdd2b051d1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypeAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypeAggregatedList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypeList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypeList.java index 7870abd07061..457e386d6a04 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypeList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypeList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypesScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypesScopedList.java index f8e17bfd6152..fa2c3ea4fd25 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypesScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MachineTypesScopedList.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ManagedInstance.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ManagedInstance.java index 9e33ece61a7d..fe956603baeb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ManagedInstance.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ManagedInstance.java @@ -81,6 +81,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ManagedInstanceLastAttempt.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ManagedInstanceLastAttempt.java index 3a927e7263ae..180b56644cfa 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ManagedInstanceLastAttempt.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ManagedInstanceLastAttempt.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Metadata.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Metadata.java index 06fd9748cc16..29b399d5fc91 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Metadata.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Metadata.java @@ -65,6 +65,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MoveDiskProjectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MoveDiskProjectHttpRequest.java index d9ec68157362..55c1336dc4b0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MoveDiskProjectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MoveDiskProjectHttpRequest.java @@ -119,6 +119,12 @@ public DiskMoveRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MoveInstanceProjectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MoveInstanceProjectHttpRequest.java index 7cb06bca0fdd..e24e80e640ff 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MoveInstanceProjectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/MoveInstanceProjectHttpRequest.java @@ -119,6 +119,12 @@ public InstanceMoveRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NamedPort.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NamedPort.java index 002a5d1c6d34..8c6d347e6324 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NamedPort.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NamedPort.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Network.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Network.java index c66adc6cad2d..f09c0a4cc285 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Network.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Network.java @@ -138,6 +138,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkClient.java index 0647272d43eb..ff33058b68e4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkClient.java @@ -725,7 +725,10 @@ public final UnaryCallable listNetworksCal * @param networkResource Represents a Network resource. Read Virtual Private Cloud (VPC) Network * Overview for more information. (== resource_for v1.networks ==) (== resource_for * beta.networks ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -761,7 +764,10 @@ public final Operation patchNetwork( * @param networkResource Represents a Network resource. Read Virtual Private Cloud (VPC) Network * Overview for more information. (== resource_for v1.networks ==) (== resource_for * beta.networks ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkInterface.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkInterface.java index 15e631f801e5..438a2e660101 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkInterface.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkInterface.java @@ -103,6 +103,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkList.java index 57fca289efce..0a79d836874b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkPeering.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkPeering.java index 8ef6fb210c5e..56c752ad67c2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkPeering.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkPeering.java @@ -81,6 +81,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkRoutingConfig.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkRoutingConfig.java index 6346166ae713..9f52c380a7f1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkRoutingConfig.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkRoutingConfig.java @@ -56,6 +56,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksAddPeeringRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksAddPeeringRequest.java index 705dad00b6fe..cb738af6a6cc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksAddPeeringRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksAddPeeringRequest.java @@ -63,6 +63,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksRemovePeeringRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksRemovePeeringRequest.java index 3073baccde6e..154dd48381e9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksRemovePeeringRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworksRemovePeeringRequest.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroup.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroup.java index 989a78cbe4e7..2b2d67c0dda1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroup.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroup.java @@ -116,6 +116,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupAggregatedList.java index 1995d351b12a..92c65b2d1856 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupAggregatedList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupList.java index 8c90abb7e1d7..99524a63aa80 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupNode.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupNode.java index 74c698a163fa..6a4f79def56b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupNode.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupNode.java @@ -70,6 +70,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsAddNodesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsAddNodesRequest.java index 599dfef6ba78..8f9f3961393a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsAddNodesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsAddNodesRequest.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsDeleteNodesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsDeleteNodesRequest.java index 35a198eae382..01912afcaf99 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsDeleteNodesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsDeleteNodesRequest.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsListNodes.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsListNodes.java index 7545a96e0939..356fac1b3993 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsListNodes.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsListNodes.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsScopedList.java index 4a07ac02e4c5..312aaa549d77 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsScopedList.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsSetNodeTemplateRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsSetNodeTemplateRequest.java index 97c44d0217b4..ce43070fa1b2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsSetNodeTemplateRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsSetNodeTemplateRequest.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplate.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplate.java index 270107899f8a..f74adbf59ec2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplate.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplate.java @@ -131,6 +131,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateAggregatedList.java index eae2372588ec..187ba565b49e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateAggregatedList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateList.java index e971130f05aa..5ad5395e5e3b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateNodeTypeFlexibility.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateNodeTypeFlexibility.java index 7edffab5aba3..547a614efd49 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateNodeTypeFlexibility.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateNodeTypeFlexibility.java @@ -63,6 +63,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplatesScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplatesScopedList.java index fc79bacaeeba..0a4911769fac 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplatesScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplatesScopedList.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeType.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeType.java index 34e612d0987c..968152aa9627 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeType.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeType.java @@ -130,6 +130,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeAggregatedList.java index 9706a53bcedd..c6bb2494e415 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeAggregatedList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeList.java index 945d2142a9f4..e18bbf8e3fff 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypeList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypesScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypesScopedList.java index cd22586a121e..10ae7e2b7bb3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypesScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTypesScopedList.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Operation.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Operation.java index cab308e8f792..68391b0261de 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Operation.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Operation.java @@ -213,6 +213,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationAggregatedList.java index 95909cb5efc9..23abe4173547 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationAggregatedList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationList.java index 5df8346a4c24..57021da7054e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationsScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationsScopedList.java index fb42890ac2ba..d2b2cbf80471 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationsScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/OperationsScopedList.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchAutoscalerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchAutoscalerHttpRequest.java index b60c456a02b9..e459459c88b2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchAutoscalerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchAutoscalerHttpRequest.java @@ -159,6 +159,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -366,10 +372,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -378,6 +396,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchBackendBucketHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchBackendBucketHttpRequest.java index 810892d02b3d..9a1fd0b8224a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchBackendBucketHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchBackendBucketHttpRequest.java @@ -153,6 +153,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -346,10 +352,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -358,6 +376,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchBackendServiceHttpRequest.java index 007e870e59e2..c2cbcc7f20ca 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchBackendServiceHttpRequest.java @@ -159,6 +159,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -360,10 +366,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -372,6 +390,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchFirewallHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchFirewallHttpRequest.java index 39bf8dc7791e..a8e91c658528 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchFirewallHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchFirewallHttpRequest.java @@ -136,6 +136,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -309,10 +315,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -321,6 +339,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHealthCheckHttpRequest.java index 11094d6c4aab..b466c8747cba 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHealthCheckHttpRequest.java @@ -136,6 +136,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -312,10 +318,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -324,6 +342,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHttpHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHttpHealthCheckHttpRequest.java index a6d292a30205..93dbcef7f6c7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHttpHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHttpHealthCheckHttpRequest.java @@ -136,6 +136,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -313,10 +319,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -325,6 +343,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHttpsHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHttpsHealthCheckHttpRequest.java index 14f4dc5a5140..5a095c00b359 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHttpsHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchHttpsHealthCheckHttpRequest.java @@ -136,6 +136,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -313,10 +319,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -325,6 +343,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInstanceGroupManagerHttpRequest.java index 197d34d5c407..793cb61723b1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInstanceGroupManagerHttpRequest.java @@ -139,6 +139,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -317,10 +323,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -329,6 +347,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInterconnectAttachmentHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInterconnectAttachmentHttpRequest.java index 2e16d93bb65f..263e225a5d0b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInterconnectAttachmentHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInterconnectAttachmentHttpRequest.java @@ -136,6 +136,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -314,10 +320,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -326,6 +344,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInterconnectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInterconnectHttpRequest.java index afba5436ce7e..b237da1001b6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInterconnectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchInterconnectHttpRequest.java @@ -136,6 +136,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -313,10 +319,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -325,6 +343,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchNetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchNetworkHttpRequest.java index e9fac96994f0..ca142c53fe3b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchNetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchNetworkHttpRequest.java @@ -135,6 +135,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -311,10 +317,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -323,6 +341,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionAutoscalerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionAutoscalerHttpRequest.java index fac9131f79a4..f6bb5a913d0e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionAutoscalerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionAutoscalerHttpRequest.java @@ -159,6 +159,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -366,10 +372,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -378,6 +396,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionBackendServiceHttpRequest.java index 7f76063d469e..39ebee07f9d1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionBackendServiceHttpRequest.java @@ -159,6 +159,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -360,10 +366,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -372,6 +390,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionInstanceGroupManagerHttpRequest.java index 66aedd8bc680..e68ef5f9c2ec 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRegionInstanceGroupManagerHttpRequest.java @@ -139,6 +139,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -317,10 +323,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -329,6 +347,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRouterHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRouterHttpRequest.java index 653c19814ae7..765a64fbcbce 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRouterHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRouterHttpRequest.java @@ -136,6 +136,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -309,10 +315,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -321,6 +339,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRuleSecurityPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRuleSecurityPolicyHttpRequest.java index 491b4bd9e57f..bbbd459e41a0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRuleSecurityPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchRuleSecurityPolicyHttpRequest.java @@ -119,6 +119,12 @@ public SecurityPolicyRule getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSecurityPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSecurityPolicyHttpRequest.java index 505eaa2b5530..c2a49ea73536 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSecurityPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSecurityPolicyHttpRequest.java @@ -135,6 +135,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -312,10 +318,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -324,6 +342,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSslPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSslPolicyHttpRequest.java index 77683a2d669e..c7c38e76c830 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSslPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSslPolicyHttpRequest.java @@ -135,6 +135,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -314,10 +320,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -326,6 +344,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSubnetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSubnetworkHttpRequest.java index 27df277521f8..3da947678124 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSubnetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchSubnetworkHttpRequest.java @@ -137,6 +137,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -314,10 +320,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -326,6 +344,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchUrlMapHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchUrlMapHttpRequest.java index f563ed9019c2..03097b35bba3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchUrlMapHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PatchUrlMapHttpRequest.java @@ -136,6 +136,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -312,10 +318,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -324,6 +342,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PathMatcher.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PathMatcher.java index ab04b9a89e73..951f9bd423c8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PathMatcher.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PathMatcher.java @@ -75,6 +75,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PathRule.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PathRule.java index ad43bb9be8e7..30b05d0dc393 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PathRule.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PathRule.java @@ -62,6 +62,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Policy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Policy.java index 88dca1e5e8c0..3bf7fcc1e9d8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Policy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Policy.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PreviewRouterHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PreviewRouterHttpRequest.java index f802fac990c7..aea6be6aef36 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PreviewRouterHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/PreviewRouterHttpRequest.java @@ -112,6 +112,12 @@ public Router getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Project.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Project.java index cce141100e11..8237c339e39e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Project.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Project.java @@ -141,6 +141,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsDisableXpnResourceRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsDisableXpnResourceRequest.java index bd16f4f0eb52..fbddcc0d2e4f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsDisableXpnResourceRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsDisableXpnResourceRequest.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsEnableXpnResourceRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsEnableXpnResourceRequest.java index 12dca1129cd6..d394982a1443 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsEnableXpnResourceRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsEnableXpnResourceRequest.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsGetXpnResources.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsGetXpnResources.java index 938814c1383a..964b93bda932 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsGetXpnResources.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsGetXpnResources.java @@ -65,6 +65,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsListXpnHostsRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsListXpnHostsRequest.java index 70c042323e6f..fd428f18c7ab 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsListXpnHostsRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsListXpnHostsRequest.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsSetDefaultNetworkTierRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsSetDefaultNetworkTierRequest.java index 7dc6dff05054..99b2d6946d57 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsSetDefaultNetworkTierRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectsSetDefaultNetworkTierRequest.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Quota.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Quota.java index 1d05e21749c6..126223ab8c68 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Quota.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Quota.java @@ -70,6 +70,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RawDisk.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RawDisk.java index d66260b27e8d..be8f3a39a52f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RawDisk.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RawDisk.java @@ -64,6 +64,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RecreateInstancesInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RecreateInstancesInstanceGroupManagerHttpRequest.java index c1a8c98b8507..d1d1a08ddcbf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RecreateInstancesInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RecreateInstancesInstanceGroupManagerHttpRequest.java @@ -131,6 +131,12 @@ public InstanceGroupManagersRecreateInstancesRequest getApiMessageRequestBody() @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RecreateInstancesRegionInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RecreateInstancesRegionInstanceGroupManagerHttpRequest.java index 9af1e13999d7..f24131f85baa 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RecreateInstancesRegionInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RecreateInstancesRegionInstanceGroupManagerHttpRequest.java @@ -131,6 +131,12 @@ public RegionInstanceGroupManagersRecreateRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Reference.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Reference.java index 634dacd1a5a6..c965a1fe147e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Reference.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Reference.java @@ -70,6 +70,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Region.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Region.java index 2638d58bd7ad..dcc24a665f8d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Region.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Region.java @@ -117,6 +117,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java index cb5be8614ef0..1e91496bc68a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java @@ -630,7 +630,10 @@ public final ListRegionAutoscalersPagedResponse listRegionAutoscalers( * autoscaling policy that you define. For more information, read Autoscaling Groups of * Instances. (== resource_for beta.autoscalers ==) (== resource_for v1.autoscalers ==) (== * resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -674,7 +677,10 @@ public final Operation patchRegionAutoscaler( * autoscaling policy that you define. For more information, read Autoscaling Groups of * Instances. (== resource_for beta.autoscalers ==) (== resource_for v1.autoscalers ==) (== * resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -776,7 +782,10 @@ public final Operation patchRegionAutoscaler(PatchRegionAutoscalerHttpRequest re * autoscaling policy that you define. For more information, read Autoscaling Groups of * Instances. (== resource_for beta.autoscalers ==) (== resource_for v1.autoscalers ==) (== * resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -819,7 +828,10 @@ public final Operation updateRegionAutoscaler( * autoscaling policy that you define. For more information, read Autoscaling Groups of * Instances. (== resource_for beta.autoscalers ==) (== resource_for v1.autoscalers ==) (== * resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerList.java index ccd75a1314e6..aef0b4cd90f8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java index 8938c7781941..fae1e1a33a1c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java @@ -758,7 +758,10 @@ public final ListRegionBackendServicesPagedResponse listRegionBackendServices( * @param backendServiceResource A BackendService resource. This resource defines a group of * backend virtual machines and their serving capacity. (== resource_for v1.backendService ==) * (== resource_for beta.backendService ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -798,7 +801,10 @@ public final Operation patchRegionBackendService( * @param backendServiceResource A BackendService resource. This resource defines a group of * backend virtual machines and their serving capacity. (== resource_for v1.backendService ==) * (== resource_for beta.backendService ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -897,7 +903,10 @@ public final Operation patchRegionBackendService(PatchRegionBackendServiceHttpRe * @param backendServiceResource A BackendService resource. This resource defines a group of * backend virtual machines and their serving capacity. (== resource_for v1.backendService ==) * (== resource_for beta.backendService ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -936,7 +945,10 @@ public final Operation updateRegionBackendService( * @param backendServiceResource A BackendService resource. This resource defines a group of * backend virtual machines and their serving capacity. (== resource_for v1.backendService ==) * (== resource_for beta.backendService ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypeList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypeList.java index 0b77b6c85d00..c306d2038b25 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypeList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskTypeList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksResizeRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksResizeRequest.java index e5268fbf7ede..605a76f7aa85 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksResizeRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDisksResizeRequest.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupList.java index 75ec51c78c3f..a60d2bc9be07 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java index d5e78b534dfa..7f328294b74a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java @@ -1115,7 +1115,10 @@ public final ListRegionInstanceGroupManagersPagedResponse listRegionInstanceGrou * beta.instanceGroupManagers ==) (== resource_for v1.instanceGroupManagers ==) (== * resource_for beta.regionInstanceGroupManagers ==) (== resource_for * v1.regionInstanceGroupManagers ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -1158,7 +1161,10 @@ public final Operation patchRegionInstanceGroupManager( * beta.instanceGroupManagers ==) (== resource_for v1.instanceGroupManagers ==) (== * resource_for beta.regionInstanceGroupManagers ==) (== resource_for * v1.regionInstanceGroupManagers ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerList.java index 4b697bf5148d..cc8d9acc9cd1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersAbandonInstancesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersAbandonInstancesRequest.java index 37e9bc000bfc..9af7af1bde36 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersAbandonInstancesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersAbandonInstancesRequest.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersDeleteInstancesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersDeleteInstancesRequest.java index 5b43d18bb0cc..b0e2b782919f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersDeleteInstancesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersDeleteInstancesRequest.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersListInstancesResponse.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersListInstancesResponse.java index ef4d02f5492a..8cc5a9b0c835 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersListInstancesResponse.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersListInstancesResponse.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersRecreateRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersRecreateRequest.java index a7fff8529a15..9f893462fc59 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersRecreateRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersRecreateRequest.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSetTargetPoolsRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSetTargetPoolsRequest.java index c284b34fdd33..18f1ca946894 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSetTargetPoolsRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSetTargetPoolsRequest.java @@ -59,6 +59,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSetTemplateRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSetTemplateRequest.java index f7a6075719a7..5bf96aab823a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSetTemplateRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagersSetTemplateRequest.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsListInstances.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsListInstances.java index eeb2907e6793..e3ab2694f113 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsListInstances.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsListInstances.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsListInstancesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsListInstancesRequest.java index cccd9d9d8fe4..81cd253fc3c9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsListInstancesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsListInstancesRequest.java @@ -57,6 +57,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsSetNamedPortsRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsSetNamedPortsRequest.java index 4f5281572901..6fb448138ba7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsSetNamedPortsRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupsSetNamedPortsRequest.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionList.java index 38439fd9fb53..8cf900f18ea5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSetLabelsRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSetLabelsRequest.java index 76bfa6cb446b..9164770ed2ce 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSetLabelsRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSetLabelsRequest.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSetPolicyRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSetPolicyRequest.java index e862553ea3a6..9eec17dd5132 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSetPolicyRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionSetPolicyRequest.java @@ -64,6 +64,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveHealthCheckTargetPoolHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveHealthCheckTargetPoolHttpRequest.java index 2fb055f705fc..5df06ae1bc6e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveHealthCheckTargetPoolHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveHealthCheckTargetPoolHttpRequest.java @@ -119,6 +119,12 @@ public TargetPoolsRemoveHealthCheckRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveInstanceTargetPoolHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveInstanceTargetPoolHttpRequest.java index 6d56fdd9c53b..38f959f0e5d4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveInstanceTargetPoolHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveInstanceTargetPoolHttpRequest.java @@ -119,6 +119,12 @@ public TargetPoolsRemoveInstanceRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveInstancesInstanceGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveInstancesInstanceGroupHttpRequest.java index e55e473e951e..96a5d5d2731d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveInstancesInstanceGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveInstancesInstanceGroupHttpRequest.java @@ -124,6 +124,12 @@ public InstanceGroupsRemoveInstancesRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemovePeeringNetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemovePeeringNetworkHttpRequest.java index f0203b854d8a..e004a18f13c6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemovePeeringNetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemovePeeringNetworkHttpRequest.java @@ -119,6 +119,12 @@ public NetworksRemovePeeringRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveRuleSecurityPolicyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveRuleSecurityPolicyHttpRequest.java index 7ffaff31ed1e..09d70e555255 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveRuleSecurityPolicyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RemoveRuleSecurityPolicyHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResetInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResetInstanceHttpRequest.java index 99ce35fbbb54..cf0d284f80c5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResetInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResetInstanceHttpRequest.java @@ -113,6 +113,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeDiskHttpRequest.java index fc5273aa1df5..2b0fdc3cb428 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeDiskHttpRequest.java @@ -119,6 +119,12 @@ public DisksResizeRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeInstanceGroupManagerHttpRequest.java index 5e79108dd732..6ad5f3f937a9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeInstanceGroupManagerHttpRequest.java @@ -136,6 +136,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeRegionDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeRegionDiskHttpRequest.java index 08b879c3b805..046490da5554 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeRegionDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeRegionDiskHttpRequest.java @@ -119,6 +119,12 @@ public RegionDisksResizeRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeRegionInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeRegionInstanceGroupManagerHttpRequest.java index dd9fded1ebb8..9e9a49f98c42 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeRegionInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResizeRegionInstanceGroupManagerHttpRequest.java @@ -128,6 +128,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourceCommitment.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourceCommitment.java index 7fed74d9d9b6..978baceef17a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourceCommitment.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourceCommitment.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourceGroupReference.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourceGroupReference.java index f2ccbc311b74..fdb1bfca94b2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourceGroupReference.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ResourceGroupReference.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Route.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Route.java index b361bdfd39fa..4e9a1d18792a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Route.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Route.java @@ -181,6 +181,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteList.java index 5b766567bca6..5dfcc5233c78 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Router.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Router.java index 8685ee4ce338..9501e17b4182 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Router.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Router.java @@ -131,6 +131,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterAdvertisedIpRange.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterAdvertisedIpRange.java index e79e78dd8614..b1a315eec239 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterAdvertisedIpRange.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterAdvertisedIpRange.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterAggregatedList.java index a124bda20b46..47e2e4d97e3e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterAggregatedList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterBgp.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterBgp.java index c46280540f77..3e5a890cbcf3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterBgp.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterBgp.java @@ -74,6 +74,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterBgpPeer.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterBgpPeer.java index c61f1a1cb3fd..80d6729e4668 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterBgpPeer.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterBgpPeer.java @@ -116,6 +116,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java index 16ddffe3316f..dadaa6afb804 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java @@ -990,7 +990,10 @@ public final UnaryCallable listRoutersCallab * * @param router Name of the Router resource to patch. * @param routerResource Router resource. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -1024,7 +1027,10 @@ public final Operation patchRouter( * * @param router Name of the Router resource to patch. * @param routerResource Router resource. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -1228,7 +1234,10 @@ public final RoutersPreviewResponse previewRouter(PreviewRouterHttpRequest reque * * @param router Name of the Router resource to update. * @param routerResource Router resource. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -1261,7 +1270,10 @@ public final Operation updateRouter( * * @param router Name of the Router resource to update. * @param routerResource Router resource. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterInterface.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterInterface.java index 18b8d5080f63..5019d7bf0730 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterInterface.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterInterface.java @@ -80,6 +80,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterList.java index eab2b49188da..c807ec9798b0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterNat.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterNat.java index 0394a04df217..8c0d23b8adb3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterNat.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterNat.java @@ -122,6 +122,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterNatSubnetworkToNat.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterNatSubnetworkToNat.java index 1f9178483c6c..34b1bdf79786 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterNatSubnetworkToNat.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterNatSubnetworkToNat.java @@ -66,6 +66,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatus.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatus.java index 172c0d5784b7..458c4db17134 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatus.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatus.java @@ -81,6 +81,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusBgpPeerStatus.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusBgpPeerStatus.java index 17e9cbb33c31..846c60407228 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusBgpPeerStatus.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusBgpPeerStatus.java @@ -116,6 +116,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusNatStatus.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusNatStatus.java index 50a39751efc6..566a76125fe0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusNatStatus.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusNatStatus.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusResponse.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusResponse.java index e037e13624c7..f51708aa317e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusResponse.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterStatusResponse.java @@ -57,6 +57,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersPreviewResponse.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersPreviewResponse.java index ea1153350a43..5255a9530272 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersPreviewResponse.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersPreviewResponse.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersScopedList.java index 8200c21f23b2..fd7ebeb40cdc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RoutersScopedList.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Rule.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Rule.java index 6db5cd8a9d2d..4ffa112081a0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Rule.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Rule.java @@ -96,6 +96,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SSLHealthCheck.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SSLHealthCheck.java index 1a40c176f4d1..4e4a767ffa6a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SSLHealthCheck.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SSLHealthCheck.java @@ -76,6 +76,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Scheduling.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Scheduling.java index 5ce6438171a8..06a6027f2f82 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Scheduling.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Scheduling.java @@ -75,6 +75,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SchedulingNodeAffinity.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SchedulingNodeAffinity.java index 2d5c388f33a4..8a3720fca42b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SchedulingNodeAffinity.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SchedulingNodeAffinity.java @@ -67,6 +67,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ScratchDisks.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ScratchDisks.java index dcb0d31cc74e..34ce9aecfaf9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ScratchDisks.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ScratchDisks.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicy.java index 429925c3f157..59cc23e0afda 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicy.java @@ -106,6 +106,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyClient.java index 6f4bc4baf699..e1add564f16d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyClient.java @@ -848,7 +848,10 @@ public final ListSecurityPoliciesPagedResponse listSecurityPolicies( * @param securityPolicyResource A security policy is comprised of one or more rules. It can also * be associated with one or more 'targets'. (== resource_for v1.securityPolicies ==) (== * resource_for beta.securityPolicies ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -885,7 +888,10 @@ public final Operation patchSecurityPolicy( * @param securityPolicyResource A security policy is comprised of one or more rules. It can also * be associated with one or more 'targets'. (== resource_for v1.securityPolicies ==) (== * resource_for beta.securityPolicies ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyList.java index 31af83e9bcdb..7272afcc6a88 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyList.java @@ -77,6 +77,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyReference.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyReference.java index d2406fae5d7f..8114488a3cea 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyReference.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyReference.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRule.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRule.java index 81a9e1575c69..26784c431184 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRule.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRule.java @@ -91,6 +91,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleMatcher.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleMatcher.java index 7991e145db93..8a9fa32d6994 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleMatcher.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleMatcher.java @@ -61,6 +61,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleMatcherConfig.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleMatcherConfig.java index 581b7a00616d..e578afe4ebd5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleMatcherConfig.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyRuleMatcherConfig.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SerialPortOutput.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SerialPortOutput.java index fd99b73e8d03..abb0d7d8e239 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SerialPortOutput.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SerialPortOutput.java @@ -77,6 +77,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ServiceAccount.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ServiceAccount.java index 0bc9124fdaf2..ec54ba717583 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ServiceAccount.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ServiceAccount.java @@ -59,6 +59,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackendServiceTargetSslProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackendServiceTargetSslProxyHttpRequest.java index 46e832a1fa65..2bb4e14d35d8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackendServiceTargetSslProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackendServiceTargetSslProxyHttpRequest.java @@ -121,6 +121,12 @@ public TargetSslProxiesSetBackendServiceRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackendServiceTargetTcpProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackendServiceTargetTcpProxyHttpRequest.java index 2fbda86cf3e2..015ab7115e3c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackendServiceTargetTcpProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackendServiceTargetTcpProxyHttpRequest.java @@ -121,6 +121,12 @@ public TargetTcpProxiesSetBackendServiceRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackupTargetPoolHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackupTargetPoolHttpRequest.java index e70174a135de..2b05677fa600 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackupTargetPoolHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetBackupTargetPoolHttpRequest.java @@ -126,6 +126,12 @@ public TargetReference getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetCommonInstanceMetadataProjectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetCommonInstanceMetadataProjectHttpRequest.java index b5209b7e47b5..988964ee567e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetCommonInstanceMetadataProjectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetCommonInstanceMetadataProjectHttpRequest.java @@ -119,6 +119,12 @@ public Metadata getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDefaultNetworkTierProjectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDefaultNetworkTierProjectHttpRequest.java index 18c912b769f9..28a0d01d44e5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDefaultNetworkTierProjectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDefaultNetworkTierProjectHttpRequest.java @@ -121,6 +121,12 @@ public ProjectsSetDefaultNetworkTierRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDeletionProtectionInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDeletionProtectionInstanceHttpRequest.java index fdaaaa9b92ba..c5d163a1f245 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDeletionProtectionInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDeletionProtectionInstanceHttpRequest.java @@ -119,6 +119,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDiskAutoDeleteInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDiskAutoDeleteInstanceHttpRequest.java index 4fb9e5600e4a..16e481516f97 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDiskAutoDeleteInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetDiskAutoDeleteInstanceHttpRequest.java @@ -126,6 +126,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyDiskHttpRequest.java index 1d29d8a8fe8e..14d3b182b4bd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyDiskHttpRequest.java @@ -112,6 +112,12 @@ public ZoneSetPolicyRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyImageHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyImageHttpRequest.java index da38b190b411..41420938ea22 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyImageHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyImageHttpRequest.java @@ -112,6 +112,12 @@ public GlobalSetPolicyRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstanceHttpRequest.java index a80b1edbf15e..7d32147b26d3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstanceHttpRequest.java @@ -112,6 +112,12 @@ public ZoneSetPolicyRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstanceTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstanceTemplateHttpRequest.java index f2219c36021a..a1d58cb9f681 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstanceTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyInstanceTemplateHttpRequest.java @@ -112,6 +112,12 @@ public GlobalSetPolicyRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyLicenseHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyLicenseHttpRequest.java index 2092e8bf9f17..8c0c4aa3660d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyLicenseHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyLicenseHttpRequest.java @@ -112,6 +112,12 @@ public GlobalSetPolicyRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyNodeGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyNodeGroupHttpRequest.java index 00d5389af568..ec79033eccdb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyNodeGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyNodeGroupHttpRequest.java @@ -112,6 +112,12 @@ public ZoneSetPolicyRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyNodeTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyNodeTemplateHttpRequest.java index 154fcb805d4f..118c186c7e12 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyNodeTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicyNodeTemplateHttpRequest.java @@ -112,6 +112,12 @@ public RegionSetPolicyRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicySnapshotHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicySnapshotHttpRequest.java index 3b2fd08e8c3f..cbded6e49ce7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicySnapshotHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicySnapshotHttpRequest.java @@ -112,6 +112,12 @@ public GlobalSetPolicyRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicySubnetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicySubnetworkHttpRequest.java index e7bf9339a76e..c28a66d1fa5c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicySubnetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetIamPolicySubnetworkHttpRequest.java @@ -112,6 +112,12 @@ public RegionSetPolicyRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetInstanceTemplateInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetInstanceTemplateInstanceGroupManagerHttpRequest.java index bf8d0cae28dc..a5d19eca3392 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetInstanceTemplateInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetInstanceTemplateInstanceGroupManagerHttpRequest.java @@ -123,6 +123,12 @@ public InstanceGroupManagersSetInstanceTemplateRequest getApiMessageRequestBody( @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetInstanceTemplateRegionInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetInstanceTemplateRegionInstanceGroupManagerHttpRequest.java index 4b7fc1d59f51..8891f7dab428 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetInstanceTemplateRegionInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetInstanceTemplateRegionInstanceGroupManagerHttpRequest.java @@ -123,6 +123,12 @@ public RegionInstanceGroupManagersSetTemplateRequest getApiMessageRequestBody() @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsDiskHttpRequest.java index 236c3783ce85..23eba0f84e3d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsDiskHttpRequest.java @@ -119,6 +119,12 @@ public ZoneSetLabelsRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsImageHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsImageHttpRequest.java index 7ea263b60162..a0ef01cf779f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsImageHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsImageHttpRequest.java @@ -112,6 +112,12 @@ public GlobalSetLabelsRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsInstanceHttpRequest.java index 0c346193d368..342573872307 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsInstanceHttpRequest.java @@ -119,6 +119,12 @@ public InstancesSetLabelsRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsRegionDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsRegionDiskHttpRequest.java index 45d2fbd35638..0228b0fb3e62 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsRegionDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsRegionDiskHttpRequest.java @@ -119,6 +119,12 @@ public RegionSetLabelsRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsSnapshotHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsSnapshotHttpRequest.java index 807f0d2884e9..76bb502ba3a8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsSnapshotHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetLabelsSnapshotHttpRequest.java @@ -112,6 +112,12 @@ public GlobalSetLabelsRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMachineResourcesInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMachineResourcesInstanceHttpRequest.java index e8ae32020d01..b804888371b2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMachineResourcesInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMachineResourcesInstanceHttpRequest.java @@ -119,6 +119,12 @@ public InstancesSetMachineResourcesRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMachineTypeInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMachineTypeInstanceHttpRequest.java index a0a56488a7dd..1f762b9eae60 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMachineTypeInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMachineTypeInstanceHttpRequest.java @@ -119,6 +119,12 @@ public InstancesSetMachineTypeRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMetadataInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMetadataInstanceHttpRequest.java index ce38e5c2f380..0405b61fc779 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMetadataInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMetadataInstanceHttpRequest.java @@ -119,6 +119,12 @@ public Metadata getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMinCpuPlatformInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMinCpuPlatformInstanceHttpRequest.java index 39ecab98dfe7..8fd28fccadff 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMinCpuPlatformInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetMinCpuPlatformInstanceHttpRequest.java @@ -120,6 +120,12 @@ public InstancesSetMinCpuPlatformRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNamedPortsInstanceGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNamedPortsInstanceGroupHttpRequest.java index 975976de71f0..76330fce4e97 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNamedPortsInstanceGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNamedPortsInstanceGroupHttpRequest.java @@ -119,6 +119,12 @@ public InstanceGroupsSetNamedPortsRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNamedPortsRegionInstanceGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNamedPortsRegionInstanceGroupHttpRequest.java index 6c2c69915dc0..97e36985dc32 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNamedPortsRegionInstanceGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNamedPortsRegionInstanceGroupHttpRequest.java @@ -121,6 +121,12 @@ public RegionInstanceGroupsSetNamedPortsRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNodeTemplateNodeGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNodeTemplateNodeGroupHttpRequest.java index 5dd698ba7b73..0691769157be 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNodeTemplateNodeGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetNodeTemplateNodeGroupHttpRequest.java @@ -119,6 +119,12 @@ public NodeGroupsSetNodeTemplateRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetPrivateIpGoogleAccessSubnetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetPrivateIpGoogleAccessSubnetworkHttpRequest.java index f8e8d6962b65..6277f82b21d4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetPrivateIpGoogleAccessSubnetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetPrivateIpGoogleAccessSubnetworkHttpRequest.java @@ -122,6 +122,12 @@ public SubnetworksSetPrivateIpGoogleAccessRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetProxyHeaderTargetSslProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetProxyHeaderTargetSslProxyHttpRequest.java index 18a54f01b657..0a2b610e0168 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetProxyHeaderTargetSslProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetProxyHeaderTargetSslProxyHttpRequest.java @@ -120,6 +120,12 @@ public TargetSslProxiesSetProxyHeaderRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetProxyHeaderTargetTcpProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetProxyHeaderTargetTcpProxyHttpRequest.java index e9d829f11e6d..fc59a50699cd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetProxyHeaderTargetTcpProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetProxyHeaderTargetTcpProxyHttpRequest.java @@ -120,6 +120,12 @@ public TargetTcpProxiesSetProxyHeaderRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetQuicOverrideTargetHttpsProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetQuicOverrideTargetHttpsProxyHttpRequest.java index f12e74262e39..ab5663f949ef 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetQuicOverrideTargetHttpsProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetQuicOverrideTargetHttpsProxyHttpRequest.java @@ -121,6 +121,12 @@ public TargetHttpsProxiesSetQuicOverrideRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSchedulingInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSchedulingInstanceHttpRequest.java index 2cb877ffdf65..dd915dc60049 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSchedulingInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSchedulingInstanceHttpRequest.java @@ -118,6 +118,12 @@ public Scheduling getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSecurityPolicyBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSecurityPolicyBackendServiceHttpRequest.java index 296f4270c647..ec56df603e35 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSecurityPolicyBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSecurityPolicyBackendServiceHttpRequest.java @@ -119,6 +119,12 @@ public SecurityPolicyReference getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetServiceAccountInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetServiceAccountInstanceHttpRequest.java index f4f886fd84e1..83c24e14c292 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetServiceAccountInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetServiceAccountInstanceHttpRequest.java @@ -120,6 +120,12 @@ public InstancesSetServiceAccountRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslCertificatesTargetHttpsProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslCertificatesTargetHttpsProxyHttpRequest.java index fb928939e767..90884fff1542 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslCertificatesTargetHttpsProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslCertificatesTargetHttpsProxyHttpRequest.java @@ -122,6 +122,12 @@ public TargetHttpsProxiesSetSslCertificatesRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslCertificatesTargetSslProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslCertificatesTargetSslProxyHttpRequest.java index 4b117fee9d27..45b0b99f0532 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslCertificatesTargetSslProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslCertificatesTargetSslProxyHttpRequest.java @@ -121,6 +121,12 @@ public TargetSslProxiesSetSslCertificatesRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslPolicyTargetHttpsProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslPolicyTargetHttpsProxyHttpRequest.java index f308a59749cf..2524a4f38eeb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslPolicyTargetHttpsProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslPolicyTargetHttpsProxyHttpRequest.java @@ -121,6 +121,12 @@ public SslPolicyReference getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslPolicyTargetSslProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslPolicyTargetSslProxyHttpRequest.java index fcb8b7355a22..c17eded866de 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslPolicyTargetSslProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetSslPolicyTargetSslProxyHttpRequest.java @@ -121,6 +121,12 @@ public SslPolicyReference getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTagsInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTagsInstanceHttpRequest.java index da6eb3f0a080..2b2ad0d0056f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTagsInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTagsInstanceHttpRequest.java @@ -119,6 +119,12 @@ public Tags getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetForwardingRuleHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetForwardingRuleHttpRequest.java index 8b51caab99ce..d28d1509eee0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetForwardingRuleHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetForwardingRuleHttpRequest.java @@ -119,6 +119,12 @@ public TargetReference getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetGlobalForwardingRuleHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetGlobalForwardingRuleHttpRequest.java index 8d6fe9bd975c..c2fd533ce262 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetGlobalForwardingRuleHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetGlobalForwardingRuleHttpRequest.java @@ -119,6 +119,12 @@ public TargetReference getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetPoolsInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetPoolsInstanceGroupManagerHttpRequest.java index f2135f55f611..d602d5de417c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetPoolsInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetPoolsInstanceGroupManagerHttpRequest.java @@ -125,6 +125,12 @@ public InstanceGroupManagersSetTargetPoolsRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetPoolsRegionInstanceGroupManagerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetPoolsRegionInstanceGroupManagerHttpRequest.java index 3c8ba772bcae..2a24dc2299e4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetPoolsRegionInstanceGroupManagerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetTargetPoolsRegionInstanceGroupManagerHttpRequest.java @@ -123,6 +123,12 @@ public RegionInstanceGroupManagersSetTargetPoolsRequest getApiMessageRequestBody @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUrlMapTargetHttpProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUrlMapTargetHttpProxyHttpRequest.java index 3a68c775b9d7..896801d43a62 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUrlMapTargetHttpProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUrlMapTargetHttpProxyHttpRequest.java @@ -119,6 +119,12 @@ public UrlMapReference getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUrlMapTargetHttpsProxyHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUrlMapTargetHttpsProxyHttpRequest.java index 36da810c0143..c13f36ce9469 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUrlMapTargetHttpsProxyHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUrlMapTargetHttpsProxyHttpRequest.java @@ -119,6 +119,12 @@ public UrlMapReference getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUsageExportBucketProjectHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUsageExportBucketProjectHttpRequest.java index ee1f4785e0a2..b539a186adba 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUsageExportBucketProjectHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SetUsageExportBucketProjectHttpRequest.java @@ -120,6 +120,12 @@ public UsageExportLocation getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SignedUrlKey.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SignedUrlKey.java index c8cff4f19d93..842892d69d7c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SignedUrlKey.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SignedUrlKey.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SimulateMaintenanceEventInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SimulateMaintenanceEventInstanceHttpRequest.java index 1fea1cb71364..216374930542 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SimulateMaintenanceEventInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SimulateMaintenanceEventInstanceHttpRequest.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Snapshot.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Snapshot.java index 549b9e8bb2e0..f9f4946d811c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Snapshot.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Snapshot.java @@ -177,6 +177,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotList.java index a50f2be0f10f..ef0ea9c15b20 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SourceInstanceParams.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SourceInstanceParams.java index 156c7f88d2d0..dabf5d853a14 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SourceInstanceParams.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SourceInstanceParams.java @@ -56,6 +56,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificate.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificate.java index 8e81f108e837..f87d6b92d9be 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificate.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificate.java @@ -106,6 +106,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateList.java index 0d2e88b6218e..a670debfbd39 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesList.java index 266759eb2bd2..383935528d70 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesListAvailableFeaturesResponse.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesListAvailableFeaturesResponse.java index 3297c15cd40d..cc6fcb5e053d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesListAvailableFeaturesResponse.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPoliciesListAvailableFeaturesResponse.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicy.java index b0dd1e3af528..e2ddb60c9a48 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicy.java @@ -136,6 +136,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyClient.java index 10fb96c1fed5..843b7f63b18b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyClient.java @@ -731,7 +731,10 @@ public final SslPoliciesListAvailableFeaturesResponse listAvailableFeaturesSslPo * can be attached to a TargetHttpsProxy or a TargetSslProxy. This affects connections between * clients and the HTTPS or SSL proxy load balancer. They do not affect the connection between * the load balancers and the backends. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -768,7 +771,10 @@ public final Operation patchSslPolicy( * can be attached to a TargetHttpsProxy or a TargetSslProxy. This affects connections between * clients and the HTTPS or SSL proxy load balancer. They do not affect the connection between * the load balancers and the backends. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyReference.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyReference.java index 6715641012da..1f4c15532607 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyReference.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyReference.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StartInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StartInstanceHttpRequest.java index e1e927763652..3d367937e197 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StartInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StartInstanceHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StartWithEncryptionKeyInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StartWithEncryptionKeyInstanceHttpRequest.java index e0a5778e9e8b..b8789531e5d7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StartWithEncryptionKeyInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StartWithEncryptionKeyInstanceHttpRequest.java @@ -121,6 +121,12 @@ public InstancesStartWithEncryptionKeyRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StopInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StopInstanceHttpRequest.java index 4621f5447480..18be652a0fc7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StopInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/StopInstanceHttpRequest.java @@ -115,6 +115,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Subnetwork.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Subnetwork.java index 6ac7fb7d7a4f..6187484cccac 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Subnetwork.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Subnetwork.java @@ -147,6 +147,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkAggregatedList.java index 4e0be8fa1d13..6111a225c1ee 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkAggregatedList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java index 701b61e42e99..bb80c9d6c130 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java @@ -1108,7 +1108,10 @@ public final ListUsableSubnetworksPagedResponse listUsableSubnetworks( * @param subnetwork Name of the Subnetwork resource to patch. * @param subnetworkResource A Subnetwork resource. (== resource_for beta.subnetworks ==) (== * resource_for v1.subnetworks ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -1146,7 +1149,10 @@ public final Operation patchSubnetwork( * @param subnetwork Name of the Subnetwork resource to patch. * @param subnetworkResource A Subnetwork resource. (== resource_for beta.subnetworks ==) (== * resource_for v1.subnetworks ==) - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkList.java index 51a669c35cf6..0239f8ee0fb6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkSecondaryRange.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkSecondaryRange.java index fd3a6db61764..05d4077bdaaa 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkSecondaryRange.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkSecondaryRange.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksExpandIpCidrRangeRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksExpandIpCidrRangeRequest.java index ea8c096803b5..74eb4f47131f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksExpandIpCidrRangeRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksExpandIpCidrRangeRequest.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksScopedList.java index 1bd6de1e9408..0075544b013e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksScopedList.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksSetPrivateIpGoogleAccessRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksSetPrivateIpGoogleAccessRequest.java index 81754578aaee..782dc28f5d3a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksSetPrivateIpGoogleAccessRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworksSetPrivateIpGoogleAccessRequest.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SwitchToCustomModeNetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SwitchToCustomModeNetworkHttpRequest.java index edc9361097e8..a067f8d4d3d7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SwitchToCustomModeNetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SwitchToCustomModeNetworkHttpRequest.java @@ -112,6 +112,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TCPHealthCheck.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TCPHealthCheck.java index bee57d1c62da..97dc089e3475 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TCPHealthCheck.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TCPHealthCheck.java @@ -76,6 +76,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Tags.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Tags.java index 8f2587b4ca25..187ec1fc5f9c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Tags.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Tags.java @@ -59,6 +59,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxy.java index a8c4c6111ac7..b3409dfdeb02 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxy.java @@ -98,6 +98,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyList.java index f740aeaa77e4..e08a623a4dba 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesSetQuicOverrideRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesSetQuicOverrideRequest.java index 81681218f414..52c6203cb2a8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesSetQuicOverrideRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesSetQuicOverrideRequest.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesSetSslCertificatesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesSetSslCertificatesRequest.java index 1b87add9f987..27e8cb810ce1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesSetSslCertificatesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxiesSetSslCertificatesRequest.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxy.java index d5b2a6a4a3af..fddbc48e482e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxy.java @@ -120,6 +120,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyList.java index af7fd231ebbe..fc50fd2207fc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstance.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstance.java index f05f5d687da4..9788a7ddd9ef 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstance.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstance.java @@ -113,6 +113,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceAggregatedList.java index aeb09d95d5d5..563f90507ea4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceAggregatedList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceList.java index f6e3ccdd3403..a9e17704deec 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstancesScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstancesScopedList.java index 55bf21d0c043..6a5ff0535ac4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstancesScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstancesScopedList.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPool.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPool.java index cf13b5c6881a..f713dd4f32d1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPool.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPool.java @@ -135,6 +135,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolAggregatedList.java index e4e6d8d8528c..ea65bcf40d9e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolAggregatedList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolInstanceHealth.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolInstanceHealth.java index b98cba266d4a..4ad42a138fd9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolInstanceHealth.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolInstanceHealth.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolList.java index 097fe92b2924..a314e755050e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsAddHealthCheckRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsAddHealthCheckRequest.java index accd5bd6148c..d4876f297e78 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsAddHealthCheckRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsAddHealthCheckRequest.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsAddInstanceRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsAddInstanceRequest.java index e38651937d90..6a5f6cd03988 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsAddInstanceRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsAddInstanceRequest.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsRemoveHealthCheckRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsRemoveHealthCheckRequest.java index a61ed57ed771..fc3d60eafd87 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsRemoveHealthCheckRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsRemoveHealthCheckRequest.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsRemoveInstanceRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsRemoveInstanceRequest.java index 23044bfb085e..2212d09dc382 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsRemoveInstanceRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsRemoveInstanceRequest.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsScopedList.java index ba0117ae7bf0..15ae38a275cb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolsScopedList.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetReference.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetReference.java index 6534c7792426..76a358c66f88 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetReference.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetReference.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetBackendServiceRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetBackendServiceRequest.java index daaf953d1eb9..58d467f34bc9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetBackendServiceRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetBackendServiceRequest.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetProxyHeaderRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetProxyHeaderRequest.java index 589229c6c1eb..76eb8cec5dad 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetProxyHeaderRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetProxyHeaderRequest.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetSslCertificatesRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetSslCertificatesRequest.java index 5ed2e986ae98..40dfc73fe9ca 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetSslCertificatesRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxiesSetSslCertificatesRequest.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxy.java index 436148c7ff33..cabab67ca3d6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxy.java @@ -120,6 +120,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyList.java index 7513e0e3fee0..667fae7ee7c6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesSetBackendServiceRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesSetBackendServiceRequest.java index bcb77cf781ce..2f2b734f2ba6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesSetBackendServiceRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesSetBackendServiceRequest.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesSetProxyHeaderRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesSetProxyHeaderRequest.java index d653593a2f3d..0eb7ab4f82c1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesSetProxyHeaderRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxiesSetProxyHeaderRequest.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxy.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxy.java index 167ef59a0e0a..7e9d721a6eb6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxy.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxy.java @@ -105,6 +105,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyList.java index 628df3b9f178..51e7c2a4669c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGateway.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGateway.java index 3d9c26a146f0..e0ce790f65de 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGateway.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGateway.java @@ -127,6 +127,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayAggregatedList.java index b8180cb0d238..523451972c28 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayAggregatedList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayList.java index 94d7335f948a..da68ba1f2561 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaysScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaysScopedList.java index e73c87b5ffd9..0002eb4045ca 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaysScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaysScopedList.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestFailure.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestFailure.java index 45d43a4fe686..1a74fff58c64 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestFailure.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestFailure.java @@ -69,6 +69,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsDiskHttpRequest.java index d0e2b502596e..13e9c7d4af68 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsDiskHttpRequest.java @@ -112,6 +112,12 @@ public TestPermissionsRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsImageHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsImageHttpRequest.java index 484a84ed091e..a1476edae8de 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsImageHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsImageHttpRequest.java @@ -112,6 +112,12 @@ public TestPermissionsRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstanceHttpRequest.java index 07977dddd621..fc935e0aa2e6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstanceHttpRequest.java @@ -112,6 +112,12 @@ public TestPermissionsRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstanceTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstanceTemplateHttpRequest.java index e398c09367be..899c5e18deca 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstanceTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsInstanceTemplateHttpRequest.java @@ -112,6 +112,12 @@ public TestPermissionsRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsLicenseCodeHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsLicenseCodeHttpRequest.java index 04e5ee8069ea..a499b4eede93 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsLicenseCodeHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsLicenseCodeHttpRequest.java @@ -112,6 +112,12 @@ public TestPermissionsRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsLicenseHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsLicenseHttpRequest.java index 842bbdf0a929..5350c90bb602 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsLicenseHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsLicenseHttpRequest.java @@ -112,6 +112,12 @@ public TestPermissionsRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsNodeGroupHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsNodeGroupHttpRequest.java index 05a4c8badc1d..44c29ae6ec95 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsNodeGroupHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsNodeGroupHttpRequest.java @@ -112,6 +112,12 @@ public TestPermissionsRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsNodeTemplateHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsNodeTemplateHttpRequest.java index cb17db86e787..a66eb4f75459 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsNodeTemplateHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsNodeTemplateHttpRequest.java @@ -112,6 +112,12 @@ public TestPermissionsRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionDiskHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionDiskHttpRequest.java index 035899c61f78..67987b4a40cb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionDiskHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsRegionDiskHttpRequest.java @@ -112,6 +112,12 @@ public TestPermissionsRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsSnapshotHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsSnapshotHttpRequest.java index 1c80d2afc3d6..b8f7ef653116 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsSnapshotHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsSnapshotHttpRequest.java @@ -112,6 +112,12 @@ public TestPermissionsRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsSubnetworkHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsSubnetworkHttpRequest.java index 7709ccf60ca7..e6edbd93abd6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsSubnetworkHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestIamPermissionsSubnetworkHttpRequest.java @@ -112,6 +112,12 @@ public TestPermissionsRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestPermissionsRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestPermissionsRequest.java index 210486e2605e..3b2ed06fd850 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestPermissionsRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestPermissionsRequest.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestPermissionsResponse.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestPermissionsResponse.java index bde487829b35..e79e4740ee86 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestPermissionsResponse.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TestPermissionsResponse.java @@ -52,6 +52,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateAccessConfigInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateAccessConfigInstanceHttpRequest.java index 41e3876fae66..8c84d99a7b2c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateAccessConfigInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateAccessConfigInstanceHttpRequest.java @@ -127,6 +127,12 @@ public AccessConfig getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateAutoscalerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateAutoscalerHttpRequest.java index 15d3516dd5d7..93d689b26367 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateAutoscalerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateAutoscalerHttpRequest.java @@ -158,6 +158,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -365,10 +371,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -377,6 +395,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateBackendBucketHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateBackendBucketHttpRequest.java index bd4b602e7967..61c909cbf043 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateBackendBucketHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateBackendBucketHttpRequest.java @@ -152,6 +152,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -345,10 +351,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -357,6 +375,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateBackendServiceHttpRequest.java index 007f312e1a50..c7008e312129 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateBackendServiceHttpRequest.java @@ -158,6 +158,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -359,10 +365,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -371,6 +389,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateFirewallHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateFirewallHttpRequest.java index 040f1657370e..64ee5391555c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateFirewallHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateFirewallHttpRequest.java @@ -136,6 +136,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -309,10 +315,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -321,6 +339,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHealthCheckHttpRequest.java index 8c8ae8dca00d..3c7fc72bd8ab 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHealthCheckHttpRequest.java @@ -135,6 +135,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -311,10 +317,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -323,6 +341,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHttpHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHttpHealthCheckHttpRequest.java index da949df175af..e86d3793c558 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHttpHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHttpHealthCheckHttpRequest.java @@ -135,6 +135,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -312,10 +318,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -324,6 +342,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHttpsHealthCheckHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHttpsHealthCheckHttpRequest.java index 0bb77a9f7e71..96cf8cabb018 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHttpsHealthCheckHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateHttpsHealthCheckHttpRequest.java @@ -135,6 +135,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -312,10 +318,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -324,6 +342,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateNetworkInterfaceInstanceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateNetworkInterfaceInstanceHttpRequest.java index ffe9803d9643..d8259c88699d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateNetworkInterfaceInstanceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateNetworkInterfaceInstanceHttpRequest.java @@ -142,6 +142,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -326,10 +332,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -338,6 +356,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRegionAutoscalerHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRegionAutoscalerHttpRequest.java index 666fa7e37831..f5fdcfe28029 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRegionAutoscalerHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRegionAutoscalerHttpRequest.java @@ -158,6 +158,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -365,10 +371,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -377,6 +395,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRegionBackendServiceHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRegionBackendServiceHttpRequest.java index ce5091451489..52938bfd3dcb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRegionBackendServiceHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRegionBackendServiceHttpRequest.java @@ -158,6 +158,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -359,10 +365,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -371,6 +389,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRouterHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRouterHttpRequest.java index fa79404f37ca..739150206a86 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRouterHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateRouterHttpRequest.java @@ -135,6 +135,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -308,10 +314,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -320,6 +338,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateUrlMapHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateUrlMapHttpRequest.java index 04a934da33b4..4d42dececd86 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateUrlMapHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UpdateUrlMapHttpRequest.java @@ -135,6 +135,12 @@ public String getCallback() { return callback; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } @@ -311,10 +317,22 @@ public Builder setCallback(String callback) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return fieldMask; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addAllFieldMask(List fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); @@ -323,6 +341,12 @@ public Builder addAllFieldMask(List fieldMask) { return this; } + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only + * those fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public Builder addFieldMask(String fieldMask) { if (this.fieldMask == null) { this.fieldMask = new LinkedList<>(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMap.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMap.java index 5a74dbac3845..cc8a225ce973 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMap.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMap.java @@ -127,6 +127,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapClient.java index d7e58e79c3f1..26a3c830ac28 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapClient.java @@ -729,7 +729,10 @@ public final UnaryCallable listUrlMapsCallab * @param urlMap Name of the UrlMap resource to patch. * @param urlMapResource A UrlMap resource. This resource defines the mapping from URL to the * BackendService resource, based on the "longest-match" of the URL's host and path. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -764,7 +767,10 @@ public final Operation patchUrlMap( * @param urlMap Name of the UrlMap resource to patch. * @param urlMapResource A UrlMap resource. This resource defines the mapping from URL to the * BackendService resource, based on the "longest-match" of the URL's host and path. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -854,7 +860,10 @@ public final UnaryCallable patchUrlMapCallabl * @param urlMap Name of the UrlMap resource to update. * @param urlMapResource A UrlMap resource. This resource defines the mapping from URL to the * BackendService resource, based on the "longest-match" of the URL's host and path. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi @@ -888,7 +897,10 @@ public final Operation updateUrlMap( * @param urlMap Name of the UrlMap resource to update. * @param urlMapResource A UrlMap resource. This resource defines the mapping from URL to the * BackendService resource, based on the "longest-match" of the URL's host and path. - * @param fieldMask + * @param fieldMask The fields that should be serialized (even if they have empty values). If the + * containing message object has a non-null fieldmask, then all the fields in the field mask + * (and only those fields in the field mask) will be serialized. If the containing object does + * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapList.java index 3644cd829565..746e47b2da44 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapReference.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapReference.java index f56739183aa4..00296f10db68 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapReference.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapReference.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapTest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapTest.java index 705671a1e7d7..a2d5aee5cc0f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapTest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapTest.java @@ -70,6 +70,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapValidationResult.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapValidationResult.java index b1f4d2fe3cd7..84e3f9c60e77 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapValidationResult.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapValidationResult.java @@ -75,6 +75,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsValidateRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsValidateRequest.java index 071191bc515e..2251ba026914 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsValidateRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsValidateRequest.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsValidateResponse.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsValidateResponse.java index 4fbc3ff68938..b5ee247a8e57 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsValidateResponse.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapsValidateResponse.java @@ -51,6 +51,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetwork.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetwork.java index c4a185f6845f..ff32822280ab 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetwork.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetwork.java @@ -75,6 +75,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetworkSecondaryRange.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetworkSecondaryRange.java index 2ec77f6f5d0c..b4eac29ee6be 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetworkSecondaryRange.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetworkSecondaryRange.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetworksAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetworksAggregatedList.java index a13f79ebe830..68fff21b7c56 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetworksAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsableSubnetworksAggregatedList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsageExportLocation.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsageExportLocation.java index 8039d9e656a9..b262b82558b2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsageExportLocation.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UsageExportLocation.java @@ -61,6 +61,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ValidateUrlMapHttpRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ValidateUrlMapHttpRequest.java index 8ba680b9c2e7..4d7814b152c1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ValidateUrlMapHttpRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ValidateUrlMapHttpRequest.java @@ -113,6 +113,12 @@ public UrlMapsValidateRequest getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappings.java index 35cfd5abffa8..6460fc315efd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappings.java @@ -60,6 +60,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappingsInterfaceNatMappings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappingsInterfaceNatMappings.java index 690919b3182e..fdbadf35bab3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappingsInterfaceNatMappings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappingsInterfaceNatMappings.java @@ -75,6 +75,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappingsList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappingsList.java index 26ca707d7f6e..173e3ffd2d0c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappingsList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VmEndpointNatMappingsList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnel.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnel.java index 8ca946aecb99..88f5508bc741 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnel.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnel.java @@ -166,6 +166,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelAggregatedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelAggregatedList.java index 084d99022a82..0fac4336cba3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelAggregatedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelAggregatedList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelList.java index d1ca77c5c456..c896b7084f11 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelsScopedList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelsScopedList.java index 3d317a4cf17d..ac11c8ed1f29 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelsScopedList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelsScopedList.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Warning.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Warning.java index c7c149be2960..edd53d0f35bd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Warning.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Warning.java @@ -65,6 +65,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Warnings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Warnings.java index df581ee0424b..42951091ddc6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Warnings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Warnings.java @@ -68,6 +68,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/XpnHostList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/XpnHostList.java index 2bcc41577b00..b93ee23154f5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/XpnHostList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/XpnHostList.java @@ -88,6 +88,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/XpnResourceId.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/XpnResourceId.java index d9ca4ed5ff1f..46675974c1c7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/XpnResourceId.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/XpnResourceId.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Zone.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Zone.java index 3ad1b2c885ad..1ae8080d9f9e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Zone.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Zone.java @@ -117,6 +117,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneList.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneList.java index c835d51e1be9..0bd6c5b88fef 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneList.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneList.java @@ -89,6 +89,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneSetLabelsRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneSetLabelsRequest.java index 6a9aa18f998a..9625603ababa 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneSetLabelsRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneSetLabelsRequest.java @@ -58,6 +58,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneSetPolicyRequest.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneSetPolicyRequest.java index 5b795aa9be4e..0cd37c2b86eb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneSetPolicyRequest.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneSetPolicyRequest.java @@ -64,6 +64,12 @@ public ApiMessage getApiMessageRequestBody() { @Nullable @Override + /** + * The fields that should be serialized (even if they have empty values). If the containing + * message object has a non-null fieldmask, then all the fields in the field mask (and only those + * fields in the field mask) will be serialized. If the containing object does not have a + * fieldmask, then only non-empty fields will be serialized. + */ public List getFieldMask() { return null; } diff --git a/google-cloud-clients/google-cloud-compute/synth.py b/google-cloud-clients/google-cloud-compute/synth.py index a8c0faaaf767..b446fee176b3 100644 --- a/google-cloud-clients/google-cloud-compute/synth.py +++ b/google-cloud-clients/google-cloud-compute/synth.py @@ -25,12 +25,12 @@ config_pattern = '/gapic/google/compute/artman_compute.yaml' for version in versions: - library = gapic.java_library( - service=service, - version=version, - config_path=config_pattern.format(version=version), - artman_output_name='') - - s.copy(library / f'gapic-google-cloud-{service}-{version}/src', 'src') + # library = gapic.java_library( + # service=service, + # version=version, + # config_path=config_pattern.format(version=version), + # artman_output_name='') + # + # s.copy(library / f'gapic-google-cloud-{service}-{version}/src', 'src') java.format_code('./src') From ea9a6bdd74012ae5e58a5204dd99cf346a79fb15 Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Wed, 13 Feb 2019 16:11:19 -0800 Subject: [PATCH 02/27] make Compute's Operation type extend OperationStatus --- .../ComputeOperationTransformer.java | 5 ++ .../longrunning/OperationCallableFactory.java | 5 ++ .../google/cloud/compute/v1/Operation.java | 48 ++++++++++++++++++- 3 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationTransformer.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationCallableFactory.java diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationTransformer.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationTransformer.java new file mode 100644 index 000000000000..e27daf68ec42 --- /dev/null +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationTransformer.java @@ -0,0 +1,5 @@ +package com.google.cloud.compute.longrunning; + +public class ComputeOperationTransformer { + +} diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationCallableFactory.java new file mode 100644 index 000000000000..aa61e3a85839 --- /dev/null +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationCallableFactory.java @@ -0,0 +1,5 @@ +package com.google.cloud.compute.longrunning; + +public class OperationCallableFactory { + +} diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Operation.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Operation.java index 68391b0261de..c034307934ff 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Operation.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Operation.java @@ -15,8 +15,14 @@ */ package com.google.cloud.compute.v1; +import static com.google.cloud.compute.v1.Operation.Status.DONE; + import com.google.api.core.BetaApi; import com.google.api.gax.httpjson.ApiMessage; +import com.google.api.gax.httpjson.HttpJsonStatusCode; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StatusCode.Code; import java.util.LinkedList; import java.util.List; import java.util.Objects; @@ -31,7 +37,7 @@ * v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for * v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) */ -public final class Operation implements ApiMessage { +public final class Operation implements ApiMessage, OperationSnapshot { private final String clientOperationId; private final String creationTimestamp; private final String description; @@ -1100,4 +1106,44 @@ public int hashCode() { warnings, zone); } + + @Override + public Object getMetadata() { + return null; + } + + @Override + public boolean isDone() { + return DONE.equals(getOperationStatus()); + } + + @Override + public Object getResponse() { + return null; + } + + @Override + public StatusCode getErrorCode() { + if (getError().getErrorsList().isEmpty()) { + return null; + } + + // Return the first Error code. + return HttpJsonStatusCode.of(Integer.valueOf(error.getErrorsList().get(0).getCode()), error.getErrorsList().get(0).getMessage()); + } + + @Override + public String getErrorMessage() { + return error.getErrorsList().toString(); + } + + public enum Status { + PENDING, + RUNNING, + DONE + } + + public Status getOperationStatus() { + return Status.valueOf(getStatus()); + } } From fcdff4d1ac405d64bdb95f3920ba1dc5577bfc4b Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Wed, 13 Feb 2019 16:23:53 -0800 Subject: [PATCH 03/27] computeOperationSnapshot to implement OperationSnapshot --- .../longrunning/ComputeOperationSnapshot.java | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java new file mode 100644 index 000000000000..67abeeacbaf5 --- /dev/null +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java @@ -0,0 +1,64 @@ +package com.google.cloud.compute.longrunning; + +import static com.google.cloud.compute.longrunning.ComputeOperationSnapshot.Status.DONE; + +import com.google.api.gax.httpjson.HttpJsonStatusCode; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.compute.v1.Operation; + +public class ComputeOperationSnapshot implements OperationSnapshot { + + public enum Status { + PENDING, + RUNNING, + DONE + } + + private final Operation operation; + + public ComputeOperationSnapshot(Operation operation) { + this.operation = operation; + } + + @Override + public String getName() { + return operation.getName(); + } + + @Override + public Object getMetadata() { + return null; + } + + @Override + public boolean isDone() { + return DONE.equals(getOperationStatus()); + } + + @Override + public Object getResponse() { + return null; + } + + @Override + public StatusCode getErrorCode() { + if (operation.getError().getErrorsList().isEmpty()) { + return null; + } + + // Return the first Error code. + return HttpJsonStatusCode + .of(Integer.valueOf(operation.getError().getErrorsList().get(0).getCode()), operation.getError().getErrorsList().get(0).getMessage()); + } + + @Override + public String getErrorMessage() { + return operation.getError().getErrorsList().toString(); + } + + + public Status getOperationStatus() { + return Status.valueOf(operation.getStatus()); + } +} From 64b7c76dc70e6963dd6e3ecf098a19047572eea9 Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Wed, 13 Feb 2019 16:29:23 -0800 Subject: [PATCH 04/27] add OperationSnapshotCallabe --- .../compute/longrunning/OperationClient.java | 5 ++ .../OperationSnapshotCallable.java | 68 +++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationClient.java create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationSnapshotCallable.java diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationClient.java new file mode 100644 index 000000000000..87bba445bc8d --- /dev/null +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationClient.java @@ -0,0 +1,5 @@ +package com.google.cloud.compute.longrunning; + +public class OperationClient { + +} diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationSnapshotCallable.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationSnapshotCallable.java new file mode 100644 index 000000000000..c91ee2d56f11 --- /dev/null +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationSnapshotCallable.java @@ -0,0 +1,68 @@ +/* + * Copyright 2017 Google LLC + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following disclaimer + * in the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Google LLC nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +package com.google.cloud.compute.longrunning; + +import static com.google.common.util.concurrent.MoreExecutors.directExecutor; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.Operation; + +/** + * A {@code UnaryCallable} that wraps a UnaryCallable returning an Operation and returns an + * OperationSnapshot instead. + * + *

Package-private for internal usage. + */ +class OperationSnapshotCallable extends UnaryCallable { + private final UnaryCallable innerCallable; + + public OperationSnapshotCallable(UnaryCallable innerCallable) { + this.innerCallable = innerCallable; + } + + @Override + public ApiFuture futureCall(RequestT request, ApiCallContext context) { + return ApiFutures.transform( + innerCallable.futureCall(request, context), + new ApiFunction() { + @Override + public OperationSnapshot apply(Operation operation) { + return new ComputeOperationSnapshot(operation) { + }; + } + }, + directExecutor()); + } +} From 6a3c537fd5facead616e5a941795900fe9efe5bf Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Wed, 13 Feb 2019 16:48:53 -0800 Subject: [PATCH 05/27] implemented ComputeLongRunningClinet --- .../longrunning/ComputeLongRunningClient.java | 76 +++++++++++++++++++ ...Client.java => ComputeOperationsStub.java} | 2 +- 2 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java rename google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/{OperationClient.java => ComputeOperationsStub.java} (57%) diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java new file mode 100644 index 000000000000..11f541571a61 --- /dev/null +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java @@ -0,0 +1,76 @@ +package com.google.cloud.compute.longrunning; + +import com.google.api.core.ApiFunction; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.LongRunningClient; +import com.google.api.gax.rpc.TranslatingUnaryCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.DeleteGlobalOperationHttpRequest; +import com.google.cloud.compute.v1.GetGlobalOperationHttpRequest; +import com.google.cloud.compute.v1.GlobalOperationClient; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.stub.GlobalOperationStub; + +/** + * Implementation of LongRunningClient for the Compute client. + * + *

Package-private for internal usage. + */ +class ComputeLongRunningClient implements LongRunningClient { + + private final GlobalOperationStub operationStub; + + public ComputeLongRunningClient(GlobalOperationClient globalOperationClient) { + this.operationStub = globalOperationClient.getStub(); + } + + public ComputeLongRunningClient(GlobalOperationStub operationStub) { + this.operationStub = operationStub; + } + + @Override + public UnaryCallable getOperationCallable() { + return TranslatingUnaryCallable.create( + operationStub.getGlobalOperationCallable(), + new ApiFunction() { + @Override + public GetGlobalOperationHttpRequest apply(String request) { + // GrpcLongRunningClient uses .setName() instead of .setOperation() + return GetGlobalOperationHttpRequest.newBuilder().setOperation(request).build(); + } + }, + new ApiFunction() { + @Override + public OperationSnapshot apply(Operation operation) { + return ComputeOperationSnapshot.create(operation); + } + }); + } + + @Override + public UnaryCallable cancelOperationCallable() { + throw new UnsupportedOperationException("Cancelling operations is not supported by this API."); + } + + @Override + public UnaryCallable deleteOperationCallable() { + return TranslatingUnaryCallable.create( + operationStub.deleteGlobalOperationCallable(), + new ApiFunction() { + @Override + public DeleteGlobalOperationHttpRequest apply(String request) { + return DeleteGlobalOperationHttpRequest.newBuilder().setOperation(request).build(); + } + }, + new ApiFunction() { + @Override + public Void apply(Void empty) { + return null; + } + }); + } + + public static ComputeLongRunningClient create(GlobalOperationStub operationsStub) { + return new ComputeLongRunningClient(operationsStub); + } +} diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationsStub.java similarity index 57% rename from google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationClient.java rename to google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationsStub.java index 87bba445bc8d..e34affbde1c6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationsStub.java @@ -1,5 +1,5 @@ package com.google.cloud.compute.longrunning; -public class OperationClient { +public class ComputeOperationsStub { } From 2263af5c6d4b2e3f79af6276407e1a8d6070b4a6 Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Wed, 13 Feb 2019 17:38:12 -0800 Subject: [PATCH 06/27] updates to compute.longrunning --- .../longrunning/ComputeLongRunningClient.java | 4 +- .../longrunning/ComputeOperationSnapshot.java | 6 ++- .../ComputeOperationTransformer.java | 37 ++++++++++++++++++- .../longrunning/ComputeOperationsStub.java | 34 ++++++++++++++++- .../longrunning/OperationCallableFactory.java | 25 +++++++++++++ .../OperationSnapshotCallable.java | 7 +--- 6 files changed, 102 insertions(+), 11 deletions(-) diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java index 11f541571a61..3af159bcd047 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java @@ -13,10 +13,8 @@ /** * Implementation of LongRunningClient for the Compute client. - * - *

Package-private for internal usage. */ -class ComputeLongRunningClient implements LongRunningClient { +public class ComputeLongRunningClient implements LongRunningClient { private final GlobalOperationStub operationStub; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java index 67abeeacbaf5..5a30841bbc03 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java @@ -17,10 +17,14 @@ public enum Status { private final Operation operation; - public ComputeOperationSnapshot(Operation operation) { + private ComputeOperationSnapshot(Operation operation) { this.operation = operation; } + public static ComputeOperationSnapshot create(Operation operation) { + return new ComputeOperationSnapshot(operation); + } + @Override public String getName() { return operation.getName(); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationTransformer.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationTransformer.java index e27daf68ec42..b008ceb41653 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationTransformer.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationTransformer.java @@ -1,5 +1,40 @@ package com.google.cloud.compute.longrunning; -public class ComputeOperationTransformer { +import com.google.api.core.ApiFunction; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.StatusCode.Code; + +public class ComputeOperationTransformer implements ApiFunction { + + @Override + @SuppressWarnings("unchecked") + public ResponseT apply(OperationSnapshot operationSnapshot) { + if (!operationSnapshot.getErrorCode().getCode().equals(Code.OK)) { + throw ApiExceptionFactory.createException( + "Operation with name \"" + + operationSnapshot.getName() + + "\" failed with status = " + + operationSnapshot.getErrorCode() + + " and message = " + + operationSnapshot.getErrorMessage(), + null, + operationSnapshot.getErrorCode(), + false); + } + try { + return (ResponseT) operationSnapshot.getResponse(); + } catch (RuntimeException e) { + throw ApiExceptionFactory.createException( + "Operation with name \"" + + operationSnapshot.getName() + + "\" succeeded, but encountered a problem unpacking it.", + e, + operationSnapshot.getErrorCode(), + false); + } + } + + } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationsStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationsStub.java index e34affbde1c6..f5487cd9c1e9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationsStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationsStub.java @@ -1,5 +1,37 @@ package com.google.cloud.compute.longrunning; -public class ComputeOperationsStub { +import com.google.longrunning.stub.OperationsStub; +import java.util.concurrent.TimeUnit; +public class ComputeOperationsStub extends OperationsStub { + + @Override + public void close() { + + } + + @Override + public void shutdown() { + + } + + @Override + public boolean isShutdown() { + return false; + } + + @Override + public boolean isTerminated() { + return false; + } + + @Override + public void shutdownNow() { + + } + + @Override + public boolean awaitTermination(long l, TimeUnit timeUnit) throws InterruptedException { + return false; + } } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationCallableFactory.java index aa61e3a85839..2954eb1ce92c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationCallableFactory.java @@ -1,5 +1,30 @@ package com.google.cloud.compute.longrunning; +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.Callables; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.stub.GlobalOperationStub; + public class OperationCallableFactory { + @BetaApi("The surface for long-running operations is not stable yet and may change in the future.") + public static OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + GlobalOperationStub operationsStub) { + UnaryCallable initialGrpcCallable = HttpJsonCallableFactory.createBaseUnaryCallable(httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); + UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialGrpcCallable); + ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + OperationCallable operationCallable = Callables + .longRunningOperation(initialCallable, operationCallSettings, clientContext, longRunningClient); + return operationCallable.withDefaultCallContext(clientContext.getDefaultCallContext()); + } } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationSnapshotCallable.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationSnapshotCallable.java index c91ee2d56f11..17c5fed7915a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationSnapshotCallable.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationSnapshotCallable.java @@ -42,10 +42,8 @@ /** * A {@code UnaryCallable} that wraps a UnaryCallable returning an Operation and returns an * OperationSnapshot instead. - * - *

Package-private for internal usage. */ -class OperationSnapshotCallable extends UnaryCallable { +public class OperationSnapshotCallable extends UnaryCallable { private final UnaryCallable innerCallable; public OperationSnapshotCallable(UnaryCallable innerCallable) { @@ -59,8 +57,7 @@ public ApiFuture futureCall(RequestT request, ApiCallContext new ApiFunction() { @Override public OperationSnapshot apply(Operation operation) { - return new ComputeOperationSnapshot(operation) { - }; + return ComputeOperationSnapshot.create(operation); } }, directExecutor()); From 4007a2d9814e18e5b9f6119003a81beef13e2311 Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Wed, 13 Feb 2019 17:38:34 -0800 Subject: [PATCH 07/27] fix gax-java dep to latest SNAPSHOT --- google-cloud-clients/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-clients/pom.xml b/google-cloud-clients/pom.xml index 95e2e2cc1b98..14a71c11c97f 100644 --- a/google-cloud-clients/pom.xml +++ b/google-cloud-clients/pom.xml @@ -155,7 +155,7 @@ 0.79.1-alpha-SNAPSHOT 1.27.0 - 1.38.0 + 1.38.1-SNAPSHOT 1.7.0 0.12.0 1.17.1 From 2a14d1984b36d85ef51de916e31d8c41e4050444 Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Wed, 13 Feb 2019 17:40:57 -0800 Subject: [PATCH 08/27] save changes to HttpJsonRegionAutoscalerCallableFactory for reference --- ...tpJsonRegionAutoscalerCallableFactory.java | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java index 028dd7ee0d48..24251b500b29 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java @@ -19,11 +19,18 @@ import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS @@ -34,7 +41,7 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class HttpJsonRegionAutoscalerCallableFactory implements HttpJsonStubCallableFactory { +public class HttpJsonRegionAutoscalerCallableFactory implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -44,6 +51,26 @@ public UnaryCallable createUnaryCalla httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings + httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + GlobalOperationStub operationsStub) { + + UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable(httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); + UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); + ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + OperationCallable operationCallable = Callables + .longRunningOperation(initialCallable, operationCallSettings, clientContext, longRunningClient); + return HttpJsonCallableFactory.createOperationCallable( + operationCallSettings, clientContext, longRunningClient, initialCallable); + } + @Override public UnaryCallable createPagedCallable( From 9abd7c52eb4bb3dd168bf972e2d050c63e5558b7 Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Wed, 13 Feb 2019 17:48:46 -0800 Subject: [PATCH 09/27] updates to compute.longrunning --- .../longrunning/ComputeLongRunningClient.java | 6 ++--- .../longrunning/ComputeOperationSnapshot.java | 6 ++--- .../ComputeOperationTransformer.java | 6 ++--- .../longrunning/ComputeOperationsStub.java | 12 +++------ .../longrunning/OperationCallableFactory.java | 26 ++++++++++++------- .../OperationSnapshotCallable.java | 3 ++- 6 files changed, 28 insertions(+), 31 deletions(-) diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java index 3af159bcd047..dff506c0191c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java @@ -11,9 +11,7 @@ import com.google.cloud.compute.v1.Operation; import com.google.cloud.compute.v1.stub.GlobalOperationStub; -/** - * Implementation of LongRunningClient for the Compute client. - */ +/** Implementation of LongRunningClient for the Compute client. */ public class ComputeLongRunningClient implements LongRunningClient { private final GlobalOperationStub operationStub; @@ -47,7 +45,7 @@ public OperationSnapshot apply(Operation operation) { @Override public UnaryCallable cancelOperationCallable() { - throw new UnsupportedOperationException("Cancelling operations is not supported by this API."); + throw new UnsupportedOperationException("Cancelling operations is not supported by this API."); } @Override diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java index 5a30841bbc03..589cb89ae226 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java @@ -52,8 +52,9 @@ public StatusCode getErrorCode() { } // Return the first Error code. - return HttpJsonStatusCode - .of(Integer.valueOf(operation.getError().getErrorsList().get(0).getCode()), operation.getError().getErrorsList().get(0).getMessage()); + return HttpJsonStatusCode.of( + Integer.valueOf(operation.getError().getErrorsList().get(0).getCode()), + operation.getError().getErrorsList().get(0).getMessage()); } @Override @@ -61,7 +62,6 @@ public String getErrorMessage() { return operation.getError().getErrorsList().toString(); } - public Status getOperationStatus() { return Status.valueOf(operation.getStatus()); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationTransformer.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationTransformer.java index b008ceb41653..151001d91fa5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationTransformer.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationTransformer.java @@ -5,7 +5,8 @@ import com.google.api.gax.rpc.ApiExceptionFactory; import com.google.api.gax.rpc.StatusCode.Code; -public class ComputeOperationTransformer implements ApiFunction { +public class ComputeOperationTransformer + implements ApiFunction { @Override @SuppressWarnings("unchecked") @@ -34,7 +35,4 @@ public ResponseT apply(OperationSnapshot operationSnapshot) { false); } } - - - } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationsStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationsStub.java index f5487cd9c1e9..17f76dacbc47 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationsStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationsStub.java @@ -6,14 +6,10 @@ public class ComputeOperationsStub extends OperationsStub { @Override - public void close() { - - } + public void close() {} @Override - public void shutdown() { - - } + public void shutdown() {} @Override public boolean isShutdown() { @@ -26,9 +22,7 @@ public boolean isTerminated() { } @Override - public void shutdownNow() { - - } + public void shutdownNow() {} @Override public boolean awaitTermination(long l, TimeUnit timeUnit) throws InterruptedException { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationCallableFactory.java index 2954eb1ce92c..5c1250d5ebf3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationCallableFactory.java @@ -14,17 +14,23 @@ public class OperationCallableFactory { - @BetaApi("The surface for long-running operations is not stable yet and may change in the future.") - public static OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings operationCallSettings, - ClientContext clientContext, - GlobalOperationStub operationsStub) { - UnaryCallable initialGrpcCallable = HttpJsonCallableFactory.createBaseUnaryCallable(httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); - UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialGrpcCallable); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public static + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + GlobalOperationStub operationsStub) { + UnaryCallable initialGrpcCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); + UnaryCallable initialCallable = + new OperationSnapshotCallable<>(initialGrpcCallable); ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); - OperationCallable operationCallable = Callables - .longRunningOperation(initialCallable, operationCallSettings, clientContext, longRunningClient); + OperationCallable operationCallable = + Callables.longRunningOperation( + initialCallable, operationCallSettings, clientContext, longRunningClient); return operationCallable.withDefaultCallContext(clientContext.getDefaultCallContext()); } } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationSnapshotCallable.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationSnapshotCallable.java index 17c5fed7915a..efca66c969cd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationSnapshotCallable.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationSnapshotCallable.java @@ -43,7 +43,8 @@ * A {@code UnaryCallable} that wraps a UnaryCallable returning an Operation and returns an * OperationSnapshot instead. */ -public class OperationSnapshotCallable extends UnaryCallable { +public class OperationSnapshotCallable + extends UnaryCallable { private final UnaryCallable innerCallable; public OperationSnapshotCallable(UnaryCallable innerCallable) { From 7419b450e7a99ac021a1aff1d91fd3e352b0d894 Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Wed, 13 Feb 2019 17:53:50 -0800 Subject: [PATCH 10/27] add tests --- .../cloud/compute/v1/AddressClientTest.java | 125 +- .../compute/v1/AutoscalerClientTest.java | 253 +-- .../compute/v1/BackendBucketClientTest.java | 379 +---- .../compute/v1/BackendServiceClientTest.java | 448 ++--- .../cloud/compute/v1/DiskClientTest.java | 311 +--- .../cloud/compute/v1/FirewallClientTest.java | 249 +-- .../compute/v1/ForwardingRuleClientTest.java | 189 +-- .../compute/v1/GlobalAddressClientTest.java | 125 +- .../v1/GlobalForwardingRuleClientTest.java | 190 +-- .../compute/v1/HealthCheckClientTest.java | 252 +-- .../compute/v1/HttpHealthCheckClientTest.java | 255 +-- .../v1/HttpsHealthCheckClientTest.java | 262 +-- .../cloud/compute/v1/ImageClientTest.java | 250 +-- .../cloud/compute/v1/InstanceClientTest.java | 1483 ++++------------- .../compute/v1/InstanceGroupClientTest.java | 337 +--- .../v1/InstanceGroupManagerClientTest.java | 621 ++----- .../v1/InstanceTemplateClientTest.java | 126 +- .../v1/InterconnectAttachmentClientTest.java | 199 +-- .../compute/v1/InterconnectClientTest.java | 189 +-- .../cloud/compute/v1/LicenseClientTest.java | 125 +- .../cloud/compute/v1/NetworkClientTest.java | 376 +---- .../cloud/compute/v1/NodeGroupClientTest.java | 322 +--- .../compute/v1/NodeTemplateClientTest.java | 125 +- .../cloud/compute/v1/ProjectClientTest.java | 580 ++----- .../v1/RegionAutoscalerClientTest.java | 253 +-- .../v1/RegionBackendServiceClientTest.java | 262 +-- .../v1/RegionCommitmentClientTest.java | 63 +- .../compute/v1/RegionDiskClientTest.java | 313 +--- .../v1/RegionInstanceGroupClientTest.java | 73 +- .../RegionInstanceGroupManagerClientTest.java | 622 ++----- .../cloud/compute/v1/RouteClientTest.java | 125 +- .../cloud/compute/v1/RouterClientTest.java | 249 +-- .../compute/v1/SecurityPolicyClientTest.java | 383 +---- .../cloud/compute/v1/SnapshotClientTest.java | 126 +- .../compute/v1/SslCertificateClientTest.java | 125 +- .../cloud/compute/v1/SslPolicyClientTest.java | 187 +-- .../compute/v1/SubnetworkClientTest.java | 329 +--- .../compute/v1/TargetHttpProxyClientTest.java | 189 +-- .../v1/TargetHttpsProxyClientTest.java | 400 ++--- .../compute/v1/TargetInstanceClientTest.java | 125 +- .../compute/v1/TargetPoolClientTest.java | 458 ++--- .../compute/v1/TargetSslProxyClientTest.java | 405 ++--- .../compute/v1/TargetTcpProxyClientTest.java | 269 +-- .../v1/TargetVpnGatewayClientTest.java | 126 +- .../cloud/compute/v1/UrlMapClientTest.java | 312 +--- .../cloud/compute/v1/VpnTunnelClientTest.java | 125 +- 46 files changed, 3064 insertions(+), 10226 deletions(-) diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AddressClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AddressClientTest.java index c36a81a4ff3e..72618aea5102 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AddressClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AddressClientTest.java @@ -36,6 +36,7 @@ import com.google.cloud.compute.v1.stub.AddressStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -152,58 +153,20 @@ public void aggregatedListAddressesExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void deleteAddressTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteAddressTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteAddressTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockAddresses.addResponse(resultOperation); ProjectRegionAddressName address = ProjectRegionAddressName.of("[PROJECT]", "[REGION]", "[ADDRESS]"); - Operation actualResponse = client.deleteAddress(address); + Void actualResponse = client.deleteAddressAsync(address).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -233,10 +196,12 @@ public void deleteAddressExceptionTest() throws Exception { ProjectRegionAddressName address = ProjectRegionAddressName.of("[PROJECT]", "[REGION]", "[ADDRESS]"); - client.deleteAddress(address); + client.deleteAddressAsync(address).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -323,58 +288,20 @@ public void getAddressExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertAddressTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region2 = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertAddressTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region2.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertAddressTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockAddresses.addResponse(resultOperation); ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); Address addressResource = Address.newBuilder().build(); - Operation actualResponse = client.insertAddress(region, addressResource); + Void actualResponse = client.insertAddressAsync(region, addressResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -404,10 +331,12 @@ public void insertAddressExceptionTest() throws Exception { ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); Address addressResource = Address.newBuilder().build(); - client.insertAddress(region, addressResource); + client.insertAddressAsync(region, addressResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AutoscalerClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AutoscalerClientTest.java index 094588d075dc..3c914329421b 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AutoscalerClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AutoscalerClientTest.java @@ -38,6 +38,7 @@ import com.google.cloud.compute.v1.stub.AutoscalerStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -157,58 +158,20 @@ public void aggregatedListAutoscalersExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void deleteAutoscalerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteAutoscalerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteAutoscalerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockAutoscalers.addResponse(resultOperation); ProjectZoneAutoscalerName autoscaler = ProjectZoneAutoscalerName.of("[PROJECT]", "[ZONE]", "[AUTOSCALER]"); - Operation actualResponse = client.deleteAutoscaler(autoscaler); + Void actualResponse = client.deleteAutoscalerAsync(autoscaler).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -238,10 +201,12 @@ public void deleteAutoscalerExceptionTest() throws Exception { ProjectZoneAutoscalerName autoscaler = ProjectZoneAutoscalerName.of("[PROJECT]", "[ZONE]", "[AUTOSCALER]"); - client.deleteAutoscaler(autoscaler); + client.deleteAutoscalerAsync(autoscaler).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -315,58 +280,20 @@ public void getAutoscalerExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertAutoscalerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone2 = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertAutoscalerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone2.toString()) + .setName("insertAutoscalerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockAutoscalers.addResponse(resultOperation); ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); - Operation actualResponse = client.insertAutoscaler(zone, autoscalerResource); + Void actualResponse = client.insertAutoscalerAsync(zone, autoscalerResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -396,10 +323,12 @@ public void insertAutoscalerExceptionTest() throws Exception { ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); - client.insertAutoscaler(zone, autoscalerResource); + client.insertAutoscalerAsync(zone, autoscalerResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -465,61 +394,23 @@ public void listAutoscalersExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void patchAutoscalerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone2 = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void patchAutoscalerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone2.toString()) + .setName("patchAutoscalerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockAutoscalers.addResponse(resultOperation); String autoscaler = "autoscaler517258967"; ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = - client.patchAutoscaler(autoscaler, zone, autoscalerResource, fieldMask); + Void actualResponse = + client.patchAutoscalerAsync(autoscaler, zone, autoscalerResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -551,70 +442,34 @@ public void patchAutoscalerExceptionTest() throws Exception { Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.patchAutoscaler(autoscaler, zone, autoscalerResource, fieldMask); + client.patchAutoscalerAsync(autoscaler, zone, autoscalerResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void updateAutoscalerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone2 = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void updateAutoscalerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone2.toString()) + .setName("updateAutoscalerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockAutoscalers.addResponse(resultOperation); String autoscaler = "autoscaler517258967"; ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = - client.updateAutoscaler(autoscaler, zone, autoscalerResource, fieldMask); + Void actualResponse = + client.updateAutoscalerAsync(autoscaler, zone, autoscalerResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -646,10 +501,12 @@ public void updateAutoscalerExceptionTest() throws Exception { Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.updateAutoscaler(autoscaler, zone, autoscalerResource, fieldMask); + client.updateAutoscalerAsync(autoscaler, zone, autoscalerResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendBucketClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendBucketClientTest.java index e0175e0fe094..7a644a10894d 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendBucketClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendBucketClientTest.java @@ -38,6 +38,7 @@ import com.google.cloud.compute.v1.stub.BackendBucketStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -93,60 +94,22 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void addSignedUrlKeyBackendBucketTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void addSignedUrlKeyBackendBucketTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("addSignedUrlKeyBackendBucketTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockBackendBuckets.addResponse(resultOperation); ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]"); SignedUrlKey signedUrlKeyResource = SignedUrlKey.newBuilder().build(); - Operation actualResponse = - client.addSignedUrlKeyBackendBucket(backendBucket, signedUrlKeyResource); + Void actualResponse = + client.addSignedUrlKeyBackendBucketAsync(backendBucket, signedUrlKeyResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -177,67 +140,31 @@ public void addSignedUrlKeyBackendBucketExceptionTest() throws Exception { ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]"); SignedUrlKey signedUrlKeyResource = SignedUrlKey.newBuilder().build(); - client.addSignedUrlKeyBackendBucket(backendBucket, signedUrlKeyResource); + client.addSignedUrlKeyBackendBucketAsync(backendBucket, signedUrlKeyResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void deleteBackendBucketTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteBackendBucketTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteBackendBucketTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockBackendBuckets.addResponse(resultOperation); ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]"); - Operation actualResponse = client.deleteBackendBucket(backendBucket); + Void actualResponse = client.deleteBackendBucketAsync(backendBucket).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -267,68 +194,32 @@ public void deleteBackendBucketExceptionTest() throws Exception { ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]"); - client.deleteBackendBucket(backendBucket); + client.deleteBackendBucketAsync(backendBucket).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void deleteSignedUrlKeyBackendBucketTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteSignedUrlKeyBackendBucketTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteSignedUrlKeyBackendBucketTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockBackendBuckets.addResponse(resultOperation); ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]"); String keyName = "keyName500938859"; - Operation actualResponse = client.deleteSignedUrlKeyBackendBucket(backendBucket, keyName); + Void actualResponse = client.deleteSignedUrlKeyBackendBucketAsync(backendBucket, keyName).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -359,10 +250,12 @@ public void deleteSignedUrlKeyBackendBucketExceptionTest() throws Exception { ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]"); String keyName = "keyName500938859"; - client.deleteSignedUrlKeyBackendBucket(backendBucket, keyName); + client.deleteSignedUrlKeyBackendBucketAsync(backendBucket, keyName).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -432,58 +325,20 @@ public void getBackendBucketExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertBackendBucketTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertBackendBucketTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertBackendBucketTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockBackendBuckets.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); BackendBucket backendBucketResource = BackendBucket.newBuilder().build(); - Operation actualResponse = client.insertBackendBucket(project, backendBucketResource); + Void actualResponse = client.insertBackendBucketAsync(project, backendBucketResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -513,10 +368,12 @@ public void insertBackendBucketExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); BackendBucket backendBucketResource = BackendBucket.newBuilder().build(); - client.insertBackendBucket(project, backendBucketResource); + client.insertBackendBucketAsync(project, backendBucketResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -582,61 +439,23 @@ public void listBackendBucketsExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void patchBackendBucketTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void patchBackendBucketTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("patchBackendBucketTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockBackendBuckets.addResponse(resultOperation); ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]"); BackendBucket backendBucketResource = BackendBucket.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = - client.patchBackendBucket(backendBucket, backendBucketResource, fieldMask); + Void actualResponse = + client.patchBackendBucketAsync(backendBucket, backendBucketResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -668,70 +487,34 @@ public void patchBackendBucketExceptionTest() throws Exception { BackendBucket backendBucketResource = BackendBucket.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.patchBackendBucket(backendBucket, backendBucketResource, fieldMask); + client.patchBackendBucketAsync(backendBucket, backendBucketResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void updateBackendBucketTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void updateBackendBucketTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("updateBackendBucketTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockBackendBuckets.addResponse(resultOperation); ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]"); BackendBucket backendBucketResource = BackendBucket.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = - client.updateBackendBucket(backendBucket, backendBucketResource, fieldMask); + Void actualResponse = + client.updateBackendBucketAsync(backendBucket, backendBucketResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -763,10 +546,12 @@ public void updateBackendBucketExceptionTest() throws Exception { BackendBucket backendBucketResource = BackendBucket.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.updateBackendBucket(backendBucket, backendBucketResource, fieldMask); + client.updateBackendBucketAsync(backendBucket, backendBucketResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendServiceClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendServiceClientTest.java index caef050619f6..9b17db1e7012 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendServiceClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendServiceClientTest.java @@ -42,6 +42,7 @@ import com.google.cloud.compute.v1.stub.BackendServiceStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -102,60 +103,22 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void addSignedUrlKeyBackendServiceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void addSignedUrlKeyBackendServiceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("addSignedUrlKeyBackendServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockBackendServices.addResponse(resultOperation); ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]"); SignedUrlKey signedUrlKeyResource = SignedUrlKey.newBuilder().build(); - Operation actualResponse = - client.addSignedUrlKeyBackendService(backendService, signedUrlKeyResource); + Void actualResponse = + client.addSignedUrlKeyBackendServiceAsync(backendService, signedUrlKeyResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -186,10 +149,12 @@ public void addSignedUrlKeyBackendServiceExceptionTest() throws Exception { ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]"); SignedUrlKey signedUrlKeyResource = SignedUrlKey.newBuilder().build(); - client.addSignedUrlKeyBackendService(backendService, signedUrlKeyResource); + client.addSignedUrlKeyBackendServiceAsync(backendService, signedUrlKeyResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -258,58 +223,20 @@ public void aggregatedListBackendServicesExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void deleteBackendServiceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteBackendServiceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteBackendServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockBackendServices.addResponse(resultOperation); ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]"); - Operation actualResponse = client.deleteBackendService(backendService); + Void actualResponse = client.deleteBackendServiceAsync(backendService).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -339,68 +266,33 @@ public void deleteBackendServiceExceptionTest() throws Exception { ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]"); - client.deleteBackendService(backendService); + client.deleteBackendServiceAsync(backendService).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void deleteSignedUrlKeyBackendServiceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteSignedUrlKeyBackendServiceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteSignedUrlKeyBackendServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockBackendServices.addResponse(resultOperation); ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]"); String keyName = "keyName500938859"; - Operation actualResponse = client.deleteSignedUrlKeyBackendService(backendService, keyName); + Void actualResponse = + client.deleteSignedUrlKeyBackendServiceAsync(backendService, keyName).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -431,10 +323,12 @@ public void deleteSignedUrlKeyBackendServiceExceptionTest() throws Exception { ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]"); String keyName = "keyName500938859"; - client.deleteSignedUrlKeyBackendService(backendService, keyName); + client.deleteSignedUrlKeyBackendServiceAsync(backendService, keyName).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -576,58 +470,20 @@ public void getHealthBackendServiceExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertBackendServiceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertBackendServiceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertBackendServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockBackendServices.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); BackendService backendServiceResource = BackendService.newBuilder().build(); - Operation actualResponse = client.insertBackendService(project, backendServiceResource); + Void actualResponse = client.insertBackendServiceAsync(project, backendServiceResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -657,10 +513,12 @@ public void insertBackendServiceExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); BackendService backendServiceResource = BackendService.newBuilder().build(); - client.insertBackendService(project, backendServiceResource); + client.insertBackendServiceAsync(project, backendServiceResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -726,61 +584,23 @@ public void listBackendServicesExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void patchBackendServiceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void patchBackendServiceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("patchBackendServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockBackendServices.addResponse(resultOperation); ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]"); BackendService backendServiceResource = BackendService.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = - client.patchBackendService(backendService, backendServiceResource, fieldMask); + Void actualResponse = + client.patchBackendServiceAsync(backendService, backendServiceResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -812,70 +632,36 @@ public void patchBackendServiceExceptionTest() throws Exception { BackendService backendServiceResource = BackendService.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.patchBackendService(backendService, backendServiceResource, fieldMask); + client.patchBackendServiceAsync(backendService, backendServiceResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setSecurityPolicyBackendServiceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setSecurityPolicyBackendServiceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setSecurityPolicyBackendServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockBackendServices.addResponse(resultOperation); ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]"); SecurityPolicyReference securityPolicyReferenceResource = SecurityPolicyReference.newBuilder().build(); - Operation actualResponse = - client.setSecurityPolicyBackendService(backendService, securityPolicyReferenceResource); + Void actualResponse = + client + .setSecurityPolicyBackendServiceAsync(backendService, securityPolicyReferenceResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -907,70 +693,36 @@ public void setSecurityPolicyBackendServiceExceptionTest() throws Exception { SecurityPolicyReference securityPolicyReferenceResource = SecurityPolicyReference.newBuilder().build(); - client.setSecurityPolicyBackendService(backendService, securityPolicyReferenceResource); + client + .setSecurityPolicyBackendServiceAsync(backendService, securityPolicyReferenceResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void updateBackendServiceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void updateBackendServiceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("updateBackendServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockBackendServices.addResponse(resultOperation); ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]"); BackendService backendServiceResource = BackendService.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = - client.updateBackendService(backendService, backendServiceResource, fieldMask); + Void actualResponse = + client.updateBackendServiceAsync(backendService, backendServiceResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1002,10 +754,12 @@ public void updateBackendServiceExceptionTest() throws Exception { BackendService backendServiceResource = BackendService.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.updateBackendService(backendService, backendServiceResource, fieldMask); + client.updateBackendServiceAsync(backendService, backendServiceResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/DiskClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/DiskClientTest.java index 1a19c5c59a4a..23ac25bb8e77 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/DiskClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/DiskClientTest.java @@ -42,6 +42,7 @@ import com.google.cloud.compute.v1.stub.DiskStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -163,59 +164,21 @@ public void aggregatedListDisksExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void createSnapshotDiskTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void createSnapshotDiskTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("createSnapshotDiskTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockDisks.addResponse(resultOperation); ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]"); Boolean guestFlush = false; Snapshot snapshotResource = Snapshot.newBuilder().build(); - Operation actualResponse = client.createSnapshotDisk(disk, guestFlush, snapshotResource); + Void actualResponse = client.createSnapshotDiskAsync(disk, guestFlush, snapshotResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -246,66 +209,30 @@ public void createSnapshotDiskExceptionTest() throws Exception { Boolean guestFlush = false; Snapshot snapshotResource = Snapshot.newBuilder().build(); - client.createSnapshotDisk(disk, guestFlush, snapshotResource); + client.createSnapshotDiskAsync(disk, guestFlush, snapshotResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void deleteDiskTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteDiskTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteDiskTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockDisks.addResponse(resultOperation); ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]"); - Operation actualResponse = client.deleteDisk(disk); + Void actualResponse = client.deleteDiskAsync(disk).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -334,10 +261,12 @@ public void deleteDiskExceptionTest() throws Exception { try { ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]"); - client.deleteDisk(disk); + client.deleteDiskAsync(disk).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -479,58 +408,20 @@ public void getIamPolicyDiskExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertDiskTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone2 = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertDiskTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone2.toString()) + .setName("insertDiskTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockDisks.addResponse(resultOperation); ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); Disk diskResource = Disk.newBuilder().build(); - Operation actualResponse = client.insertDisk(zone, diskResource); + Void actualResponse = client.insertDiskAsync(zone, diskResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -560,10 +451,12 @@ public void insertDiskExceptionTest() throws Exception { ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); Disk diskResource = Disk.newBuilder().build(); - client.insertDisk(zone, diskResource); + client.insertDiskAsync(zone, diskResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -629,58 +522,20 @@ public void listDisksExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void resizeDiskTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void resizeDiskTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("resizeDiskTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockDisks.addResponse(resultOperation); ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]"); DisksResizeRequest disksResizeRequestResource = DisksResizeRequest.newBuilder().build(); - Operation actualResponse = client.resizeDisk(disk, disksResizeRequestResource); + Void actualResponse = client.resizeDiskAsync(disk, disksResizeRequestResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -710,10 +565,12 @@ public void resizeDiskExceptionTest() throws Exception { ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]"); DisksResizeRequest disksResizeRequestResource = DisksResizeRequest.newBuilder().build(); - client.resizeDisk(disk, disksResizeRequestResource); + client.resizeDiskAsync(disk, disksResizeRequestResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -771,59 +628,21 @@ public void setIamPolicyDiskExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void setLabelsDiskTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setLabelsDiskTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setLabelsDiskTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockDisks.addResponse(resultOperation); ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]"); ZoneSetLabelsRequest zoneSetLabelsRequestResource = ZoneSetLabelsRequest.newBuilder().build(); - Operation actualResponse = client.setLabelsDisk(resource, zoneSetLabelsRequestResource); + Void actualResponse = client.setLabelsDiskAsync(resource, zoneSetLabelsRequestResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -854,10 +673,12 @@ public void setLabelsDiskExceptionTest() throws Exception { ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]"); ZoneSetLabelsRequest zoneSetLabelsRequestResource = ZoneSetLabelsRequest.newBuilder().build(); - client.setLabelsDisk(resource, zoneSetLabelsRequestResource); + client.setLabelsDiskAsync(resource, zoneSetLabelsRequestResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/FirewallClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/FirewallClientTest.java index b000a48f3f0f..f29fd6848216 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/FirewallClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/FirewallClientTest.java @@ -36,6 +36,7 @@ import com.google.cloud.compute.v1.stub.FirewallStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -89,57 +90,19 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void deleteFirewallTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteFirewallTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteFirewallTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockFirewalls.addResponse(resultOperation); ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]"); - Operation actualResponse = client.deleteFirewall(firewall); + Void actualResponse = client.deleteFirewallAsync(firewall).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -168,10 +131,12 @@ public void deleteFirewallExceptionTest() throws Exception { try { ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]"); - client.deleteFirewall(firewall); + client.deleteFirewallAsync(firewall).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -243,58 +208,20 @@ public void getFirewallExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertFirewallTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertFirewallTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertFirewallTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockFirewalls.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); Firewall firewallResource = Firewall.newBuilder().build(); - Operation actualResponse = client.insertFirewall(project, firewallResource); + Void actualResponse = client.insertFirewallAsync(project, firewallResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -324,10 +251,12 @@ public void insertFirewallExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); Firewall firewallResource = Firewall.newBuilder().build(); - client.insertFirewall(project, firewallResource); + client.insertFirewallAsync(project, firewallResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -393,59 +322,21 @@ public void listFirewallsExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void patchFirewallTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void patchFirewallTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("patchFirewallTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockFirewalls.addResponse(resultOperation); ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]"); Firewall firewallResource = Firewall.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = client.patchFirewall(firewall, firewallResource, fieldMask); + Void actualResponse = client.patchFirewallAsync(firewall, firewallResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -476,68 +367,32 @@ public void patchFirewallExceptionTest() throws Exception { Firewall firewallResource = Firewall.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.patchFirewall(firewall, firewallResource, fieldMask); + client.patchFirewallAsync(firewall, firewallResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void updateFirewallTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void updateFirewallTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("updateFirewallTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockFirewalls.addResponse(resultOperation); ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]"); Firewall firewallResource = Firewall.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = client.updateFirewall(firewall, firewallResource, fieldMask); + Void actualResponse = client.updateFirewallAsync(firewall, firewallResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -568,10 +423,12 @@ public void updateFirewallExceptionTest() throws Exception { Firewall firewallResource = Firewall.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.updateFirewall(firewall, firewallResource, fieldMask); + client.updateFirewallAsync(firewall, firewallResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ForwardingRuleClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ForwardingRuleClientTest.java index 88f0b6f50da5..4bec9e2bb830 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ForwardingRuleClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ForwardingRuleClientTest.java @@ -37,6 +37,7 @@ import com.google.cloud.compute.v1.stub.ForwardingRuleStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -154,58 +155,20 @@ public void aggregatedListForwardingRulesExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void deleteForwardingRuleTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteForwardingRuleTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteForwardingRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockForwardingRules.addResponse(resultOperation); ProjectRegionForwardingRuleName forwardingRule = ProjectRegionForwardingRuleName.of("[PROJECT]", "[REGION]", "[FORWARDING_RULE]"); - Operation actualResponse = client.deleteForwardingRule(forwardingRule); + Void actualResponse = client.deleteForwardingRuleAsync(forwardingRule).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -235,10 +198,12 @@ public void deleteForwardingRuleExceptionTest() throws Exception { ProjectRegionForwardingRuleName forwardingRule = ProjectRegionForwardingRuleName.of("[PROJECT]", "[REGION]", "[FORWARDING_RULE]"); - client.deleteForwardingRule(forwardingRule); + client.deleteForwardingRuleAsync(forwardingRule).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -332,58 +297,20 @@ public void getForwardingRuleExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertForwardingRuleTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region2 = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertForwardingRuleTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region2.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertForwardingRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockForwardingRules.addResponse(resultOperation); ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); ForwardingRule forwardingRuleResource = ForwardingRule.newBuilder().build(); - Operation actualResponse = client.insertForwardingRule(region, forwardingRuleResource); + Void actualResponse = client.insertForwardingRuleAsync(region, forwardingRuleResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -413,10 +340,12 @@ public void insertForwardingRuleExceptionTest() throws Exception { ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); ForwardingRule forwardingRuleResource = ForwardingRule.newBuilder().build(); - client.insertForwardingRule(region, forwardingRuleResource); + client.insertForwardingRuleAsync(region, forwardingRuleResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -482,60 +411,22 @@ public void listForwardingRulesExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void setTargetForwardingRuleTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setTargetForwardingRuleTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setTargetForwardingRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockForwardingRules.addResponse(resultOperation); ProjectRegionForwardingRuleName forwardingRule = ProjectRegionForwardingRuleName.of("[PROJECT]", "[REGION]", "[FORWARDING_RULE]"); TargetReference targetReferenceResource = TargetReference.newBuilder().build(); - Operation actualResponse = - client.setTargetForwardingRule(forwardingRule, targetReferenceResource); + Void actualResponse = + client.setTargetForwardingRuleAsync(forwardingRule, targetReferenceResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -566,10 +457,12 @@ public void setTargetForwardingRuleExceptionTest() throws Exception { ProjectRegionForwardingRuleName.of("[PROJECT]", "[REGION]", "[FORWARDING_RULE]"); TargetReference targetReferenceResource = TargetReference.newBuilder().build(); - client.setTargetForwardingRule(forwardingRule, targetReferenceResource); + client.setTargetForwardingRuleAsync(forwardingRule, targetReferenceResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalAddressClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalAddressClientTest.java index 3e1471aaf21c..65acb1d950ea 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalAddressClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalAddressClientTest.java @@ -34,6 +34,7 @@ import com.google.cloud.compute.v1.stub.GlobalAddressStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.List; @@ -84,57 +85,19 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void deleteGlobalAddressTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteGlobalAddressTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteGlobalAddressTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockGlobalAddresses.addResponse(resultOperation); ProjectGlobalAddressName address = ProjectGlobalAddressName.of("[PROJECT]", "[ADDRESS]"); - Operation actualResponse = client.deleteGlobalAddress(address); + Void actualResponse = client.deleteGlobalAddressAsync(address).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -163,10 +126,12 @@ public void deleteGlobalAddressExceptionTest() throws Exception { try { ProjectGlobalAddressName address = ProjectGlobalAddressName.of("[PROJECT]", "[ADDRESS]"); - client.deleteGlobalAddress(address); + client.deleteGlobalAddressAsync(address).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -251,58 +216,20 @@ public void getGlobalAddressExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertGlobalAddressTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertGlobalAddressTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertGlobalAddressTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockGlobalAddresses.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); Address addressResource = Address.newBuilder().build(); - Operation actualResponse = client.insertGlobalAddress(project, addressResource); + Void actualResponse = client.insertGlobalAddressAsync(project, addressResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -332,10 +259,12 @@ public void insertGlobalAddressExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); Address addressResource = Address.newBuilder().build(); - client.insertGlobalAddress(project, addressResource); + client.insertGlobalAddressAsync(project, addressResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalForwardingRuleClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalForwardingRuleClientTest.java index 88896124384b..79482b6f100c 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalForwardingRuleClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalForwardingRuleClientTest.java @@ -35,6 +35,7 @@ import com.google.cloud.compute.v1.stub.GlobalForwardingRuleStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.List; @@ -87,58 +88,20 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void deleteGlobalForwardingRuleTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteGlobalForwardingRuleTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteGlobalForwardingRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockGlobalForwardingRules.addResponse(resultOperation); ProjectGlobalForwardingRuleName forwardingRule = ProjectGlobalForwardingRuleName.of("[PROJECT]", "[FORWARDING_RULE]"); - Operation actualResponse = client.deleteGlobalForwardingRule(forwardingRule); + Void actualResponse = client.deleteGlobalForwardingRuleAsync(forwardingRule).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -168,10 +131,12 @@ public void deleteGlobalForwardingRuleExceptionTest() throws Exception { ProjectGlobalForwardingRuleName forwardingRule = ProjectGlobalForwardingRuleName.of("[PROJECT]", "[FORWARDING_RULE]"); - client.deleteGlobalForwardingRule(forwardingRule); + client.deleteGlobalForwardingRuleAsync(forwardingRule).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -265,58 +230,21 @@ public void getGlobalForwardingRuleExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertGlobalForwardingRuleTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertGlobalForwardingRuleTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertGlobalForwardingRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockGlobalForwardingRules.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); ForwardingRule forwardingRuleResource = ForwardingRule.newBuilder().build(); - Operation actualResponse = client.insertGlobalForwardingRule(project, forwardingRuleResource); + Void actualResponse = + client.insertGlobalForwardingRuleAsync(project, forwardingRuleResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -346,10 +274,12 @@ public void insertGlobalForwardingRuleExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); ForwardingRule forwardingRuleResource = ForwardingRule.newBuilder().build(); - client.insertGlobalForwardingRule(project, forwardingRuleResource); + client.insertGlobalForwardingRuleAsync(project, forwardingRuleResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -416,60 +346,22 @@ public void listGlobalForwardingRulesExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void setTargetGlobalForwardingRuleTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setTargetGlobalForwardingRuleTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setTargetGlobalForwardingRuleTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockGlobalForwardingRules.addResponse(resultOperation); ProjectGlobalForwardingRuleName forwardingRule = ProjectGlobalForwardingRuleName.of("[PROJECT]", "[FORWARDING_RULE]"); TargetReference targetReferenceResource = TargetReference.newBuilder().build(); - Operation actualResponse = - client.setTargetGlobalForwardingRule(forwardingRule, targetReferenceResource); + Void actualResponse = + client.setTargetGlobalForwardingRuleAsync(forwardingRule, targetReferenceResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -500,10 +392,12 @@ public void setTargetGlobalForwardingRuleExceptionTest() throws Exception { ProjectGlobalForwardingRuleName.of("[PROJECT]", "[FORWARDING_RULE]"); TargetReference targetReferenceResource = TargetReference.newBuilder().build(); - client.setTargetGlobalForwardingRule(forwardingRule, targetReferenceResource); + client.setTargetGlobalForwardingRuleAsync(forwardingRule, targetReferenceResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HealthCheckClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HealthCheckClientTest.java index 83b79f867534..1693481fdac4 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HealthCheckClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HealthCheckClientTest.java @@ -36,6 +36,7 @@ import com.google.cloud.compute.v1.stub.HealthCheckStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -89,58 +90,20 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void deleteHealthCheckTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteHealthCheckTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteHealthCheckTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockHealthChecks.addResponse(resultOperation); ProjectGlobalHealthCheckName healthCheck = ProjectGlobalHealthCheckName.of("[PROJECT]", "[HEALTH_CHECK]"); - Operation actualResponse = client.deleteHealthCheck(healthCheck); + Void actualResponse = client.deleteHealthCheckAsync(healthCheck).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -170,10 +133,12 @@ public void deleteHealthCheckExceptionTest() throws Exception { ProjectGlobalHealthCheckName healthCheck = ProjectGlobalHealthCheckName.of("[PROJECT]", "[HEALTH_CHECK]"); - client.deleteHealthCheck(healthCheck); + client.deleteHealthCheckAsync(healthCheck).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -249,58 +214,20 @@ public void getHealthCheckExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertHealthCheckTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertHealthCheckTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertHealthCheckTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockHealthChecks.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); HealthCheck healthCheckResource = HealthCheck.newBuilder().build(); - Operation actualResponse = client.insertHealthCheck(project, healthCheckResource); + Void actualResponse = client.insertHealthCheckAsync(project, healthCheckResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -330,10 +257,12 @@ public void insertHealthCheckExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); HealthCheck healthCheckResource = HealthCheck.newBuilder().build(); - client.insertHealthCheck(project, healthCheckResource); + client.insertHealthCheckAsync(project, healthCheckResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -399,60 +328,23 @@ public void listHealthChecksExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void patchHealthCheckTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void patchHealthCheckTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("patchHealthCheckTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockHealthChecks.addResponse(resultOperation); ProjectGlobalHealthCheckName healthCheck = ProjectGlobalHealthCheckName.of("[PROJECT]", "[HEALTH_CHECK]"); HealthCheck healthCheckResource = HealthCheck.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = client.patchHealthCheck(healthCheck, healthCheckResource, fieldMask); + Void actualResponse = + client.patchHealthCheckAsync(healthCheck, healthCheckResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -484,70 +376,34 @@ public void patchHealthCheckExceptionTest() throws Exception { HealthCheck healthCheckResource = HealthCheck.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.patchHealthCheck(healthCheck, healthCheckResource, fieldMask); + client.patchHealthCheckAsync(healthCheck, healthCheckResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void updateHealthCheckTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void updateHealthCheckTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("updateHealthCheckTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockHealthChecks.addResponse(resultOperation); ProjectGlobalHealthCheckName healthCheck = ProjectGlobalHealthCheckName.of("[PROJECT]", "[HEALTH_CHECK]"); HealthCheck healthCheckResource = HealthCheck.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = - client.updateHealthCheck(healthCheck, healthCheckResource, fieldMask); + Void actualResponse = + client.updateHealthCheckAsync(healthCheck, healthCheckResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -579,10 +435,12 @@ public void updateHealthCheckExceptionTest() throws Exception { HealthCheck healthCheckResource = HealthCheck.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.updateHealthCheck(healthCheck, healthCheckResource, fieldMask); + client.updateHealthCheckAsync(healthCheck, healthCheckResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpHealthCheckClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpHealthCheckClientTest.java index 744668a725a4..90703347b7b0 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpHealthCheckClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpHealthCheckClientTest.java @@ -36,6 +36,7 @@ import com.google.cloud.compute.v1.stub.HttpHealthCheckStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -89,58 +90,20 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void deleteHttpHealthCheckTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteHttpHealthCheckTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteHttpHealthCheckTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockHttpHealthChecks.addResponse(resultOperation); ProjectGlobalHttpHealthCheckName httpHealthCheck = ProjectGlobalHttpHealthCheckName.of("[PROJECT]", "[HTTP_HEALTH_CHECK]"); - Operation actualResponse = client.deleteHttpHealthCheck(httpHealthCheck); + Void actualResponse = client.deleteHttpHealthCheckAsync(httpHealthCheck).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -170,10 +133,12 @@ public void deleteHttpHealthCheckExceptionTest() throws Exception { ProjectGlobalHttpHealthCheckName httpHealthCheck = ProjectGlobalHttpHealthCheckName.of("[PROJECT]", "[HTTP_HEALTH_CHECK]"); - client.deleteHttpHealthCheck(httpHealthCheck); + client.deleteHttpHealthCheckAsync(httpHealthCheck).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -253,58 +218,20 @@ public void getHttpHealthCheckExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertHttpHealthCheckTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertHttpHealthCheckTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertHttpHealthCheckTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockHttpHealthChecks.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); HttpHealthCheck2 httpHealthCheckResource = HttpHealthCheck2.newBuilder().build(); - Operation actualResponse = client.insertHttpHealthCheck(project, httpHealthCheckResource); + Void actualResponse = client.insertHttpHealthCheckAsync(project, httpHealthCheckResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -334,10 +261,12 @@ public void insertHttpHealthCheckExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); HttpHealthCheck2 httpHealthCheckResource = HttpHealthCheck2.newBuilder().build(); - client.insertHttpHealthCheck(project, httpHealthCheckResource); + client.insertHttpHealthCheckAsync(project, httpHealthCheckResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -403,61 +332,23 @@ public void listHttpHealthChecksExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void patchHttpHealthCheckTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void patchHttpHealthCheckTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("patchHttpHealthCheckTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockHttpHealthChecks.addResponse(resultOperation); ProjectGlobalHttpHealthCheckName httpHealthCheck = ProjectGlobalHttpHealthCheckName.of("[PROJECT]", "[HTTP_HEALTH_CHECK]"); HttpHealthCheck2 httpHealthCheckResource = HttpHealthCheck2.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = - client.patchHttpHealthCheck(httpHealthCheck, httpHealthCheckResource, fieldMask); + Void actualResponse = + client.patchHttpHealthCheckAsync(httpHealthCheck, httpHealthCheckResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -489,70 +380,36 @@ public void patchHttpHealthCheckExceptionTest() throws Exception { HttpHealthCheck2 httpHealthCheckResource = HttpHealthCheck2.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.patchHttpHealthCheck(httpHealthCheck, httpHealthCheckResource, fieldMask); + client.patchHttpHealthCheckAsync(httpHealthCheck, httpHealthCheckResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void updateHttpHealthCheckTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void updateHttpHealthCheckTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("updateHttpHealthCheckTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockHttpHealthChecks.addResponse(resultOperation); ProjectGlobalHttpHealthCheckName httpHealthCheck = ProjectGlobalHttpHealthCheckName.of("[PROJECT]", "[HTTP_HEALTH_CHECK]"); HttpHealthCheck2 httpHealthCheckResource = HttpHealthCheck2.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = - client.updateHttpHealthCheck(httpHealthCheck, httpHealthCheckResource, fieldMask); + Void actualResponse = + client + .updateHttpHealthCheckAsync(httpHealthCheck, httpHealthCheckResource, fieldMask) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -584,10 +441,12 @@ public void updateHttpHealthCheckExceptionTest() throws Exception { HttpHealthCheck2 httpHealthCheckResource = HttpHealthCheck2.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.updateHttpHealthCheck(httpHealthCheck, httpHealthCheckResource, fieldMask); + client.updateHttpHealthCheckAsync(httpHealthCheck, httpHealthCheckResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpsHealthCheckClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpsHealthCheckClientTest.java index 597b5a9f5c1e..d8d61fe246a4 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpsHealthCheckClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpsHealthCheckClientTest.java @@ -36,6 +36,7 @@ import com.google.cloud.compute.v1.stub.HttpsHealthCheckStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -89,58 +90,20 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void deleteHttpsHealthCheckTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteHttpsHealthCheckTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteHttpsHealthCheckTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockHttpsHealthChecks.addResponse(resultOperation); ProjectGlobalHttpsHealthCheckName httpsHealthCheck = ProjectGlobalHttpsHealthCheckName.of("[PROJECT]", "[HTTPS_HEALTH_CHECK]"); - Operation actualResponse = client.deleteHttpsHealthCheck(httpsHealthCheck); + Void actualResponse = client.deleteHttpsHealthCheckAsync(httpsHealthCheck).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -170,10 +133,12 @@ public void deleteHttpsHealthCheckExceptionTest() throws Exception { ProjectGlobalHttpsHealthCheckName httpsHealthCheck = ProjectGlobalHttpsHealthCheckName.of("[PROJECT]", "[HTTPS_HEALTH_CHECK]"); - client.deleteHttpsHealthCheck(httpsHealthCheck); + client.deleteHttpsHealthCheckAsync(httpsHealthCheck).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -253,58 +218,21 @@ public void getHttpsHealthCheckExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertHttpsHealthCheckTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertHttpsHealthCheckTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertHttpsHealthCheckTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockHttpsHealthChecks.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); HttpsHealthCheck2 httpsHealthCheckResource = HttpsHealthCheck2.newBuilder().build(); - Operation actualResponse = client.insertHttpsHealthCheck(project, httpsHealthCheckResource); + Void actualResponse = + client.insertHttpsHealthCheckAsync(project, httpsHealthCheckResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -334,10 +262,12 @@ public void insertHttpsHealthCheckExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); HttpsHealthCheck2 httpsHealthCheckResource = HttpsHealthCheck2.newBuilder().build(); - client.insertHttpsHealthCheck(project, httpsHealthCheckResource); + client.insertHttpsHealthCheckAsync(project, httpsHealthCheckResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -403,61 +333,25 @@ public void listHttpsHealthChecksExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void patchHttpsHealthCheckTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void patchHttpsHealthCheckTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("patchHttpsHealthCheckTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockHttpsHealthChecks.addResponse(resultOperation); ProjectGlobalHttpsHealthCheckName httpsHealthCheck = ProjectGlobalHttpsHealthCheckName.of("[PROJECT]", "[HTTPS_HEALTH_CHECK]"); HttpsHealthCheck2 httpsHealthCheckResource = HttpsHealthCheck2.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = - client.patchHttpsHealthCheck(httpsHealthCheck, httpsHealthCheckResource, fieldMask); + Void actualResponse = + client + .patchHttpsHealthCheckAsync(httpsHealthCheck, httpsHealthCheckResource, fieldMask) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -489,70 +383,38 @@ public void patchHttpsHealthCheckExceptionTest() throws Exception { HttpsHealthCheck2 httpsHealthCheckResource = HttpsHealthCheck2.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.patchHttpsHealthCheck(httpsHealthCheck, httpsHealthCheckResource, fieldMask); + client + .patchHttpsHealthCheckAsync(httpsHealthCheck, httpsHealthCheckResource, fieldMask) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void updateHttpsHealthCheckTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void updateHttpsHealthCheckTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("updateHttpsHealthCheckTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockHttpsHealthChecks.addResponse(resultOperation); ProjectGlobalHttpsHealthCheckName httpsHealthCheck = ProjectGlobalHttpsHealthCheckName.of("[PROJECT]", "[HTTPS_HEALTH_CHECK]"); HttpsHealthCheck2 httpsHealthCheckResource = HttpsHealthCheck2.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = - client.updateHttpsHealthCheck(httpsHealthCheck, httpsHealthCheckResource, fieldMask); + Void actualResponse = + client + .updateHttpsHealthCheckAsync(httpsHealthCheck, httpsHealthCheckResource, fieldMask) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -584,10 +446,14 @@ public void updateHttpsHealthCheckExceptionTest() throws Exception { HttpsHealthCheck2 httpsHealthCheckResource = HttpsHealthCheck2.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.updateHttpsHealthCheck(httpsHealthCheck, httpsHealthCheckResource, fieldMask); + client + .updateHttpsHealthCheckAsync(httpsHealthCheck, httpsHealthCheckResource, fieldMask) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ImageClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ImageClientTest.java index db3b6e1a3a2e..0e42b637f4c8 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ImageClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ImageClientTest.java @@ -40,6 +40,7 @@ import com.google.cloud.compute.v1.stub.ImageStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.List; @@ -96,57 +97,19 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void deleteImageTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteImageTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteImageTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockImages.addResponse(resultOperation); ProjectGlobalImageName image = ProjectGlobalImageName.of("[PROJECT]", "[IMAGE]"); - Operation actualResponse = client.deleteImage(image); + Void actualResponse = client.deleteImageAsync(image).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -175,67 +138,31 @@ public void deleteImageExceptionTest() throws Exception { try { ProjectGlobalImageName image = ProjectGlobalImageName.of("[PROJECT]", "[IMAGE]"); - client.deleteImage(image); + client.deleteImageAsync(image).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void deprecateImageTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deprecateImageTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deprecateImageTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockImages.addResponse(resultOperation); ProjectGlobalImageName image = ProjectGlobalImageName.of("[PROJECT]", "[IMAGE]"); DeprecationStatus deprecationStatusResource = DeprecationStatus.newBuilder().build(); - Operation actualResponse = client.deprecateImage(image, deprecationStatusResource); + Void actualResponse = client.deprecateImageAsync(image, deprecationStatusResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -265,10 +192,12 @@ public void deprecateImageExceptionTest() throws Exception { ProjectGlobalImageName image = ProjectGlobalImageName.of("[PROJECT]", "[IMAGE]"); DeprecationStatus deprecationStatusResource = DeprecationStatus.newBuilder().build(); - client.deprecateImage(image, deprecationStatusResource); + client.deprecateImageAsync(image, deprecationStatusResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -489,59 +418,21 @@ public void getIamPolicyImageExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertImageTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertImageTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertImageTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockImages.addResponse(resultOperation); Boolean forceCreate = true; ProjectName project = ProjectName.of("[PROJECT]"); Image imageResource = Image.newBuilder().build(); - Operation actualResponse = client.insertImage(forceCreate, project, imageResource); + Void actualResponse = client.insertImageAsync(forceCreate, project, imageResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -572,10 +463,12 @@ public void insertImageExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); Image imageResource = Image.newBuilder().build(); - client.insertImage(forceCreate, project, imageResource); + client.insertImageAsync(forceCreate, project, imageResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -695,60 +588,23 @@ public void setIamPolicyImageExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void setLabelsImageTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setLabelsImageTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setLabelsImageTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockImages.addResponse(resultOperation); ProjectGlobalImageResourceName resource = ProjectGlobalImageResourceName.of("[PROJECT]", "[RESOURCE]"); GlobalSetLabelsRequest globalSetLabelsRequestResource = GlobalSetLabelsRequest.newBuilder().build(); - Operation actualResponse = client.setLabelsImage(resource, globalSetLabelsRequestResource); + Void actualResponse = + client.setLabelsImageAsync(resource, globalSetLabelsRequestResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -780,10 +636,12 @@ public void setLabelsImageExceptionTest() throws Exception { GlobalSetLabelsRequest globalSetLabelsRequestResource = GlobalSetLabelsRequest.newBuilder().build(); - client.setLabelsImage(resource, globalSetLabelsRequestResource); + client.setLabelsImageAsync(resource, globalSetLabelsRequestResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceClientTest.java index 55611efc3005..025428a1ebd4 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceClientTest.java @@ -63,6 +63,7 @@ import com.google.cloud.compute.v1.stub.InstanceStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -143,61 +144,23 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void addAccessConfigInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void addAccessConfigInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("addAccessConfigInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); String networkInterface = "networkInterface902258792"; AccessConfig accessConfigResource = AccessConfig.newBuilder().build(); - Operation actualResponse = - client.addAccessConfigInstance(instance, networkInterface, accessConfigResource); + Void actualResponse = + client.addAccessConfigInstanceAsync(instance, networkInterface, accessConfigResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -229,10 +192,12 @@ public void addAccessConfigInstanceExceptionTest() throws Exception { String networkInterface = "networkInterface902258792"; AccessConfig accessConfigResource = AccessConfig.newBuilder().build(); - client.addAccessConfigInstance(instance, networkInterface, accessConfigResource); + client.addAccessConfigInstanceAsync(instance, networkInterface, accessConfigResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -301,61 +266,23 @@ public void aggregatedListInstancesExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void attachDiskInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void attachDiskInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("attachDiskInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); Boolean forceAttach = false; AttachedDisk attachedDiskResource = AttachedDisk.newBuilder().build(); - Operation actualResponse = - client.attachDiskInstance(instance, forceAttach, attachedDiskResource); + Void actualResponse = + client.attachDiskInstanceAsync(instance, forceAttach, attachedDiskResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -387,67 +314,31 @@ public void attachDiskInstanceExceptionTest() throws Exception { Boolean forceAttach = false; AttachedDisk attachedDiskResource = AttachedDisk.newBuilder().build(); - client.attachDiskInstance(instance, forceAttach, attachedDiskResource); + client.attachDiskInstanceAsync(instance, forceAttach, attachedDiskResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void deleteInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); - Operation actualResponse = client.deleteInstance(instance); + Void actualResponse = client.deleteInstanceAsync(instance).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -477,70 +368,34 @@ public void deleteInstanceExceptionTest() throws Exception { ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); - client.deleteInstance(instance); + client.deleteInstanceAsync(instance).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void deleteAccessConfigInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteAccessConfigInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteAccessConfigInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); String networkInterface = "networkInterface902258792"; String accessConfig = "accessConfig-464014723"; - Operation actualResponse = - client.deleteAccessConfigInstance(instance, networkInterface, accessConfig); + Void actualResponse = + client.deleteAccessConfigInstanceAsync(instance, networkInterface, accessConfig).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -572,68 +427,32 @@ public void deleteAccessConfigInstanceExceptionTest() throws Exception { String networkInterface = "networkInterface902258792"; String accessConfig = "accessConfig-464014723"; - client.deleteAccessConfigInstance(instance, networkInterface, accessConfig); + client.deleteAccessConfigInstanceAsync(instance, networkInterface, accessConfig).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void detachDiskInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void detachDiskInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("detachDiskInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); String deviceName = "deviceName-1543071020"; - Operation actualResponse = client.detachDiskInstance(instance, deviceName); + Void actualResponse = client.detachDiskInstanceAsync(instance, deviceName).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -664,10 +483,12 @@ public void detachDiskInstanceExceptionTest() throws Exception { ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); String deviceName = "deviceName-1543071020"; - client.detachDiskInstance(instance, deviceName); + client.detachDiskInstanceAsync(instance, deviceName).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -868,58 +689,20 @@ public void getSerialPortOutputInstanceExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone2 = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone2.toString()) + .setName("insertInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); Instance instanceResource = Instance.newBuilder().build(); - Operation actualResponse = client.insertInstance(zone, instanceResource); + Void actualResponse = client.insertInstanceAsync(zone, instanceResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -949,10 +732,12 @@ public void insertInstanceExceptionTest() throws Exception { ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); Instance instanceResource = Instance.newBuilder().build(); - client.insertInstance(zone, instanceResource); + client.insertInstanceAsync(zone, instanceResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -1080,58 +865,20 @@ public void listReferrersInstancesExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void resetInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void resetInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("resetInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); - Operation actualResponse = client.resetInstance(instance); + Void actualResponse = client.resetInstanceAsync(instance).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1161,68 +908,33 @@ public void resetInstanceExceptionTest() throws Exception { ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); - client.resetInstance(instance); + client.resetInstanceAsync(instance).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setDeletionProtectionInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setDeletionProtectionInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setDeletionProtectionInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneInstanceResourceName resource = ProjectZoneInstanceResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]"); Boolean deletionProtection = true; - Operation actualResponse = client.setDeletionProtectionInstance(resource, deletionProtection); + Void actualResponse = + client.setDeletionProtectionInstanceAsync(resource, deletionProtection).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1253,69 +965,34 @@ public void setDeletionProtectionInstanceExceptionTest() throws Exception { ProjectZoneInstanceResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]"); Boolean deletionProtection = true; - client.setDeletionProtectionInstance(resource, deletionProtection); + client.setDeletionProtectionInstanceAsync(resource, deletionProtection).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setDiskAutoDeleteInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setDiskAutoDeleteInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setDiskAutoDeleteInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); Boolean autoDelete = false; String deviceName = "deviceName-1543071020"; - Operation actualResponse = client.setDiskAutoDeleteInstance(instance, autoDelete, deviceName); + Void actualResponse = + client.setDiskAutoDeleteInstanceAsync(instance, autoDelete, deviceName).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1347,10 +1024,12 @@ public void setDiskAutoDeleteInstanceExceptionTest() throws Exception { Boolean autoDelete = false; String deviceName = "deviceName-1543071020"; - client.setDiskAutoDeleteInstance(instance, autoDelete, deviceName); + client.setDiskAutoDeleteInstanceAsync(instance, autoDelete, deviceName).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -1408,61 +1087,23 @@ public void setIamPolicyInstanceExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void setLabelsInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setLabelsInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setLabelsInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); InstancesSetLabelsRequest instancesSetLabelsRequestResource = InstancesSetLabelsRequest.newBuilder().build(); - Operation actualResponse = - client.setLabelsInstance(instance, instancesSetLabelsRequestResource); + Void actualResponse = + client.setLabelsInstanceAsync(instance, instancesSetLabelsRequestResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1494,70 +1135,36 @@ public void setLabelsInstanceExceptionTest() throws Exception { InstancesSetLabelsRequest instancesSetLabelsRequestResource = InstancesSetLabelsRequest.newBuilder().build(); - client.setLabelsInstance(instance, instancesSetLabelsRequestResource); + client.setLabelsInstanceAsync(instance, instancesSetLabelsRequestResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setMachineResourcesInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setMachineResourcesInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setMachineResourcesInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); InstancesSetMachineResourcesRequest instancesSetMachineResourcesRequestResource = InstancesSetMachineResourcesRequest.newBuilder().build(); - Operation actualResponse = - client.setMachineResourcesInstance(instance, instancesSetMachineResourcesRequestResource); + Void actualResponse = + client + .setMachineResourcesInstanceAsync(instance, instancesSetMachineResourcesRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1589,70 +1196,36 @@ public void setMachineResourcesInstanceExceptionTest() throws Exception { InstancesSetMachineResourcesRequest instancesSetMachineResourcesRequestResource = InstancesSetMachineResourcesRequest.newBuilder().build(); - client.setMachineResourcesInstance(instance, instancesSetMachineResourcesRequestResource); + client + .setMachineResourcesInstanceAsync(instance, instancesSetMachineResourcesRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setMachineTypeInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setMachineTypeInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setMachineTypeInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); InstancesSetMachineTypeRequest instancesSetMachineTypeRequestResource = InstancesSetMachineTypeRequest.newBuilder().build(); - Operation actualResponse = - client.setMachineTypeInstance(instance, instancesSetMachineTypeRequestResource); + Void actualResponse = + client.setMachineTypeInstanceAsync(instance, instancesSetMachineTypeRequestResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1684,68 +1257,32 @@ public void setMachineTypeInstanceExceptionTest() throws Exception { InstancesSetMachineTypeRequest instancesSetMachineTypeRequestResource = InstancesSetMachineTypeRequest.newBuilder().build(); - client.setMachineTypeInstance(instance, instancesSetMachineTypeRequestResource); + client.setMachineTypeInstanceAsync(instance, instancesSetMachineTypeRequestResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setMetadataInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setMetadataInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setMetadataInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); Metadata metadataResource = Metadata.newBuilder().build(); - Operation actualResponse = client.setMetadataInstance(instance, metadataResource); + Void actualResponse = client.setMetadataInstanceAsync(instance, metadataResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1776,70 +1313,36 @@ public void setMetadataInstanceExceptionTest() throws Exception { ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); Metadata metadataResource = Metadata.newBuilder().build(); - client.setMetadataInstance(instance, metadataResource); + client.setMetadataInstanceAsync(instance, metadataResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setMinCpuPlatformInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setMinCpuPlatformInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setMinCpuPlatformInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); InstancesSetMinCpuPlatformRequest instancesSetMinCpuPlatformRequestResource = InstancesSetMinCpuPlatformRequest.newBuilder().build(); - Operation actualResponse = - client.setMinCpuPlatformInstance(instance, instancesSetMinCpuPlatformRequestResource); + Void actualResponse = + client + .setMinCpuPlatformInstanceAsync(instance, instancesSetMinCpuPlatformRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1871,68 +1374,34 @@ public void setMinCpuPlatformInstanceExceptionTest() throws Exception { InstancesSetMinCpuPlatformRequest instancesSetMinCpuPlatformRequestResource = InstancesSetMinCpuPlatformRequest.newBuilder().build(); - client.setMinCpuPlatformInstance(instance, instancesSetMinCpuPlatformRequestResource); + client + .setMinCpuPlatformInstanceAsync(instance, instancesSetMinCpuPlatformRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setSchedulingInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setSchedulingInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setSchedulingInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); Scheduling schedulingResource = Scheduling.newBuilder().build(); - Operation actualResponse = client.setSchedulingInstance(instance, schedulingResource); + Void actualResponse = client.setSchedulingInstanceAsync(instance, schedulingResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1963,70 +1432,36 @@ public void setSchedulingInstanceExceptionTest() throws Exception { ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); Scheduling schedulingResource = Scheduling.newBuilder().build(); - client.setSchedulingInstance(instance, schedulingResource); + client.setSchedulingInstanceAsync(instance, schedulingResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setServiceAccountInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setServiceAccountInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setServiceAccountInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); InstancesSetServiceAccountRequest instancesSetServiceAccountRequestResource = InstancesSetServiceAccountRequest.newBuilder().build(); - Operation actualResponse = - client.setServiceAccountInstance(instance, instancesSetServiceAccountRequestResource); + Void actualResponse = + client + .setServiceAccountInstanceAsync(instance, instancesSetServiceAccountRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2058,68 +1493,34 @@ public void setServiceAccountInstanceExceptionTest() throws Exception { InstancesSetServiceAccountRequest instancesSetServiceAccountRequestResource = InstancesSetServiceAccountRequest.newBuilder().build(); - client.setServiceAccountInstance(instance, instancesSetServiceAccountRequestResource); + client + .setServiceAccountInstanceAsync(instance, instancesSetServiceAccountRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setTagsInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setTagsInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setTagsInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); Tags tagsResource = Tags.newBuilder().build(); - Operation actualResponse = client.setTagsInstance(instance, tagsResource); + Void actualResponse = client.setTagsInstanceAsync(instance, tagsResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2150,67 +1551,31 @@ public void setTagsInstanceExceptionTest() throws Exception { ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); Tags tagsResource = Tags.newBuilder().build(); - client.setTagsInstance(instance, tagsResource); + client.setTagsInstanceAsync(instance, tagsResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void simulateMaintenanceEventInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void simulateMaintenanceEventInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("simulateMaintenanceEventInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); - Operation actualResponse = client.simulateMaintenanceEventInstance(instance); + Void actualResponse = client.simulateMaintenanceEventInstanceAsync(instance).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2240,67 +1605,31 @@ public void simulateMaintenanceEventInstanceExceptionTest() throws Exception { ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); - client.simulateMaintenanceEventInstance(instance); + client.simulateMaintenanceEventInstanceAsync(instance).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void startInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void startInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("startInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); - Operation actualResponse = client.startInstance(instance); + Void actualResponse = client.startInstanceAsync(instance).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2330,71 +1659,37 @@ public void startInstanceExceptionTest() throws Exception { ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); - client.startInstance(instance); + client.startInstanceAsync(instance).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void startWithEncryptionKeyInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void startWithEncryptionKeyInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("startWithEncryptionKeyInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); InstancesStartWithEncryptionKeyRequest instancesStartWithEncryptionKeyRequestResource = InstancesStartWithEncryptionKeyRequest.newBuilder().build(); - Operation actualResponse = - client.startWithEncryptionKeyInstance( - instance, instancesStartWithEncryptionKeyRequestResource); + Void actualResponse = + client + .startWithEncryptionKeyInstanceAsync( + instance, instancesStartWithEncryptionKeyRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2426,68 +1721,34 @@ public void startWithEncryptionKeyInstanceExceptionTest() throws Exception { InstancesStartWithEncryptionKeyRequest instancesStartWithEncryptionKeyRequestResource = InstancesStartWithEncryptionKeyRequest.newBuilder().build(); - client.startWithEncryptionKeyInstance( - instance, instancesStartWithEncryptionKeyRequestResource); + client + .startWithEncryptionKeyInstanceAsync( + instance, instancesStartWithEncryptionKeyRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void stopInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void stopInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("stopInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); - Operation actualResponse = client.stopInstance(instance); + Void actualResponse = client.stopInstanceAsync(instance).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2517,10 +1778,12 @@ public void stopInstanceExceptionTest() throws Exception { ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); - client.stopInstance(instance); + client.stopInstanceAsync(instance).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -2577,61 +1840,25 @@ public void testIamPermissionsInstanceExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void updateAccessConfigInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void updateAccessConfigInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("updateAccessConfigInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); String networkInterface = "networkInterface902258792"; AccessConfig accessConfigResource = AccessConfig.newBuilder().build(); - Operation actualResponse = - client.updateAccessConfigInstance(instance, networkInterface, accessConfigResource); + Void actualResponse = + client + .updateAccessConfigInstanceAsync(instance, networkInterface, accessConfigResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2663,62 +1890,28 @@ public void updateAccessConfigInstanceExceptionTest() throws Exception { String networkInterface = "networkInterface902258792"; AccessConfig accessConfigResource = AccessConfig.newBuilder().build(); - client.updateAccessConfigInstance(instance, networkInterface, accessConfigResource); + client + .updateAccessConfigInstanceAsync(instance, networkInterface, accessConfigResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void updateNetworkInterfaceInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void updateNetworkInterfaceInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("updateNetworkInterfaceInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstances.addResponse(resultOperation); ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); @@ -2726,9 +1919,11 @@ public void updateNetworkInterfaceInstanceTest() { NetworkInterface networkInterfaceResource = NetworkInterface.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = - client.updateNetworkInterfaceInstance( - instance, networkInterface, networkInterfaceResource, fieldMask); + Void actualResponse = + client + .updateNetworkInterfaceInstanceAsync( + instance, networkInterface, networkInterfaceResource, fieldMask) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2761,11 +1956,15 @@ public void updateNetworkInterfaceInstanceExceptionTest() throws Exception { NetworkInterface networkInterfaceResource = NetworkInterface.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.updateNetworkInterfaceInstance( - instance, networkInterface, networkInterfaceResource, fieldMask); + client + .updateNetworkInterfaceInstanceAsync( + instance, networkInterface, networkInterfaceResource, fieldMask) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupClientTest.java index af1ee4f7fb90..1ec71502fea0 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupClientTest.java @@ -41,6 +41,7 @@ import com.google.cloud.compute.v1.stub.InstanceGroupStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -98,61 +99,26 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void addInstancesInstanceGroupTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void addInstancesInstanceGroupTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("addInstancesInstanceGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstanceGroups.addResponse(resultOperation); ProjectZoneInstanceGroupName instanceGroup = ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]"); InstanceGroupsAddInstancesRequest instanceGroupsAddInstancesRequestResource = InstanceGroupsAddInstancesRequest.newBuilder().build(); - Operation actualResponse = - client.addInstancesInstanceGroup(instanceGroup, instanceGroupsAddInstancesRequestResource); + Void actualResponse = + client + .addInstancesInstanceGroupAsync( + instanceGroup, instanceGroupsAddInstancesRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -184,10 +150,14 @@ public void addInstancesInstanceGroupExceptionTest() throws Exception { InstanceGroupsAddInstancesRequest instanceGroupsAddInstancesRequestResource = InstanceGroupsAddInstancesRequest.newBuilder().build(); - client.addInstancesInstanceGroup(instanceGroup, instanceGroupsAddInstancesRequestResource); + client + .addInstancesInstanceGroupAsync(instanceGroup, instanceGroupsAddInstancesRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -256,58 +226,20 @@ public void aggregatedListInstanceGroupsExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void deleteInstanceGroupTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteInstanceGroupTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteInstanceGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstanceGroups.addResponse(resultOperation); ProjectZoneInstanceGroupName instanceGroup = ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]"); - Operation actualResponse = client.deleteInstanceGroup(instanceGroup); + Void actualResponse = client.deleteInstanceGroupAsync(instanceGroup).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -337,10 +269,12 @@ public void deleteInstanceGroupExceptionTest() throws Exception { ProjectZoneInstanceGroupName instanceGroup = ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]"); - client.deleteInstanceGroup(instanceGroup); + client.deleteInstanceGroupAsync(instanceGroup).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -419,58 +353,20 @@ public void getInstanceGroupExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertInstanceGroupTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone2 = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertInstanceGroupTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone2.toString()) + .setName("insertInstanceGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstanceGroups.addResponse(resultOperation); ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); InstanceGroup instanceGroupResource = InstanceGroup.newBuilder().build(); - Operation actualResponse = client.insertInstanceGroup(zone, instanceGroupResource); + Void actualResponse = client.insertInstanceGroupAsync(zone, instanceGroupResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -500,10 +396,12 @@ public void insertInstanceGroupExceptionTest() throws Exception { ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); InstanceGroup instanceGroupResource = InstanceGroup.newBuilder().build(); - client.insertInstanceGroup(zone, instanceGroupResource); + client.insertInstanceGroupAsync(zone, instanceGroupResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -637,62 +535,26 @@ public void listInstancesInstanceGroupsExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void removeInstancesInstanceGroupTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void removeInstancesInstanceGroupTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("removeInstancesInstanceGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstanceGroups.addResponse(resultOperation); ProjectZoneInstanceGroupName instanceGroup = ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]"); InstanceGroupsRemoveInstancesRequest instanceGroupsRemoveInstancesRequestResource = InstanceGroupsRemoveInstancesRequest.newBuilder().build(); - Operation actualResponse = - client.removeInstancesInstanceGroup( - instanceGroup, instanceGroupsRemoveInstancesRequestResource); + Void actualResponse = + client + .removeInstancesInstanceGroupAsync( + instanceGroup, instanceGroupsRemoveInstancesRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -724,72 +586,40 @@ public void removeInstancesInstanceGroupExceptionTest() throws Exception { InstanceGroupsRemoveInstancesRequest instanceGroupsRemoveInstancesRequestResource = InstanceGroupsRemoveInstancesRequest.newBuilder().build(); - client.removeInstancesInstanceGroup( - instanceGroup, instanceGroupsRemoveInstancesRequestResource); + client + .removeInstancesInstanceGroupAsync( + instanceGroup, instanceGroupsRemoveInstancesRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setNamedPortsInstanceGroupTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setNamedPortsInstanceGroupTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setNamedPortsInstanceGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstanceGroups.addResponse(resultOperation); ProjectZoneInstanceGroupName instanceGroup = ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]"); InstanceGroupsSetNamedPortsRequest instanceGroupsSetNamedPortsRequestResource = InstanceGroupsSetNamedPortsRequest.newBuilder().build(); - Operation actualResponse = - client.setNamedPortsInstanceGroup( - instanceGroup, instanceGroupsSetNamedPortsRequestResource); + Void actualResponse = + client + .setNamedPortsInstanceGroupAsync( + instanceGroup, instanceGroupsSetNamedPortsRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -821,10 +651,15 @@ public void setNamedPortsInstanceGroupExceptionTest() throws Exception { InstanceGroupsSetNamedPortsRequest instanceGroupsSetNamedPortsRequestResource = InstanceGroupsSetNamedPortsRequest.newBuilder().build(); - client.setNamedPortsInstanceGroup(instanceGroup, instanceGroupsSetNamedPortsRequestResource); + client + .setNamedPortsInstanceGroupAsync( + instanceGroup, instanceGroupsSetNamedPortsRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupManagerClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupManagerClientTest.java index 78b7e7d2950d..b1016470e995 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupManagerClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupManagerClientTest.java @@ -44,6 +44,7 @@ import com.google.cloud.compute.v1.stub.InstanceGroupManagerStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -107,53 +108,15 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void abandonInstancesInstanceGroupManagerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void abandonInstancesInstanceGroupManagerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("abandonInstancesInstanceGroupManagerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstanceGroupManagers.addResponse(resultOperation); ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); @@ -161,9 +124,11 @@ public void abandonInstancesInstanceGroupManagerTest() { instanceGroupManagersAbandonInstancesRequestResource = InstanceGroupManagersAbandonInstancesRequest.newBuilder().build(); - Operation actualResponse = - client.abandonInstancesInstanceGroupManager( - instanceGroupManager, instanceGroupManagersAbandonInstancesRequestResource); + Void actualResponse = + client + .abandonInstancesInstanceGroupManagerAsync( + instanceGroupManager, instanceGroupManagersAbandonInstancesRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -196,11 +161,15 @@ public void abandonInstancesInstanceGroupManagerExceptionTest() throws Exception instanceGroupManagersAbandonInstancesRequestResource = InstanceGroupManagersAbandonInstancesRequest.newBuilder().build(); - client.abandonInstancesInstanceGroupManager( - instanceGroupManager, instanceGroupManagersAbandonInstancesRequestResource); + client + .abandonInstancesInstanceGroupManagerAsync( + instanceGroupManager, instanceGroupManagersAbandonInstancesRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -271,58 +240,20 @@ public void aggregatedListInstanceGroupManagersExceptionTest() throws Exception @Test @SuppressWarnings("all") - public void deleteInstanceGroupManagerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteInstanceGroupManagerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteInstanceGroupManagerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstanceGroupManagers.addResponse(resultOperation); ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); - Operation actualResponse = client.deleteInstanceGroupManager(instanceGroupManager); + Void actualResponse = client.deleteInstanceGroupManagerAsync(instanceGroupManager).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -352,62 +283,26 @@ public void deleteInstanceGroupManagerExceptionTest() throws Exception { ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); - client.deleteInstanceGroupManager(instanceGroupManager); + client.deleteInstanceGroupManagerAsync(instanceGroupManager).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void deleteInstancesInstanceGroupManagerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteInstancesInstanceGroupManagerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteInstancesInstanceGroupManagerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstanceGroupManagers.addResponse(resultOperation); ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); @@ -415,9 +310,11 @@ public void deleteInstancesInstanceGroupManagerTest() { instanceGroupManagersDeleteInstancesRequestResource = InstanceGroupManagersDeleteInstancesRequest.newBuilder().build(); - Operation actualResponse = - client.deleteInstancesInstanceGroupManager( - instanceGroupManager, instanceGroupManagersDeleteInstancesRequestResource); + Void actualResponse = + client + .deleteInstancesInstanceGroupManagerAsync( + instanceGroupManager, instanceGroupManagersDeleteInstancesRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -450,11 +347,15 @@ public void deleteInstancesInstanceGroupManagerExceptionTest() throws Exception instanceGroupManagersDeleteInstancesRequestResource = InstanceGroupManagersDeleteInstancesRequest.newBuilder().build(); - client.deleteInstancesInstanceGroupManager( - instanceGroupManager, instanceGroupManagersDeleteInstancesRequestResource); + client + .deleteInstancesInstanceGroupManagerAsync( + instanceGroupManager, instanceGroupManagersDeleteInstancesRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -536,59 +437,21 @@ public void getInstanceGroupManagerExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertInstanceGroupManagerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone2 = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertInstanceGroupManagerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone2.toString()) + .setName("insertInstanceGroupManagerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstanceGroupManagers.addResponse(resultOperation); ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build(); - Operation actualResponse = - client.insertInstanceGroupManager(zone, instanceGroupManagerResource); + Void actualResponse = + client.insertInstanceGroupManagerAsync(zone, instanceGroupManagerResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -618,10 +481,12 @@ public void insertInstanceGroupManagerExceptionTest() throws Exception { ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build(); - client.insertInstanceGroupManager(zone, instanceGroupManagerResource); + client.insertInstanceGroupManagerAsync(zone, instanceGroupManagerResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -736,62 +601,26 @@ public void listManagedInstancesInstanceGroupManagersExceptionTest() throws Exce @Test @SuppressWarnings("all") - public void patchInstanceGroupManagerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void patchInstanceGroupManagerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("patchInstanceGroupManagerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstanceGroupManagers.addResponse(resultOperation); ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = - client.patchInstanceGroupManager( - instanceGroupManager, instanceGroupManagerResource, fieldMask); + Void actualResponse = + client + .patchInstanceGroupManagerAsync( + instanceGroupManager, instanceGroupManagerResource, fieldMask) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -823,63 +652,29 @@ public void patchInstanceGroupManagerExceptionTest() throws Exception { InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.patchInstanceGroupManager( - instanceGroupManager, instanceGroupManagerResource, fieldMask); + client + .patchInstanceGroupManagerAsync( + instanceGroupManager, instanceGroupManagerResource, fieldMask) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void recreateInstancesInstanceGroupManagerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void recreateInstancesInstanceGroupManagerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("recreateInstancesInstanceGroupManagerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstanceGroupManagers.addResponse(resultOperation); ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); @@ -887,9 +682,11 @@ public void recreateInstancesInstanceGroupManagerTest() { instanceGroupManagersRecreateInstancesRequestResource = InstanceGroupManagersRecreateInstancesRequest.newBuilder().build(); - Operation actualResponse = - client.recreateInstancesInstanceGroupManager( - instanceGroupManager, instanceGroupManagersRecreateInstancesRequestResource); + Void actualResponse = + client + .recreateInstancesInstanceGroupManagerAsync( + instanceGroupManager, instanceGroupManagersRecreateInstancesRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -922,69 +719,35 @@ public void recreateInstancesInstanceGroupManagerExceptionTest() throws Exceptio instanceGroupManagersRecreateInstancesRequestResource = InstanceGroupManagersRecreateInstancesRequest.newBuilder().build(); - client.recreateInstancesInstanceGroupManager( - instanceGroupManager, instanceGroupManagersRecreateInstancesRequestResource); + client + .recreateInstancesInstanceGroupManagerAsync( + instanceGroupManager, instanceGroupManagersRecreateInstancesRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void resizeInstanceGroupManagerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void resizeInstanceGroupManagerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("resizeInstanceGroupManagerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstanceGroupManagers.addResponse(resultOperation); Integer size = 3530753; ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); - Operation actualResponse = client.resizeInstanceGroupManager(size, instanceGroupManager); + Void actualResponse = client.resizeInstanceGroupManagerAsync(size, instanceGroupManager).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1015,62 +778,26 @@ public void resizeInstanceGroupManagerExceptionTest() throws Exception { ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); - client.resizeInstanceGroupManager(size, instanceGroupManager); + client.resizeInstanceGroupManagerAsync(size, instanceGroupManager).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setInstanceTemplateInstanceGroupManagerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setInstanceTemplateInstanceGroupManagerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setInstanceTemplateInstanceGroupManagerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstanceGroupManagers.addResponse(resultOperation); ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); @@ -1078,9 +805,11 @@ public void setInstanceTemplateInstanceGroupManagerTest() { instanceGroupManagersSetInstanceTemplateRequestResource = InstanceGroupManagersSetInstanceTemplateRequest.newBuilder().build(); - Operation actualResponse = - client.setInstanceTemplateInstanceGroupManager( - instanceGroupManager, instanceGroupManagersSetInstanceTemplateRequestResource); + Void actualResponse = + client + .setInstanceTemplateInstanceGroupManagerAsync( + instanceGroupManager, instanceGroupManagersSetInstanceTemplateRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1113,72 +842,40 @@ public void setInstanceTemplateInstanceGroupManagerExceptionTest() throws Except instanceGroupManagersSetInstanceTemplateRequestResource = InstanceGroupManagersSetInstanceTemplateRequest.newBuilder().build(); - client.setInstanceTemplateInstanceGroupManager( - instanceGroupManager, instanceGroupManagersSetInstanceTemplateRequestResource); + client + .setInstanceTemplateInstanceGroupManagerAsync( + instanceGroupManager, instanceGroupManagersSetInstanceTemplateRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setTargetPoolsInstanceGroupManagerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setTargetPoolsInstanceGroupManagerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setTargetPoolsInstanceGroupManagerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstanceGroupManagers.addResponse(resultOperation); ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); InstanceGroupManagersSetTargetPoolsRequest instanceGroupManagersSetTargetPoolsRequestResource = InstanceGroupManagersSetTargetPoolsRequest.newBuilder().build(); - Operation actualResponse = - client.setTargetPoolsInstanceGroupManager( - instanceGroupManager, instanceGroupManagersSetTargetPoolsRequestResource); + Void actualResponse = + client + .setTargetPoolsInstanceGroupManagerAsync( + instanceGroupManager, instanceGroupManagersSetTargetPoolsRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1211,11 +908,15 @@ public void setTargetPoolsInstanceGroupManagerExceptionTest() throws Exception { instanceGroupManagersSetTargetPoolsRequestResource = InstanceGroupManagersSetTargetPoolsRequest.newBuilder().build(); - client.setTargetPoolsInstanceGroupManager( - instanceGroupManager, instanceGroupManagersSetTargetPoolsRequestResource); + client + .setTargetPoolsInstanceGroupManagerAsync( + instanceGroupManager, instanceGroupManagersSetTargetPoolsRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceTemplateClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceTemplateClientTest.java index a064d105473b..b7ca5b91acb9 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceTemplateClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceTemplateClientTest.java @@ -37,6 +37,7 @@ import com.google.cloud.compute.v1.stub.InstanceTemplateStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.List; @@ -90,58 +91,20 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void deleteInstanceTemplateTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteInstanceTemplateTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteInstanceTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstanceTemplates.addResponse(resultOperation); ProjectGlobalInstanceTemplateName instanceTemplate = ProjectGlobalInstanceTemplateName.of("[PROJECT]", "[INSTANCE_TEMPLATE]"); - Operation actualResponse = client.deleteInstanceTemplate(instanceTemplate); + Void actualResponse = client.deleteInstanceTemplateAsync(instanceTemplate).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -171,10 +134,12 @@ public void deleteInstanceTemplateExceptionTest() throws Exception { ProjectGlobalInstanceTemplateName instanceTemplate = ProjectGlobalInstanceTemplateName.of("[PROJECT]", "[INSTANCE_TEMPLATE]"); - client.deleteInstanceTemplate(instanceTemplate); + client.deleteInstanceTemplateAsync(instanceTemplate).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -292,58 +257,21 @@ public void getIamPolicyInstanceTemplateExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertInstanceTemplateTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertInstanceTemplateTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertInstanceTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInstanceTemplates.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); InstanceTemplate instanceTemplateResource = InstanceTemplate.newBuilder().build(); - Operation actualResponse = client.insertInstanceTemplate(project, instanceTemplateResource); + Void actualResponse = + client.insertInstanceTemplateAsync(project, instanceTemplateResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -373,10 +301,12 @@ public void insertInstanceTemplateExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); InstanceTemplate instanceTemplateResource = InstanceTemplate.newBuilder().build(); - client.insertInstanceTemplate(project, instanceTemplateResource); + client.insertInstanceTemplateAsync(project, instanceTemplateResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectAttachmentClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectAttachmentClientTest.java index d2b3a68a9b61..c92a18b8f991 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectAttachmentClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectAttachmentClientTest.java @@ -37,6 +37,7 @@ import com.google.cloud.compute.v1.stub.InterconnectAttachmentStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -158,59 +159,21 @@ public void aggregatedListInterconnectAttachmentsExceptionTest() throws Exceptio @Test @SuppressWarnings("all") - public void deleteInterconnectAttachmentTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteInterconnectAttachmentTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteInterconnectAttachmentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInterconnectAttachments.addResponse(resultOperation); ProjectRegionInterconnectAttachmentName interconnectAttachment = ProjectRegionInterconnectAttachmentName.of( "[PROJECT]", "[REGION]", "[INTERCONNECT_ATTACHMENT]"); - Operation actualResponse = client.deleteInterconnectAttachment(interconnectAttachment); + Void actualResponse = client.deleteInterconnectAttachmentAsync(interconnectAttachment).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -241,10 +204,12 @@ public void deleteInterconnectAttachmentExceptionTest() throws Exception { ProjectRegionInterconnectAttachmentName.of( "[PROJECT]", "[REGION]", "[INTERCONNECT_ATTACHMENT]"); - client.deleteInterconnectAttachment(interconnectAttachment); + client.deleteInterconnectAttachmentAsync(interconnectAttachment).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -345,60 +310,22 @@ public void getInterconnectAttachmentExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertInterconnectAttachmentTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region2 = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertInterconnectAttachmentTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region2.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertInterconnectAttachmentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInterconnectAttachments.addResponse(resultOperation); ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); InterconnectAttachment interconnectAttachmentResource = InterconnectAttachment.newBuilder().build(); - Operation actualResponse = - client.insertInterconnectAttachment(region, interconnectAttachmentResource); + Void actualResponse = + client.insertInterconnectAttachmentAsync(region, interconnectAttachmentResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -429,10 +356,12 @@ public void insertInterconnectAttachmentExceptionTest() throws Exception { InterconnectAttachment interconnectAttachmentResource = InterconnectAttachment.newBuilder().build(); - client.insertInterconnectAttachment(region, interconnectAttachmentResource); + client.insertInterconnectAttachmentAsync(region, interconnectAttachmentResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -499,53 +428,15 @@ public void listInterconnectAttachmentsExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void patchInterconnectAttachmentTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void patchInterconnectAttachmentTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("patchInterconnectAttachmentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInterconnectAttachments.addResponse(resultOperation); ProjectRegionInterconnectAttachmentName interconnectAttachment = ProjectRegionInterconnectAttachmentName.of( @@ -554,9 +445,11 @@ public void patchInterconnectAttachmentTest() { InterconnectAttachment.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = - client.patchInterconnectAttachment( - interconnectAttachment, interconnectAttachmentResource, fieldMask); + Void actualResponse = + client + .patchInterconnectAttachmentAsync( + interconnectAttachment, interconnectAttachmentResource, fieldMask) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -590,11 +483,15 @@ public void patchInterconnectAttachmentExceptionTest() throws Exception { InterconnectAttachment.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.patchInterconnectAttachment( - interconnectAttachment, interconnectAttachmentResource, fieldMask); + client + .patchInterconnectAttachmentAsync( + interconnectAttachment, interconnectAttachmentResource, fieldMask) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectClientTest.java index 8b1fc0ef70ef..d7c6d3b38a16 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectClientTest.java @@ -36,6 +36,7 @@ import com.google.cloud.compute.v1.stub.InterconnectStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -89,58 +90,20 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void deleteInterconnectTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteInterconnectTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteInterconnectTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInterconnects.addResponse(resultOperation); ProjectGlobalInterconnectName interconnect = ProjectGlobalInterconnectName.of("[PROJECT]", "[INTERCONNECT]"); - Operation actualResponse = client.deleteInterconnect(interconnect); + Void actualResponse = client.deleteInterconnectAsync(interconnect).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -170,10 +133,12 @@ public void deleteInterconnectExceptionTest() throws Exception { ProjectGlobalInterconnectName interconnect = ProjectGlobalInterconnectName.of("[PROJECT]", "[INTERCONNECT]"); - client.deleteInterconnect(interconnect); + client.deleteInterconnectAsync(interconnect).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -313,58 +278,20 @@ public void getDiagnosticsInterconnectExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertInterconnectTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertInterconnectTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertInterconnectTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInterconnects.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); Interconnect interconnectResource = Interconnect.newBuilder().build(); - Operation actualResponse = client.insertInterconnect(project, interconnectResource); + Void actualResponse = client.insertInterconnectAsync(project, interconnectResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -394,10 +321,12 @@ public void insertInterconnectExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); Interconnect interconnectResource = Interconnect.newBuilder().build(); - client.insertInterconnect(project, interconnectResource); + client.insertInterconnectAsync(project, interconnectResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -463,61 +392,23 @@ public void listInterconnectsExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void patchInterconnectTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void patchInterconnectTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("patchInterconnectTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockInterconnects.addResponse(resultOperation); ProjectGlobalInterconnectName interconnect = ProjectGlobalInterconnectName.of("[PROJECT]", "[INTERCONNECT]"); Interconnect interconnectResource = Interconnect.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = - client.patchInterconnect(interconnect, interconnectResource, fieldMask); + Void actualResponse = + client.patchInterconnectAsync(interconnect, interconnectResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -549,10 +440,12 @@ public void patchInterconnectExceptionTest() throws Exception { Interconnect interconnectResource = Interconnect.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.patchInterconnect(interconnect, interconnectResource, fieldMask); + client.patchInterconnectAsync(interconnect, interconnectResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/LicenseClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/LicenseClientTest.java index a8601f219967..3d0fe02d25a5 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/LicenseClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/LicenseClientTest.java @@ -37,6 +37,7 @@ import com.google.cloud.compute.v1.stub.LicenseStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.List; @@ -90,57 +91,19 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void deleteLicenseTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteLicenseTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteLicenseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockLicenses.addResponse(resultOperation); ProjectGlobalLicenseName license = ProjectGlobalLicenseName.of("[PROJECT]", "[LICENSE]"); - Operation actualResponse = client.deleteLicense(license); + Void actualResponse = client.deleteLicenseAsync(license).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -169,10 +132,12 @@ public void deleteLicenseExceptionTest() throws Exception { try { ProjectGlobalLicenseName license = ProjectGlobalLicenseName.of("[PROJECT]", "[LICENSE]"); - client.deleteLicense(license); + client.deleteLicenseAsync(license).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -293,58 +258,20 @@ public void getIamPolicyLicenseExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertLicenseTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertLicenseTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertLicenseTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockLicenses.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); License licenseResource = License.newBuilder().build(); - Operation actualResponse = client.insertLicense(project, licenseResource); + Void actualResponse = client.insertLicenseAsync(project, licenseResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -374,10 +301,12 @@ public void insertLicenseExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); License licenseResource = License.newBuilder().build(); - client.insertLicense(project, licenseResource); + client.insertLicenseAsync(project, licenseResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworkClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworkClientTest.java index 544902c5ad13..fc286819f193 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworkClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworkClientTest.java @@ -38,6 +38,7 @@ import com.google.cloud.compute.v1.stub.NetworkStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -93,59 +94,22 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void addPeeringNetworkTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void addPeeringNetworkTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("addPeeringNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockNetworks.addResponse(resultOperation); ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]"); NetworksAddPeeringRequest networksAddPeeringRequestResource = NetworksAddPeeringRequest.newBuilder().build(); - Operation actualResponse = client.addPeeringNetwork(network, networksAddPeeringRequestResource); + Void actualResponse = + client.addPeeringNetworkAsync(network, networksAddPeeringRequestResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -176,66 +140,30 @@ public void addPeeringNetworkExceptionTest() throws Exception { NetworksAddPeeringRequest networksAddPeeringRequestResource = NetworksAddPeeringRequest.newBuilder().build(); - client.addPeeringNetwork(network, networksAddPeeringRequestResource); + client.addPeeringNetworkAsync(network, networksAddPeeringRequestResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void deleteNetworkTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteNetworkTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockNetworks.addResponse(resultOperation); ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]"); - Operation actualResponse = client.deleteNetwork(network); + Void actualResponse = client.deleteNetworkAsync(network).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -264,10 +192,12 @@ public void deleteNetworkExceptionTest() throws Exception { try { ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]"); - client.deleteNetwork(network); + client.deleteNetworkAsync(network).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -337,58 +267,20 @@ public void getNetworkExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertNetworkTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertNetworkTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockNetworks.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); Network networkResource = Network.newBuilder().build(); - Operation actualResponse = client.insertNetwork(project, networkResource); + Void actualResponse = client.insertNetworkAsync(project, networkResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -418,10 +310,12 @@ public void insertNetworkExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); Network networkResource = Network.newBuilder().build(); - client.insertNetwork(project, networkResource); + client.insertNetworkAsync(project, networkResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -487,59 +381,21 @@ public void listNetworksExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void patchNetworkTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void patchNetworkTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("patchNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockNetworks.addResponse(resultOperation); ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]"); Network networkResource = Network.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = client.patchNetwork(network, networkResource, fieldMask); + Void actualResponse = client.patchNetworkAsync(network, networkResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -570,69 +426,33 @@ public void patchNetworkExceptionTest() throws Exception { Network networkResource = Network.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.patchNetwork(network, networkResource, fieldMask); + client.patchNetworkAsync(network, networkResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void removePeeringNetworkTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void removePeeringNetworkTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("removePeeringNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockNetworks.addResponse(resultOperation); ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]"); NetworksRemovePeeringRequest networksRemovePeeringRequestResource = NetworksRemovePeeringRequest.newBuilder().build(); - Operation actualResponse = - client.removePeeringNetwork(network, networksRemovePeeringRequestResource); + Void actualResponse = + client.removePeeringNetworkAsync(network, networksRemovePeeringRequestResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -663,66 +483,30 @@ public void removePeeringNetworkExceptionTest() throws Exception { NetworksRemovePeeringRequest networksRemovePeeringRequestResource = NetworksRemovePeeringRequest.newBuilder().build(); - client.removePeeringNetwork(network, networksRemovePeeringRequestResource); + client.removePeeringNetworkAsync(network, networksRemovePeeringRequestResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void switchToCustomModeNetworkTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void switchToCustomModeNetworkTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("switchToCustomModeNetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockNetworks.addResponse(resultOperation); ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]"); - Operation actualResponse = client.switchToCustomModeNetwork(network); + Void actualResponse = client.switchToCustomModeNetworkAsync(network).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -751,10 +535,12 @@ public void switchToCustomModeNetworkExceptionTest() throws Exception { try { ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]"); - client.switchToCustomModeNetwork(network); + client.switchToCustomModeNetworkAsync(network).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeGroupClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeGroupClientTest.java index 7830a65b8731..87af1aaf04c2 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeGroupClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeGroupClientTest.java @@ -44,6 +44,7 @@ import com.google.cloud.compute.v1.stub.NodeGroupStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -104,61 +105,23 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void addNodesNodeGroupTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void addNodesNodeGroupTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("addNodesNodeGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockNodeGroups.addResponse(resultOperation); ProjectZoneNodeGroupName nodeGroup = ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]"); NodeGroupsAddNodesRequest nodeGroupsAddNodesRequestResource = NodeGroupsAddNodesRequest.newBuilder().build(); - Operation actualResponse = - client.addNodesNodeGroup(nodeGroup, nodeGroupsAddNodesRequestResource); + Void actualResponse = + client.addNodesNodeGroupAsync(nodeGroup, nodeGroupsAddNodesRequestResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -190,10 +153,12 @@ public void addNodesNodeGroupExceptionTest() throws Exception { NodeGroupsAddNodesRequest nodeGroupsAddNodesRequestResource = NodeGroupsAddNodesRequest.newBuilder().build(); - client.addNodesNodeGroup(nodeGroup, nodeGroupsAddNodesRequestResource); + client.addNodesNodeGroupAsync(nodeGroup, nodeGroupsAddNodesRequestResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -262,58 +227,20 @@ public void aggregatedListNodeGroupsExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void deleteNodeGroupTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteNodeGroupTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteNodeGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockNodeGroups.addResponse(resultOperation); ProjectZoneNodeGroupName nodeGroup = ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]"); - Operation actualResponse = client.deleteNodeGroup(nodeGroup); + Void actualResponse = client.deleteNodeGroupAsync(nodeGroup).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -343,70 +270,34 @@ public void deleteNodeGroupExceptionTest() throws Exception { ProjectZoneNodeGroupName nodeGroup = ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]"); - client.deleteNodeGroup(nodeGroup); + client.deleteNodeGroupAsync(nodeGroup).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void deleteNodesNodeGroupTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteNodesNodeGroupTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteNodesNodeGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockNodeGroups.addResponse(resultOperation); ProjectZoneNodeGroupName nodeGroup = ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]"); NodeGroupsDeleteNodesRequest nodeGroupsDeleteNodesRequestResource = NodeGroupsDeleteNodesRequest.newBuilder().build(); - Operation actualResponse = - client.deleteNodesNodeGroup(nodeGroup, nodeGroupsDeleteNodesRequestResource); + Void actualResponse = + client.deleteNodesNodeGroupAsync(nodeGroup, nodeGroupsDeleteNodesRequestResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -438,10 +329,12 @@ public void deleteNodesNodeGroupExceptionTest() throws Exception { NodeGroupsDeleteNodesRequest nodeGroupsDeleteNodesRequestResource = NodeGroupsDeleteNodesRequest.newBuilder().build(); - client.deleteNodesNodeGroup(nodeGroup, nodeGroupsDeleteNodesRequestResource); + client.deleteNodesNodeGroupAsync(nodeGroup, nodeGroupsDeleteNodesRequestResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -566,59 +459,22 @@ public void getIamPolicyNodeGroupExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertNodeGroupTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone2 = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertNodeGroupTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone2.toString()) + .setName("insertNodeGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockNodeGroups.addResponse(resultOperation); Integer initialNodeCount = 1682564205; ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); NodeGroup nodeGroupResource = NodeGroup.newBuilder().build(); - Operation actualResponse = client.insertNodeGroup(initialNodeCount, zone, nodeGroupResource); + Void actualResponse = + client.insertNodeGroupAsync(initialNodeCount, zone, nodeGroupResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -649,10 +505,12 @@ public void insertNodeGroupExceptionTest() throws Exception { ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); NodeGroup nodeGroupResource = NodeGroup.newBuilder().build(); - client.insertNodeGroup(initialNodeCount, zone, nodeGroupResource); + client.insertNodeGroupAsync(initialNodeCount, zone, nodeGroupResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -832,61 +690,25 @@ public void setIamPolicyNodeGroupExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void setNodeTemplateNodeGroupTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setNodeTemplateNodeGroupTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setNodeTemplateNodeGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockNodeGroups.addResponse(resultOperation); ProjectZoneNodeGroupName nodeGroup = ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]"); NodeGroupsSetNodeTemplateRequest nodeGroupsSetNodeTemplateRequestResource = NodeGroupsSetNodeTemplateRequest.newBuilder().build(); - Operation actualResponse = - client.setNodeTemplateNodeGroup(nodeGroup, nodeGroupsSetNodeTemplateRequestResource); + Void actualResponse = + client + .setNodeTemplateNodeGroupAsync(nodeGroup, nodeGroupsSetNodeTemplateRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -918,10 +740,14 @@ public void setNodeTemplateNodeGroupExceptionTest() throws Exception { NodeGroupsSetNodeTemplateRequest nodeGroupsSetNodeTemplateRequestResource = NodeGroupsSetNodeTemplateRequest.newBuilder().build(); - client.setNodeTemplateNodeGroup(nodeGroup, nodeGroupsSetNodeTemplateRequestResource); + client + .setNodeTemplateNodeGroupAsync(nodeGroup, nodeGroupsSetNodeTemplateRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeTemplateClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeTemplateClientTest.java index f43dd7ec6191..8dfa8e99557d 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeTemplateClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeTemplateClientTest.java @@ -39,6 +39,7 @@ import com.google.cloud.compute.v1.stub.NodeTemplateStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -158,58 +159,20 @@ public void aggregatedListNodeTemplatesExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void deleteNodeTemplateTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteNodeTemplateTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteNodeTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockNodeTemplates.addResponse(resultOperation); ProjectRegionNodeTemplateName nodeTemplate = ProjectRegionNodeTemplateName.of("[PROJECT]", "[REGION]", "[NODE_TEMPLATE]"); - Operation actualResponse = client.deleteNodeTemplate(nodeTemplate); + Void actualResponse = client.deleteNodeTemplateAsync(nodeTemplate).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -239,10 +202,12 @@ public void deleteNodeTemplateExceptionTest() throws Exception { ProjectRegionNodeTemplateName nodeTemplate = ProjectRegionNodeTemplateName.of("[PROJECT]", "[REGION]", "[NODE_TEMPLATE]"); - client.deleteNodeTemplate(nodeTemplate); + client.deleteNodeTemplateAsync(nodeTemplate).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -367,58 +332,20 @@ public void getIamPolicyNodeTemplateExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertNodeTemplateTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region2 = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertNodeTemplateTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region2.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertNodeTemplateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockNodeTemplates.addResponse(resultOperation); ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); NodeTemplate nodeTemplateResource = NodeTemplate.newBuilder().build(); - Operation actualResponse = client.insertNodeTemplate(region, nodeTemplateResource); + Void actualResponse = client.insertNodeTemplateAsync(region, nodeTemplateResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -448,10 +375,12 @@ public void insertNodeTemplateExceptionTest() throws Exception { ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); NodeTemplate nodeTemplateResource = NodeTemplate.newBuilder().build(); - client.insertNodeTemplate(region, nodeTemplateResource); + client.insertNodeTemplateAsync(region, nodeTemplateResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ProjectClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ProjectClientTest.java index d8e0c9de7d6d..b60ee4ccd899 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ProjectClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ProjectClientTest.java @@ -44,6 +44,7 @@ import com.google.cloud.compute.v1.stub.ProjectStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.List; @@ -103,57 +104,19 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void disableXpnHostProjectTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void disableXpnHostProjectTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("disableXpnHostProjectTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockProjects.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); - Operation actualResponse = client.disableXpnHostProject(project); + Void actualResponse = client.disableXpnHostProjectAsync(project).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -182,69 +145,35 @@ public void disableXpnHostProjectExceptionTest() throws Exception { try { ProjectName project = ProjectName.of("[PROJECT]"); - client.disableXpnHostProject(project); + client.disableXpnHostProjectAsync(project).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void disableXpnResourceProjectTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void disableXpnResourceProjectTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("disableXpnResourceProjectTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockProjects.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); ProjectsDisableXpnResourceRequest projectsDisableXpnResourceRequestResource = ProjectsDisableXpnResourceRequest.newBuilder().build(); - Operation actualResponse = - client.disableXpnResourceProject(project, projectsDisableXpnResourceRequestResource); + Void actualResponse = + client + .disableXpnResourceProjectAsync(project, projectsDisableXpnResourceRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -275,66 +204,32 @@ public void disableXpnResourceProjectExceptionTest() throws Exception { ProjectsDisableXpnResourceRequest projectsDisableXpnResourceRequestResource = ProjectsDisableXpnResourceRequest.newBuilder().build(); - client.disableXpnResourceProject(project, projectsDisableXpnResourceRequestResource); + client + .disableXpnResourceProjectAsync(project, projectsDisableXpnResourceRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void enableXpnHostProjectTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void enableXpnHostProjectTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("enableXpnHostProjectTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockProjects.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); - Operation actualResponse = client.enableXpnHostProject(project); + Void actualResponse = client.enableXpnHostProjectAsync(project).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -363,69 +258,35 @@ public void enableXpnHostProjectExceptionTest() throws Exception { try { ProjectName project = ProjectName.of("[PROJECT]"); - client.enableXpnHostProject(project); + client.enableXpnHostProjectAsync(project).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void enableXpnResourceProjectTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void enableXpnResourceProjectTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("enableXpnResourceProjectTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockProjects.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); ProjectsEnableXpnResourceRequest projectsEnableXpnResourceRequestResource = ProjectsEnableXpnResourceRequest.newBuilder().build(); - Operation actualResponse = - client.enableXpnResourceProject(project, projectsEnableXpnResourceRequestResource); + Void actualResponse = + client + .enableXpnResourceProjectAsync(project, projectsEnableXpnResourceRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -456,10 +317,12 @@ public void enableXpnResourceProjectExceptionTest() throws Exception { ProjectsEnableXpnResourceRequest projectsEnableXpnResourceRequestResource = ProjectsEnableXpnResourceRequest.newBuilder().build(); - client.enableXpnResourceProject(project, projectsEnableXpnResourceRequestResource); + client.enableXpnResourceProjectAsync(project, projectsEnableXpnResourceRequestResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -715,58 +578,20 @@ public void listXpnHostsProjectsExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void moveDiskProjectTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void moveDiskProjectTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("moveDiskProjectTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockProjects.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); DiskMoveRequest diskMoveRequestResource = DiskMoveRequest.newBuilder().build(); - Operation actualResponse = client.moveDiskProject(project, diskMoveRequestResource); + Void actualResponse = client.moveDiskProjectAsync(project, diskMoveRequestResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -796,67 +621,32 @@ public void moveDiskProjectExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); DiskMoveRequest diskMoveRequestResource = DiskMoveRequest.newBuilder().build(); - client.moveDiskProject(project, diskMoveRequestResource); + client.moveDiskProjectAsync(project, diskMoveRequestResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void moveInstanceProjectTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void moveInstanceProjectTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("moveInstanceProjectTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockProjects.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); InstanceMoveRequest instanceMoveRequestResource = InstanceMoveRequest.newBuilder().build(); - Operation actualResponse = client.moveInstanceProject(project, instanceMoveRequestResource); + Void actualResponse = + client.moveInstanceProjectAsync(project, instanceMoveRequestResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -886,67 +676,32 @@ public void moveInstanceProjectExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); InstanceMoveRequest instanceMoveRequestResource = InstanceMoveRequest.newBuilder().build(); - client.moveInstanceProject(project, instanceMoveRequestResource); + client.moveInstanceProjectAsync(project, instanceMoveRequestResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setCommonInstanceMetadataProjectTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setCommonInstanceMetadataProjectTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setCommonInstanceMetadataProjectTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockProjects.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); Metadata metadataResource = Metadata.newBuilder().build(); - Operation actualResponse = client.setCommonInstanceMetadataProject(project, metadataResource); + Void actualResponse = + client.setCommonInstanceMetadataProjectAsync(project, metadataResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -976,69 +731,36 @@ public void setCommonInstanceMetadataProjectExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); Metadata metadataResource = Metadata.newBuilder().build(); - client.setCommonInstanceMetadataProject(project, metadataResource); + client.setCommonInstanceMetadataProjectAsync(project, metadataResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setDefaultNetworkTierProjectTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setDefaultNetworkTierProjectTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setDefaultNetworkTierProjectTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockProjects.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); ProjectsSetDefaultNetworkTierRequest projectsSetDefaultNetworkTierRequestResource = ProjectsSetDefaultNetworkTierRequest.newBuilder().build(); - Operation actualResponse = - client.setDefaultNetworkTierProject(project, projectsSetDefaultNetworkTierRequestResource); + Void actualResponse = + client + .setDefaultNetworkTierProjectAsync( + project, projectsSetDefaultNetworkTierRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1069,68 +791,34 @@ public void setDefaultNetworkTierProjectExceptionTest() throws Exception { ProjectsSetDefaultNetworkTierRequest projectsSetDefaultNetworkTierRequestResource = ProjectsSetDefaultNetworkTierRequest.newBuilder().build(); - client.setDefaultNetworkTierProject(project, projectsSetDefaultNetworkTierRequestResource); + client + .setDefaultNetworkTierProjectAsync(project, projectsSetDefaultNetworkTierRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setUsageExportBucketProjectTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setUsageExportBucketProjectTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setUsageExportBucketProjectTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockProjects.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); UsageExportLocation usageExportLocationResource = UsageExportLocation.newBuilder().build(); - Operation actualResponse = - client.setUsageExportBucketProject(project, usageExportLocationResource); + Void actualResponse = + client.setUsageExportBucketProjectAsync(project, usageExportLocationResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1160,10 +848,12 @@ public void setUsageExportBucketProjectExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); UsageExportLocation usageExportLocationResource = UsageExportLocation.newBuilder().build(); - client.setUsageExportBucketProject(project, usageExportLocationResource); + client.setUsageExportBucketProjectAsync(project, usageExportLocationResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionAutoscalerClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionAutoscalerClientTest.java index da291a0dacaa..714542857137 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionAutoscalerClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionAutoscalerClientTest.java @@ -36,6 +36,7 @@ import com.google.cloud.compute.v1.stub.RegionAutoscalerStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -89,58 +90,20 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void deleteRegionAutoscalerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteRegionAutoscalerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteRegionAutoscalerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionAutoscalers.addResponse(resultOperation); ProjectRegionAutoscalerName autoscaler = ProjectRegionAutoscalerName.of("[PROJECT]", "[REGION]", "[AUTOSCALER]"); - Operation actualResponse = client.deleteRegionAutoscaler(autoscaler); + Void actualResponse = client.deleteRegionAutoscalerAsync(autoscaler).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -170,10 +133,12 @@ public void deleteRegionAutoscalerExceptionTest() throws Exception { ProjectRegionAutoscalerName autoscaler = ProjectRegionAutoscalerName.of("[PROJECT]", "[REGION]", "[AUTOSCALER]"); - client.deleteRegionAutoscaler(autoscaler); + client.deleteRegionAutoscalerAsync(autoscaler).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -247,58 +212,20 @@ public void getRegionAutoscalerExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertRegionAutoscalerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region2 = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertRegionAutoscalerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region2.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertRegionAutoscalerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionAutoscalers.addResponse(resultOperation); ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); - Operation actualResponse = client.insertRegionAutoscaler(region, autoscalerResource); + Void actualResponse = client.insertRegionAutoscalerAsync(region, autoscalerResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -328,10 +255,12 @@ public void insertRegionAutoscalerExceptionTest() throws Exception { ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); - client.insertRegionAutoscaler(region, autoscalerResource); + client.insertRegionAutoscalerAsync(region, autoscalerResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -397,61 +326,23 @@ public void listRegionAutoscalersExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void patchRegionAutoscalerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region2 = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void patchRegionAutoscalerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region2.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("patchRegionAutoscalerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionAutoscalers.addResponse(resultOperation); String autoscaler = "autoscaler517258967"; ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = - client.patchRegionAutoscaler(autoscaler, region, autoscalerResource, fieldMask); + Void actualResponse = + client.patchRegionAutoscalerAsync(autoscaler, region, autoscalerResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -483,70 +374,34 @@ public void patchRegionAutoscalerExceptionTest() throws Exception { Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.patchRegionAutoscaler(autoscaler, region, autoscalerResource, fieldMask); + client.patchRegionAutoscalerAsync(autoscaler, region, autoscalerResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void updateRegionAutoscalerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region2 = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void updateRegionAutoscalerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region2.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("updateRegionAutoscalerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionAutoscalers.addResponse(resultOperation); String autoscaler = "autoscaler517258967"; ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = - client.updateRegionAutoscaler(autoscaler, region, autoscalerResource, fieldMask); + Void actualResponse = + client.updateRegionAutoscalerAsync(autoscaler, region, autoscalerResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -578,10 +433,12 @@ public void updateRegionAutoscalerExceptionTest() throws Exception { Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.updateRegionAutoscaler(autoscaler, region, autoscalerResource, fieldMask); + client.updateRegionAutoscalerAsync(autoscaler, region, autoscalerResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionBackendServiceClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionBackendServiceClientTest.java index 584bb8ea50bb..57d42d5e454c 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionBackendServiceClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionBackendServiceClientTest.java @@ -37,6 +37,7 @@ import com.google.cloud.compute.v1.stub.RegionBackendServiceStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -92,58 +93,20 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void deleteRegionBackendServiceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteRegionBackendServiceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteRegionBackendServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionBackendServices.addResponse(resultOperation); ProjectRegionBackendServiceName backendService = ProjectRegionBackendServiceName.of("[PROJECT]", "[REGION]", "[BACKEND_SERVICE]"); - Operation actualResponse = client.deleteRegionBackendService(backendService); + Void actualResponse = client.deleteRegionBackendServiceAsync(backendService).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -173,10 +136,12 @@ public void deleteRegionBackendServiceExceptionTest() throws Exception { ProjectRegionBackendServiceName backendService = ProjectRegionBackendServiceName.of("[PROJECT]", "[REGION]", "[BACKEND_SERVICE]"); - client.deleteRegionBackendService(backendService); + client.deleteRegionBackendServiceAsync(backendService).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -318,58 +283,21 @@ public void getHealthRegionBackendServiceExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertRegionBackendServiceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region2 = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertRegionBackendServiceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region2.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertRegionBackendServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionBackendServices.addResponse(resultOperation); ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); BackendService backendServiceResource = BackendService.newBuilder().build(); - Operation actualResponse = client.insertRegionBackendService(region, backendServiceResource); + Void actualResponse = + client.insertRegionBackendServiceAsync(region, backendServiceResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -399,10 +327,12 @@ public void insertRegionBackendServiceExceptionTest() throws Exception { ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); BackendService backendServiceResource = BackendService.newBuilder().build(); - client.insertRegionBackendService(region, backendServiceResource); + client.insertRegionBackendServiceAsync(region, backendServiceResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -469,61 +399,25 @@ public void listRegionBackendServicesExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void patchRegionBackendServiceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void patchRegionBackendServiceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("patchRegionBackendServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionBackendServices.addResponse(resultOperation); ProjectRegionBackendServiceName backendService = ProjectRegionBackendServiceName.of("[PROJECT]", "[REGION]", "[BACKEND_SERVICE]"); BackendService backendServiceResource = BackendService.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = - client.patchRegionBackendService(backendService, backendServiceResource, fieldMask); + Void actualResponse = + client + .patchRegionBackendServiceAsync(backendService, backendServiceResource, fieldMask) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -555,70 +449,38 @@ public void patchRegionBackendServiceExceptionTest() throws Exception { BackendService backendServiceResource = BackendService.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.patchRegionBackendService(backendService, backendServiceResource, fieldMask); + client + .patchRegionBackendServiceAsync(backendService, backendServiceResource, fieldMask) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void updateRegionBackendServiceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void updateRegionBackendServiceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("updateRegionBackendServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionBackendServices.addResponse(resultOperation); ProjectRegionBackendServiceName backendService = ProjectRegionBackendServiceName.of("[PROJECT]", "[REGION]", "[BACKEND_SERVICE]"); BackendService backendServiceResource = BackendService.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = - client.updateRegionBackendService(backendService, backendServiceResource, fieldMask); + Void actualResponse = + client + .updateRegionBackendServiceAsync(backendService, backendServiceResource, fieldMask) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -650,10 +512,14 @@ public void updateRegionBackendServiceExceptionTest() throws Exception { BackendService backendServiceResource = BackendService.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.updateRegionBackendService(backendService, backendServiceResource, fieldMask); + client + .updateRegionBackendServiceAsync(backendService, backendServiceResource, fieldMask) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionCommitmentClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionCommitmentClientTest.java index 7141e939bb43..34d49ddfbae4 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionCommitmentClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionCommitmentClientTest.java @@ -35,6 +35,7 @@ import com.google.cloud.compute.v1.stub.RegionCommitmentStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -222,58 +223,20 @@ public void getRegionCommitmentExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertRegionCommitmentTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region2 = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertRegionCommitmentTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region2.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertRegionCommitmentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionCommitments.addResponse(resultOperation); ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); Commitment commitmentResource = Commitment.newBuilder().build(); - Operation actualResponse = client.insertRegionCommitment(region, commitmentResource); + Void actualResponse = client.insertRegionCommitmentAsync(region, commitmentResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -303,10 +266,12 @@ public void insertRegionCommitmentExceptionTest() throws Exception { ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); Commitment commitmentResource = Commitment.newBuilder().build(); - client.insertRegionCommitment(region, commitmentResource); + client.insertRegionCommitmentAsync(region, commitmentResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionDiskClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionDiskClientTest.java index eed7b29ae388..9627fe26b99b 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionDiskClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionDiskClientTest.java @@ -38,6 +38,7 @@ import com.google.cloud.compute.v1.stub.RegionDiskStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.List; @@ -92,58 +93,20 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void createSnapshotRegionDiskTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void createSnapshotRegionDiskTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("createSnapshotRegionDiskTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionDisks.addResponse(resultOperation); ProjectRegionDiskName disk = ProjectRegionDiskName.of("[PROJECT]", "[REGION]", "[DISK]"); Snapshot snapshotResource = Snapshot.newBuilder().build(); - Operation actualResponse = client.createSnapshotRegionDisk(disk, snapshotResource); + Void actualResponse = client.createSnapshotRegionDiskAsync(disk, snapshotResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -173,66 +136,30 @@ public void createSnapshotRegionDiskExceptionTest() throws Exception { ProjectRegionDiskName disk = ProjectRegionDiskName.of("[PROJECT]", "[REGION]", "[DISK]"); Snapshot snapshotResource = Snapshot.newBuilder().build(); - client.createSnapshotRegionDisk(disk, snapshotResource); + client.createSnapshotRegionDiskAsync(disk, snapshotResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void deleteRegionDiskTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteRegionDiskTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteRegionDiskTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionDisks.addResponse(resultOperation); ProjectRegionDiskName disk = ProjectRegionDiskName.of("[PROJECT]", "[REGION]", "[DISK]"); - Operation actualResponse = client.deleteRegionDisk(disk); + Void actualResponse = client.deleteRegionDiskAsync(disk).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -261,10 +188,12 @@ public void deleteRegionDiskExceptionTest() throws Exception { try { ProjectRegionDiskName disk = ProjectRegionDiskName.of("[PROJECT]", "[REGION]", "[DISK]"); - client.deleteRegionDisk(disk); + client.deleteRegionDiskAsync(disk).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -356,58 +285,20 @@ public void getRegionDiskExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertRegionDiskTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region2 = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertRegionDiskTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region2.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertRegionDiskTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionDisks.addResponse(resultOperation); ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); Disk diskResource = Disk.newBuilder().build(); - Operation actualResponse = client.insertRegionDisk(region, diskResource); + Void actualResponse = client.insertRegionDiskAsync(region, diskResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -437,10 +328,12 @@ public void insertRegionDiskExceptionTest() throws Exception { ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); Disk diskResource = Disk.newBuilder().build(); - client.insertRegionDisk(region, diskResource); + client.insertRegionDiskAsync(region, diskResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -506,59 +399,22 @@ public void listRegionDisksExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void resizeRegionDiskTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void resizeRegionDiskTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("resizeRegionDiskTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionDisks.addResponse(resultOperation); ProjectRegionDiskName disk = ProjectRegionDiskName.of("[PROJECT]", "[REGION]", "[DISK]"); RegionDisksResizeRequest regionDisksResizeRequestResource = RegionDisksResizeRequest.newBuilder().build(); - Operation actualResponse = client.resizeRegionDisk(disk, regionDisksResizeRequestResource); + Void actualResponse = + client.resizeRegionDiskAsync(disk, regionDisksResizeRequestResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -589,69 +445,34 @@ public void resizeRegionDiskExceptionTest() throws Exception { RegionDisksResizeRequest regionDisksResizeRequestResource = RegionDisksResizeRequest.newBuilder().build(); - client.resizeRegionDisk(disk, regionDisksResizeRequestResource); + client.resizeRegionDiskAsync(disk, regionDisksResizeRequestResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setLabelsRegionDiskTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setLabelsRegionDiskTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setLabelsRegionDiskTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionDisks.addResponse(resultOperation); ProjectRegionDiskResourceName resource = ProjectRegionDiskResourceName.of("[PROJECT]", "[REGION]", "[RESOURCE]"); RegionSetLabelsRequest regionSetLabelsRequestResource = RegionSetLabelsRequest.newBuilder().build(); - Operation actualResponse = client.setLabelsRegionDisk(resource, regionSetLabelsRequestResource); + Void actualResponse = + client.setLabelsRegionDiskAsync(resource, regionSetLabelsRequestResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -683,10 +504,12 @@ public void setLabelsRegionDiskExceptionTest() throws Exception { RegionSetLabelsRequest regionSetLabelsRequestResource = RegionSetLabelsRequest.newBuilder().build(); - client.setLabelsRegionDisk(resource, regionSetLabelsRequestResource); + client.setLabelsRegionDiskAsync(resource, regionSetLabelsRequestResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupClientTest.java index c28ef2257772..1a9f37f16edd 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupClientTest.java @@ -35,6 +35,7 @@ import com.google.cloud.compute.v1.stub.RegionInstanceGroupStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.List; @@ -288,62 +289,26 @@ public void listInstancesRegionInstanceGroupsExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void setNamedPortsRegionInstanceGroupTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setNamedPortsRegionInstanceGroupTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setNamedPortsRegionInstanceGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionInstanceGroups.addResponse(resultOperation); ProjectRegionInstanceGroupName instanceGroup = ProjectRegionInstanceGroupName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP]"); RegionInstanceGroupsSetNamedPortsRequest regionInstanceGroupsSetNamedPortsRequestResource = RegionInstanceGroupsSetNamedPortsRequest.newBuilder().build(); - Operation actualResponse = - client.setNamedPortsRegionInstanceGroup( - instanceGroup, regionInstanceGroupsSetNamedPortsRequestResource); + Void actualResponse = + client + .setNamedPortsRegionInstanceGroupAsync( + instanceGroup, regionInstanceGroupsSetNamedPortsRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -375,11 +340,15 @@ public void setNamedPortsRegionInstanceGroupExceptionTest() throws Exception { RegionInstanceGroupsSetNamedPortsRequest regionInstanceGroupsSetNamedPortsRequestResource = RegionInstanceGroupsSetNamedPortsRequest.newBuilder().build(); - client.setNamedPortsRegionInstanceGroup( - instanceGroup, regionInstanceGroupsSetNamedPortsRequestResource); + client + .setNamedPortsRegionInstanceGroupAsync( + instanceGroup, regionInstanceGroupsSetNamedPortsRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClientTest.java index d1d9a987f70e..2d44fee0e1b6 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClientTest.java @@ -42,6 +42,7 @@ import com.google.cloud.compute.v1.stub.RegionInstanceGroupManagerStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -102,53 +103,15 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void abandonInstancesRegionInstanceGroupManagerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void abandonInstancesRegionInstanceGroupManagerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("abandonInstancesRegionInstanceGroupManagerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionInstanceGroupManagers.addResponse(resultOperation); ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of( @@ -157,9 +120,11 @@ public void abandonInstancesRegionInstanceGroupManagerTest() { regionInstanceGroupManagersAbandonInstancesRequestResource = RegionInstanceGroupManagersAbandonInstancesRequest.newBuilder().build(); - Operation actualResponse = - client.abandonInstancesRegionInstanceGroupManager( - instanceGroupManager, regionInstanceGroupManagersAbandonInstancesRequestResource); + Void actualResponse = + client + .abandonInstancesRegionInstanceGroupManagerAsync( + instanceGroupManager, regionInstanceGroupManagersAbandonInstancesRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -193,69 +158,35 @@ public void abandonInstancesRegionInstanceGroupManagerExceptionTest() throws Exc regionInstanceGroupManagersAbandonInstancesRequestResource = RegionInstanceGroupManagersAbandonInstancesRequest.newBuilder().build(); - client.abandonInstancesRegionInstanceGroupManager( - instanceGroupManager, regionInstanceGroupManagersAbandonInstancesRequestResource); + client + .abandonInstancesRegionInstanceGroupManagerAsync( + instanceGroupManager, regionInstanceGroupManagersAbandonInstancesRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void deleteRegionInstanceGroupManagerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteRegionInstanceGroupManagerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteRegionInstanceGroupManagerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionInstanceGroupManagers.addResponse(resultOperation); ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of( "[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]"); - Operation actualResponse = client.deleteRegionInstanceGroupManager(instanceGroupManager); + Void actualResponse = client.deleteRegionInstanceGroupManagerAsync(instanceGroupManager).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -286,62 +217,26 @@ public void deleteRegionInstanceGroupManagerExceptionTest() throws Exception { ProjectRegionInstanceGroupManagerName.of( "[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]"); - client.deleteRegionInstanceGroupManager(instanceGroupManager); + client.deleteRegionInstanceGroupManagerAsync(instanceGroupManager).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void deleteInstancesRegionInstanceGroupManagerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteInstancesRegionInstanceGroupManagerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteInstancesRegionInstanceGroupManagerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionInstanceGroupManagers.addResponse(resultOperation); ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of( @@ -350,9 +245,11 @@ public void deleteInstancesRegionInstanceGroupManagerTest() { regionInstanceGroupManagersDeleteInstancesRequestResource = RegionInstanceGroupManagersDeleteInstancesRequest.newBuilder().build(); - Operation actualResponse = - client.deleteInstancesRegionInstanceGroupManager( - instanceGroupManager, regionInstanceGroupManagersDeleteInstancesRequestResource); + Void actualResponse = + client + .deleteInstancesRegionInstanceGroupManagerAsync( + instanceGroupManager, regionInstanceGroupManagersDeleteInstancesRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -386,11 +283,15 @@ public void deleteInstancesRegionInstanceGroupManagerExceptionTest() throws Exce regionInstanceGroupManagersDeleteInstancesRequestResource = RegionInstanceGroupManagersDeleteInstancesRequest.newBuilder().build(); - client.deleteInstancesRegionInstanceGroupManager( - instanceGroupManager, regionInstanceGroupManagersDeleteInstancesRequestResource); + client + .deleteInstancesRegionInstanceGroupManagerAsync( + instanceGroupManager, regionInstanceGroupManagersDeleteInstancesRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -475,59 +376,21 @@ public void getRegionInstanceGroupManagerExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertRegionInstanceGroupManagerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region2 = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertRegionInstanceGroupManagerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region2.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertRegionInstanceGroupManagerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionInstanceGroupManagers.addResponse(resultOperation); ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build(); - Operation actualResponse = - client.insertRegionInstanceGroupManager(region, instanceGroupManagerResource); + Void actualResponse = + client.insertRegionInstanceGroupManagerAsync(region, instanceGroupManagerResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -557,10 +420,12 @@ public void insertRegionInstanceGroupManagerExceptionTest() throws Exception { ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build(); - client.insertRegionInstanceGroupManager(region, instanceGroupManagerResource); + client.insertRegionInstanceGroupManagerAsync(region, instanceGroupManagerResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -677,53 +542,15 @@ public void listManagedInstancesRegionInstanceGroupManagersExceptionTest() throw @Test @SuppressWarnings("all") - public void patchRegionInstanceGroupManagerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void patchRegionInstanceGroupManagerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("patchRegionInstanceGroupManagerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionInstanceGroupManagers.addResponse(resultOperation); ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of( @@ -731,9 +558,11 @@ public void patchRegionInstanceGroupManagerTest() { InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = - client.patchRegionInstanceGroupManager( - instanceGroupManager, instanceGroupManagerResource, fieldMask); + Void actualResponse = + client + .patchRegionInstanceGroupManagerAsync( + instanceGroupManager, instanceGroupManagerResource, fieldMask) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -766,63 +595,29 @@ public void patchRegionInstanceGroupManagerExceptionTest() throws Exception { InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.patchRegionInstanceGroupManager( - instanceGroupManager, instanceGroupManagerResource, fieldMask); + client + .patchRegionInstanceGroupManagerAsync( + instanceGroupManager, instanceGroupManagerResource, fieldMask) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void recreateInstancesRegionInstanceGroupManagerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void recreateInstancesRegionInstanceGroupManagerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("recreateInstancesRegionInstanceGroupManagerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionInstanceGroupManagers.addResponse(resultOperation); ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of( @@ -830,9 +625,11 @@ public void recreateInstancesRegionInstanceGroupManagerTest() { RegionInstanceGroupManagersRecreateRequest regionInstanceGroupManagersRecreateRequestResource = RegionInstanceGroupManagersRecreateRequest.newBuilder().build(); - Operation actualResponse = - client.recreateInstancesRegionInstanceGroupManager( - instanceGroupManager, regionInstanceGroupManagersRecreateRequestResource); + Void actualResponse = + client + .recreateInstancesRegionInstanceGroupManagerAsync( + instanceGroupManager, regionInstanceGroupManagersRecreateRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -866,70 +663,37 @@ public void recreateInstancesRegionInstanceGroupManagerExceptionTest() throws Ex regionInstanceGroupManagersRecreateRequestResource = RegionInstanceGroupManagersRecreateRequest.newBuilder().build(); - client.recreateInstancesRegionInstanceGroupManager( - instanceGroupManager, regionInstanceGroupManagersRecreateRequestResource); + client + .recreateInstancesRegionInstanceGroupManagerAsync( + instanceGroupManager, regionInstanceGroupManagersRecreateRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void resizeRegionInstanceGroupManagerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void resizeRegionInstanceGroupManagerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("resizeRegionInstanceGroupManagerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionInstanceGroupManagers.addResponse(resultOperation); Integer size = 3530753; ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of( "[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]"); - Operation actualResponse = client.resizeRegionInstanceGroupManager(size, instanceGroupManager); + Void actualResponse = + client.resizeRegionInstanceGroupManagerAsync(size, instanceGroupManager).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -961,62 +725,26 @@ public void resizeRegionInstanceGroupManagerExceptionTest() throws Exception { ProjectRegionInstanceGroupManagerName.of( "[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]"); - client.resizeRegionInstanceGroupManager(size, instanceGroupManager); + client.resizeRegionInstanceGroupManagerAsync(size, instanceGroupManager).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setInstanceTemplateRegionInstanceGroupManagerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setInstanceTemplateRegionInstanceGroupManagerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setInstanceTemplateRegionInstanceGroupManagerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionInstanceGroupManagers.addResponse(resultOperation); ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of( @@ -1025,9 +753,11 @@ public void setInstanceTemplateRegionInstanceGroupManagerTest() { regionInstanceGroupManagersSetTemplateRequestResource = RegionInstanceGroupManagersSetTemplateRequest.newBuilder().build(); - Operation actualResponse = - client.setInstanceTemplateRegionInstanceGroupManager( - instanceGroupManager, regionInstanceGroupManagersSetTemplateRequestResource); + Void actualResponse = + client + .setInstanceTemplateRegionInstanceGroupManagerAsync( + instanceGroupManager, regionInstanceGroupManagersSetTemplateRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1061,63 +791,29 @@ public void setInstanceTemplateRegionInstanceGroupManagerExceptionTest() throws regionInstanceGroupManagersSetTemplateRequestResource = RegionInstanceGroupManagersSetTemplateRequest.newBuilder().build(); - client.setInstanceTemplateRegionInstanceGroupManager( - instanceGroupManager, regionInstanceGroupManagersSetTemplateRequestResource); + client + .setInstanceTemplateRegionInstanceGroupManagerAsync( + instanceGroupManager, regionInstanceGroupManagersSetTemplateRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setTargetPoolsRegionInstanceGroupManagerTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setTargetPoolsRegionInstanceGroupManagerTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setTargetPoolsRegionInstanceGroupManagerTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRegionInstanceGroupManagers.addResponse(resultOperation); ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of( @@ -1126,9 +822,11 @@ public void setTargetPoolsRegionInstanceGroupManagerTest() { regionInstanceGroupManagersSetTargetPoolsRequestResource = RegionInstanceGroupManagersSetTargetPoolsRequest.newBuilder().build(); - Operation actualResponse = - client.setTargetPoolsRegionInstanceGroupManager( - instanceGroupManager, regionInstanceGroupManagersSetTargetPoolsRequestResource); + Void actualResponse = + client + .setTargetPoolsRegionInstanceGroupManagerAsync( + instanceGroupManager, regionInstanceGroupManagersSetTargetPoolsRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1162,11 +860,15 @@ public void setTargetPoolsRegionInstanceGroupManagerExceptionTest() throws Excep regionInstanceGroupManagersSetTargetPoolsRequestResource = RegionInstanceGroupManagersSetTargetPoolsRequest.newBuilder().build(); - client.setTargetPoolsRegionInstanceGroupManager( - instanceGroupManager, regionInstanceGroupManagersSetTargetPoolsRequestResource); + client + .setTargetPoolsRegionInstanceGroupManagerAsync( + instanceGroupManager, regionInstanceGroupManagersSetTargetPoolsRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouteClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouteClientTest.java index c35e2d34253d..0b979e12b5a0 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouteClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouteClientTest.java @@ -34,6 +34,7 @@ import com.google.cloud.compute.v1.stub.RouteStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.List; @@ -84,57 +85,19 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void deleteRouteTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteRouteTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteRouteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRoutes.addResponse(resultOperation); ProjectGlobalRouteName route = ProjectGlobalRouteName.of("[PROJECT]", "[ROUTE]"); - Operation actualResponse = client.deleteRoute(route); + Void actualResponse = client.deleteRouteAsync(route).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -163,10 +126,12 @@ public void deleteRouteExceptionTest() throws Exception { try { ProjectGlobalRouteName route = ProjectGlobalRouteName.of("[PROJECT]", "[ROUTE]"); - client.deleteRoute(route); + client.deleteRouteAsync(route).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -248,58 +213,20 @@ public void getRouteExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertRouteTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertRouteTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertRouteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRoutes.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); Route routeResource = Route.newBuilder().build(); - Operation actualResponse = client.insertRoute(project, routeResource); + Void actualResponse = client.insertRouteAsync(project, routeResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -329,10 +256,12 @@ public void insertRouteExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); Route routeResource = Route.newBuilder().build(); - client.insertRoute(project, routeResource); + client.insertRouteAsync(project, routeResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouterClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouterClientTest.java index a44f43aaf040..63b2591d2d33 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouterClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouterClientTest.java @@ -42,6 +42,7 @@ import com.google.cloud.compute.v1.stub.RouterStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -163,58 +164,20 @@ public void aggregatedListRoutersExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void deleteRouterTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteRouterTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteRouterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRouters.addResponse(resultOperation); ProjectRegionRouterName router = ProjectRegionRouterName.of("[PROJECT]", "[REGION]", "[ROUTER]"); - Operation actualResponse = client.deleteRouter(router); + Void actualResponse = client.deleteRouterAsync(router).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -244,10 +207,12 @@ public void deleteRouterExceptionTest() throws Exception { ProjectRegionRouterName router = ProjectRegionRouterName.of("[PROJECT]", "[REGION]", "[ROUTER]"); - client.deleteRouter(router); + client.deleteRouterAsync(router).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -427,58 +392,20 @@ public void getRouterStatusRouterExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertRouterTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region2 = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertRouterTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region2.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertRouterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRouters.addResponse(resultOperation); ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); Router routerResource = Router.newBuilder().build(); - Operation actualResponse = client.insertRouter(region, routerResource); + Void actualResponse = client.insertRouterAsync(region, routerResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -508,10 +435,12 @@ public void insertRouterExceptionTest() throws Exception { ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); Router routerResource = Router.newBuilder().build(); - client.insertRouter(region, routerResource); + client.insertRouterAsync(region, routerResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -577,60 +506,22 @@ public void listRoutersExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void patchRouterTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void patchRouterTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("patchRouterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRouters.addResponse(resultOperation); ProjectRegionRouterName router = ProjectRegionRouterName.of("[PROJECT]", "[REGION]", "[ROUTER]"); Router routerResource = Router.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = client.patchRouter(router, routerResource, fieldMask); + Void actualResponse = client.patchRouterAsync(router, routerResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -662,10 +553,12 @@ public void patchRouterExceptionTest() throws Exception { Router routerResource = Router.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.patchRouter(router, routerResource, fieldMask); + client.patchRouterAsync(router, routerResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -719,60 +612,22 @@ public void previewRouterExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void updateRouterTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void updateRouterTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("updateRouterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockRouters.addResponse(resultOperation); ProjectRegionRouterName router = ProjectRegionRouterName.of("[PROJECT]", "[REGION]", "[ROUTER]"); Router routerResource = Router.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = client.updateRouter(router, routerResource, fieldMask); + Void actualResponse = client.updateRouterAsync(router, routerResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -804,10 +659,12 @@ public void updateRouterExceptionTest() throws Exception { Router routerResource = Router.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.updateRouter(router, routerResource, fieldMask); + client.updateRouterAsync(router, routerResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SecurityPolicyClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SecurityPolicyClientTest.java index 3bf4a1628b63..a55e331b82f1 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SecurityPolicyClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SecurityPolicyClientTest.java @@ -39,6 +39,7 @@ import com.google.cloud.compute.v1.stub.SecurityPolicyStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -95,60 +96,22 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void addRuleSecurityPolicyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void addRuleSecurityPolicyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("addRuleSecurityPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockSecurityPolicies.addResponse(resultOperation); ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]"); SecurityPolicyRule securityPolicyRuleResource = SecurityPolicyRule.newBuilder().build(); - Operation actualResponse = - client.addRuleSecurityPolicy(securityPolicy, securityPolicyRuleResource); + Void actualResponse = + client.addRuleSecurityPolicyAsync(securityPolicy, securityPolicyRuleResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -179,67 +142,31 @@ public void addRuleSecurityPolicyExceptionTest() throws Exception { ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]"); SecurityPolicyRule securityPolicyRuleResource = SecurityPolicyRule.newBuilder().build(); - client.addRuleSecurityPolicy(securityPolicy, securityPolicyRuleResource); + client.addRuleSecurityPolicyAsync(securityPolicy, securityPolicyRuleResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void deleteSecurityPolicyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteSecurityPolicyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteSecurityPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockSecurityPolicies.addResponse(resultOperation); ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]"); - Operation actualResponse = client.deleteSecurityPolicy(securityPolicy); + Void actualResponse = client.deleteSecurityPolicyAsync(securityPolicy).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -269,10 +196,12 @@ public void deleteSecurityPolicyExceptionTest() throws Exception { ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]"); - client.deleteSecurityPolicy(securityPolicy); + client.deleteSecurityPolicyAsync(securityPolicy).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -400,58 +329,20 @@ public void getRuleSecurityPolicyExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertSecurityPolicyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertSecurityPolicyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertSecurityPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockSecurityPolicies.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); SecurityPolicy securityPolicyResource = SecurityPolicy.newBuilder().build(); - Operation actualResponse = client.insertSecurityPolicy(project, securityPolicyResource); + Void actualResponse = client.insertSecurityPolicyAsync(project, securityPolicyResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -481,10 +372,12 @@ public void insertSecurityPolicyExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); SecurityPolicy securityPolicyResource = SecurityPolicy.newBuilder().build(); - client.insertSecurityPolicy(project, securityPolicyResource); + client.insertSecurityPolicyAsync(project, securityPolicyResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -548,61 +441,23 @@ public void listSecurityPoliciesExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void patchSecurityPolicyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void patchSecurityPolicyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("patchSecurityPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockSecurityPolicies.addResponse(resultOperation); ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]"); SecurityPolicy securityPolicyResource = SecurityPolicy.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = - client.patchSecurityPolicy(securityPolicy, securityPolicyResource, fieldMask); + Void actualResponse = + client.patchSecurityPolicyAsync(securityPolicy, securityPolicyResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -634,70 +489,36 @@ public void patchSecurityPolicyExceptionTest() throws Exception { SecurityPolicy securityPolicyResource = SecurityPolicy.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.patchSecurityPolicy(securityPolicy, securityPolicyResource, fieldMask); + client.patchSecurityPolicyAsync(securityPolicy, securityPolicyResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void patchRuleSecurityPolicyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void patchRuleSecurityPolicyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("patchRuleSecurityPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockSecurityPolicies.addResponse(resultOperation); Integer priority = 1165461084; ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]"); SecurityPolicyRule securityPolicyRuleResource = SecurityPolicyRule.newBuilder().build(); - Operation actualResponse = - client.patchRuleSecurityPolicy(priority, securityPolicy, securityPolicyRuleResource); + Void actualResponse = + client + .patchRuleSecurityPolicyAsync(priority, securityPolicy, securityPolicyRuleResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -729,68 +550,34 @@ public void patchRuleSecurityPolicyExceptionTest() throws Exception { ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]"); SecurityPolicyRule securityPolicyRuleResource = SecurityPolicyRule.newBuilder().build(); - client.patchRuleSecurityPolicy(priority, securityPolicy, securityPolicyRuleResource); + client + .patchRuleSecurityPolicyAsync(priority, securityPolicy, securityPolicyRuleResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void removeRuleSecurityPolicyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void removeRuleSecurityPolicyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("removeRuleSecurityPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockSecurityPolicies.addResponse(resultOperation); Integer priority = 1165461084; ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]"); - Operation actualResponse = client.removeRuleSecurityPolicy(priority, securityPolicy); + Void actualResponse = client.removeRuleSecurityPolicyAsync(priority, securityPolicy).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -821,10 +608,12 @@ public void removeRuleSecurityPolicyExceptionTest() throws Exception { ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]"); - client.removeRuleSecurityPolicy(priority, securityPolicy); + client.removeRuleSecurityPolicyAsync(priority, securityPolicy).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SnapshotClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SnapshotClientTest.java index ae2c62192d86..77618731a99c 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SnapshotClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SnapshotClientTest.java @@ -37,6 +37,7 @@ import com.google.cloud.compute.v1.stub.SnapshotStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.List; @@ -90,57 +91,19 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void deleteSnapshotTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteSnapshotTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteSnapshotTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockSnapshots.addResponse(resultOperation); ProjectGlobalSnapshotName snapshot = ProjectGlobalSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); - Operation actualResponse = client.deleteSnapshot(snapshot); + Void actualResponse = client.deleteSnapshotAsync(snapshot).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -169,10 +132,12 @@ public void deleteSnapshotExceptionTest() throws Exception { try { ProjectGlobalSnapshotName snapshot = ProjectGlobalSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); - client.deleteSnapshot(snapshot); + client.deleteSnapshotAsync(snapshot).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -414,60 +379,23 @@ public void setIamPolicySnapshotExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void setLabelsSnapshotTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setLabelsSnapshotTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setLabelsSnapshotTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockSnapshots.addResponse(resultOperation); ProjectGlobalSnapshotResourceName resource = ProjectGlobalSnapshotResourceName.of("[PROJECT]", "[RESOURCE]"); GlobalSetLabelsRequest globalSetLabelsRequestResource = GlobalSetLabelsRequest.newBuilder().build(); - Operation actualResponse = client.setLabelsSnapshot(resource, globalSetLabelsRequestResource); + Void actualResponse = + client.setLabelsSnapshotAsync(resource, globalSetLabelsRequestResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -499,10 +427,12 @@ public void setLabelsSnapshotExceptionTest() throws Exception { GlobalSetLabelsRequest globalSetLabelsRequestResource = GlobalSetLabelsRequest.newBuilder().build(); - client.setLabelsSnapshot(resource, globalSetLabelsRequestResource); + client.setLabelsSnapshotAsync(resource, globalSetLabelsRequestResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslCertificateClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslCertificateClientTest.java index ce29dc061bf6..3a5c3961a532 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslCertificateClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslCertificateClientTest.java @@ -34,6 +34,7 @@ import com.google.cloud.compute.v1.stub.SslCertificateStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.List; @@ -84,58 +85,20 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void deleteSslCertificateTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteSslCertificateTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteSslCertificateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockSslCertificates.addResponse(resultOperation); ProjectGlobalSslCertificateName sslCertificate = ProjectGlobalSslCertificateName.of("[PROJECT]", "[SSL_CERTIFICATE]"); - Operation actualResponse = client.deleteSslCertificate(sslCertificate); + Void actualResponse = client.deleteSslCertificateAsync(sslCertificate).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -165,10 +128,12 @@ public void deleteSslCertificateExceptionTest() throws Exception { ProjectGlobalSslCertificateName sslCertificate = ProjectGlobalSslCertificateName.of("[PROJECT]", "[SSL_CERTIFICATE]"); - client.deleteSslCertificate(sslCertificate); + client.deleteSslCertificateAsync(sslCertificate).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -238,58 +203,20 @@ public void getSslCertificateExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertSslCertificateTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertSslCertificateTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertSslCertificateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockSslCertificates.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); SslCertificate sslCertificateResource = SslCertificate.newBuilder().build(); - Operation actualResponse = client.insertSslCertificate(project, sslCertificateResource); + Void actualResponse = client.insertSslCertificateAsync(project, sslCertificateResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -319,10 +246,12 @@ public void insertSslCertificateExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); SslCertificate sslCertificateResource = SslCertificate.newBuilder().build(); - client.insertSslCertificate(project, sslCertificateResource); + client.insertSslCertificateAsync(project, sslCertificateResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslPolicyClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslPolicyClientTest.java index 6b5dce859567..4b851a04e93f 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslPolicyClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslPolicyClientTest.java @@ -36,6 +36,7 @@ import com.google.cloud.compute.v1.stub.SslPolicyStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -89,58 +90,20 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void deleteSslPolicyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteSslPolicyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteSslPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockSslPolicies.addResponse(resultOperation); ProjectGlobalSslPolicyName sslPolicy = ProjectGlobalSslPolicyName.of("[PROJECT]", "[SSL_POLICY]"); - Operation actualResponse = client.deleteSslPolicy(sslPolicy); + Void actualResponse = client.deleteSslPolicyAsync(sslPolicy).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -170,10 +133,12 @@ public void deleteSslPolicyExceptionTest() throws Exception { ProjectGlobalSslPolicyName sslPolicy = ProjectGlobalSslPolicyName.of("[PROJECT]", "[SSL_POLICY]"); - client.deleteSslPolicy(sslPolicy); + client.deleteSslPolicyAsync(sslPolicy).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -245,58 +210,20 @@ public void getSslPolicyExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertSslPolicyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertSslPolicyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertSslPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockSslPolicies.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); SslPolicy sslPolicyResource = SslPolicy.newBuilder().build(); - Operation actualResponse = client.insertSslPolicy(project, sslPolicyResource); + Void actualResponse = client.insertSslPolicyAsync(project, sslPolicyResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -326,10 +253,12 @@ public void insertSslPolicyExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); SslPolicy sslPolicyResource = SslPolicy.newBuilder().build(); - client.insertSslPolicy(project, sslPolicyResource); + client.insertSslPolicyAsync(project, sslPolicyResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -441,60 +370,22 @@ public void listAvailableFeaturesSslPoliciesExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void patchSslPolicyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void patchSslPolicyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("patchSslPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockSslPolicies.addResponse(resultOperation); ProjectGlobalSslPolicyName sslPolicy = ProjectGlobalSslPolicyName.of("[PROJECT]", "[SSL_POLICY]"); SslPolicy sslPolicyResource = SslPolicy.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = client.patchSslPolicy(sslPolicy, sslPolicyResource, fieldMask); + Void actualResponse = client.patchSslPolicyAsync(sslPolicy, sslPolicyResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -526,10 +417,12 @@ public void patchSslPolicyExceptionTest() throws Exception { SslPolicy sslPolicyResource = SslPolicy.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.patchSslPolicy(sslPolicy, sslPolicyResource, fieldMask); + client.patchSslPolicyAsync(sslPolicy, sslPolicyResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SubnetworkClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SubnetworkClientTest.java index bcd1aea48d0a..5f8d36759cd4 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SubnetworkClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SubnetworkClientTest.java @@ -44,6 +44,7 @@ import com.google.cloud.compute.v1.stub.SubnetworkStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -168,58 +169,20 @@ public void aggregatedListSubnetworksExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void deleteSubnetworkTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteSubnetworkTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteSubnetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockSubnetworks.addResponse(resultOperation); ProjectRegionSubnetworkName subnetwork = ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]"); - Operation actualResponse = client.deleteSubnetwork(subnetwork); + Void actualResponse = client.deleteSubnetworkAsync(subnetwork).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -249,70 +212,37 @@ public void deleteSubnetworkExceptionTest() throws Exception { ProjectRegionSubnetworkName subnetwork = ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]"); - client.deleteSubnetwork(subnetwork); + client.deleteSubnetworkAsync(subnetwork).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void expandIpCidrRangeSubnetworkTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void expandIpCidrRangeSubnetworkTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("expandIpCidrRangeSubnetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockSubnetworks.addResponse(resultOperation); ProjectRegionSubnetworkName subnetwork = ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]"); SubnetworksExpandIpCidrRangeRequest subnetworksExpandIpCidrRangeRequestResource = SubnetworksExpandIpCidrRangeRequest.newBuilder().build(); - Operation actualResponse = - client.expandIpCidrRangeSubnetwork(subnetwork, subnetworksExpandIpCidrRangeRequestResource); + Void actualResponse = + client + .expandIpCidrRangeSubnetworkAsync( + subnetwork, subnetworksExpandIpCidrRangeRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -344,10 +274,14 @@ public void expandIpCidrRangeSubnetworkExceptionTest() throws Exception { SubnetworksExpandIpCidrRangeRequest subnetworksExpandIpCidrRangeRequestResource = SubnetworksExpandIpCidrRangeRequest.newBuilder().build(); - client.expandIpCidrRangeSubnetwork(subnetwork, subnetworksExpandIpCidrRangeRequestResource); + client + .expandIpCidrRangeSubnetworkAsync(subnetwork, subnetworksExpandIpCidrRangeRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -477,58 +411,20 @@ public void getIamPolicySubnetworkExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertSubnetworkTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region2 = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertSubnetworkTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region2.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertSubnetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockSubnetworks.addResponse(resultOperation); ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); Subnetwork subnetworkResource = Subnetwork.newBuilder().build(); - Operation actualResponse = client.insertSubnetwork(region, subnetworkResource); + Void actualResponse = client.insertSubnetworkAsync(region, subnetworkResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -558,10 +454,12 @@ public void insertSubnetworkExceptionTest() throws Exception { ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); Subnetwork subnetworkResource = Subnetwork.newBuilder().build(); - client.insertSubnetwork(region, subnetworkResource); + client.insertSubnetworkAsync(region, subnetworkResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -687,60 +585,23 @@ public void listUsableSubnetworksExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void patchSubnetworkTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void patchSubnetworkTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("patchSubnetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockSubnetworks.addResponse(resultOperation); ProjectRegionSubnetworkName subnetwork = ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]"); Subnetwork subnetworkResource = Subnetwork.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = client.patchSubnetwork(subnetwork, subnetworkResource, fieldMask); + Void actualResponse = + client.patchSubnetworkAsync(subnetwork, subnetworkResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -772,10 +633,12 @@ public void patchSubnetworkExceptionTest() throws Exception { Subnetwork subnetworkResource = Subnetwork.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.patchSubnetwork(subnetwork, subnetworkResource, fieldMask); + client.patchSubnetworkAsync(subnetwork, subnetworkResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -835,62 +698,26 @@ public void setIamPolicySubnetworkExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void setPrivateIpGoogleAccessSubnetworkTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setPrivateIpGoogleAccessSubnetworkTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setPrivateIpGoogleAccessSubnetworkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockSubnetworks.addResponse(resultOperation); ProjectRegionSubnetworkName subnetwork = ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]"); SubnetworksSetPrivateIpGoogleAccessRequest subnetworksSetPrivateIpGoogleAccessRequestResource = SubnetworksSetPrivateIpGoogleAccessRequest.newBuilder().build(); - Operation actualResponse = - client.setPrivateIpGoogleAccessSubnetwork( - subnetwork, subnetworksSetPrivateIpGoogleAccessRequestResource); + Void actualResponse = + client + .setPrivateIpGoogleAccessSubnetworkAsync( + subnetwork, subnetworksSetPrivateIpGoogleAccessRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -923,11 +750,15 @@ public void setPrivateIpGoogleAccessSubnetworkExceptionTest() throws Exception { subnetworksSetPrivateIpGoogleAccessRequestResource = SubnetworksSetPrivateIpGoogleAccessRequest.newBuilder().build(); - client.setPrivateIpGoogleAccessSubnetwork( - subnetwork, subnetworksSetPrivateIpGoogleAccessRequestResource); + client + .setPrivateIpGoogleAccessSubnetworkAsync( + subnetwork, subnetworksSetPrivateIpGoogleAccessRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpProxyClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpProxyClientTest.java index c89383fdecf1..039c4d75d25c 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpProxyClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpProxyClientTest.java @@ -35,6 +35,7 @@ import com.google.cloud.compute.v1.stub.TargetHttpProxyStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.List; @@ -86,58 +87,20 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void deleteTargetHttpProxyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteTargetHttpProxyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteTargetHttpProxyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetHttpProxies.addResponse(resultOperation); ProjectGlobalTargetHttpProxyName targetHttpProxy = ProjectGlobalTargetHttpProxyName.of("[PROJECT]", "[TARGET_HTTP_PROXY]"); - Operation actualResponse = client.deleteTargetHttpProxy(targetHttpProxy); + Void actualResponse = client.deleteTargetHttpProxyAsync(targetHttpProxy).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -167,10 +130,12 @@ public void deleteTargetHttpProxyExceptionTest() throws Exception { ProjectGlobalTargetHttpProxyName targetHttpProxy = ProjectGlobalTargetHttpProxyName.of("[PROJECT]", "[TARGET_HTTP_PROXY]"); - client.deleteTargetHttpProxy(targetHttpProxy); + client.deleteTargetHttpProxyAsync(targetHttpProxy).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -238,58 +203,20 @@ public void getTargetHttpProxyExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertTargetHttpProxyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertTargetHttpProxyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertTargetHttpProxyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetHttpProxies.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); TargetHttpProxy targetHttpProxyResource = TargetHttpProxy.newBuilder().build(); - Operation actualResponse = client.insertTargetHttpProxy(project, targetHttpProxyResource); + Void actualResponse = client.insertTargetHttpProxyAsync(project, targetHttpProxyResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -319,10 +246,12 @@ public void insertTargetHttpProxyExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); TargetHttpProxy targetHttpProxyResource = TargetHttpProxy.newBuilder().build(); - client.insertTargetHttpProxy(project, targetHttpProxyResource); + client.insertTargetHttpProxyAsync(project, targetHttpProxyResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -388,60 +317,22 @@ public void listTargetHttpProxiesExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void setUrlMapTargetHttpProxyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setUrlMapTargetHttpProxyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setUrlMapTargetHttpProxyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetHttpProxies.addResponse(resultOperation); ProjectTargetHttpProxyName targetHttpProxy = ProjectTargetHttpProxyName.of("[PROJECT]", "[TARGET_HTTP_PROXY]"); UrlMapReference urlMapReferenceResource = UrlMapReference.newBuilder().build(); - Operation actualResponse = - client.setUrlMapTargetHttpProxy(targetHttpProxy, urlMapReferenceResource); + Void actualResponse = + client.setUrlMapTargetHttpProxyAsync(targetHttpProxy, urlMapReferenceResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -472,10 +363,12 @@ public void setUrlMapTargetHttpProxyExceptionTest() throws Exception { ProjectTargetHttpProxyName.of("[PROJECT]", "[TARGET_HTTP_PROXY]"); UrlMapReference urlMapReferenceResource = UrlMapReference.newBuilder().build(); - client.setUrlMapTargetHttpProxy(targetHttpProxy, urlMapReferenceResource); + client.setUrlMapTargetHttpProxyAsync(targetHttpProxy, urlMapReferenceResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpsProxyClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpsProxyClientTest.java index 1aa81a8fab64..9af2f4e91f5c 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpsProxyClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpsProxyClientTest.java @@ -38,6 +38,7 @@ import com.google.cloud.compute.v1.stub.TargetHttpsProxyStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.List; @@ -92,58 +93,20 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void deleteTargetHttpsProxyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteTargetHttpsProxyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteTargetHttpsProxyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetHttpsProxies.addResponse(resultOperation); ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]"); - Operation actualResponse = client.deleteTargetHttpsProxy(targetHttpsProxy); + Void actualResponse = client.deleteTargetHttpsProxyAsync(targetHttpsProxy).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -173,10 +136,12 @@ public void deleteTargetHttpsProxyExceptionTest() throws Exception { ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]"); - client.deleteTargetHttpsProxy(targetHttpsProxy); + client.deleteTargetHttpsProxyAsync(targetHttpsProxy).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -249,58 +214,21 @@ public void getTargetHttpsProxyExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertTargetHttpsProxyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertTargetHttpsProxyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertTargetHttpsProxyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetHttpsProxies.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); TargetHttpsProxy targetHttpsProxyResource = TargetHttpsProxy.newBuilder().build(); - Operation actualResponse = client.insertTargetHttpsProxy(project, targetHttpsProxyResource); + Void actualResponse = + client.insertTargetHttpsProxyAsync(project, targetHttpsProxyResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -330,10 +258,12 @@ public void insertTargetHttpsProxyExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); TargetHttpsProxy targetHttpsProxyResource = TargetHttpsProxy.newBuilder().build(); - client.insertTargetHttpsProxy(project, targetHttpsProxyResource); + client.insertTargetHttpsProxyAsync(project, targetHttpsProxyResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -399,62 +329,26 @@ public void listTargetHttpsProxiesExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void setQuicOverrideTargetHttpsProxyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setQuicOverrideTargetHttpsProxyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setQuicOverrideTargetHttpsProxyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetHttpsProxies.addResponse(resultOperation); ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]"); TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource = TargetHttpsProxiesSetQuicOverrideRequest.newBuilder().build(); - Operation actualResponse = - client.setQuicOverrideTargetHttpsProxy( - targetHttpsProxy, targetHttpsProxiesSetQuicOverrideRequestResource); + Void actualResponse = + client + .setQuicOverrideTargetHttpsProxyAsync( + targetHttpsProxy, targetHttpsProxiesSetQuicOverrideRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -486,63 +380,29 @@ public void setQuicOverrideTargetHttpsProxyExceptionTest() throws Exception { TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource = TargetHttpsProxiesSetQuicOverrideRequest.newBuilder().build(); - client.setQuicOverrideTargetHttpsProxy( - targetHttpsProxy, targetHttpsProxiesSetQuicOverrideRequestResource); + client + .setQuicOverrideTargetHttpsProxyAsync( + targetHttpsProxy, targetHttpsProxiesSetQuicOverrideRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setSslCertificatesTargetHttpsProxyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setSslCertificatesTargetHttpsProxyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setSslCertificatesTargetHttpsProxyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetHttpsProxies.addResponse(resultOperation); ProjectTargetHttpsProxyName targetHttpsProxy = ProjectTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]"); @@ -550,9 +410,11 @@ public void setSslCertificatesTargetHttpsProxyTest() { targetHttpsProxiesSetSslCertificatesRequestResource = TargetHttpsProxiesSetSslCertificatesRequest.newBuilder().build(); - Operation actualResponse = - client.setSslCertificatesTargetHttpsProxy( - targetHttpsProxy, targetHttpsProxiesSetSslCertificatesRequestResource); + Void actualResponse = + client + .setSslCertificatesTargetHttpsProxyAsync( + targetHttpsProxy, targetHttpsProxiesSetSslCertificatesRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -585,70 +447,38 @@ public void setSslCertificatesTargetHttpsProxyExceptionTest() throws Exception { targetHttpsProxiesSetSslCertificatesRequestResource = TargetHttpsProxiesSetSslCertificatesRequest.newBuilder().build(); - client.setSslCertificatesTargetHttpsProxy( - targetHttpsProxy, targetHttpsProxiesSetSslCertificatesRequestResource); + client + .setSslCertificatesTargetHttpsProxyAsync( + targetHttpsProxy, targetHttpsProxiesSetSslCertificatesRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setSslPolicyTargetHttpsProxyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setSslPolicyTargetHttpsProxyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setSslPolicyTargetHttpsProxyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetHttpsProxies.addResponse(resultOperation); ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]"); SslPolicyReference sslPolicyReferenceResource = SslPolicyReference.newBuilder().build(); - Operation actualResponse = - client.setSslPolicyTargetHttpsProxy(targetHttpsProxy, sslPolicyReferenceResource); + Void actualResponse = + client + .setSslPolicyTargetHttpsProxyAsync(targetHttpsProxy, sslPolicyReferenceResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -679,69 +509,33 @@ public void setSslPolicyTargetHttpsProxyExceptionTest() throws Exception { ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]"); SslPolicyReference sslPolicyReferenceResource = SslPolicyReference.newBuilder().build(); - client.setSslPolicyTargetHttpsProxy(targetHttpsProxy, sslPolicyReferenceResource); + client.setSslPolicyTargetHttpsProxyAsync(targetHttpsProxy, sslPolicyReferenceResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setUrlMapTargetHttpsProxyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setUrlMapTargetHttpsProxyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setUrlMapTargetHttpsProxyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetHttpsProxies.addResponse(resultOperation); ProjectTargetHttpsProxyName targetHttpsProxy = ProjectTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]"); UrlMapReference urlMapReferenceResource = UrlMapReference.newBuilder().build(); - Operation actualResponse = - client.setUrlMapTargetHttpsProxy(targetHttpsProxy, urlMapReferenceResource); + Void actualResponse = + client.setUrlMapTargetHttpsProxyAsync(targetHttpsProxy, urlMapReferenceResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -772,10 +566,12 @@ public void setUrlMapTargetHttpsProxyExceptionTest() throws Exception { ProjectTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]"); UrlMapReference urlMapReferenceResource = UrlMapReference.newBuilder().build(); - client.setUrlMapTargetHttpsProxy(targetHttpsProxy, urlMapReferenceResource); + client.setUrlMapTargetHttpsProxyAsync(targetHttpsProxy, urlMapReferenceResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetInstanceClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetInstanceClientTest.java index 5b3c13b8841b..a5be7a09a67e 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetInstanceClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetInstanceClientTest.java @@ -36,6 +36,7 @@ import com.google.cloud.compute.v1.stub.TargetInstanceStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -152,58 +153,20 @@ public void aggregatedListTargetInstancesExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void deleteTargetInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteTargetInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteTargetInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetInstances.addResponse(resultOperation); ProjectZoneTargetInstanceName targetInstance = ProjectZoneTargetInstanceName.of("[PROJECT]", "[ZONE]", "[TARGET_INSTANCE]"); - Operation actualResponse = client.deleteTargetInstance(targetInstance); + Void actualResponse = client.deleteTargetInstanceAsync(targetInstance).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -233,10 +196,12 @@ public void deleteTargetInstanceExceptionTest() throws Exception { ProjectZoneTargetInstanceName targetInstance = ProjectZoneTargetInstanceName.of("[PROJECT]", "[ZONE]", "[TARGET_INSTANCE]"); - client.deleteTargetInstance(targetInstance); + client.deleteTargetInstanceAsync(targetInstance).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -309,58 +274,20 @@ public void getTargetInstanceExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertTargetInstanceTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone2 = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertTargetInstanceTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone2.toString()) + .setName("insertTargetInstanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetInstances.addResponse(resultOperation); ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); TargetInstance targetInstanceResource = TargetInstance.newBuilder().build(); - Operation actualResponse = client.insertTargetInstance(zone, targetInstanceResource); + Void actualResponse = client.insertTargetInstanceAsync(zone, targetInstanceResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -390,10 +317,12 @@ public void insertTargetInstanceExceptionTest() throws Exception { ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); TargetInstance targetInstanceResource = TargetInstance.newBuilder().build(); - client.insertTargetInstance(zone, targetInstanceResource); + client.insertTargetInstanceAsync(zone, targetInstanceResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetPoolClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetPoolClientTest.java index b1c9e7e4e39d..31244c280c46 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetPoolClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetPoolClientTest.java @@ -42,6 +42,7 @@ import com.google.cloud.compute.v1.stub.TargetPoolStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -101,61 +102,25 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void addHealthCheckTargetPoolTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void addHealthCheckTargetPoolTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("addHealthCheckTargetPoolTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetPools.addResponse(resultOperation); ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]"); TargetPoolsAddHealthCheckRequest targetPoolsAddHealthCheckRequestResource = TargetPoolsAddHealthCheckRequest.newBuilder().build(); - Operation actualResponse = - client.addHealthCheckTargetPool(targetPool, targetPoolsAddHealthCheckRequestResource); + Void actualResponse = + client + .addHealthCheckTargetPoolAsync(targetPool, targetPoolsAddHealthCheckRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -187,70 +152,36 @@ public void addHealthCheckTargetPoolExceptionTest() throws Exception { TargetPoolsAddHealthCheckRequest targetPoolsAddHealthCheckRequestResource = TargetPoolsAddHealthCheckRequest.newBuilder().build(); - client.addHealthCheckTargetPool(targetPool, targetPoolsAddHealthCheckRequestResource); + client + .addHealthCheckTargetPoolAsync(targetPool, targetPoolsAddHealthCheckRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void addInstanceTargetPoolTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void addInstanceTargetPoolTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("addInstanceTargetPoolTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetPools.addResponse(resultOperation); ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]"); TargetPoolsAddInstanceRequest targetPoolsAddInstanceRequestResource = TargetPoolsAddInstanceRequest.newBuilder().build(); - Operation actualResponse = - client.addInstanceTargetPool(targetPool, targetPoolsAddInstanceRequestResource); + Void actualResponse = + client.addInstanceTargetPoolAsync(targetPool, targetPoolsAddInstanceRequestResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -282,10 +213,12 @@ public void addInstanceTargetPoolExceptionTest() throws Exception { TargetPoolsAddInstanceRequest targetPoolsAddInstanceRequestResource = TargetPoolsAddInstanceRequest.newBuilder().build(); - client.addInstanceTargetPool(targetPool, targetPoolsAddInstanceRequestResource); + client.addInstanceTargetPoolAsync(targetPool, targetPoolsAddInstanceRequestResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -354,58 +287,20 @@ public void aggregatedListTargetPoolsExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void deleteTargetPoolTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteTargetPoolTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteTargetPoolTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetPools.addResponse(resultOperation); ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]"); - Operation actualResponse = client.deleteTargetPool(targetPool); + Void actualResponse = client.deleteTargetPoolAsync(targetPool).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -435,10 +330,12 @@ public void deleteTargetPoolExceptionTest() throws Exception { ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]"); - client.deleteTargetPool(targetPool); + client.deleteTargetPoolAsync(targetPool).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -563,58 +460,20 @@ public void getHealthTargetPoolExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertTargetPoolTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region2 = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertTargetPoolTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region2.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertTargetPoolTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetPools.addResponse(resultOperation); ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); TargetPool targetPoolResource = TargetPool.newBuilder().build(); - Operation actualResponse = client.insertTargetPool(region, targetPoolResource); + Void actualResponse = client.insertTargetPoolAsync(region, targetPoolResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -644,10 +503,12 @@ public void insertTargetPoolExceptionTest() throws Exception { ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); TargetPool targetPoolResource = TargetPool.newBuilder().build(); - client.insertTargetPool(region, targetPoolResource); + client.insertTargetPoolAsync(region, targetPoolResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -713,61 +574,26 @@ public void listTargetPoolsExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void removeHealthCheckTargetPoolTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void removeHealthCheckTargetPoolTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("removeHealthCheckTargetPoolTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetPools.addResponse(resultOperation); ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]"); TargetPoolsRemoveHealthCheckRequest targetPoolsRemoveHealthCheckRequestResource = TargetPoolsRemoveHealthCheckRequest.newBuilder().build(); - Operation actualResponse = - client.removeHealthCheckTargetPool(targetPool, targetPoolsRemoveHealthCheckRequestResource); + Void actualResponse = + client + .removeHealthCheckTargetPoolAsync( + targetPool, targetPoolsRemoveHealthCheckRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -799,70 +625,38 @@ public void removeHealthCheckTargetPoolExceptionTest() throws Exception { TargetPoolsRemoveHealthCheckRequest targetPoolsRemoveHealthCheckRequestResource = TargetPoolsRemoveHealthCheckRequest.newBuilder().build(); - client.removeHealthCheckTargetPool(targetPool, targetPoolsRemoveHealthCheckRequestResource); + client + .removeHealthCheckTargetPoolAsync(targetPool, targetPoolsRemoveHealthCheckRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void removeInstanceTargetPoolTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void removeInstanceTargetPoolTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("removeInstanceTargetPoolTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetPools.addResponse(resultOperation); ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]"); TargetPoolsRemoveInstanceRequest targetPoolsRemoveInstanceRequestResource = TargetPoolsRemoveInstanceRequest.newBuilder().build(); - Operation actualResponse = - client.removeInstanceTargetPool(targetPool, targetPoolsRemoveInstanceRequestResource); + Void actualResponse = + client + .removeInstanceTargetPoolAsync(targetPool, targetPoolsRemoveInstanceRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -894,70 +688,36 @@ public void removeInstanceTargetPoolExceptionTest() throws Exception { TargetPoolsRemoveInstanceRequest targetPoolsRemoveInstanceRequestResource = TargetPoolsRemoveInstanceRequest.newBuilder().build(); - client.removeInstanceTargetPool(targetPool, targetPoolsRemoveInstanceRequestResource); + client + .removeInstanceTargetPoolAsync(targetPool, targetPoolsRemoveInstanceRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setBackupTargetPoolTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setBackupTargetPoolTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setBackupTargetPoolTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetPools.addResponse(resultOperation); ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]"); Float failoverRatio = -8.6107481E7F; TargetReference targetReferenceResource = TargetReference.newBuilder().build(); - Operation actualResponse = - client.setBackupTargetPool(targetPool, failoverRatio, targetReferenceResource); + Void actualResponse = + client.setBackupTargetPoolAsync(targetPool, failoverRatio, targetReferenceResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -989,10 +749,12 @@ public void setBackupTargetPoolExceptionTest() throws Exception { Float failoverRatio = -8.6107481E7F; TargetReference targetReferenceResource = TargetReference.newBuilder().build(); - client.setBackupTargetPool(targetPool, failoverRatio, targetReferenceResource); + client.setBackupTargetPoolAsync(targetPool, failoverRatio, targetReferenceResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetSslProxyClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetSslProxyClientTest.java index 4283c4c670b0..d4d486698d29 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetSslProxyClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetSslProxyClientTest.java @@ -38,6 +38,7 @@ import com.google.cloud.compute.v1.stub.TargetSslProxyStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.List; @@ -92,58 +93,20 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void deleteTargetSslProxyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteTargetSslProxyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteTargetSslProxyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetSslProxies.addResponse(resultOperation); ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]"); - Operation actualResponse = client.deleteTargetSslProxy(targetSslProxy); + Void actualResponse = client.deleteTargetSslProxyAsync(targetSslProxy).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -173,10 +136,12 @@ public void deleteTargetSslProxyExceptionTest() throws Exception { ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]"); - client.deleteTargetSslProxy(targetSslProxy); + client.deleteTargetSslProxyAsync(targetSslProxy).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -249,58 +214,20 @@ public void getTargetSslProxyExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertTargetSslProxyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertTargetSslProxyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertTargetSslProxyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetSslProxies.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); TargetSslProxy targetSslProxyResource = TargetSslProxy.newBuilder().build(); - Operation actualResponse = client.insertTargetSslProxy(project, targetSslProxyResource); + Void actualResponse = client.insertTargetSslProxyAsync(project, targetSslProxyResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -330,10 +257,12 @@ public void insertTargetSslProxyExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); TargetSslProxy targetSslProxyResource = TargetSslProxy.newBuilder().build(); - client.insertTargetSslProxy(project, targetSslProxyResource); + client.insertTargetSslProxyAsync(project, targetSslProxyResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -399,62 +328,26 @@ public void listTargetSslProxiesExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void setBackendServiceTargetSslProxyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setBackendServiceTargetSslProxyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setBackendServiceTargetSslProxyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetSslProxies.addResponse(resultOperation); ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]"); TargetSslProxiesSetBackendServiceRequest targetSslProxiesSetBackendServiceRequestResource = TargetSslProxiesSetBackendServiceRequest.newBuilder().build(); - Operation actualResponse = - client.setBackendServiceTargetSslProxy( - targetSslProxy, targetSslProxiesSetBackendServiceRequestResource); + Void actualResponse = + client + .setBackendServiceTargetSslProxyAsync( + targetSslProxy, targetSslProxiesSetBackendServiceRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -486,72 +379,40 @@ public void setBackendServiceTargetSslProxyExceptionTest() throws Exception { TargetSslProxiesSetBackendServiceRequest targetSslProxiesSetBackendServiceRequestResource = TargetSslProxiesSetBackendServiceRequest.newBuilder().build(); - client.setBackendServiceTargetSslProxy( - targetSslProxy, targetSslProxiesSetBackendServiceRequestResource); + client + .setBackendServiceTargetSslProxyAsync( + targetSslProxy, targetSslProxiesSetBackendServiceRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setProxyHeaderTargetSslProxyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setProxyHeaderTargetSslProxyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setProxyHeaderTargetSslProxyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetSslProxies.addResponse(resultOperation); ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]"); TargetSslProxiesSetProxyHeaderRequest targetSslProxiesSetProxyHeaderRequestResource = TargetSslProxiesSetProxyHeaderRequest.newBuilder().build(); - Operation actualResponse = - client.setProxyHeaderTargetSslProxy( - targetSslProxy, targetSslProxiesSetProxyHeaderRequestResource); + Void actualResponse = + client + .setProxyHeaderTargetSslProxyAsync( + targetSslProxy, targetSslProxiesSetProxyHeaderRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -583,72 +444,40 @@ public void setProxyHeaderTargetSslProxyExceptionTest() throws Exception { TargetSslProxiesSetProxyHeaderRequest targetSslProxiesSetProxyHeaderRequestResource = TargetSslProxiesSetProxyHeaderRequest.newBuilder().build(); - client.setProxyHeaderTargetSslProxy( - targetSslProxy, targetSslProxiesSetProxyHeaderRequestResource); + client + .setProxyHeaderTargetSslProxyAsync( + targetSslProxy, targetSslProxiesSetProxyHeaderRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setSslCertificatesTargetSslProxyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setSslCertificatesTargetSslProxyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setSslCertificatesTargetSslProxyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetSslProxies.addResponse(resultOperation); ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]"); TargetSslProxiesSetSslCertificatesRequest targetSslProxiesSetSslCertificatesRequestResource = TargetSslProxiesSetSslCertificatesRequest.newBuilder().build(); - Operation actualResponse = - client.setSslCertificatesTargetSslProxy( - targetSslProxy, targetSslProxiesSetSslCertificatesRequestResource); + Void actualResponse = + client + .setSslCertificatesTargetSslProxyAsync( + targetSslProxy, targetSslProxiesSetSslCertificatesRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -680,70 +509,36 @@ public void setSslCertificatesTargetSslProxyExceptionTest() throws Exception { TargetSslProxiesSetSslCertificatesRequest targetSslProxiesSetSslCertificatesRequestResource = TargetSslProxiesSetSslCertificatesRequest.newBuilder().build(); - client.setSslCertificatesTargetSslProxy( - targetSslProxy, targetSslProxiesSetSslCertificatesRequestResource); + client + .setSslCertificatesTargetSslProxyAsync( + targetSslProxy, targetSslProxiesSetSslCertificatesRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setSslPolicyTargetSslProxyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setSslPolicyTargetSslProxyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setSslPolicyTargetSslProxyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetSslProxies.addResponse(resultOperation); ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]"); SslPolicyReference sslPolicyReferenceResource = SslPolicyReference.newBuilder().build(); - Operation actualResponse = - client.setSslPolicyTargetSslProxy(targetSslProxy, sslPolicyReferenceResource); + Void actualResponse = + client.setSslPolicyTargetSslProxyAsync(targetSslProxy, sslPolicyReferenceResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -774,10 +569,12 @@ public void setSslPolicyTargetSslProxyExceptionTest() throws Exception { ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]"); SslPolicyReference sslPolicyReferenceResource = SslPolicyReference.newBuilder().build(); - client.setSslPolicyTargetSslProxy(targetSslProxy, sslPolicyReferenceResource); + client.setSslPolicyTargetSslProxyAsync(targetSslProxy, sslPolicyReferenceResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetTcpProxyClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetTcpProxyClientTest.java index c422fa0df499..24c9c3e3a480 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetTcpProxyClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetTcpProxyClientTest.java @@ -36,6 +36,7 @@ import com.google.cloud.compute.v1.stub.TargetTcpProxyStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.List; @@ -88,58 +89,20 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void deleteTargetTcpProxyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteTargetTcpProxyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteTargetTcpProxyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetTcpProxies.addResponse(resultOperation); ProjectGlobalTargetTcpProxyName targetTcpProxy = ProjectGlobalTargetTcpProxyName.of("[PROJECT]", "[TARGET_TCP_PROXY]"); - Operation actualResponse = client.deleteTargetTcpProxy(targetTcpProxy); + Void actualResponse = client.deleteTargetTcpProxyAsync(targetTcpProxy).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -169,10 +132,12 @@ public void deleteTargetTcpProxyExceptionTest() throws Exception { ProjectGlobalTargetTcpProxyName targetTcpProxy = ProjectGlobalTargetTcpProxyName.of("[PROJECT]", "[TARGET_TCP_PROXY]"); - client.deleteTargetTcpProxy(targetTcpProxy); + client.deleteTargetTcpProxyAsync(targetTcpProxy).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -242,58 +207,20 @@ public void getTargetTcpProxyExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertTargetTcpProxyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertTargetTcpProxyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertTargetTcpProxyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetTcpProxies.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); TargetTcpProxy targetTcpProxyResource = TargetTcpProxy.newBuilder().build(); - Operation actualResponse = client.insertTargetTcpProxy(project, targetTcpProxyResource); + Void actualResponse = client.insertTargetTcpProxyAsync(project, targetTcpProxyResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -323,10 +250,12 @@ public void insertTargetTcpProxyExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); TargetTcpProxy targetTcpProxyResource = TargetTcpProxy.newBuilder().build(); - client.insertTargetTcpProxy(project, targetTcpProxyResource); + client.insertTargetTcpProxyAsync(project, targetTcpProxyResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -392,62 +321,26 @@ public void listTargetTcpProxiesExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void setBackendServiceTargetTcpProxyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setBackendServiceTargetTcpProxyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setBackendServiceTargetTcpProxyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetTcpProxies.addResponse(resultOperation); ProjectGlobalTargetTcpProxyName targetTcpProxy = ProjectGlobalTargetTcpProxyName.of("[PROJECT]", "[TARGET_TCP_PROXY]"); TargetTcpProxiesSetBackendServiceRequest targetTcpProxiesSetBackendServiceRequestResource = TargetTcpProxiesSetBackendServiceRequest.newBuilder().build(); - Operation actualResponse = - client.setBackendServiceTargetTcpProxy( - targetTcpProxy, targetTcpProxiesSetBackendServiceRequestResource); + Void actualResponse = + client + .setBackendServiceTargetTcpProxyAsync( + targetTcpProxy, targetTcpProxiesSetBackendServiceRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -479,72 +372,40 @@ public void setBackendServiceTargetTcpProxyExceptionTest() throws Exception { TargetTcpProxiesSetBackendServiceRequest targetTcpProxiesSetBackendServiceRequestResource = TargetTcpProxiesSetBackendServiceRequest.newBuilder().build(); - client.setBackendServiceTargetTcpProxy( - targetTcpProxy, targetTcpProxiesSetBackendServiceRequestResource); + client + .setBackendServiceTargetTcpProxyAsync( + targetTcpProxy, targetTcpProxiesSetBackendServiceRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void setProxyHeaderTargetTcpProxyTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void setProxyHeaderTargetTcpProxyTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("setProxyHeaderTargetTcpProxyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetTcpProxies.addResponse(resultOperation); ProjectGlobalTargetTcpProxyName targetTcpProxy = ProjectGlobalTargetTcpProxyName.of("[PROJECT]", "[TARGET_TCP_PROXY]"); TargetTcpProxiesSetProxyHeaderRequest targetTcpProxiesSetProxyHeaderRequestResource = TargetTcpProxiesSetProxyHeaderRequest.newBuilder().build(); - Operation actualResponse = - client.setProxyHeaderTargetTcpProxy( - targetTcpProxy, targetTcpProxiesSetProxyHeaderRequestResource); + Void actualResponse = + client + .setProxyHeaderTargetTcpProxyAsync( + targetTcpProxy, targetTcpProxiesSetProxyHeaderRequestResource) + .get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -576,11 +437,15 @@ public void setProxyHeaderTargetTcpProxyExceptionTest() throws Exception { TargetTcpProxiesSetProxyHeaderRequest targetTcpProxiesSetProxyHeaderRequestResource = TargetTcpProxiesSetProxyHeaderRequest.newBuilder().build(); - client.setProxyHeaderTargetTcpProxy( - targetTcpProxy, targetTcpProxiesSetProxyHeaderRequestResource); + client + .setProxyHeaderTargetTcpProxyAsync( + targetTcpProxy, targetTcpProxiesSetProxyHeaderRequestResource) + .get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetVpnGatewayClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetVpnGatewayClientTest.java index a37e859c36e5..6e23c62afa69 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetVpnGatewayClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetVpnGatewayClientTest.java @@ -36,6 +36,7 @@ import com.google.cloud.compute.v1.stub.TargetVpnGatewayStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -153,58 +154,20 @@ public void aggregatedListTargetVpnGatewaysExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void deleteTargetVpnGatewayTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteTargetVpnGatewayTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteTargetVpnGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetVpnGateways.addResponse(resultOperation); ProjectRegionTargetVpnGatewayName targetVpnGateway = ProjectRegionTargetVpnGatewayName.of("[PROJECT]", "[REGION]", "[TARGET_VPN_GATEWAY]"); - Operation actualResponse = client.deleteTargetVpnGateway(targetVpnGateway); + Void actualResponse = client.deleteTargetVpnGatewayAsync(targetVpnGateway).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -234,10 +197,12 @@ public void deleteTargetVpnGatewayExceptionTest() throws Exception { ProjectRegionTargetVpnGatewayName targetVpnGateway = ProjectRegionTargetVpnGatewayName.of("[PROJECT]", "[REGION]", "[TARGET_VPN_GATEWAY]"); - client.deleteTargetVpnGateway(targetVpnGateway); + client.deleteTargetVpnGatewayAsync(targetVpnGateway).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -309,58 +274,21 @@ public void getTargetVpnGatewayExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertTargetVpnGatewayTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region2 = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertTargetVpnGatewayTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region2.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertTargetVpnGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockTargetVpnGateways.addResponse(resultOperation); ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); TargetVpnGateway targetVpnGatewayResource = TargetVpnGateway.newBuilder().build(); - Operation actualResponse = client.insertTargetVpnGateway(region, targetVpnGatewayResource); + Void actualResponse = + client.insertTargetVpnGatewayAsync(region, targetVpnGatewayResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -390,10 +318,12 @@ public void insertTargetVpnGatewayExceptionTest() throws Exception { ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); TargetVpnGateway targetVpnGatewayResource = TargetVpnGateway.newBuilder().build(); - client.insertTargetVpnGateway(region, targetVpnGatewayResource); + client.insertTargetVpnGatewayAsync(region, targetVpnGatewayResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/UrlMapClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/UrlMapClientTest.java index f7a3e92d9d34..f994a25b9339 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/UrlMapClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/UrlMapClientTest.java @@ -38,6 +38,7 @@ import com.google.cloud.compute.v1.stub.UrlMapStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -93,57 +94,19 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") - public void deleteUrlMapTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteUrlMapTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteUrlMapTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockUrlMaps.addResponse(resultOperation); ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]"); - Operation actualResponse = client.deleteUrlMap(urlMap); + Void actualResponse = client.deleteUrlMapAsync(urlMap).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -172,10 +135,12 @@ public void deleteUrlMapExceptionTest() throws Exception { try { ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]"); - client.deleteUrlMap(urlMap); + client.deleteUrlMapAsync(urlMap).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -243,58 +208,20 @@ public void getUrlMapExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertUrlMapTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertUrlMapTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertUrlMapTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockUrlMaps.addResponse(resultOperation); ProjectName project = ProjectName.of("[PROJECT]"); UrlMap urlMapResource = UrlMap.newBuilder().build(); - Operation actualResponse = client.insertUrlMap(project, urlMapResource); + Void actualResponse = client.insertUrlMapAsync(project, urlMapResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -324,68 +251,33 @@ public void insertUrlMapExceptionTest() throws Exception { ProjectName project = ProjectName.of("[PROJECT]"); UrlMap urlMapResource = UrlMap.newBuilder().build(); - client.insertUrlMap(project, urlMapResource); + client.insertUrlMapAsync(project, urlMapResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void invalidateCacheUrlMapTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void invalidateCacheUrlMapTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("invalidateCacheUrlMapTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockUrlMaps.addResponse(resultOperation); ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]"); CacheInvalidationRule cacheInvalidationRuleResource = CacheInvalidationRule.newBuilder().build(); - Operation actualResponse = client.invalidateCacheUrlMap(urlMap, cacheInvalidationRuleResource); + Void actualResponse = + client.invalidateCacheUrlMapAsync(urlMap, cacheInvalidationRuleResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -416,10 +308,12 @@ public void invalidateCacheUrlMapExceptionTest() throws Exception { CacheInvalidationRule cacheInvalidationRuleResource = CacheInvalidationRule.newBuilder().build(); - client.invalidateCacheUrlMap(urlMap, cacheInvalidationRuleResource); + client.invalidateCacheUrlMapAsync(urlMap, cacheInvalidationRuleResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -485,59 +379,21 @@ public void listUrlMapsExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void patchUrlMapTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void patchUrlMapTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("patchUrlMapTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockUrlMaps.addResponse(resultOperation); ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]"); UrlMap urlMapResource = UrlMap.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = client.patchUrlMap(urlMap, urlMapResource, fieldMask); + Void actualResponse = client.patchUrlMapAsync(urlMap, urlMapResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -568,68 +424,32 @@ public void patchUrlMapExceptionTest() throws Exception { UrlMap urlMapResource = UrlMap.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.patchUrlMap(urlMap, urlMapResource, fieldMask); + client.patchUrlMapAsync(urlMap, urlMapResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") - public void updateUrlMapTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void updateUrlMapTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("updateUrlMapTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockUrlMaps.addResponse(resultOperation); ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]"); UrlMap urlMapResource = UrlMap.newBuilder().build(); List fieldMask = new ArrayList<>(); - Operation actualResponse = client.updateUrlMap(urlMap, urlMapResource, fieldMask); + Void actualResponse = client.updateUrlMapAsync(urlMap, urlMapResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -660,10 +480,12 @@ public void updateUrlMapExceptionTest() throws Exception { UrlMap urlMapResource = UrlMap.newBuilder().build(); List fieldMask = new ArrayList<>(); - client.updateUrlMap(urlMap, urlMapResource, fieldMask); + client.updateUrlMapAsync(urlMap, urlMapResource, fieldMask).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/VpnTunnelClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/VpnTunnelClientTest.java index 277c15f8343f..d2db0688ee32 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/VpnTunnelClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/VpnTunnelClientTest.java @@ -36,6 +36,7 @@ import com.google.cloud.compute.v1.stub.VpnTunnelStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; +import com.google.protobuf.Any; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; @@ -152,58 +153,20 @@ public void aggregatedListVpnTunnelsExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void deleteVpnTunnelTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void deleteVpnTunnelTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("deleteVpnTunnelTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockVpnTunnels.addResponse(resultOperation); ProjectRegionVpnTunnelName vpnTunnel = ProjectRegionVpnTunnelName.of("[PROJECT]", "[REGION]", "[VPN_TUNNEL]"); - Operation actualResponse = client.deleteVpnTunnel(vpnTunnel); + Void actualResponse = client.deleteVpnTunnelAsync(vpnTunnel).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -233,10 +196,12 @@ public void deleteVpnTunnelExceptionTest() throws Exception { ProjectRegionVpnTunnelName vpnTunnel = ProjectRegionVpnTunnelName.of("[PROJECT]", "[REGION]", "[VPN_TUNNEL]"); - client.deleteVpnTunnel(vpnTunnel); + client.deleteVpnTunnelAsync(vpnTunnel).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -322,58 +287,20 @@ public void getVpnTunnelExceptionTest() throws Exception { @Test @SuppressWarnings("all") - public void insertVpnTunnelTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region2 = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = + public void insertVpnTunnelTest() throws Exception { + Void expectedResponse = null; + Operation resultOperation = Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region2.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) + .setName("insertVpnTunnelTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) .build(); - mockService.addResponse(expectedResponse); + mockVpnTunnels.addResponse(resultOperation); ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); VpnTunnel vpnTunnelResource = VpnTunnel.newBuilder().build(); - Operation actualResponse = client.insertVpnTunnel(region, vpnTunnelResource); + Void actualResponse = client.insertVpnTunnelAsync(region, vpnTunnelResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -403,10 +330,12 @@ public void insertVpnTunnelExceptionTest() throws Exception { ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); VpnTunnel vpnTunnelResource = VpnTunnel.newBuilder().build(); - client.insertVpnTunnel(region, vpnTunnelResource); + client.insertVpnTunnelAsync(region, vpnTunnelResource).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } From e7dc4eed8f15fd48760cadcdf09649818e22c6c7 Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Thu, 14 Feb 2019 15:35:29 -0800 Subject: [PATCH 11/27] make ComputeLROClient work --- .../cloud/compute/longrunning/ComputeLongRunningClient.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java index dff506c0191c..effd92ac45f5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java @@ -1,6 +1,7 @@ package com.google.cloud.compute.longrunning; import com.google.api.core.ApiFunction; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.TranslatingUnaryCallable; @@ -58,9 +59,9 @@ public DeleteGlobalOperationHttpRequest apply(String request) { return DeleteGlobalOperationHttpRequest.newBuilder().setOperation(request).build(); } }, - new ApiFunction() { + new ApiFunction() { @Override - public Void apply(Void empty) { + public Void apply(EmptyMessage empty) { return null; } }); From db12d7f0cea0dd0854a73b840b38d472c384eee8 Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Thu, 14 Feb 2019 15:50:05 -0800 Subject: [PATCH 12/27] deleteFirewallTest() works --- .../cloud/compute/v1/FirewallClientTest.java | 72 ++++++++----------- 1 file changed, 31 insertions(+), 41 deletions(-) diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/FirewallClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/FirewallClientTest.java index f29fd6848216..e3475b62b7ba 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/FirewallClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/FirewallClientTest.java @@ -25,22 +25,26 @@ import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.GaxHttpJsonProperties; import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ApiException; import com.google.api.gax.rpc.ApiExceptionFactory; import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode.Code; import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.compute.longrunning.ComputeOperationSnapshot; +import com.google.cloud.compute.longrunning.ComputeOperationSnapshot.Status; import com.google.cloud.compute.v1.stub.FirewallStubSettings; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; -import com.google.protobuf.Any; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import java.util.concurrent.ExecutionException; import org.junit.After; import org.junit.AfterClass; import org.junit.Assert; @@ -91,18 +95,17 @@ public static void tearDown() throws Exception { @Test @SuppressWarnings("all") public void deleteFirewallTest() throws Exception { - Void expectedResponse = null; - Operation resultOperation = - Operation.newBuilder() - .setName("deleteFirewallTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockFirewalls.addResponse(resultOperation); + EmptyMessage expectedResponse = null; + Operation resultOperation = Operation.newBuilder() + .setName("deleteFirewallTest") + .setStatus(Status.DONE.toString()) + .build(); + // mockService.addNullResponse(); + mockService.addResponse(resultOperation); ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]"); - Void actualResponse = client.deleteFirewallAsync(firewall).get(); + EmptyMessage actualResponse = client.deleteFirewallAsync(firewall).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -136,7 +139,7 @@ public void deleteFirewallExceptionTest() throws Exception { } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -209,19 +212,14 @@ public void getFirewallExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void insertFirewallTest() throws Exception { - Void expectedResponse = null; - Operation resultOperation = - Operation.newBuilder() - .setName("insertFirewallTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockFirewalls.addResponse(resultOperation); + EmptyMessage expectedResponse = null; + Operation resultOperation = Operation.newBuilder().setName("insertFirewallTest").build(); + mockService.addNullResponse(); ProjectName project = ProjectName.of("[PROJECT]"); Firewall firewallResource = Firewall.newBuilder().build(); - Void actualResponse = client.insertFirewallAsync(project, firewallResource).get(); + EmptyMessage actualResponse = client.insertFirewallAsync(project, firewallResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -256,7 +254,7 @@ public void insertFirewallExceptionTest() throws Exception { } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @@ -323,20 +321,16 @@ public void listFirewallsExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void patchFirewallTest() throws Exception { - Void expectedResponse = null; - Operation resultOperation = - Operation.newBuilder() - .setName("patchFirewallTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockFirewalls.addResponse(resultOperation); + EmptyMessage expectedResponse = null; + Operation resultOperation = Operation.newBuilder().setName("patchFirewallTest").build(); + mockService.addNullResponse(); ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]"); Firewall firewallResource = Firewall.newBuilder().build(); List fieldMask = new ArrayList<>(); - Void actualResponse = client.patchFirewallAsync(firewall, firewallResource, fieldMask).get(); + EmptyMessage actualResponse = + client.patchFirewallAsync(firewall, firewallResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -372,27 +366,23 @@ public void patchFirewallExceptionTest() throws Exception { } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } @Test @SuppressWarnings("all") public void updateFirewallTest() throws Exception { - Void expectedResponse = null; - Operation resultOperation = - Operation.newBuilder() - .setName("updateFirewallTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockFirewalls.addResponse(resultOperation); + EmptyMessage expectedResponse = null; + Operation resultOperation = Operation.newBuilder().setName("updateFirewallTest").build(); + mockService.addNullResponse(); ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]"); Firewall firewallResource = Firewall.newBuilder().build(); List fieldMask = new ArrayList<>(); - Void actualResponse = client.updateFirewallAsync(firewall, firewallResource, fieldMask).get(); + EmptyMessage actualResponse = + client.updateFirewallAsync(firewall, firewallResource, fieldMask).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -428,7 +418,7 @@ public void updateFirewallExceptionTest() throws Exception { } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } } From 682dc60be625d7eb329e5cea099986bcfe8cdd00 Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Thu, 14 Feb 2019 16:22:08 -0800 Subject: [PATCH 13/27] update compute.longrunning and remove unused classes --- .../longrunning/ComputeLongRunningClient.java | 1 - .../longrunning/ComputeOperationSnapshot.java | 12 +- .../ComputeOperationTransformer.java | 38 ---- .../longrunning/ComputeOperationsStub.java | 31 --- .../longrunning/OperationCallableFactory.java | 36 --- .../cloud/compute/v1/it/ITComputeTest.java | 206 +++++++++++++++++- 6 files changed, 207 insertions(+), 117 deletions(-) delete mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationTransformer.java delete mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationsStub.java delete mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationCallableFactory.java diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java index effd92ac45f5..201f8156c616 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java @@ -32,7 +32,6 @@ public UnaryCallable getOperationCallable() { new ApiFunction() { @Override public GetGlobalOperationHttpRequest apply(String request) { - // GrpcLongRunningClient uses .setName() instead of .setOperation() return GetGlobalOperationHttpRequest.newBuilder().setOperation(request).build(); } }, diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java index 589cb89ae226..5283b96839ce 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java @@ -1,12 +1,11 @@ package com.google.cloud.compute.longrunning; -import static com.google.cloud.compute.longrunning.ComputeOperationSnapshot.Status.DONE; - import com.google.api.gax.httpjson.HttpJsonStatusCode; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.StatusCode; import com.google.cloud.compute.v1.Operation; +/** Implementation of a long-running operation for the Compute client. */ public class ComputeOperationSnapshot implements OperationSnapshot { public enum Status { @@ -37,7 +36,7 @@ public Object getMetadata() { @Override public boolean isDone() { - return DONE.equals(getOperationStatus()); + return Status.DONE.equals(getOperationStatus()); } @Override @@ -47,8 +46,11 @@ public Object getResponse() { @Override public StatusCode getErrorCode() { - if (operation.getError().getErrorsList().isEmpty()) { - return null; + if (operation.getError() == null + || operation.getError().getErrorsList() == null + || operation.getError().getErrorsList().isEmpty()) { + // No errors; return 200. + return HttpJsonStatusCode.of(200, "OK"); } // Return the first Error code. diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationTransformer.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationTransformer.java deleted file mode 100644 index 151001d91fa5..000000000000 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationTransformer.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.google.cloud.compute.longrunning; - -import com.google.api.core.ApiFunction; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.StatusCode.Code; - -public class ComputeOperationTransformer - implements ApiFunction { - - @Override - @SuppressWarnings("unchecked") - public ResponseT apply(OperationSnapshot operationSnapshot) { - if (!operationSnapshot.getErrorCode().getCode().equals(Code.OK)) { - throw ApiExceptionFactory.createException( - "Operation with name \"" - + operationSnapshot.getName() - + "\" failed with status = " - + operationSnapshot.getErrorCode() - + " and message = " - + operationSnapshot.getErrorMessage(), - null, - operationSnapshot.getErrorCode(), - false); - } - try { - return (ResponseT) operationSnapshot.getResponse(); - } catch (RuntimeException e) { - throw ApiExceptionFactory.createException( - "Operation with name \"" - + operationSnapshot.getName() - + "\" succeeded, but encountered a problem unpacking it.", - e, - operationSnapshot.getErrorCode(), - false); - } - } -} diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationsStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationsStub.java deleted file mode 100644 index 17f76dacbc47..000000000000 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationsStub.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.google.cloud.compute.longrunning; - -import com.google.longrunning.stub.OperationsStub; -import java.util.concurrent.TimeUnit; - -public class ComputeOperationsStub extends OperationsStub { - - @Override - public void close() {} - - @Override - public void shutdown() {} - - @Override - public boolean isShutdown() { - return false; - } - - @Override - public boolean isTerminated() { - return false; - } - - @Override - public void shutdownNow() {} - - @Override - public boolean awaitTermination(long l, TimeUnit timeUnit) throws InterruptedException { - return false; - } -} diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationCallableFactory.java deleted file mode 100644 index 5c1250d5ebf3..000000000000 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationCallableFactory.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.google.cloud.compute.longrunning; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.rpc.Callables; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.v1.Operation; -import com.google.cloud.compute.v1.stub.GlobalOperationStub; - -public class OperationCallableFactory { - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - public static - OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings operationCallSettings, - ClientContext clientContext, - GlobalOperationStub operationsStub) { - UnaryCallable initialGrpcCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); - UnaryCallable initialCallable = - new OperationSnapshotCallable<>(initialGrpcCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); - OperationCallable operationCallable = - Callables.longRunningOperation( - initialCallable, operationCallSettings, clientContext, longRunningClient); - return operationCallable.withDefaultCallContext(clientContext.getDefaultCallContext()); - } -} diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/it/ITComputeTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/it/ITComputeTest.java index f2834c5dd18a..02838f2cbc3f 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/it/ITComputeTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/it/ITComputeTest.java @@ -19,24 +19,49 @@ import com.google.api.gax.core.FixedCredentialsProvider; import com.google.api.gax.paging.Page; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.NotFoundException; +import com.google.api.gax.rpc.PermissionDeniedException; import com.google.auth.Credentials; import com.google.auth.oauth2.GoogleCredentials; import com.google.cloud.ServiceOptions; +import com.google.cloud.compute.v1.AttachedDisk; +import com.google.cloud.compute.v1.AttachedDiskInitializeParams; +import com.google.cloud.compute.v1.Disk; +import com.google.cloud.compute.v1.DiskClient; +import com.google.cloud.compute.v1.DiskSettings; import com.google.cloud.compute.v1.DiskType; import com.google.cloud.compute.v1.DiskTypeClient; import com.google.cloud.compute.v1.DiskTypeClient.AggregatedListDiskTypesPagedResponse; import com.google.cloud.compute.v1.DiskTypeSettings; import com.google.cloud.compute.v1.DiskTypesScopedList; +import com.google.cloud.compute.v1.ImageClient; +import com.google.cloud.compute.v1.ImageSettings; +import com.google.cloud.compute.v1.Instance; +import com.google.cloud.compute.v1.InstanceClient; +import com.google.cloud.compute.v1.InstanceSettings; import com.google.cloud.compute.v1.ListDiskTypesHttpRequest; +import com.google.cloud.compute.v1.NetworkInterface; +import com.google.cloud.compute.v1.Operation; +import com.google.cloud.compute.v1.ProjectGlobalImageName; import com.google.cloud.compute.v1.ProjectName; import com.google.cloud.compute.v1.ProjectRegionDiskTypeName; +import com.google.cloud.compute.v1.ProjectRegionSubnetworkName; +import com.google.cloud.compute.v1.ProjectZoneDiskName; import com.google.cloud.compute.v1.ProjectZoneDiskTypeName; +import com.google.cloud.compute.v1.ProjectZoneInstanceName; +import com.google.cloud.compute.v1.ProjectZoneMachineTypeName; import com.google.cloud.compute.v1.ProjectZoneName; +import com.google.cloud.compute.v1.Subnetwork; +import com.google.cloud.compute.v1.SubnetworkClient; +import com.google.cloud.compute.v1.SubnetworkSettings; +import com.google.cloud.compute.v1.SubnetworksScopedList; import com.google.common.collect.Lists; -import java.io.IOException; +import java.util.Arrays; import java.util.Iterator; import java.util.LinkedList; import java.util.List; +import java.util.UUID; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Rule; @@ -45,31 +70,200 @@ public class ITComputeTest { - private static final String ZONE = "us-central1-a"; + private static final String ZONE = "us-west1-a"; private static final String DISK_TYPE = "local-ssd"; private static final String DEFAULT_PROJECT = ServiceOptions.getDefaultProjectId(); + private static final String UUID_INSTANCE = UUID.randomUUID().toString().replaceAll("-", ""); + private static final String INSTANCE_NAME_FORMAT = + String.format("test-api-instance-%s", UUID_INSTANCE); + private static final String REGION = "us-west1"; + + private static final ProjectZoneName PROJECT_ZONE_NAME = + ProjectZoneName.of(DEFAULT_PROJECT, ZONE); + private static final ProjectZoneMachineTypeName MACHINE_TYPE_NAME = + ProjectZoneMachineTypeName.of( + String.format("custom-%s-%s", 4, 4 * 1024), DEFAULT_PROJECT, ZONE); + + // Google-managed image. See https://cloud.google.com/compute/docs/images. + private static final ProjectGlobalImageName IMAGE_NAME = + ProjectGlobalImageName.of("cos-69-10895-138-0", "cos-cloud"); + private static final ProjectZoneInstanceName INSTANCE_NAME = + ProjectZoneInstanceName.of( + String.format(INSTANCE_NAME_FORMAT, UUID_INSTANCE), DEFAULT_PROJECT, ZONE); + + private static final ProjectZoneDiskTypeName diskTypeName = + ProjectZoneDiskTypeName.of("pd-standard", DEFAULT_PROJECT, ZONE); + private static final ProjectZoneDiskName DISK_NAME = + ProjectZoneDiskName.of( + String.format("test-api-device-name-%s", UUID_INSTANCE), DEFAULT_PROJECT, ZONE); private static DiskTypeClient diskTypeClient; - private static DiskTypeSettings diskTypeSettings; + private static InstanceClient instanceClient; + private static DiskClient diskClient; + private static SubnetworkClient subNetworkClient; + private static ImageClient imageClient; @Rule public Timeout globalTimeout = Timeout.seconds(300); @BeforeClass - public static void beforeClass() throws IOException { + public static void beforeClass() throws Exception { Credentials credentials = GoogleCredentials.getApplicationDefault() .createScoped(DiskTypeSettings.getDefaultServiceScopes()); - diskTypeSettings = + DiskTypeSettings diskTypeSettings = DiskTypeSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(credentials)) .build(); diskTypeClient = DiskTypeClient.create(diskTypeSettings); + + InstanceSettings instanceSettings = + InstanceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(credentials)) + .build(); + instanceClient = InstanceClient.create(instanceSettings); + + DiskSettings diskSettings = + DiskSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(credentials)) + .build(); + diskClient = DiskClient.create(diskSettings); + + SubnetworkSettings subNetworkSettings = + SubnetworkSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(credentials)) + .build(); + subNetworkClient = SubnetworkClient.create(subNetworkSettings); + + ImageSettings imageSettings = + ImageSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(credentials)) + .build(); + imageClient = ImageClient.create(imageSettings); + + // Remove resources that will be created later to avoid quota problems or resource overriding + // errors. + removeResources(Arrays.asList(PermissionDeniedException.class, NotFoundException.class)); + } + + // Remove resources that are created in this test class to avoid overbilling and 403s. + private static void removeResources(List> exceptionTypes) + throws Exception { + try { + instanceClient.deleteInstance(INSTANCE_NAME); + Thread.sleep(10000); + } catch (Exception e) { + if (isNotExceptionType(exceptionTypes, e)) throw e; + } + Thread.sleep(10000); + try { + diskClient.deleteDisk(DISK_NAME); + } catch (Exception e) { + if (isNotExceptionType(exceptionTypes, e)) throw e; + } + try { + instanceClient.deleteInstance(INSTANCE_NAME); + } catch (Exception e) { + if (isNotExceptionType(exceptionTypes, e)) throw e; + } + try { + imageClient.deleteImage(IMAGE_NAME); + } catch (Exception e) { + if (isNotExceptionType(exceptionTypes, e)) throw e; + } + } + + private static boolean isNotExceptionType( + List> exceptionTypes, Exception e) { + for (Class type : exceptionTypes) { + if (type.isInstance(e)) { + return false; + } + } + return true; } @AfterClass public static void tearDown() throws Exception { - diskTypeClient.close(); + try { + removeResources(Arrays.asList(NotFoundException.class, PermissionDeniedException.class)); + } finally { + diskTypeClient.close(); + instanceClient.close(); + subNetworkClient.close(); + diskClient.close(); + imageClient.close(); + } + } + + @Test + public void testDetachDisk() throws Exception { + long startAt = System.currentTimeMillis(); + System.out.println("Clients created in " + (System.currentTimeMillis() - startAt) + "ms."); + + // Fetch a subnetwork, assuming there is one. Projects start with a default network. + Iterable subnetworks = + subNetworkClient.aggregatedListSubnetworks(DEFAULT_PROJECT).iterateAll(); + // TODO(andrealin): Implement futures for Compute methods. + Thread.sleep(10000); + Subnetwork subnetwork = subnetworks.iterator().next().getSubnetworksList().get(0); + + NetworkInterface networkInterface = + NetworkInterface.newBuilder() + .setNetwork(subnetwork.getNetwork()) + .setSubnetwork( + ProjectRegionSubnetworkName.of(DEFAULT_PROJECT, REGION, subnetwork.getName()) + .toString()) + .build(); + AttachedDisk bootDisk = + AttachedDisk.newBuilder() + .setAutoDelete(true) + .setBoot(true) + .setInitializeParams( + AttachedDiskInitializeParams.newBuilder() + .setSourceImage(IMAGE_NAME.toString()) + .setDiskSizeGb(String.valueOf(100)) + .build()) + .build(); + + // Insert an instance using the found subnetwork and its corresponding network (may not be the + // inserted network). + Instance instanceResource = + Instance.newBuilder() + .setName(INSTANCE_NAME.getInstance()) + .addNetworkInterfaces(networkInterface) + .setMachineType(MACHINE_TYPE_NAME.toString()) + .addDisks(bootDisk) + .build(); + Operation op1 = instanceClient.insertInstance(PROJECT_ZONE_NAME, instanceResource); + System.out.println(String.format("Instance created: %s", op1.toString())); + + // Insert a disk. + Disk disk = + Disk.newBuilder() + .setName(DISK_NAME.getDisk()) + .setSizeGb(String.valueOf(7)) + .setType(diskTypeName.toString()) + .build(); + Operation op2 = diskClient.insertDisk(PROJECT_ZONE_NAME, disk); + System.out.println(String.format("Disk created: %s", op2.toString())); + Thread.sleep(10000); + + // Attach the disk to the instance. + AttachedDisk attachedDisk = + AttachedDisk.newBuilder() + .setDeviceName(DISK_NAME.getDisk()) + .setAutoDelete(false) + .setMode("READ_WRITE") + .setSource(DISK_NAME.toString()) + .build(); + Operation op3 = instanceClient.attachDiskInstance(INSTANCE_NAME, false, attachedDisk); + System.out.println(String.format("Disk attached: %s", op3.toString())); + Thread.sleep(10000); + System.out.println("----------------------------------------"); + + Operation op4 = instanceClient.detachDiskInstance(INSTANCE_NAME, DISK_NAME.getDisk()); + System.out.println(String.format("Disk detached: %s", op4.toString())); } @Test From 997710fba79db33fd7f6d68041e0f6b52e5cf20d Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Thu, 14 Feb 2019 16:23:51 -0800 Subject: [PATCH 14/27] javadoc --- .../cloud/compute/longrunning/ComputeOperationSnapshot.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java index 5283b96839ce..f233bd0beece 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java @@ -5,7 +5,8 @@ import com.google.api.gax.rpc.StatusCode; import com.google.cloud.compute.v1.Operation; -/** Implementation of a long-running operation for the Compute client. */ +/** Implementation of a long-running operation for the Compute client. + * Wraps a compute Operation object. */ public class ComputeOperationSnapshot implements OperationSnapshot { public enum Status { From a7b69118bde3823a3c0166cc267f822b05acd0e3 Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Thu, 14 Feb 2019 16:24:11 -0800 Subject: [PATCH 15/27] tests pass (LRO not fully tested tho) --- .../cloud/compute/v1/AddressClient.java | 131 +- .../cloud/compute/v1/AddressSettings.java | 38 +- .../cloud/compute/v1/AutoscalerClient.java | 253 ++- .../cloud/compute/v1/AutoscalerSettings.java | 70 +- .../cloud/compute/v1/BackendBucketClient.java | 363 ++++- .../compute/v1/BackendBucketSettings.java | 107 +- .../compute/v1/BackendServiceClient.java | 423 ++++-- .../compute/v1/BackendServiceSettings.java | 129 +- .../google/cloud/compute/v1/DiskClient.java | 310 +++- .../google/cloud/compute/v1/DiskSettings.java | 86 +- .../cloud/compute/v1/FirewallClient.java | 250 ++- .../cloud/compute/v1/FirewallSettings.java | 70 +- .../compute/v1/ForwardingRuleClient.java | 188 ++- .../compute/v1/ForwardingRuleSettings.java | 58 +- .../cloud/compute/v1/GlobalAddressClient.java | 132 +- .../compute/v1/GlobalAddressSettings.java | 38 +- .../v1/GlobalForwardingRuleClient.java | 187 ++- .../v1/GlobalForwardingRuleSettings.java | 60 +- .../compute/v1/GlobalOperationClient.java | 3 +- .../compute/v1/GlobalOperationSettings.java | 6 +- .../cloud/compute/v1/HealthCheckClient.java | 249 ++- .../cloud/compute/v1/HealthCheckSettings.java | 70 +- .../compute/v1/HttpHealthCheckClient.java | 250 ++- .../compute/v1/HttpHealthCheckSettings.java | 78 +- .../compute/v1/HttpsHealthCheckClient.java | 249 ++- .../compute/v1/HttpsHealthCheckSettings.java | 78 +- .../google/cloud/compute/v1/ImageClient.java | 248 ++- .../cloud/compute/v1/ImageSettings.java | 70 +- .../cloud/compute/v1/InstanceClient.java | 1352 +++++++++++++---- .../cloud/compute/v1/InstanceGroupClient.java | 309 +++- .../v1/InstanceGroupManagerClient.java | 644 ++++++-- .../v1/InstanceGroupManagerSettings.java | 190 ++- .../compute/v1/InstanceGroupSettings.java | 92 +- .../cloud/compute/v1/InstanceSettings.java | 395 ++++- .../compute/v1/InstanceTemplateClient.java | 134 +- .../compute/v1/InstanceTemplateSettings.java | 42 +- .../v1/InterconnectAttachmentClient.java | 188 ++- .../v1/InterconnectAttachmentSettings.java | 60 +- .../cloud/compute/v1/InterconnectClient.java | 190 ++- .../compute/v1/InterconnectSettings.java | 54 +- .../cloud/compute/v1/LicenseClient.java | 131 +- .../cloud/compute/v1/LicenseSettings.java | 38 +- .../cloud/compute/v1/NetworkClient.java | 359 ++++- .../cloud/compute/v1/NetworkSettings.java | 104 +- .../cloud/compute/v1/NodeGroupClient.java | 300 +++- .../cloud/compute/v1/NodeGroupSettings.java | 88 +- .../cloud/compute/v1/NodeTemplateClient.java | 132 +- .../compute/v1/NodeTemplateSettings.java | 38 +- .../google/cloud/compute/v1/Operation.java | 48 +- .../cloud/compute/v1/ProjectClient.java | 526 +++++-- .../cloud/compute/v1/ProjectSettings.java | 160 +- .../compute/v1/RegionAutoscalerClient.java | 252 ++- .../compute/v1/RegionAutoscalerSettings.java | 78 +- .../v1/RegionBackendServiceClient.java | 252 ++- .../v1/RegionBackendServiceSettings.java | 78 +- .../compute/v1/RegionCommitmentClient.java | 73 +- .../compute/v1/RegionCommitmentSettings.java | 20 + .../cloud/compute/v1/RegionDiskClient.java | 304 +++- .../cloud/compute/v1/RegionDiskSettings.java | 87 +- .../compute/v1/RegionInstanceGroupClient.java | 72 +- .../v1/RegionInstanceGroupManagerClient.java | 664 ++++++-- .../RegionInstanceGroupManagerSettings.java | 209 ++- .../v1/RegionInstanceGroupSettings.java | 21 + .../compute/v1/RegionOperationClient.java | 3 +- .../compute/v1/RegionOperationSettings.java | 6 +- .../google/cloud/compute/v1/RouteClient.java | 131 +- .../cloud/compute/v1/RouteSettings.java | 38 +- .../google/cloud/compute/v1/RouterClient.java | 250 ++- .../cloud/compute/v1/RouterSettings.java | 70 +- .../compute/v1/SecurityPolicyClient.java | 360 ++++- .../compute/v1/SecurityPolicySettings.java | 110 +- .../cloud/compute/v1/SnapshotClient.java | 135 +- .../cloud/compute/v1/SnapshotSettings.java | 38 +- .../compute/v1/SslCertificateClient.java | 131 +- .../compute/v1/SslCertificateSettings.java | 40 +- .../cloud/compute/v1/SslPolicyClient.java | 191 ++- .../cloud/compute/v1/SslPolicySettings.java | 54 +- .../cloud/compute/v1/SubnetworkClient.java | 304 +++- .../cloud/compute/v1/SubnetworkSettings.java | 93 +- .../compute/v1/TargetHttpProxyClient.java | 187 ++- .../compute/v1/TargetHttpProxySettings.java | 60 +- .../compute/v1/TargetHttpsProxyClient.java | 356 ++++- .../compute/v1/TargetHttpsProxySettings.java | 118 +- .../compute/v1/TargetInstanceClient.java | 132 +- .../compute/v1/TargetInstanceSettings.java | 40 +- .../cloud/compute/v1/TargetPoolClient.java | 415 +++-- .../cloud/compute/v1/TargetPoolSettings.java | 123 +- .../compute/v1/TargetSslProxyClient.java | 357 ++++- .../compute/v1/TargetSslProxySettings.java | 114 +- .../compute/v1/TargetTcpProxyClient.java | 243 ++- .../compute/v1/TargetTcpProxySettings.java | 77 +- .../compute/v1/TargetVpnGatewayClient.java | 130 +- .../compute/v1/TargetVpnGatewaySettings.java | 42 +- .../google/cloud/compute/v1/UrlMapClient.java | 306 +++- .../cloud/compute/v1/UrlMapSettings.java | 87 +- .../cloud/compute/v1/VpnTunnelClient.java | 132 +- .../cloud/compute/v1/VpnTunnelSettings.java | 38 +- .../cloud/compute/v1/ZoneOperationClient.java | 4 +- .../compute/v1/ZoneOperationSettings.java | 6 +- .../google/cloud/compute/v1/package-info.java | 102 +- .../cloud/compute/v1/stub/AddressStub.java | 19 + .../compute/v1/stub/AddressStubSettings.java | 99 +- .../cloud/compute/v1/stub/AutoscalerStub.java | 31 + .../v1/stub/AutoscalerStubSettings.java | 189 ++- .../compute/v1/stub/BackendBucketStub.java | 49 + .../v1/stub/BackendBucketStubSettings.java | 298 +++- .../compute/v1/stub/BackendServiceStub.java | 56 + .../v1/stub/BackendServiceStubSettings.java | 352 ++++- .../cloud/compute/v1/stub/DiskStub.java | 38 + .../compute/v1/stub/DiskStubSettings.java | 233 ++- .../cloud/compute/v1/stub/FirewallStub.java | 31 + .../compute/v1/stub/FirewallStubSettings.java | 189 ++- .../compute/v1/stub/ForwardingRuleStub.java | 28 + .../v1/stub/ForwardingRuleStubSettings.java | 155 +- .../compute/v1/stub/GlobalAddressStub.java | 21 + .../v1/stub/GlobalAddressStubSettings.java | 103 +- .../v1/stub/GlobalForwardingRuleStub.java | 28 + .../GlobalForwardingRuleStubSettings.java | 159 +- .../compute/v1/stub/GlobalOperationStub.java | 4 +- .../v1/stub/GlobalOperationStubSettings.java | 10 +- .../compute/v1/stub/HealthCheckStub.java | 34 + .../v1/stub/HealthCheckStubSettings.java | 192 ++- .../compute/v1/stub/HttpHealthCheckStub.java | 35 + .../v1/stub/HttpHealthCheckStubSettings.java | 204 ++- ...ttpJsonAcceleratorTypeCallableFactory.java | 33 +- .../stub/HttpJsonAddressCallableFactory.java | 33 +- .../compute/v1/stub/HttpJsonAddressStub.java | 37 + .../HttpJsonAutoscalerCallableFactory.java | 33 +- .../v1/stub/HttpJsonAutoscalerStub.java | 65 + .../HttpJsonBackendBucketCallableFactory.java | 33 +- .../v1/stub/HttpJsonBackendBucketStub.java | 95 ++ ...HttpJsonBackendServiceCallableFactory.java | 33 +- .../v1/stub/HttpJsonBackendServiceStub.java | 110 ++ .../v1/stub/HttpJsonDiskCallableFactory.java | 33 +- .../compute/v1/stub/HttpJsonDiskStub.java | 79 + .../stub/HttpJsonDiskTypeCallableFactory.java | 33 +- .../stub/HttpJsonFirewallCallableFactory.java | 33 +- .../compute/v1/stub/HttpJsonFirewallStub.java | 65 + ...HttpJsonForwardingRuleCallableFactory.java | 33 +- .../v1/stub/HttpJsonForwardingRuleStub.java | 51 + .../HttpJsonGlobalAddressCallableFactory.java | 33 +- .../v1/stub/HttpJsonGlobalAddressStub.java | 37 + ...onGlobalForwardingRuleCallableFactory.java | 33 +- .../HttpJsonGlobalForwardingRuleStub.java | 52 + ...ttpJsonGlobalOperationCallableFactory.java | 33 +- .../v1/stub/HttpJsonGlobalOperationStub.java | 15 +- .../HttpJsonHealthCheckCallableFactory.java | 33 +- .../v1/stub/HttpJsonHealthCheckStub.java | 65 + ...ttpJsonHttpHealthCheckCallableFactory.java | 33 +- .../v1/stub/HttpJsonHttpHealthCheckStub.java | 65 + ...tpJsonHttpsHealthCheckCallableFactory.java | 33 +- .../v1/stub/HttpJsonHttpsHealthCheckStub.java | 65 + .../v1/stub/HttpJsonImageCallableFactory.java | 33 +- .../compute/v1/stub/HttpJsonImageStub.java | 65 + .../stub/HttpJsonInstanceCallableFactory.java | 33 +- .../HttpJsonInstanceGroupCallableFactory.java | 33 +- ...onInstanceGroupManagerCallableFactory.java | 33 +- .../HttpJsonInstanceGroupManagerStub.java | 145 ++ .../v1/stub/HttpJsonInstanceGroupStub.java | 80 + .../compute/v1/stub/HttpJsonInstanceStub.java | 336 ++++ ...tpJsonInstanceTemplateCallableFactory.java | 33 +- .../v1/stub/HttpJsonInstanceTemplateStub.java | 37 + ...InterconnectAttachmentCallableFactory.java | 33 +- .../HttpJsonInterconnectAttachmentStub.java | 54 + .../HttpJsonInterconnectCallableFactory.java | 33 +- ...onInterconnectLocationCallableFactory.java | 33 +- .../v1/stub/HttpJsonInterconnectStub.java | 51 + .../stub/HttpJsonLicenseCallableFactory.java | 33 +- .../HttpJsonLicenseCodeCallableFactory.java | 33 +- .../compute/v1/stub/HttpJsonLicenseStub.java | 37 + .../HttpJsonMachineTypeCallableFactory.java | 33 +- .../stub/HttpJsonNetworkCallableFactory.java | 33 +- .../compute/v1/stub/HttpJsonNetworkStub.java | 93 ++ .../HttpJsonNodeGroupCallableFactory.java | 33 +- .../v1/stub/HttpJsonNodeGroupStub.java | 79 + .../HttpJsonNodeTemplateCallableFactory.java | 33 +- .../v1/stub/HttpJsonNodeTemplateStub.java | 37 + .../stub/HttpJsonNodeTypeCallableFactory.java | 33 +- .../stub/HttpJsonProjectCallableFactory.java | 33 +- .../compute/v1/stub/HttpJsonProjectStub.java | 138 ++ ...tpJsonRegionAutoscalerCallableFactory.java | 28 +- .../v1/stub/HttpJsonRegionAutoscalerStub.java | 65 + ...onRegionBackendServiceCallableFactory.java | 33 +- .../HttpJsonRegionBackendServiceStub.java | 65 + .../stub/HttpJsonRegionCallableFactory.java | 33 +- ...tpJsonRegionCommitmentCallableFactory.java | 33 +- .../v1/stub/HttpJsonRegionCommitmentStub.java | 23 + .../HttpJsonRegionDiskCallableFactory.java | 33 +- .../v1/stub/HttpJsonRegionDiskStub.java | 79 + ...HttpJsonRegionDiskTypeCallableFactory.java | 33 +- ...sonRegionInstanceGroupCallableFactory.java | 33 +- ...onInstanceGroupManagerCallableFactory.java | 32 +- ...ttpJsonRegionInstanceGroupManagerStub.java | 149 ++ .../stub/HttpJsonRegionInstanceGroupStub.java | 24 + ...ttpJsonRegionOperationCallableFactory.java | 33 +- .../v1/stub/HttpJsonRegionOperationStub.java | 15 +- .../v1/stub/HttpJsonRouteCallableFactory.java | 33 +- .../compute/v1/stub/HttpJsonRouteStub.java | 37 + .../stub/HttpJsonRouterCallableFactory.java | 33 +- .../compute/v1/stub/HttpJsonRouterStub.java | 65 + ...HttpJsonSecurityPolicyCallableFactory.java | 33 +- .../v1/stub/HttpJsonSecurityPolicyStub.java | 93 ++ .../stub/HttpJsonSnapshotCallableFactory.java | 33 +- .../compute/v1/stub/HttpJsonSnapshotStub.java | 37 + ...HttpJsonSslCertificateCallableFactory.java | 33 +- .../v1/stub/HttpJsonSslCertificateStub.java | 37 + .../HttpJsonSslPolicyCallableFactory.java | 33 +- .../v1/stub/HttpJsonSslPolicyStub.java | 51 + .../HttpJsonSubnetworkCallableFactory.java | 33 +- .../v1/stub/HttpJsonSubnetworkStub.java | 82 + ...ttpJsonTargetHttpProxyCallableFactory.java | 33 +- .../v1/stub/HttpJsonTargetHttpProxyStub.java | 51 + ...tpJsonTargetHttpsProxyCallableFactory.java | 33 +- .../v1/stub/HttpJsonTargetHttpsProxyStub.java | 97 ++ ...HttpJsonTargetInstanceCallableFactory.java | 33 +- .../v1/stub/HttpJsonTargetInstanceStub.java | 37 + .../HttpJsonTargetPoolCallableFactory.java | 33 +- .../v1/stub/HttpJsonTargetPoolStub.java | 108 ++ ...HttpJsonTargetSslProxyCallableFactory.java | 33 +- .../v1/stub/HttpJsonTargetSslProxyStub.java | 96 ++ ...HttpJsonTargetTcpProxyCallableFactory.java | 33 +- .../v1/stub/HttpJsonTargetTcpProxyStub.java | 67 + ...tpJsonTargetVpnGatewayCallableFactory.java | 33 +- .../v1/stub/HttpJsonTargetVpnGatewayStub.java | 37 + .../stub/HttpJsonUrlMapCallableFactory.java | 33 +- .../compute/v1/stub/HttpJsonUrlMapStub.java | 79 + .../HttpJsonVpnTunnelCallableFactory.java | 33 +- .../v1/stub/HttpJsonVpnTunnelStub.java | 37 + .../v1/stub/HttpJsonZoneCallableFactory.java | 33 +- .../HttpJsonZoneOperationCallableFactory.java | 33 +- .../v1/stub/HttpJsonZoneOperationStub.java | 14 +- .../compute/v1/stub/HttpsHealthCheckStub.java | 35 + .../v1/stub/HttpsHealthCheckStubSettings.java | 205 ++- .../cloud/compute/v1/stub/ImageStub.java | 31 + .../compute/v1/stub/ImageStubSettings.java | 187 ++- .../v1/stub/InstanceGroupManagerStub.java | 75 + .../InstanceGroupManagerStubSettings.java | 481 +++++- .../compute/v1/stub/InstanceGroupStub.java | 42 + .../v1/stub/InstanceGroupStubSettings.java | 253 ++- .../cloud/compute/v1/stub/InstanceStub.java | 162 ++ .../compute/v1/stub/InstanceStubSettings.java | 1116 +++++++++++++- .../compute/v1/stub/InstanceTemplateStub.java | 21 + .../v1/stub/InstanceTemplateStubSettings.java | 107 +- .../v1/stub/InterconnectAttachmentStub.java | 28 + .../InterconnectAttachmentStubSettings.java | 159 +- .../compute/v1/stub/InterconnectStub.java | 28 + .../v1/stub/InterconnectStubSettings.java | 149 +- .../cloud/compute/v1/stub/LicenseStub.java | 19 + .../compute/v1/stub/LicenseStubSettings.java | 99 +- .../cloud/compute/v1/stub/NetworkStub.java | 46 + .../compute/v1/stub/NetworkStubSettings.java | 287 +++- .../cloud/compute/v1/stub/NodeGroupStub.java | 40 + .../v1/stub/NodeGroupStubSettings.java | 243 ++- .../compute/v1/stub/NodeTemplateStub.java | 21 + .../v1/stub/NodeTemplateStubSettings.java | 103 +- .../cloud/compute/v1/stub/ProjectStub.java | 69 + .../compute/v1/stub/ProjectStubSettings.java | 449 +++++- .../compute/v1/stub/RegionAutoscalerStub.java | 35 + .../v1/stub/RegionAutoscalerStubSettings.java | 205 ++- .../v1/stub/RegionBackendServiceStub.java | 35 + .../RegionBackendServiceStubSettings.java | 209 ++- .../compute/v1/stub/RegionCommitmentStub.java | 14 + .../v1/stub/RegionCommitmentStubSettings.java | 54 + .../cloud/compute/v1/stub/RegionDiskStub.java | 39 + .../v1/stub/RegionDiskStubSettings.java | 241 ++- .../stub/RegionInstanceGroupManagerStub.java | 75 + ...egionInstanceGroupManagerStubSettings.java | 503 +++++- .../v1/stub/RegionInstanceGroupStub.java | 14 + .../stub/RegionInstanceGroupStubSettings.java | 56 + .../compute/v1/stub/RegionOperationStub.java | 4 +- .../v1/stub/RegionOperationStubSettings.java | 10 +- .../cloud/compute/v1/stub/RouteStub.java | 19 + .../compute/v1/stub/RouteStubSettings.java | 97 +- .../cloud/compute/v1/stub/RouterStub.java | 31 + .../compute/v1/stub/RouterStubSettings.java | 185 ++- .../compute/v1/stub/SecurityPolicyStub.java | 49 + .../v1/stub/SecurityPolicyStubSettings.java | 301 +++- .../cloud/compute/v1/stub/SnapshotStub.java | 20 + .../compute/v1/stub/SnapshotStubSettings.java | 100 +- .../compute/v1/stub/SslCertificateStub.java | 21 + .../v1/stub/SslCertificateStubSettings.java | 105 +- .../cloud/compute/v1/stub/SslPolicyStub.java | 25 + .../v1/stub/SslPolicyStubSettings.java | 144 +- .../cloud/compute/v1/stub/SubnetworkStub.java | 40 + .../v1/stub/SubnetworkStubSettings.java | 247 ++- .../compute/v1/stub/TargetHttpProxyStub.java | 28 + .../v1/stub/TargetHttpProxyStubSettings.java | 157 +- .../compute/v1/stub/TargetHttpsProxyStub.java | 50 + .../v1/stub/TargetHttpsProxyStubSettings.java | 311 +++- .../compute/v1/stub/TargetInstanceStub.java | 21 + .../v1/stub/TargetInstanceStubSettings.java | 105 +- .../cloud/compute/v1/stub/TargetPoolStub.java | 54 + .../v1/stub/TargetPoolStubSettings.java | 345 ++++- .../compute/v1/stub/TargetSslProxyStub.java | 49 + .../v1/stub/TargetSslProxyStubSettings.java | 307 +++- .../compute/v1/stub/TargetTcpProxyStub.java | 35 + .../v1/stub/TargetTcpProxyStubSettings.java | 206 ++- .../compute/v1/stub/TargetVpnGatewayStub.java | 21 + .../v1/stub/TargetVpnGatewayStubSettings.java | 107 +- .../cloud/compute/v1/stub/UrlMapStub.java | 38 + .../compute/v1/stub/UrlMapStubSettings.java | 234 ++- .../cloud/compute/v1/stub/VpnTunnelStub.java | 19 + .../v1/stub/VpnTunnelStubSettings.java | 99 +- .../compute/v1/stub/ZoneOperationStub.java | 3 +- .../v1/stub/ZoneOperationStubSettings.java | 11 +- .../cloud/compute/v1/AddressClientTest.java | 31 +- .../compute/v1/AutoscalerClientTest.java | 59 +- .../compute/v1/BackendBucketClientTest.java | 83 +- .../compute/v1/BackendServiceClientTest.java | 93 +- .../cloud/compute/v1/DiskClientTest.java | 75 +- .../cloud/compute/v1/FirewallClientTest.java | 25 +- .../compute/v1/ForwardingRuleClientTest.java | 46 +- .../compute/v1/GlobalAddressClientTest.java | 31 +- .../v1/GlobalForwardingRuleClientTest.java | 42 +- .../compute/v1/HealthCheckClientTest.java | 59 +- .../compute/v1/HttpHealthCheckClientTest.java | 60 +- .../v1/HttpsHealthCheckClientTest.java | 59 +- .../cloud/compute/v1/ImageClientTest.java | 61 +- .../cloud/compute/v1/InstanceClientTest.java | 314 ++-- .../compute/v1/InstanceGroupClientTest.java | 71 +- .../v1/InstanceGroupManagerClientTest.java | 116 +- .../v1/InstanceTemplateClientTest.java | 31 +- .../v1/InterconnectAttachmentClientTest.java | 40 +- .../compute/v1/InterconnectClientTest.java | 46 +- .../cloud/compute/v1/LicenseClientTest.java | 31 +- .../cloud/compute/v1/NetworkClientTest.java | 88 +- .../cloud/compute/v1/NodeGroupClientTest.java | 73 +- .../compute/v1/NodeTemplateClientTest.java | 32 +- .../cloud/compute/v1/ProjectClientTest.java | 124 +- .../v1/RegionAutoscalerClientTest.java | 60 +- .../v1/RegionBackendServiceClientTest.java | 59 +- .../v1/RegionCommitmentClientTest.java | 18 +- .../compute/v1/RegionDiskClientTest.java | 74 +- .../v1/RegionInstanceGroupClientTest.java | 14 +- .../RegionInstanceGroupManagerClientTest.java | 103 +- .../cloud/compute/v1/RouteClientTest.java | 31 +- .../cloud/compute/v1/RouterClientTest.java | 59 +- .../compute/v1/SecurityPolicyClientTest.java | 89 +- .../cloud/compute/v1/SnapshotClientTest.java | 31 +- .../compute/v1/SslCertificateClientTest.java | 32 +- .../cloud/compute/v1/SslPolicyClientTest.java | 46 +- .../compute/v1/SubnetworkClientTest.java | 70 +- .../compute/v1/TargetHttpProxyClientTest.java | 46 +- .../v1/TargetHttpsProxyClientTest.java | 78 +- .../compute/v1/TargetInstanceClientTest.java | 32 +- .../compute/v1/TargetPoolClientTest.java | 101 +- .../compute/v1/TargetSslProxyClientTest.java | 79 +- .../compute/v1/TargetTcpProxyClientTest.java | 54 +- .../v1/TargetVpnGatewayClientTest.java | 31 +- .../cloud/compute/v1/UrlMapClientTest.java | 73 +- .../cloud/compute/v1/VpnTunnelClientTest.java | 31 +- .../cloud/compute/v1/it/ITComputeTest.java | 18 +- 352 files changed, 32258 insertions(+), 4958 deletions(-) diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java index 350917331d05..07fbeb69fb6e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java @@ -20,9 +20,12 @@ 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.EmptyMessage; +import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.AddressStub; @@ -43,7 +46,7 @@ * * try (AddressClient addressClient = AddressClient.create()) { * ProjectRegionAddressName address = ProjectRegionAddressName.of("[PROJECT]", "[REGION]", "[ADDRESS]"); - * Operation response = addressClient.deleteAddress(address); + * Address response = addressClient.getAddress(address); * } * * @@ -103,6 +106,7 @@ public class AddressClient implements BackgroundResource { private final AddressSettings settings; private final AddressStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of AddressClient with default settings. */ public static final AddressClient create() throws IOException { @@ -133,12 +137,14 @@ public static final AddressClient create(AddressStub stub) { protected AddressClient(AddressSettings settings) throws IOException { this.settings = settings; this.stub = ((AddressStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected AddressClient(AddressStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final AddressSettings getSettings() { @@ -150,6 +156,16 @@ public AddressStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Retrieves an aggregated list of addresses. @@ -298,21 +314,23 @@ public final AggregatedListAddressesPagedResponse aggregatedListAddresses( *


    * try (AddressClient addressClient = AddressClient.create()) {
    *   ProjectRegionAddressName address = ProjectRegionAddressName.of("[PROJECT]", "[REGION]", "[ADDRESS]");
-   *   Operation response = addressClient.deleteAddress(address);
+   *   addressClient.deleteAddressAsync(address).get();
    * }
    * 
* * @param address Name of the address resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteAddress(ProjectRegionAddressName address) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteAddressAsync( + ProjectRegionAddressName address) { DeleteAddressHttpRequest request = DeleteAddressHttpRequest.newBuilder() .setAddress(address == null ? null : address.toString()) .build(); - return deleteAddress(request); + return deleteAddressAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -324,19 +342,20 @@ public final Operation deleteAddress(ProjectRegionAddressName address) { *

    * try (AddressClient addressClient = AddressClient.create()) {
    *   ProjectRegionAddressName address = ProjectRegionAddressName.of("[PROJECT]", "[REGION]", "[ADDRESS]");
-   *   Operation response = addressClient.deleteAddress(address.toString());
+   *   addressClient.deleteAddressAsync(address.toString()).get();
    * }
    * 
* * @param address Name of the address resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteAddress(String address) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteAddressAsync(String address) { DeleteAddressHttpRequest request = DeleteAddressHttpRequest.newBuilder().setAddress(address).build(); - return deleteAddress(request); + return deleteAddressAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -351,16 +370,42 @@ public final Operation deleteAddress(String address) { * DeleteAddressHttpRequest request = DeleteAddressHttpRequest.newBuilder() * .setAddress(address.toString()) * .build(); - * Operation response = addressClient.deleteAddress(request); + * addressClient.deleteAddressAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteAddress(DeleteAddressHttpRequest request) { - return deleteAddressCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteAddressAsync( + DeleteAddressHttpRequest request) { + return deleteAddressOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified address resource. + * + *

Sample code: + * + *


+   * try (AddressClient addressClient = AddressClient.create()) {
+   *   ProjectRegionAddressName address = ProjectRegionAddressName.of("[PROJECT]", "[REGION]", "[ADDRESS]");
+   *   DeleteAddressHttpRequest request = DeleteAddressHttpRequest.newBuilder()
+   *     .setAddress(address.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = addressClient.deleteAddressOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteAddressOperationCallable() { + return stub.deleteAddressOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -377,7 +422,7 @@ public final Operation deleteAddress(DeleteAddressHttpRequest request) { * .build(); * ApiFuture<Operation> future = addressClient.deleteAddressCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -492,7 +537,7 @@ public final UnaryCallable getAddressCallable() * try (AddressClient addressClient = AddressClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * Address addressResource = Address.newBuilder().build(); - * Operation response = addressClient.insertAddress(region, addressResource); + * addressClient.insertAddressAsync(region, addressResource).get(); * } * * @@ -502,15 +547,17 @@ public final UnaryCallable getAddressCallable() * v1.globalAddresses ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertAddress(ProjectRegionName region, Address addressResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertAddressAsync( + ProjectRegionName region, Address addressResource) { InsertAddressHttpRequest request = InsertAddressHttpRequest.newBuilder() .setRegion(region == null ? null : region.toString()) .setAddressResource(addressResource) .build(); - return insertAddress(request); + return insertAddressAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -523,7 +570,7 @@ public final Operation insertAddress(ProjectRegionName region, Address addressRe * try (AddressClient addressClient = AddressClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * Address addressResource = Address.newBuilder().build(); - * Operation response = addressClient.insertAddress(region.toString(), addressResource); + * addressClient.insertAddressAsync(region.toString(), addressResource).get(); * } * * @@ -533,15 +580,17 @@ public final Operation insertAddress(ProjectRegionName region, Address addressRe * v1.globalAddresses ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertAddress(String region, Address addressResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertAddressAsync( + String region, Address addressResource) { InsertAddressHttpRequest request = InsertAddressHttpRequest.newBuilder() .setRegion(region) .setAddressResource(addressResource) .build(); - return insertAddress(request); + return insertAddressAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -558,16 +607,44 @@ public final Operation insertAddress(String region, Address addressResource) { * .setRegion(region.toString()) * .setAddressResource(addressResource) * .build(); - * Operation response = addressClient.insertAddress(request); + * addressClient.insertAddressAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertAddress(InsertAddressHttpRequest request) { - return insertAddressCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertAddressAsync( + InsertAddressHttpRequest request) { + return insertAddressOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates an address resource in the specified project using the data included in the request. + * + *

Sample code: + * + *


+   * try (AddressClient addressClient = AddressClient.create()) {
+   *   ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
+   *   Address addressResource = Address.newBuilder().build();
+   *   InsertAddressHttpRequest request = InsertAddressHttpRequest.newBuilder()
+   *     .setRegion(region.toString())
+   *     .setAddressResource(addressResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = addressClient.insertAddressOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertAddressOperationCallable() { + return stub.insertAddressOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -586,7 +663,7 @@ public final Operation insertAddress(InsertAddressHttpRequest request) { * .build(); * ApiFuture<Operation> future = addressClient.insertAddressCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressSettings.java index ea1108fe195e..daf12e58d37e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressSettings.java @@ -22,10 +22,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -49,13 +51,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteAddress to 30 seconds: + * example, to set the total timeout of getAddress to 30 seconds: * *

  * 
  * AddressSettings.Builder addressSettingsBuilder =
  *     AddressSettings.newBuilder();
- * addressSettingsBuilder.deleteAddressSettings().getRetrySettings().toBuilder()
+ * addressSettingsBuilder.getAddressSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * AddressSettings addressSettings = addressSettingsBuilder.build();
  * 
@@ -78,6 +80,14 @@ public UnaryCallSettings deleteAddressSetti
     return ((AddressStubSettings) getStubSettings()).deleteAddressSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteAddress. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteAddressOperationSettings() {
+    return ((AddressStubSettings) getStubSettings()).deleteAddressOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getAddress. */
   public UnaryCallSettings getAddressSettings() {
     return ((AddressStubSettings) getStubSettings()).getAddressSettings();
@@ -88,6 +98,14 @@ public UnaryCallSettings insertAddressSetti
     return ((AddressStubSettings) getStubSettings()).insertAddressSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertAddress. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertAddressOperationSettings() {
+    return ((AddressStubSettings) getStubSettings()).insertAddressOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listAddresses. */
   public PagedCallSettings
       listAddressesSettings() {
@@ -209,6 +227,14 @@ public UnaryCallSettings.Builder deleteAddr
       return getStubSettingsBuilder().deleteAddressSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteAddress. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteAddressOperationSettings() {
+      return getStubSettingsBuilder().deleteAddressOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getAddress. */
     public UnaryCallSettings.Builder getAddressSettings() {
       return getStubSettingsBuilder().getAddressSettings();
@@ -219,6 +245,14 @@ public UnaryCallSettings.Builder insertAddr
       return getStubSettingsBuilder().insertAddressSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertAddress. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertAddressOperationSettings() {
+      return getStubSettingsBuilder().insertAddressOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listAddresses. */
     public PagedCallSettings.Builder<
             ListAddressesHttpRequest, AddressList, ListAddressesPagedResponse>
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java
index e1a36fe8bb5e..25a4be2ea9cc 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.AutoscalerStub;
@@ -43,7 +46,7 @@
  * 
  * try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
  *   ProjectZoneAutoscalerName autoscaler = ProjectZoneAutoscalerName.of("[PROJECT]", "[ZONE]", "[AUTOSCALER]");
- *   Operation response = autoscalerClient.deleteAutoscaler(autoscaler);
+ *   Autoscaler response = autoscalerClient.getAutoscaler(autoscaler);
  * }
  * 
  * 
@@ -103,6 +106,7 @@ public class AutoscalerClient implements BackgroundResource { private final AutoscalerSettings settings; private final AutoscalerStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of AutoscalerClient with default settings. */ public static final AutoscalerClient create() throws IOException { @@ -133,12 +137,14 @@ public static final AutoscalerClient create(AutoscalerStub stub) { protected AutoscalerClient(AutoscalerSettings settings) throws IOException { this.settings = settings; this.stub = ((AutoscalerStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected AutoscalerClient(AutoscalerStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final AutoscalerSettings getSettings() { @@ -150,6 +156,16 @@ public AutoscalerStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Retrieves an aggregated list of autoscalers. @@ -299,21 +315,23 @@ public final AggregatedListAutoscalersPagedResponse aggregatedListAutoscalers( *

    * try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
    *   ProjectZoneAutoscalerName autoscaler = ProjectZoneAutoscalerName.of("[PROJECT]", "[ZONE]", "[AUTOSCALER]");
-   *   Operation response = autoscalerClient.deleteAutoscaler(autoscaler);
+   *   autoscalerClient.deleteAutoscalerAsync(autoscaler).get();
    * }
    * 
* * @param autoscaler Name of the autoscaler to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteAutoscaler(ProjectZoneAutoscalerName autoscaler) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteAutoscalerAsync( + ProjectZoneAutoscalerName autoscaler) { DeleteAutoscalerHttpRequest request = DeleteAutoscalerHttpRequest.newBuilder() .setAutoscaler(autoscaler == null ? null : autoscaler.toString()) .build(); - return deleteAutoscaler(request); + return deleteAutoscalerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -325,19 +343,21 @@ public final Operation deleteAutoscaler(ProjectZoneAutoscalerName autoscaler) { *

    * try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
    *   ProjectZoneAutoscalerName autoscaler = ProjectZoneAutoscalerName.of("[PROJECT]", "[ZONE]", "[AUTOSCALER]");
-   *   Operation response = autoscalerClient.deleteAutoscaler(autoscaler.toString());
+   *   autoscalerClient.deleteAutoscalerAsync(autoscaler.toString()).get();
    * }
    * 
* * @param autoscaler Name of the autoscaler to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteAutoscaler(String autoscaler) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteAutoscalerAsync( + String autoscaler) { DeleteAutoscalerHttpRequest request = DeleteAutoscalerHttpRequest.newBuilder().setAutoscaler(autoscaler).build(); - return deleteAutoscaler(request); + return deleteAutoscalerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -352,16 +372,42 @@ public final Operation deleteAutoscaler(String autoscaler) { * DeleteAutoscalerHttpRequest request = DeleteAutoscalerHttpRequest.newBuilder() * .setAutoscaler(autoscaler.toString()) * .build(); - * Operation response = autoscalerClient.deleteAutoscaler(request); + * autoscalerClient.deleteAutoscalerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteAutoscaler(DeleteAutoscalerHttpRequest request) { - return deleteAutoscalerCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteAutoscalerAsync( + DeleteAutoscalerHttpRequest request) { + return deleteAutoscalerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified autoscaler. + * + *

Sample code: + * + *


+   * try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
+   *   ProjectZoneAutoscalerName autoscaler = ProjectZoneAutoscalerName.of("[PROJECT]", "[ZONE]", "[AUTOSCALER]");
+   *   DeleteAutoscalerHttpRequest request = DeleteAutoscalerHttpRequest.newBuilder()
+   *     .setAutoscaler(autoscaler.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = autoscalerClient.deleteAutoscalerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteAutoscalerOperationCallable() { + return stub.deleteAutoscalerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -378,7 +424,7 @@ public final Operation deleteAutoscaler(DeleteAutoscalerHttpRequest request) { * .build(); * ApiFuture<Operation> future = autoscalerClient.deleteAutoscalerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -498,7 +544,7 @@ public final UnaryCallable getAutoscalerCa * try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) { * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); * Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); - * Operation response = autoscalerClient.insertAutoscaler(zone, autoscalerResource); + * autoscalerClient.insertAutoscalerAsync(zone, autoscalerResource).get(); * } * * @@ -510,15 +556,17 @@ public final UnaryCallable getAutoscalerCa * resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertAutoscaler(ProjectZoneName zone, Autoscaler autoscalerResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertAutoscalerAsync( + ProjectZoneName zone, Autoscaler autoscalerResource) { InsertAutoscalerHttpRequest request = InsertAutoscalerHttpRequest.newBuilder() .setZone(zone == null ? null : zone.toString()) .setAutoscalerResource(autoscalerResource) .build(); - return insertAutoscaler(request); + return insertAutoscalerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -531,7 +579,7 @@ public final Operation insertAutoscaler(ProjectZoneName zone, Autoscaler autosca * try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) { * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); * Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); - * Operation response = autoscalerClient.insertAutoscaler(zone.toString(), autoscalerResource); + * autoscalerClient.insertAutoscalerAsync(zone.toString(), autoscalerResource).get(); * } * * @@ -543,15 +591,17 @@ public final Operation insertAutoscaler(ProjectZoneName zone, Autoscaler autosca * resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertAutoscaler(String zone, Autoscaler autoscalerResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertAutoscalerAsync( + String zone, Autoscaler autoscalerResource) { InsertAutoscalerHttpRequest request = InsertAutoscalerHttpRequest.newBuilder() .setZone(zone) .setAutoscalerResource(autoscalerResource) .build(); - return insertAutoscaler(request); + return insertAutoscalerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -568,16 +618,44 @@ public final Operation insertAutoscaler(String zone, Autoscaler autoscalerResour * .setZone(zone.toString()) * .setAutoscalerResource(autoscalerResource) * .build(); - * Operation response = autoscalerClient.insertAutoscaler(request); + * autoscalerClient.insertAutoscalerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertAutoscaler(InsertAutoscalerHttpRequest request) { - return insertAutoscalerCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertAutoscalerAsync( + InsertAutoscalerHttpRequest request) { + return insertAutoscalerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates an autoscaler in the specified project using the data included in the request. + * + *

Sample code: + * + *


+   * try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
+   *   ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+   *   Autoscaler autoscalerResource = Autoscaler.newBuilder().build();
+   *   InsertAutoscalerHttpRequest request = InsertAutoscalerHttpRequest.newBuilder()
+   *     .setZone(zone.toString())
+   *     .setAutoscalerResource(autoscalerResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = autoscalerClient.insertAutoscalerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertAutoscalerOperationCallable() { + return stub.insertAutoscalerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -596,7 +674,7 @@ public final Operation insertAutoscaler(InsertAutoscalerHttpRequest request) { * .build(); * ApiFuture<Operation> future = autoscalerClient.insertAutoscalerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -754,7 +832,7 @@ public final UnaryCallable listAutos * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); * Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = autoscalerClient.patchAutoscaler(autoscaler, zone, autoscalerResource, fieldMask); + * autoscalerClient.patchAutoscalerAsync(autoscaler, zone, autoscalerResource, fieldMask).get(); * } * * @@ -771,8 +849,9 @@ public final UnaryCallable listAutos * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchAutoscaler( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchAutoscalerAsync( String autoscaler, ProjectZoneName zone, Autoscaler autoscalerResource, @@ -785,7 +864,7 @@ public final Operation patchAutoscaler( .setAutoscalerResource(autoscalerResource) .addAllFieldMask(fieldMask) .build(); - return patchAutoscaler(request); + return patchAutoscalerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -801,7 +880,7 @@ public final Operation patchAutoscaler( * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); * Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = autoscalerClient.patchAutoscaler(autoscaler, zone.toString(), autoscalerResource, fieldMask); + * autoscalerClient.patchAutoscalerAsync(autoscaler, zone.toString(), autoscalerResource, fieldMask).get(); * } * * @@ -818,8 +897,9 @@ public final Operation patchAutoscaler( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchAutoscaler( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchAutoscalerAsync( String autoscaler, String zone, Autoscaler autoscalerResource, List fieldMask) { PatchAutoscalerHttpRequest request = @@ -829,7 +909,7 @@ public final Operation patchAutoscaler( .setAutoscalerResource(autoscalerResource) .addAllFieldMask(fieldMask) .build(); - return patchAutoscaler(request); + return patchAutoscalerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -851,16 +931,49 @@ public final Operation patchAutoscaler( * .setAutoscalerResource(autoscalerResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = autoscalerClient.patchAutoscaler(request); + * autoscalerClient.patchAutoscalerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchAutoscaler(PatchAutoscalerHttpRequest request) { - return patchAutoscalerCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchAutoscalerAsync( + PatchAutoscalerHttpRequest request) { + return patchAutoscalerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an autoscaler in the specified project using the data included in the request. This + * method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * + *

Sample code: + * + *


+   * try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
+   *   String autoscaler = "";
+   *   ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+   *   Autoscaler autoscalerResource = Autoscaler.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   PatchAutoscalerHttpRequest request = PatchAutoscalerHttpRequest.newBuilder()
+   *     .setAutoscaler(autoscaler)
+   *     .setZone(zone.toString())
+   *     .setAutoscalerResource(autoscalerResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = autoscalerClient.patchAutoscalerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + patchAutoscalerOperationCallable() { + return stub.patchAutoscalerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -884,7 +997,7 @@ public final Operation patchAutoscaler(PatchAutoscalerHttpRequest request) { * .build(); * ApiFuture<Operation> future = autoscalerClient.patchAutoscalerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -905,7 +1018,7 @@ public final UnaryCallable patchAutoscale * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); * Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = autoscalerClient.updateAutoscaler(autoscaler, zone, autoscalerResource, fieldMask); + * autoscalerClient.updateAutoscalerAsync(autoscaler, zone, autoscalerResource, fieldMask).get(); * } * * @@ -922,8 +1035,9 @@ public final UnaryCallable patchAutoscale * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateAutoscaler( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateAutoscalerAsync( String autoscaler, ProjectZoneName zone, Autoscaler autoscalerResource, @@ -936,7 +1050,7 @@ public final Operation updateAutoscaler( .setAutoscalerResource(autoscalerResource) .addAllFieldMask(fieldMask) .build(); - return updateAutoscaler(request); + return updateAutoscalerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -951,7 +1065,7 @@ public final Operation updateAutoscaler( * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); * Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = autoscalerClient.updateAutoscaler(autoscaler, zone.toString(), autoscalerResource, fieldMask); + * autoscalerClient.updateAutoscalerAsync(autoscaler, zone.toString(), autoscalerResource, fieldMask).get(); * } * * @@ -968,8 +1082,9 @@ public final Operation updateAutoscaler( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateAutoscaler( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateAutoscalerAsync( String autoscaler, String zone, Autoscaler autoscalerResource, List fieldMask) { UpdateAutoscalerHttpRequest request = @@ -979,7 +1094,7 @@ public final Operation updateAutoscaler( .setAutoscalerResource(autoscalerResource) .addAllFieldMask(fieldMask) .build(); - return updateAutoscaler(request); + return updateAutoscalerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1000,16 +1115,48 @@ public final Operation updateAutoscaler( * .setAutoscalerResource(autoscalerResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = autoscalerClient.updateAutoscaler(request); + * autoscalerClient.updateAutoscalerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateAutoscaler(UpdateAutoscalerHttpRequest request) { - return updateAutoscalerCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateAutoscalerAsync( + UpdateAutoscalerHttpRequest request) { + return updateAutoscalerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an autoscaler in the specified project using the data included in the request. + * + *

Sample code: + * + *


+   * try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
+   *   String autoscaler = "";
+   *   ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+   *   Autoscaler autoscalerResource = Autoscaler.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   UpdateAutoscalerHttpRequest request = UpdateAutoscalerHttpRequest.newBuilder()
+   *     .setAutoscaler(autoscaler)
+   *     .setZone(zone.toString())
+   *     .setAutoscalerResource(autoscalerResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = autoscalerClient.updateAutoscalerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + updateAutoscalerOperationCallable() { + return stub.updateAutoscalerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1032,7 +1179,7 @@ public final Operation updateAutoscaler(UpdateAutoscalerHttpRequest request) { * .build(); * ApiFuture<Operation> future = autoscalerClient.updateAutoscalerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerSettings.java index 4db44b598b57..2f3706681c78 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerSettings.java @@ -22,10 +22,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -49,13 +51,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteAutoscaler to 30 seconds: + * example, to set the total timeout of getAutoscaler to 30 seconds: * *

  * 
  * AutoscalerSettings.Builder autoscalerSettingsBuilder =
  *     AutoscalerSettings.newBuilder();
- * autoscalerSettingsBuilder.deleteAutoscalerSettings().getRetrySettings().toBuilder()
+ * autoscalerSettingsBuilder.getAutoscalerSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * AutoscalerSettings autoscalerSettings = autoscalerSettingsBuilder.build();
  * 
@@ -78,6 +80,14 @@ public UnaryCallSettings deleteAutoscale
     return ((AutoscalerStubSettings) getStubSettings()).deleteAutoscalerSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteAutoscaler. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteAutoscalerOperationSettings() {
+    return ((AutoscalerStubSettings) getStubSettings()).deleteAutoscalerOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getAutoscaler. */
   public UnaryCallSettings getAutoscalerSettings() {
     return ((AutoscalerStubSettings) getStubSettings()).getAutoscalerSettings();
@@ -88,6 +98,14 @@ public UnaryCallSettings insertAutoscale
     return ((AutoscalerStubSettings) getStubSettings()).insertAutoscalerSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertAutoscaler. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertAutoscalerOperationSettings() {
+    return ((AutoscalerStubSettings) getStubSettings()).insertAutoscalerOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listAutoscalers. */
   public PagedCallSettings
       listAutoscalersSettings() {
@@ -99,11 +117,27 @@ public UnaryCallSettings patchAutoscalerS
     return ((AutoscalerStubSettings) getStubSettings()).patchAutoscalerSettings();
   }
 
+  /** Returns the object with the settings used for calls to patchAutoscaler. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchAutoscalerOperationSettings() {
+    return ((AutoscalerStubSettings) getStubSettings()).patchAutoscalerOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to updateAutoscaler. */
   public UnaryCallSettings updateAutoscalerSettings() {
     return ((AutoscalerStubSettings) getStubSettings()).updateAutoscalerSettings();
   }
 
+  /** Returns the object with the settings used for calls to updateAutoscaler. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateAutoscalerOperationSettings() {
+    return ((AutoscalerStubSettings) getStubSettings()).updateAutoscalerOperationSettings();
+  }
+
   public static final AutoscalerSettings create(AutoscalerStubSettings stub) throws IOException {
     return new AutoscalerSettings.Builder(stub.toBuilder()).build();
   }
@@ -220,6 +254,14 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteAutoscalerSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteAutoscaler. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteAutoscalerOperationSettings() {
+      return getStubSettingsBuilder().deleteAutoscalerOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getAutoscaler. */
     public UnaryCallSettings.Builder getAutoscalerSettings() {
       return getStubSettingsBuilder().getAutoscalerSettings();
@@ -231,6 +273,14 @@ public UnaryCallSettings.Builder getAutosc
       return getStubSettingsBuilder().insertAutoscalerSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertAutoscaler. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertAutoscalerOperationSettings() {
+      return getStubSettingsBuilder().insertAutoscalerOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listAutoscalers. */
     public PagedCallSettings.Builder<
             ListAutoscalersHttpRequest, AutoscalerList, ListAutoscalersPagedResponse>
@@ -244,12 +294,28 @@ public UnaryCallSettings.Builder getAutosc
       return getStubSettingsBuilder().patchAutoscalerSettings();
     }
 
+    /** Returns the builder for the settings used for calls to patchAutoscaler. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchAutoscalerOperationSettings() {
+      return getStubSettingsBuilder().patchAutoscalerOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to updateAutoscaler. */
     public UnaryCallSettings.Builder
         updateAutoscalerSettings() {
       return getStubSettingsBuilder().updateAutoscalerSettings();
     }
 
+    /** Returns the builder for the settings used for calls to updateAutoscaler. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        updateAutoscalerOperationSettings() {
+      return getStubSettingsBuilder().updateAutoscalerOperationSettings();
+    }
+
     @Override
     public AutoscalerSettings build() throws IOException {
       return new AutoscalerSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java
index 108449139b62..3a50315f82a5 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.BackendBucketStub;
@@ -43,8 +46,7 @@
  * 
  * try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
  *   ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
- *   SignedUrlKey signedUrlKeyResource = SignedUrlKey.newBuilder().build();
- *   Operation response = backendBucketClient.addSignedUrlKeyBackendBucket(backendBucket, signedUrlKeyResource);
+ *   BackendBucket response = backendBucketClient.getBackendBucket(backendBucket);
  * }
  * 
  * 
@@ -104,6 +106,7 @@ public class BackendBucketClient implements BackgroundResource { private final BackendBucketSettings settings; private final BackendBucketStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of BackendBucketClient with default settings. */ public static final BackendBucketClient create() throws IOException { @@ -136,12 +139,14 @@ public static final BackendBucketClient create(BackendBucketStub stub) { protected BackendBucketClient(BackendBucketSettings settings) throws IOException { this.settings = settings; this.stub = ((BackendBucketStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected BackendBucketClient(BackendBucketStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final BackendBucketSettings getSettings() { @@ -153,6 +158,16 @@ public BackendBucketStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Adds a key for validating requests with signed URLs for this backend bucket. @@ -163,7 +178,7 @@ public BackendBucketStub getStub() { * try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) { * ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]"); * SignedUrlKey signedUrlKeyResource = SignedUrlKey.newBuilder().build(); - * Operation response = backendBucketClient.addSignedUrlKeyBackendBucket(backendBucket, signedUrlKeyResource); + * backendBucketClient.addSignedUrlKeyBackendBucketAsync(backendBucket, signedUrlKeyResource).get(); * } * * @@ -173,8 +188,9 @@ public BackendBucketStub getStub() { * URLs * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addSignedUrlKeyBackendBucket( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addSignedUrlKeyBackendBucketAsync( ProjectGlobalBackendBucketName backendBucket, SignedUrlKey signedUrlKeyResource) { AddSignedUrlKeyBackendBucketHttpRequest request = @@ -182,7 +198,7 @@ public final Operation addSignedUrlKeyBackendBucket( .setBackendBucket(backendBucket == null ? null : backendBucket.toString()) .setSignedUrlKeyResource(signedUrlKeyResource) .build(); - return addSignedUrlKeyBackendBucket(request); + return addSignedUrlKeyBackendBucketAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -195,7 +211,7 @@ public final Operation addSignedUrlKeyBackendBucket( * try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) { * ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]"); * SignedUrlKey signedUrlKeyResource = SignedUrlKey.newBuilder().build(); - * Operation response = backendBucketClient.addSignedUrlKeyBackendBucket(backendBucket.toString(), signedUrlKeyResource); + * backendBucketClient.addSignedUrlKeyBackendBucketAsync(backendBucket.toString(), signedUrlKeyResource).get(); * } * * @@ -205,8 +221,9 @@ public final Operation addSignedUrlKeyBackendBucket( * URLs * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addSignedUrlKeyBackendBucket( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addSignedUrlKeyBackendBucketAsync( String backendBucket, SignedUrlKey signedUrlKeyResource) { AddSignedUrlKeyBackendBucketHttpRequest request = @@ -214,7 +231,7 @@ public final Operation addSignedUrlKeyBackendBucket( .setBackendBucket(backendBucket) .setSignedUrlKeyResource(signedUrlKeyResource) .build(); - return addSignedUrlKeyBackendBucket(request); + return addSignedUrlKeyBackendBucketAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -231,17 +248,45 @@ public final Operation addSignedUrlKeyBackendBucket( * .setBackendBucket(backendBucket.toString()) * .setSignedUrlKeyResource(signedUrlKeyResource) * .build(); - * Operation response = backendBucketClient.addSignedUrlKeyBackendBucket(request); + * backendBucketClient.addSignedUrlKeyBackendBucketAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addSignedUrlKeyBackendBucket( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addSignedUrlKeyBackendBucketAsync( AddSignedUrlKeyBackendBucketHttpRequest request) { - return addSignedUrlKeyBackendBucketCallable().call(request); + return addSignedUrlKeyBackendBucketOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Adds a key for validating requests with signed URLs for this backend bucket. + * + *

Sample code: + * + *


+   * try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
+   *   ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
+   *   SignedUrlKey signedUrlKeyResource = SignedUrlKey.newBuilder().build();
+   *   AddSignedUrlKeyBackendBucketHttpRequest request = AddSignedUrlKeyBackendBucketHttpRequest.newBuilder()
+   *     .setBackendBucket(backendBucket.toString())
+   *     .setSignedUrlKeyResource(signedUrlKeyResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = backendBucketClient.addSignedUrlKeyBackendBucketOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + AddSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage> + addSignedUrlKeyBackendBucketOperationCallable() { + return stub.addSignedUrlKeyBackendBucketOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -260,7 +305,7 @@ public final Operation addSignedUrlKeyBackendBucket( * .build(); * ApiFuture<Operation> future = backendBucketClient.addSignedUrlKeyBackendBucketCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -279,21 +324,23 @@ public final Operation addSignedUrlKeyBackendBucket( *

    * try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
    *   ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
-   *   Operation response = backendBucketClient.deleteBackendBucket(backendBucket);
+   *   backendBucketClient.deleteBackendBucketAsync(backendBucket).get();
    * }
    * 
* * @param backendBucket Name of the BackendBucket resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteBackendBucket(ProjectGlobalBackendBucketName backendBucket) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteBackendBucketAsync( + ProjectGlobalBackendBucketName backendBucket) { DeleteBackendBucketHttpRequest request = DeleteBackendBucketHttpRequest.newBuilder() .setBackendBucket(backendBucket == null ? null : backendBucket.toString()) .build(); - return deleteBackendBucket(request); + return deleteBackendBucketAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -305,19 +352,21 @@ public final Operation deleteBackendBucket(ProjectGlobalBackendBucketName backen *

    * try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
    *   ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
-   *   Operation response = backendBucketClient.deleteBackendBucket(backendBucket.toString());
+   *   backendBucketClient.deleteBackendBucketAsync(backendBucket.toString()).get();
    * }
    * 
* * @param backendBucket Name of the BackendBucket resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteBackendBucket(String backendBucket) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteBackendBucketAsync( + String backendBucket) { DeleteBackendBucketHttpRequest request = DeleteBackendBucketHttpRequest.newBuilder().setBackendBucket(backendBucket).build(); - return deleteBackendBucket(request); + return deleteBackendBucketAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -332,16 +381,42 @@ public final Operation deleteBackendBucket(String backendBucket) { * DeleteBackendBucketHttpRequest request = DeleteBackendBucketHttpRequest.newBuilder() * .setBackendBucket(backendBucket.toString()) * .build(); - * Operation response = backendBucketClient.deleteBackendBucket(request); + * backendBucketClient.deleteBackendBucketAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteBackendBucket(DeleteBackendBucketHttpRequest request) { - return deleteBackendBucketCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteBackendBucketAsync( + DeleteBackendBucketHttpRequest request) { + return deleteBackendBucketOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified BackendBucket resource. + * + *

Sample code: + * + *


+   * try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
+   *   ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
+   *   DeleteBackendBucketHttpRequest request = DeleteBackendBucketHttpRequest.newBuilder()
+   *     .setBackendBucket(backendBucket.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = backendBucketClient.deleteBackendBucketOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteBackendBucketOperationCallable() { + return stub.deleteBackendBucketOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -358,7 +433,7 @@ public final Operation deleteBackendBucket(DeleteBackendBucketHttpRequest reques * .build(); * ApiFuture<Operation> future = backendBucketClient.deleteBackendBucketCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -378,7 +453,7 @@ public final Operation deleteBackendBucket(DeleteBackendBucketHttpRequest reques * try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) { * ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]"); * String keyName = ""; - * Operation response = backendBucketClient.deleteSignedUrlKeyBackendBucket(backendBucket, keyName); + * backendBucketClient.deleteSignedUrlKeyBackendBucketAsync(backendBucket, keyName).get(); * } * * @@ -387,8 +462,9 @@ public final Operation deleteBackendBucket(DeleteBackendBucketHttpRequest reques * @param keyName The name of the Signed URL Key to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteSignedUrlKeyBackendBucket( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteSignedUrlKeyBackendBucketAsync( ProjectGlobalBackendBucketName backendBucket, String keyName) { DeleteSignedUrlKeyBackendBucketHttpRequest request = @@ -396,7 +472,7 @@ public final Operation deleteSignedUrlKeyBackendBucket( .setBackendBucket(backendBucket == null ? null : backendBucket.toString()) .setKeyName(keyName) .build(); - return deleteSignedUrlKeyBackendBucket(request); + return deleteSignedUrlKeyBackendBucketAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -409,7 +485,7 @@ public final Operation deleteSignedUrlKeyBackendBucket( * try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) { * ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]"); * String keyName = ""; - * Operation response = backendBucketClient.deleteSignedUrlKeyBackendBucket(backendBucket.toString(), keyName); + * backendBucketClient.deleteSignedUrlKeyBackendBucketAsync(backendBucket.toString(), keyName).get(); * } * * @@ -418,15 +494,17 @@ public final Operation deleteSignedUrlKeyBackendBucket( * @param keyName The name of the Signed URL Key to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteSignedUrlKeyBackendBucket(String backendBucket, String keyName) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteSignedUrlKeyBackendBucketAsync( + String backendBucket, String keyName) { DeleteSignedUrlKeyBackendBucketHttpRequest request = DeleteSignedUrlKeyBackendBucketHttpRequest.newBuilder() .setBackendBucket(backendBucket) .setKeyName(keyName) .build(); - return deleteSignedUrlKeyBackendBucket(request); + return deleteSignedUrlKeyBackendBucketAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -443,17 +521,45 @@ public final Operation deleteSignedUrlKeyBackendBucket(String backendBucket, Str * .setBackendBucket(backendBucket.toString()) * .setKeyName(keyName) * .build(); - * Operation response = backendBucketClient.deleteSignedUrlKeyBackendBucket(request); + * backendBucketClient.deleteSignedUrlKeyBackendBucketAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteSignedUrlKeyBackendBucket( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteSignedUrlKeyBackendBucketAsync( DeleteSignedUrlKeyBackendBucketHttpRequest request) { - return deleteSignedUrlKeyBackendBucketCallable().call(request); + return deleteSignedUrlKeyBackendBucketOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a key for validating requests with signed URLs for this backend bucket. + * + *

Sample code: + * + *


+   * try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
+   *   ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
+   *   String keyName = "";
+   *   DeleteSignedUrlKeyBackendBucketHttpRequest request = DeleteSignedUrlKeyBackendBucketHttpRequest.newBuilder()
+   *     .setBackendBucket(backendBucket.toString())
+   *     .setKeyName(keyName)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = backendBucketClient.deleteSignedUrlKeyBackendBucketOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + DeleteSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage> + deleteSignedUrlKeyBackendBucketOperationCallable() { + return stub.deleteSignedUrlKeyBackendBucketOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -472,7 +578,7 @@ public final Operation deleteSignedUrlKeyBackendBucket( * .build(); * ApiFuture<Operation> future = backendBucketClient.deleteSignedUrlKeyBackendBucketCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -595,7 +701,7 @@ public final BackendBucket getBackendBucket(GetBackendBucketHttpRequest request) * try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * BackendBucket backendBucketResource = BackendBucket.newBuilder().build(); - * Operation response = backendBucketClient.insertBackendBucket(project, backendBucketResource); + * backendBucketClient.insertBackendBucketAsync(project, backendBucketResource).get(); * } * * @@ -604,8 +710,9 @@ public final BackendBucket getBackendBucket(GetBackendBucketHttpRequest request) * bucket. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertBackendBucket( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertBackendBucketAsync( ProjectName project, BackendBucket backendBucketResource) { InsertBackendBucketHttpRequest request = @@ -613,7 +720,7 @@ public final Operation insertBackendBucket( .setProject(project == null ? null : project.toString()) .setBackendBucketResource(backendBucketResource) .build(); - return insertBackendBucket(request); + return insertBackendBucketAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -627,7 +734,7 @@ public final Operation insertBackendBucket( * try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * BackendBucket backendBucketResource = BackendBucket.newBuilder().build(); - * Operation response = backendBucketClient.insertBackendBucket(project.toString(), backendBucketResource); + * backendBucketClient.insertBackendBucketAsync(project.toString(), backendBucketResource).get(); * } * * @@ -636,15 +743,17 @@ public final Operation insertBackendBucket( * bucket. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertBackendBucket(String project, BackendBucket backendBucketResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertBackendBucketAsync( + String project, BackendBucket backendBucketResource) { InsertBackendBucketHttpRequest request = InsertBackendBucketHttpRequest.newBuilder() .setProject(project) .setBackendBucketResource(backendBucketResource) .build(); - return insertBackendBucket(request); + return insertBackendBucketAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -662,16 +771,45 @@ public final Operation insertBackendBucket(String project, BackendBucket backend * .setProject(project.toString()) * .setBackendBucketResource(backendBucketResource) * .build(); - * Operation response = backendBucketClient.insertBackendBucket(request); + * backendBucketClient.insertBackendBucketAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertBackendBucket(InsertBackendBucketHttpRequest request) { - return insertBackendBucketCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertBackendBucketAsync( + InsertBackendBucketHttpRequest request) { + return insertBackendBucketOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a BackendBucket resource in the specified project using the data included in the + * request. + * + *

Sample code: + * + *


+   * try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   BackendBucket backendBucketResource = BackendBucket.newBuilder().build();
+   *   InsertBackendBucketHttpRequest request = InsertBackendBucketHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setBackendBucketResource(backendBucketResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = backendBucketClient.insertBackendBucketOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertBackendBucketOperationCallable() { + return stub.insertBackendBucketOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -691,7 +829,7 @@ public final Operation insertBackendBucket(InsertBackendBucketHttpRequest reques * .build(); * ApiFuture<Operation> future = backendBucketClient.insertBackendBucketCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -851,7 +989,7 @@ public final ListBackendBucketsPagedResponse listBackendBuckets( * ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]"); * BackendBucket backendBucketResource = BackendBucket.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = backendBucketClient.patchBackendBucket(backendBucket, backendBucketResource, fieldMask); + * backendBucketClient.patchBackendBucketAsync(backendBucket, backendBucketResource, fieldMask).get(); * } * * @@ -864,8 +1002,9 @@ public final ListBackendBucketsPagedResponse listBackendBuckets( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchBackendBucket( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchBackendBucketAsync( ProjectGlobalBackendBucketName backendBucket, BackendBucket backendBucketResource, List fieldMask) { @@ -876,7 +1015,7 @@ public final Operation patchBackendBucket( .setBackendBucketResource(backendBucketResource) .addAllFieldMask(fieldMask) .build(); - return patchBackendBucket(request); + return patchBackendBucketAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -891,7 +1030,7 @@ public final Operation patchBackendBucket( * ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]"); * BackendBucket backendBucketResource = BackendBucket.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = backendBucketClient.patchBackendBucket(backendBucket.toString(), backendBucketResource, fieldMask); + * backendBucketClient.patchBackendBucketAsync(backendBucket.toString(), backendBucketResource, fieldMask).get(); * } * * @@ -904,8 +1043,9 @@ public final Operation patchBackendBucket( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchBackendBucket( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchBackendBucketAsync( String backendBucket, BackendBucket backendBucketResource, List fieldMask) { PatchBackendBucketHttpRequest request = @@ -914,7 +1054,7 @@ public final Operation patchBackendBucket( .setBackendBucketResource(backendBucketResource) .addAllFieldMask(fieldMask) .build(); - return patchBackendBucket(request); + return patchBackendBucketAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -934,16 +1074,47 @@ public final Operation patchBackendBucket( * .setBackendBucketResource(backendBucketResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = backendBucketClient.patchBackendBucket(request); + * backendBucketClient.patchBackendBucketAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchBackendBucket(PatchBackendBucketHttpRequest request) { - return patchBackendBucketCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchBackendBucketAsync( + PatchBackendBucketHttpRequest request) { + return patchBackendBucketOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the specified BackendBucket resource with the data included in the request. This method + * supports PATCH semantics and uses the JSON merge patch format and processing rules. + * + *

Sample code: + * + *


+   * try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
+   *   ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
+   *   BackendBucket backendBucketResource = BackendBucket.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   PatchBackendBucketHttpRequest request = PatchBackendBucketHttpRequest.newBuilder()
+   *     .setBackendBucket(backendBucket.toString())
+   *     .setBackendBucketResource(backendBucketResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = backendBucketClient.patchBackendBucketOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + patchBackendBucketOperationCallable() { + return stub.patchBackendBucketOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -965,7 +1136,7 @@ public final Operation patchBackendBucket(PatchBackendBucketHttpRequest request) * .build(); * ApiFuture<Operation> future = backendBucketClient.patchBackendBucketCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -986,7 +1157,7 @@ public final Operation patchBackendBucket(PatchBackendBucketHttpRequest request) * ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]"); * BackendBucket backendBucketResource = BackendBucket.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = backendBucketClient.updateBackendBucket(backendBucket, backendBucketResource, fieldMask); + * backendBucketClient.updateBackendBucketAsync(backendBucket, backendBucketResource, fieldMask).get(); * } * * @@ -999,8 +1170,9 @@ public final Operation patchBackendBucket(PatchBackendBucketHttpRequest request) * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateBackendBucket( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateBackendBucketAsync( ProjectGlobalBackendBucketName backendBucket, BackendBucket backendBucketResource, List fieldMask) { @@ -1011,7 +1183,7 @@ public final Operation updateBackendBucket( .setBackendBucketResource(backendBucketResource) .addAllFieldMask(fieldMask) .build(); - return updateBackendBucket(request); + return updateBackendBucketAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1025,7 +1197,7 @@ public final Operation updateBackendBucket( * ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]"); * BackendBucket backendBucketResource = BackendBucket.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = backendBucketClient.updateBackendBucket(backendBucket.toString(), backendBucketResource, fieldMask); + * backendBucketClient.updateBackendBucketAsync(backendBucket.toString(), backendBucketResource, fieldMask).get(); * } * * @@ -1038,8 +1210,9 @@ public final Operation updateBackendBucket( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateBackendBucket( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateBackendBucketAsync( String backendBucket, BackendBucket backendBucketResource, List fieldMask) { UpdateBackendBucketHttpRequest request = @@ -1048,7 +1221,7 @@ public final Operation updateBackendBucket( .setBackendBucketResource(backendBucketResource) .addAllFieldMask(fieldMask) .build(); - return updateBackendBucket(request); + return updateBackendBucketAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1067,16 +1240,46 @@ public final Operation updateBackendBucket( * .setBackendBucketResource(backendBucketResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = backendBucketClient.updateBackendBucket(request); + * backendBucketClient.updateBackendBucketAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateBackendBucket(UpdateBackendBucketHttpRequest request) { - return updateBackendBucketCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateBackendBucketAsync( + UpdateBackendBucketHttpRequest request) { + return updateBackendBucketOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the specified BackendBucket resource with the data included in the request. + * + *

Sample code: + * + *


+   * try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) {
+   *   ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
+   *   BackendBucket backendBucketResource = BackendBucket.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   UpdateBackendBucketHttpRequest request = UpdateBackendBucketHttpRequest.newBuilder()
+   *     .setBackendBucket(backendBucket.toString())
+   *     .setBackendBucketResource(backendBucketResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = backendBucketClient.updateBackendBucketOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + updateBackendBucketOperationCallable() { + return stub.updateBackendBucketOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1097,7 +1300,7 @@ public final Operation updateBackendBucket(UpdateBackendBucketHttpRequest reques * .build(); * ApiFuture<Operation> future = backendBucketClient.updateBackendBucketCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketSettings.java index 92e0aa886ea3..ef892b72fdab 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketSettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of addSignedUrlKeyBackendBucket to 30 seconds: + * example, to set the total timeout of getBackendBucket to 30 seconds: * *

  * 
  * BackendBucketSettings.Builder backendBucketSettingsBuilder =
  *     BackendBucketSettings.newBuilder();
- * backendBucketSettingsBuilder.addSignedUrlKeyBackendBucketSettings().getRetrySettings().toBuilder()
+ * backendBucketSettingsBuilder.getBackendBucketSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * BackendBucketSettings backendBucketSettings = backendBucketSettingsBuilder.build();
  * 
@@ -69,12 +71,29 @@ public class BackendBucketSettings extends ClientSettings
     return ((BackendBucketStubSettings) getStubSettings()).addSignedUrlKeyBackendBucketSettings();
   }
 
+  /** Returns the object with the settings used for calls to addSignedUrlKeyBackendBucket. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      addSignedUrlKeyBackendBucketOperationSettings() {
+    return ((BackendBucketStubSettings) getStubSettings())
+        .addSignedUrlKeyBackendBucketOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to deleteBackendBucket. */
   public UnaryCallSettings
       deleteBackendBucketSettings() {
     return ((BackendBucketStubSettings) getStubSettings()).deleteBackendBucketSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteBackendBucket. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteBackendBucketOperationSettings() {
+    return ((BackendBucketStubSettings) getStubSettings()).deleteBackendBucketOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to deleteSignedUrlKeyBackendBucket. */
   public UnaryCallSettings
       deleteSignedUrlKeyBackendBucketSettings() {
@@ -82,6 +101,16 @@ public class BackendBucketSettings extends ClientSettings
         .deleteSignedUrlKeyBackendBucketSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteSignedUrlKeyBackendBucket. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          DeleteSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage>
+      deleteSignedUrlKeyBackendBucketOperationSettings() {
+    return ((BackendBucketStubSettings) getStubSettings())
+        .deleteSignedUrlKeyBackendBucketOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getBackendBucket. */
   public UnaryCallSettings getBackendBucketSettings() {
     return ((BackendBucketStubSettings) getStubSettings()).getBackendBucketSettings();
@@ -93,6 +122,14 @@ public UnaryCallSettings getBackendB
     return ((BackendBucketStubSettings) getStubSettings()).insertBackendBucketSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertBackendBucket. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertBackendBucketOperationSettings() {
+    return ((BackendBucketStubSettings) getStubSettings()).insertBackendBucketOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listBackendBuckets. */
   public PagedCallSettings<
           ListBackendBucketsHttpRequest, BackendBucketList, ListBackendBucketsPagedResponse>
@@ -105,12 +142,28 @@ public UnaryCallSettings patchBackendB
     return ((BackendBucketStubSettings) getStubSettings()).patchBackendBucketSettings();
   }
 
+  /** Returns the object with the settings used for calls to patchBackendBucket. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchBackendBucketOperationSettings() {
+    return ((BackendBucketStubSettings) getStubSettings()).patchBackendBucketOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to updateBackendBucket. */
   public UnaryCallSettings
       updateBackendBucketSettings() {
     return ((BackendBucketStubSettings) getStubSettings()).updateBackendBucketSettings();
   }
 
+  /** Returns the object with the settings used for calls to updateBackendBucket. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateBackendBucketOperationSettings() {
+    return ((BackendBucketStubSettings) getStubSettings()).updateBackendBucketOperationSettings();
+  }
+
   public static final BackendBucketSettings create(BackendBucketStubSettings stub)
       throws IOException {
     return new BackendBucketSettings.Builder(stub.toBuilder()).build();
@@ -219,18 +272,44 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().addSignedUrlKeyBackendBucketSettings();
     }
 
+    /** Returns the builder for the settings used for calls to addSignedUrlKeyBackendBucket. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            AddSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage>
+        addSignedUrlKeyBackendBucketOperationSettings() {
+      return getStubSettingsBuilder().addSignedUrlKeyBackendBucketOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to deleteBackendBucket. */
     public UnaryCallSettings.Builder
         deleteBackendBucketSettings() {
       return getStubSettingsBuilder().deleteBackendBucketSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteBackendBucket. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteBackendBucketOperationSettings() {
+      return getStubSettingsBuilder().deleteBackendBucketOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to deleteSignedUrlKeyBackendBucket. */
     public UnaryCallSettings.Builder
         deleteSignedUrlKeyBackendBucketSettings() {
       return getStubSettingsBuilder().deleteSignedUrlKeyBackendBucketSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteSignedUrlKeyBackendBucket. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage>
+        deleteSignedUrlKeyBackendBucketOperationSettings() {
+      return getStubSettingsBuilder().deleteSignedUrlKeyBackendBucketOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getBackendBucket. */
     public UnaryCallSettings.Builder
         getBackendBucketSettings() {
@@ -243,6 +322,14 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertBackendBucketSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertBackendBucket. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertBackendBucketOperationSettings() {
+      return getStubSettingsBuilder().insertBackendBucketOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listBackendBuckets. */
     public PagedCallSettings.Builder<
             ListBackendBucketsHttpRequest, BackendBucketList, ListBackendBucketsPagedResponse>
@@ -256,12 +343,28 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().patchBackendBucketSettings();
     }
 
+    /** Returns the builder for the settings used for calls to patchBackendBucket. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchBackendBucketOperationSettings() {
+      return getStubSettingsBuilder().patchBackendBucketOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to updateBackendBucket. */
     public UnaryCallSettings.Builder
         updateBackendBucketSettings() {
       return getStubSettingsBuilder().updateBackendBucketSettings();
     }
 
+    /** Returns the builder for the settings used for calls to updateBackendBucket. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        updateBackendBucketOperationSettings() {
+      return getStubSettingsBuilder().updateBackendBucketOperationSettings();
+    }
+
     @Override
     public BackendBucketSettings build() throws IOException {
       return new BackendBucketSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java
index 04290a2a09cd..35d3fe5d6de7 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.BackendServiceStub;
@@ -43,8 +46,7 @@
  * 
  * try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
  *   ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
- *   SignedUrlKey signedUrlKeyResource = SignedUrlKey.newBuilder().build();
- *   Operation response = backendServiceClient.addSignedUrlKeyBackendService(backendService, signedUrlKeyResource);
+ *   BackendService response = backendServiceClient.getBackendService(backendService);
  * }
  * 
  * 
@@ -104,6 +106,7 @@ public class BackendServiceClient implements BackgroundResource { private final BackendServiceSettings settings; private final BackendServiceStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of BackendServiceClient with default settings. */ public static final BackendServiceClient create() throws IOException { @@ -136,12 +139,14 @@ public static final BackendServiceClient create(BackendServiceStub stub) { protected BackendServiceClient(BackendServiceSettings settings) throws IOException { this.settings = settings; this.stub = ((BackendServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected BackendServiceClient(BackendServiceStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final BackendServiceSettings getSettings() { @@ -153,6 +158,16 @@ public BackendServiceStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Adds a key for validating requests with signed URLs for this backend service. @@ -163,7 +178,7 @@ public BackendServiceStub getStub() { * try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) { * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]"); * SignedUrlKey signedUrlKeyResource = SignedUrlKey.newBuilder().build(); - * Operation response = backendServiceClient.addSignedUrlKeyBackendService(backendService, signedUrlKeyResource); + * backendServiceClient.addSignedUrlKeyBackendServiceAsync(backendService, signedUrlKeyResource).get(); * } * * @@ -173,8 +188,9 @@ public BackendServiceStub getStub() { * URLs * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addSignedUrlKeyBackendService( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addSignedUrlKeyBackendServiceAsync( ProjectGlobalBackendServiceName backendService, SignedUrlKey signedUrlKeyResource) { AddSignedUrlKeyBackendServiceHttpRequest request = @@ -182,7 +198,7 @@ public final Operation addSignedUrlKeyBackendService( .setBackendService(backendService == null ? null : backendService.toString()) .setSignedUrlKeyResource(signedUrlKeyResource) .build(); - return addSignedUrlKeyBackendService(request); + return addSignedUrlKeyBackendServiceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -195,7 +211,7 @@ public final Operation addSignedUrlKeyBackendService( * try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) { * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]"); * SignedUrlKey signedUrlKeyResource = SignedUrlKey.newBuilder().build(); - * Operation response = backendServiceClient.addSignedUrlKeyBackendService(backendService.toString(), signedUrlKeyResource); + * backendServiceClient.addSignedUrlKeyBackendServiceAsync(backendService.toString(), signedUrlKeyResource).get(); * } * * @@ -205,8 +221,9 @@ public final Operation addSignedUrlKeyBackendService( * URLs * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addSignedUrlKeyBackendService( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addSignedUrlKeyBackendServiceAsync( String backendService, SignedUrlKey signedUrlKeyResource) { AddSignedUrlKeyBackendServiceHttpRequest request = @@ -214,7 +231,7 @@ public final Operation addSignedUrlKeyBackendService( .setBackendService(backendService) .setSignedUrlKeyResource(signedUrlKeyResource) .build(); - return addSignedUrlKeyBackendService(request); + return addSignedUrlKeyBackendServiceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -231,17 +248,45 @@ public final Operation addSignedUrlKeyBackendService( * .setBackendService(backendService.toString()) * .setSignedUrlKeyResource(signedUrlKeyResource) * .build(); - * Operation response = backendServiceClient.addSignedUrlKeyBackendService(request); + * backendServiceClient.addSignedUrlKeyBackendServiceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addSignedUrlKeyBackendService( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addSignedUrlKeyBackendServiceAsync( AddSignedUrlKeyBackendServiceHttpRequest request) { - return addSignedUrlKeyBackendServiceCallable().call(request); + return addSignedUrlKeyBackendServiceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Adds a key for validating requests with signed URLs for this backend service. + * + *

Sample code: + * + *


+   * try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
+   *   ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
+   *   SignedUrlKey signedUrlKeyResource = SignedUrlKey.newBuilder().build();
+   *   AddSignedUrlKeyBackendServiceHttpRequest request = AddSignedUrlKeyBackendServiceHttpRequest.newBuilder()
+   *     .setBackendService(backendService.toString())
+   *     .setSignedUrlKeyResource(signedUrlKeyResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = backendServiceClient.addSignedUrlKeyBackendServiceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + AddSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + addSignedUrlKeyBackendServiceOperationCallable() { + return stub.addSignedUrlKeyBackendServiceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -260,7 +305,7 @@ public final Operation addSignedUrlKeyBackendService( * .build(); * ApiFuture<Operation> future = backendServiceClient.addSignedUrlKeyBackendServiceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -425,21 +470,23 @@ public final AggregatedListBackendServicesPagedResponse aggregatedListBackendSer *

    * try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
    *   ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
-   *   Operation response = backendServiceClient.deleteBackendService(backendService);
+   *   backendServiceClient.deleteBackendServiceAsync(backendService).get();
    * }
    * 
* * @param backendService Name of the BackendService resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteBackendService(ProjectGlobalBackendServiceName backendService) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteBackendServiceAsync( + ProjectGlobalBackendServiceName backendService) { DeleteBackendServiceHttpRequest request = DeleteBackendServiceHttpRequest.newBuilder() .setBackendService(backendService == null ? null : backendService.toString()) .build(); - return deleteBackendService(request); + return deleteBackendServiceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -451,19 +498,21 @@ public final Operation deleteBackendService(ProjectGlobalBackendServiceName back *

    * try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
    *   ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
-   *   Operation response = backendServiceClient.deleteBackendService(backendService.toString());
+   *   backendServiceClient.deleteBackendServiceAsync(backendService.toString()).get();
    * }
    * 
* * @param backendService Name of the BackendService resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteBackendService(String backendService) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteBackendServiceAsync( + String backendService) { DeleteBackendServiceHttpRequest request = DeleteBackendServiceHttpRequest.newBuilder().setBackendService(backendService).build(); - return deleteBackendService(request); + return deleteBackendServiceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -478,16 +527,42 @@ public final Operation deleteBackendService(String backendService) { * DeleteBackendServiceHttpRequest request = DeleteBackendServiceHttpRequest.newBuilder() * .setBackendService(backendService.toString()) * .build(); - * Operation response = backendServiceClient.deleteBackendService(request); + * backendServiceClient.deleteBackendServiceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteBackendService(DeleteBackendServiceHttpRequest request) { - return deleteBackendServiceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteBackendServiceAsync( + DeleteBackendServiceHttpRequest request) { + return deleteBackendServiceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified BackendService resource. + * + *

Sample code: + * + *


+   * try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
+   *   ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
+   *   DeleteBackendServiceHttpRequest request = DeleteBackendServiceHttpRequest.newBuilder()
+   *     .setBackendService(backendService.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = backendServiceClient.deleteBackendServiceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteBackendServiceOperationCallable() { + return stub.deleteBackendServiceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -504,7 +579,7 @@ public final Operation deleteBackendService(DeleteBackendServiceHttpRequest requ * .build(); * ApiFuture<Operation> future = backendServiceClient.deleteBackendServiceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -524,7 +599,7 @@ public final Operation deleteBackendService(DeleteBackendServiceHttpRequest requ * try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) { * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]"); * String keyName = ""; - * Operation response = backendServiceClient.deleteSignedUrlKeyBackendService(backendService, keyName); + * backendServiceClient.deleteSignedUrlKeyBackendServiceAsync(backendService, keyName).get(); * } * * @@ -533,8 +608,9 @@ public final Operation deleteBackendService(DeleteBackendServiceHttpRequest requ * @param keyName The name of the Signed URL Key to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteSignedUrlKeyBackendService( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteSignedUrlKeyBackendServiceAsync( ProjectGlobalBackendServiceName backendService, String keyName) { DeleteSignedUrlKeyBackendServiceHttpRequest request = @@ -542,7 +618,7 @@ public final Operation deleteSignedUrlKeyBackendService( .setBackendService(backendService == null ? null : backendService.toString()) .setKeyName(keyName) .build(); - return deleteSignedUrlKeyBackendService(request); + return deleteSignedUrlKeyBackendServiceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -555,7 +631,7 @@ public final Operation deleteSignedUrlKeyBackendService( * try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) { * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]"); * String keyName = ""; - * Operation response = backendServiceClient.deleteSignedUrlKeyBackendService(backendService.toString(), keyName); + * backendServiceClient.deleteSignedUrlKeyBackendServiceAsync(backendService.toString(), keyName).get(); * } * * @@ -564,15 +640,17 @@ public final Operation deleteSignedUrlKeyBackendService( * @param keyName The name of the Signed URL Key to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteSignedUrlKeyBackendService(String backendService, String keyName) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteSignedUrlKeyBackendServiceAsync( + String backendService, String keyName) { DeleteSignedUrlKeyBackendServiceHttpRequest request = DeleteSignedUrlKeyBackendServiceHttpRequest.newBuilder() .setBackendService(backendService) .setKeyName(keyName) .build(); - return deleteSignedUrlKeyBackendService(request); + return deleteSignedUrlKeyBackendServiceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -589,17 +667,45 @@ public final Operation deleteSignedUrlKeyBackendService(String backendService, S * .setBackendService(backendService.toString()) * .setKeyName(keyName) * .build(); - * Operation response = backendServiceClient.deleteSignedUrlKeyBackendService(request); + * backendServiceClient.deleteSignedUrlKeyBackendServiceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteSignedUrlKeyBackendService( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteSignedUrlKeyBackendServiceAsync( DeleteSignedUrlKeyBackendServiceHttpRequest request) { - return deleteSignedUrlKeyBackendServiceCallable().call(request); + return deleteSignedUrlKeyBackendServiceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a key for validating requests with signed URLs for this backend service. + * + *

Sample code: + * + *


+   * try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
+   *   ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
+   *   String keyName = "";
+   *   DeleteSignedUrlKeyBackendServiceHttpRequest request = DeleteSignedUrlKeyBackendServiceHttpRequest.newBuilder()
+   *     .setBackendService(backendService.toString())
+   *     .setKeyName(keyName)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = backendServiceClient.deleteSignedUrlKeyBackendServiceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + DeleteSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + deleteSignedUrlKeyBackendServiceOperationCallable() { + return stub.deleteSignedUrlKeyBackendServiceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -618,7 +724,7 @@ public final Operation deleteSignedUrlKeyBackendService( * .build(); * ApiFuture<Operation> future = backendServiceClient.deleteSignedUrlKeyBackendServiceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -854,7 +960,7 @@ public final BackendServiceGroupHealth getHealthBackendService( * try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * BackendService backendServiceResource = BackendService.newBuilder().build(); - * Operation response = backendServiceClient.insertBackendService(project, backendServiceResource); + * backendServiceClient.insertBackendServiceAsync(project, backendServiceResource).get(); * } * * @@ -864,8 +970,9 @@ public final BackendServiceGroupHealth getHealthBackendService( * (== resource_for beta.backendService ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertBackendService( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertBackendServiceAsync( ProjectName project, BackendService backendServiceResource) { InsertBackendServiceHttpRequest request = @@ -873,7 +980,7 @@ public final Operation insertBackendService( .setProject(project == null ? null : project.toString()) .setBackendServiceResource(backendServiceResource) .build(); - return insertBackendService(request); + return insertBackendServiceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -888,7 +995,7 @@ public final Operation insertBackendService( * try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * BackendService backendServiceResource = BackendService.newBuilder().build(); - * Operation response = backendServiceClient.insertBackendService(project.toString(), backendServiceResource); + * backendServiceClient.insertBackendServiceAsync(project.toString(), backendServiceResource).get(); * } * * @@ -898,8 +1005,9 @@ public final Operation insertBackendService( * (== resource_for beta.backendService ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertBackendService( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertBackendServiceAsync( String project, BackendService backendServiceResource) { InsertBackendServiceHttpRequest request = @@ -907,7 +1015,7 @@ public final Operation insertBackendService( .setProject(project) .setBackendServiceResource(backendServiceResource) .build(); - return insertBackendService(request); + return insertBackendServiceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -926,16 +1034,46 @@ public final Operation insertBackendService( * .setProject(project.toString()) * .setBackendServiceResource(backendServiceResource) * .build(); - * Operation response = backendServiceClient.insertBackendService(request); + * backendServiceClient.insertBackendServiceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertBackendService(InsertBackendServiceHttpRequest request) { - return insertBackendServiceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertBackendServiceAsync( + InsertBackendServiceHttpRequest request) { + return insertBackendServiceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a BackendService resource in the specified project using the data included in the + * request. There are several restrictions and guidelines to keep in mind when creating a backend + * service. Read Restrictions and Guidelines for more information. + * + *

Sample code: + * + *


+   * try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   BackendService backendServiceResource = BackendService.newBuilder().build();
+   *   InsertBackendServiceHttpRequest request = InsertBackendServiceHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setBackendServiceResource(backendServiceResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = backendServiceClient.insertBackendServiceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertBackendServiceOperationCallable() { + return stub.insertBackendServiceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -956,7 +1094,7 @@ public final Operation insertBackendService(InsertBackendServiceHttpRequest requ * .build(); * ApiFuture<Operation> future = backendServiceClient.insertBackendServiceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1118,7 +1256,7 @@ public final ListBackendServicesPagedResponse listBackendServices( * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]"); * BackendService backendServiceResource = BackendService.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = backendServiceClient.patchBackendService(backendService, backendServiceResource, fieldMask); + * backendServiceClient.patchBackendServiceAsync(backendService, backendServiceResource, fieldMask).get(); * } * * @@ -1132,8 +1270,9 @@ public final ListBackendServicesPagedResponse listBackendServices( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchBackendService( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchBackendServiceAsync( ProjectGlobalBackendServiceName backendService, BackendService backendServiceResource, List fieldMask) { @@ -1144,7 +1283,7 @@ public final Operation patchBackendService( .setBackendServiceResource(backendServiceResource) .addAllFieldMask(fieldMask) .build(); - return patchBackendService(request); + return patchBackendServiceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1161,7 +1300,7 @@ public final Operation patchBackendService( * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]"); * BackendService backendServiceResource = BackendService.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = backendServiceClient.patchBackendService(backendService.toString(), backendServiceResource, fieldMask); + * backendServiceClient.patchBackendServiceAsync(backendService.toString(), backendServiceResource, fieldMask).get(); * } * * @@ -1175,8 +1314,9 @@ public final Operation patchBackendService( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchBackendService( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchBackendServiceAsync( String backendService, BackendService backendServiceResource, List fieldMask) { PatchBackendServiceHttpRequest request = @@ -1185,7 +1325,7 @@ public final Operation patchBackendService( .setBackendServiceResource(backendServiceResource) .addAllFieldMask(fieldMask) .build(); - return patchBackendService(request); + return patchBackendServiceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1207,16 +1347,49 @@ public final Operation patchBackendService( * .setBackendServiceResource(backendServiceResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = backendServiceClient.patchBackendService(request); + * backendServiceClient.patchBackendServiceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchBackendService(PatchBackendServiceHttpRequest request) { - return patchBackendServiceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchBackendServiceAsync( + PatchBackendServiceHttpRequest request) { + return patchBackendServiceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Patches the specified BackendService resource with the data included in the request. There are + * several restrictions and guidelines to keep in mind when updating a backend service. Read + * Restrictions and Guidelines for more information. This method supports PATCH semantics and uses + * the JSON merge patch format and processing rules. + * + *

Sample code: + * + *


+   * try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
+   *   ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
+   *   BackendService backendServiceResource = BackendService.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   PatchBackendServiceHttpRequest request = PatchBackendServiceHttpRequest.newBuilder()
+   *     .setBackendService(backendService.toString())
+   *     .setBackendServiceResource(backendServiceResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = backendServiceClient.patchBackendServiceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + patchBackendServiceOperationCallable() { + return stub.patchBackendServiceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1240,7 +1413,7 @@ public final Operation patchBackendService(PatchBackendServiceHttpRequest reques * .build(); * ApiFuture<Operation> future = backendServiceClient.patchBackendServiceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1260,7 +1433,7 @@ public final Operation patchBackendService(PatchBackendServiceHttpRequest reques * try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) { * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]"); * SecurityPolicyReference securityPolicyReferenceResource = SecurityPolicyReference.newBuilder().build(); - * Operation response = backendServiceClient.setSecurityPolicyBackendService(backendService, securityPolicyReferenceResource); + * backendServiceClient.setSecurityPolicyBackendServiceAsync(backendService, securityPolicyReferenceResource).get(); * } * * @@ -1269,8 +1442,9 @@ public final Operation patchBackendService(PatchBackendServiceHttpRequest reques * @param securityPolicyReferenceResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setSecurityPolicyBackendService( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setSecurityPolicyBackendServiceAsync( ProjectGlobalBackendServiceName backendService, SecurityPolicyReference securityPolicyReferenceResource) { @@ -1279,7 +1453,7 @@ public final Operation setSecurityPolicyBackendService( .setBackendService(backendService == null ? null : backendService.toString()) .setSecurityPolicyReferenceResource(securityPolicyReferenceResource) .build(); - return setSecurityPolicyBackendService(request); + return setSecurityPolicyBackendServiceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1292,7 +1466,7 @@ public final Operation setSecurityPolicyBackendService( * try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) { * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]"); * SecurityPolicyReference securityPolicyReferenceResource = SecurityPolicyReference.newBuilder().build(); - * Operation response = backendServiceClient.setSecurityPolicyBackendService(backendService.toString(), securityPolicyReferenceResource); + * backendServiceClient.setSecurityPolicyBackendServiceAsync(backendService.toString(), securityPolicyReferenceResource).get(); * } * * @@ -1301,8 +1475,9 @@ public final Operation setSecurityPolicyBackendService( * @param securityPolicyReferenceResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setSecurityPolicyBackendService( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setSecurityPolicyBackendServiceAsync( String backendService, SecurityPolicyReference securityPolicyReferenceResource) { SetSecurityPolicyBackendServiceHttpRequest request = @@ -1310,7 +1485,7 @@ public final Operation setSecurityPolicyBackendService( .setBackendService(backendService) .setSecurityPolicyReferenceResource(securityPolicyReferenceResource) .build(); - return setSecurityPolicyBackendService(request); + return setSecurityPolicyBackendServiceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1327,17 +1502,45 @@ public final Operation setSecurityPolicyBackendService( * .setBackendService(backendService.toString()) * .setSecurityPolicyReferenceResource(securityPolicyReferenceResource) * .build(); - * Operation response = backendServiceClient.setSecurityPolicyBackendService(request); + * backendServiceClient.setSecurityPolicyBackendServiceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setSecurityPolicyBackendService( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setSecurityPolicyBackendServiceAsync( SetSecurityPolicyBackendServiceHttpRequest request) { - return setSecurityPolicyBackendServiceCallable().call(request); + return setSecurityPolicyBackendServiceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the security policy for the specified backend service. + * + *

Sample code: + * + *


+   * try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
+   *   ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
+   *   SecurityPolicyReference securityPolicyReferenceResource = SecurityPolicyReference.newBuilder().build();
+   *   SetSecurityPolicyBackendServiceHttpRequest request = SetSecurityPolicyBackendServiceHttpRequest.newBuilder()
+   *     .setBackendService(backendService.toString())
+   *     .setSecurityPolicyReferenceResource(securityPolicyReferenceResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = backendServiceClient.setSecurityPolicyBackendServiceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + SetSecurityPolicyBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + setSecurityPolicyBackendServiceOperationCallable() { + return stub.setSecurityPolicyBackendServiceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1356,7 +1559,7 @@ public final Operation setSecurityPolicyBackendService( * .build(); * ApiFuture<Operation> future = backendServiceClient.setSecurityPolicyBackendServiceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1379,7 +1582,7 @@ public final Operation setSecurityPolicyBackendService( * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]"); * BackendService backendServiceResource = BackendService.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = backendServiceClient.updateBackendService(backendService, backendServiceResource, fieldMask); + * backendServiceClient.updateBackendServiceAsync(backendService, backendServiceResource, fieldMask).get(); * } * * @@ -1393,8 +1596,9 @@ public final Operation setSecurityPolicyBackendService( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateBackendService( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateBackendServiceAsync( ProjectGlobalBackendServiceName backendService, BackendService backendServiceResource, List fieldMask) { @@ -1405,7 +1609,7 @@ public final Operation updateBackendService( .setBackendServiceResource(backendServiceResource) .addAllFieldMask(fieldMask) .build(); - return updateBackendService(request); + return updateBackendServiceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1421,7 +1625,7 @@ public final Operation updateBackendService( * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]"); * BackendService backendServiceResource = BackendService.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = backendServiceClient.updateBackendService(backendService.toString(), backendServiceResource, fieldMask); + * backendServiceClient.updateBackendServiceAsync(backendService.toString(), backendServiceResource, fieldMask).get(); * } * * @@ -1435,8 +1639,9 @@ public final Operation updateBackendService( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateBackendService( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateBackendServiceAsync( String backendService, BackendService backendServiceResource, List fieldMask) { UpdateBackendServiceHttpRequest request = @@ -1445,7 +1650,7 @@ public final Operation updateBackendService( .setBackendServiceResource(backendServiceResource) .addAllFieldMask(fieldMask) .build(); - return updateBackendService(request); + return updateBackendServiceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1466,16 +1671,48 @@ public final Operation updateBackendService( * .setBackendServiceResource(backendServiceResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = backendServiceClient.updateBackendService(request); + * backendServiceClient.updateBackendServiceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateBackendService(UpdateBackendServiceHttpRequest request) { - return updateBackendServiceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateBackendServiceAsync( + UpdateBackendServiceHttpRequest request) { + return updateBackendServiceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the specified BackendService resource with the data included in the request. There are + * several restrictions and guidelines to keep in mind when updating a backend service. Read + * Restrictions and Guidelines for more information. + * + *

Sample code: + * + *


+   * try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
+   *   ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
+   *   BackendService backendServiceResource = BackendService.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   UpdateBackendServiceHttpRequest request = UpdateBackendServiceHttpRequest.newBuilder()
+   *     .setBackendService(backendService.toString())
+   *     .setBackendServiceResource(backendServiceResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = backendServiceClient.updateBackendServiceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + updateBackendServiceOperationCallable() { + return stub.updateBackendServiceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1498,7 +1735,7 @@ public final Operation updateBackendService(UpdateBackendServiceHttpRequest requ * .build(); * ApiFuture<Operation> future = backendServiceClient.updateBackendServiceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceSettings.java index 2c3f31461c39..add4b6ba6b5d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceSettings.java @@ -22,10 +22,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -49,13 +51,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of addSignedUrlKeyBackendService to 30 seconds: + * example, to set the total timeout of getBackendService to 30 seconds: * *

  * 
  * BackendServiceSettings.Builder backendServiceSettingsBuilder =
  *     BackendServiceSettings.newBuilder();
- * backendServiceSettingsBuilder.addSignedUrlKeyBackendServiceSettings().getRetrySettings().toBuilder()
+ * backendServiceSettingsBuilder.getBackendServiceSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * BackendServiceSettings backendServiceSettings = backendServiceSettingsBuilder.build();
  * 
@@ -70,6 +72,15 @@ public class BackendServiceSettings extends ClientSettings
+      addSignedUrlKeyBackendServiceOperationSettings() {
+    return ((BackendServiceStubSettings) getStubSettings())
+        .addSignedUrlKeyBackendServiceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to aggregatedListBackendServices. */
   public PagedCallSettings<
           AggregatedListBackendServicesHttpRequest,
@@ -85,6 +96,14 @@ public class BackendServiceSettings extends ClientSettings
+      deleteBackendServiceOperationSettings() {
+    return ((BackendServiceStubSettings) getStubSettings()).deleteBackendServiceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to deleteSignedUrlKeyBackendService. */
   public UnaryCallSettings
       deleteSignedUrlKeyBackendServiceSettings() {
@@ -92,6 +111,16 @@ public class BackendServiceSettings extends ClientSettings
+      deleteSignedUrlKeyBackendServiceOperationSettings() {
+    return ((BackendServiceStubSettings) getStubSettings())
+        .deleteSignedUrlKeyBackendServiceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getBackendService. */
   public UnaryCallSettings
       getBackendServiceSettings() {
@@ -110,6 +139,14 @@ public class BackendServiceSettings extends ClientSettings
+      insertBackendServiceOperationSettings() {
+    return ((BackendServiceStubSettings) getStubSettings()).insertBackendServiceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listBackendServices. */
   public PagedCallSettings<
           ListBackendServicesHttpRequest, BackendServiceList, ListBackendServicesPagedResponse>
@@ -123,6 +160,14 @@ public class BackendServiceSettings extends ClientSettings
+      patchBackendServiceOperationSettings() {
+    return ((BackendServiceStubSettings) getStubSettings()).patchBackendServiceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setSecurityPolicyBackendService. */
   public UnaryCallSettings
       setSecurityPolicyBackendServiceSettings() {
@@ -130,12 +175,30 @@ public class BackendServiceSettings extends ClientSettings
+      setSecurityPolicyBackendServiceOperationSettings() {
+    return ((BackendServiceStubSettings) getStubSettings())
+        .setSecurityPolicyBackendServiceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to updateBackendService. */
   public UnaryCallSettings
       updateBackendServiceSettings() {
     return ((BackendServiceStubSettings) getStubSettings()).updateBackendServiceSettings();
   }
 
+  /** Returns the object with the settings used for calls to updateBackendService. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateBackendServiceOperationSettings() {
+    return ((BackendServiceStubSettings) getStubSettings()).updateBackendServiceOperationSettings();
+  }
+
   public static final BackendServiceSettings create(BackendServiceStubSettings stub)
       throws IOException {
     return new BackendServiceSettings.Builder(stub.toBuilder()).build();
@@ -244,6 +307,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().addSignedUrlKeyBackendServiceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to addSignedUrlKeyBackendService. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            AddSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        addSignedUrlKeyBackendServiceOperationSettings() {
+      return getStubSettingsBuilder().addSignedUrlKeyBackendServiceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to aggregatedListBackendServices. */
     public PagedCallSettings.Builder<
             AggregatedListBackendServicesHttpRequest,
@@ -259,12 +331,30 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteBackendServiceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteBackendService. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        deleteBackendServiceOperationSettings() {
+      return getStubSettingsBuilder().deleteBackendServiceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to deleteSignedUrlKeyBackendService. */
     public UnaryCallSettings.Builder
         deleteSignedUrlKeyBackendServiceSettings() {
       return getStubSettingsBuilder().deleteSignedUrlKeyBackendServiceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteSignedUrlKeyBackendService. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        deleteSignedUrlKeyBackendServiceOperationSettings() {
+      return getStubSettingsBuilder().deleteSignedUrlKeyBackendServiceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getBackendService. */
     public UnaryCallSettings.Builder
         getBackendServiceSettings() {
@@ -283,6 +373,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertBackendServiceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertBackendService. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        insertBackendServiceOperationSettings() {
+      return getStubSettingsBuilder().insertBackendServiceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listBackendServices. */
     public PagedCallSettings.Builder<
             ListBackendServicesHttpRequest, BackendServiceList, ListBackendServicesPagedResponse>
@@ -296,18 +395,44 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().patchBackendServiceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to patchBackendService. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchBackendServiceOperationSettings() {
+      return getStubSettingsBuilder().patchBackendServiceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setSecurityPolicyBackendService. */
     public UnaryCallSettings.Builder
         setSecurityPolicyBackendServiceSettings() {
       return getStubSettingsBuilder().setSecurityPolicyBackendServiceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setSecurityPolicyBackendService. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetSecurityPolicyBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        setSecurityPolicyBackendServiceOperationSettings() {
+      return getStubSettingsBuilder().setSecurityPolicyBackendServiceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to updateBackendService. */
     public UnaryCallSettings.Builder
         updateBackendServiceSettings() {
       return getStubSettingsBuilder().updateBackendServiceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to updateBackendService. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            UpdateBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        updateBackendServiceOperationSettings() {
+      return getStubSettingsBuilder().updateBackendServiceOperationSettings();
+    }
+
     @Override
     public BackendServiceSettings build() throws IOException {
       return new BackendServiceSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java
index acad92e6aea4..07a8463ce10b 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.DiskStub;
@@ -43,9 +46,7 @@
  * 
  * try (DiskClient diskClient = DiskClient.create()) {
  *   ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]");
- *   Boolean guestFlush = false;
- *   Snapshot snapshotResource = Snapshot.newBuilder().build();
- *   Operation response = diskClient.createSnapshotDisk(disk, guestFlush, snapshotResource);
+ *   Disk response = diskClient.getDisk(disk);
  * }
  * 
  * 
@@ -105,6 +106,7 @@ public class DiskClient implements BackgroundResource { private final DiskSettings settings; private final DiskStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of DiskClient with default settings. */ public static final DiskClient create() throws IOException { @@ -135,12 +137,14 @@ public static final DiskClient create(DiskStub stub) { protected DiskClient(DiskSettings settings) throws IOException { this.settings = settings; this.stub = ((DiskStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected DiskClient(DiskStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final DiskSettings getSettings() { @@ -152,6 +156,16 @@ public DiskStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Retrieves an aggregated list of persistent disks. @@ -301,7 +315,7 @@ public final AggregatedListDisksPagedResponse aggregatedListDisks( * ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]"); * Boolean guestFlush = false; * Snapshot snapshotResource = Snapshot.newBuilder().build(); - * Operation response = diskClient.createSnapshotDisk(disk, guestFlush, snapshotResource); + * diskClient.createSnapshotDiskAsync(disk, guestFlush, snapshotResource).get(); * } * * @@ -311,8 +325,9 @@ public final AggregatedListDisksPagedResponse aggregatedListDisks( * ==) (== resource_for v1.snapshots ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation createSnapshotDisk( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture createSnapshotDiskAsync( ProjectZoneDiskName disk, Boolean guestFlush, Snapshot snapshotResource) { CreateSnapshotDiskHttpRequest request = @@ -321,7 +336,7 @@ public final Operation createSnapshotDisk( .setGuestFlush(guestFlush) .setSnapshotResource(snapshotResource) .build(); - return createSnapshotDisk(request); + return createSnapshotDiskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -335,7 +350,7 @@ public final Operation createSnapshotDisk( * ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]"); * Boolean guestFlush = false; * Snapshot snapshotResource = Snapshot.newBuilder().build(); - * Operation response = diskClient.createSnapshotDisk(disk.toString(), guestFlush, snapshotResource); + * diskClient.createSnapshotDiskAsync(disk.toString(), guestFlush, snapshotResource).get(); * } * * @@ -345,8 +360,9 @@ public final Operation createSnapshotDisk( * ==) (== resource_for v1.snapshots ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation createSnapshotDisk( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture createSnapshotDiskAsync( String disk, Boolean guestFlush, Snapshot snapshotResource) { CreateSnapshotDiskHttpRequest request = @@ -355,7 +371,7 @@ public final Operation createSnapshotDisk( .setGuestFlush(guestFlush) .setSnapshotResource(snapshotResource) .build(); - return createSnapshotDisk(request); + return createSnapshotDiskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -374,16 +390,46 @@ public final Operation createSnapshotDisk( * .setGuestFlush(guestFlush) * .setSnapshotResource(snapshotResource) * .build(); - * Operation response = diskClient.createSnapshotDisk(request); + * diskClient.createSnapshotDiskAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation createSnapshotDisk(CreateSnapshotDiskHttpRequest request) { - return createSnapshotDiskCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture createSnapshotDiskAsync( + CreateSnapshotDiskHttpRequest request) { + return createSnapshotDiskOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a snapshot of a specified persistent disk. + * + *

Sample code: + * + *


+   * try (DiskClient diskClient = DiskClient.create()) {
+   *   ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]");
+   *   Boolean guestFlush = false;
+   *   Snapshot snapshotResource = Snapshot.newBuilder().build();
+   *   CreateSnapshotDiskHttpRequest request = CreateSnapshotDiskHttpRequest.newBuilder()
+   *     .setDisk(disk.toString())
+   *     .setGuestFlush(guestFlush)
+   *     .setSnapshotResource(snapshotResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = diskClient.createSnapshotDiskOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + createSnapshotDiskOperationCallable() { + return stub.createSnapshotDiskOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -404,7 +450,7 @@ public final Operation createSnapshotDisk(CreateSnapshotDiskHttpRequest request) * .build(); * ApiFuture<Operation> future = diskClient.createSnapshotDiskCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -425,19 +471,21 @@ public final Operation createSnapshotDisk(CreateSnapshotDiskHttpRequest request) *

    * try (DiskClient diskClient = DiskClient.create()) {
    *   ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]");
-   *   Operation response = diskClient.deleteDisk(disk);
+   *   diskClient.deleteDiskAsync(disk).get();
    * }
    * 
* * @param disk Name of the persistent disk to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteDisk(ProjectZoneDiskName disk) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteDiskAsync( + ProjectZoneDiskName disk) { DeleteDiskHttpRequest request = DeleteDiskHttpRequest.newBuilder().setDisk(disk == null ? null : disk.toString()).build(); - return deleteDisk(request); + return deleteDiskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -451,18 +499,19 @@ public final Operation deleteDisk(ProjectZoneDiskName disk) { *

    * try (DiskClient diskClient = DiskClient.create()) {
    *   ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]");
-   *   Operation response = diskClient.deleteDisk(disk.toString());
+   *   diskClient.deleteDiskAsync(disk.toString()).get();
    * }
    * 
* * @param disk Name of the persistent disk to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteDisk(String disk) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteDiskAsync(String disk) { DeleteDiskHttpRequest request = DeleteDiskHttpRequest.newBuilder().setDisk(disk).build(); - return deleteDisk(request); + return deleteDiskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -479,16 +528,44 @@ public final Operation deleteDisk(String disk) { * DeleteDiskHttpRequest request = DeleteDiskHttpRequest.newBuilder() * .setDisk(disk.toString()) * .build(); - * Operation response = diskClient.deleteDisk(request); + * diskClient.deleteDiskAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteDisk(DeleteDiskHttpRequest request) { - return deleteDiskCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteDiskAsync( + DeleteDiskHttpRequest request) { + return deleteDiskOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified persistent disk. Deleting a disk removes its data permanently and is + * irreversible. However, deleting a disk does not delete any snapshots previously made from the + * disk. You must separately delete snapshots. + * + *

Sample code: + * + *


+   * try (DiskClient diskClient = DiskClient.create()) {
+   *   ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]");
+   *   DeleteDiskHttpRequest request = DeleteDiskHttpRequest.newBuilder()
+   *     .setDisk(disk.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = diskClient.deleteDiskOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteDiskOperationCallable() { + return stub.deleteDiskOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -507,7 +584,7 @@ public final Operation deleteDisk(DeleteDiskHttpRequest request) { * .build(); * ApiFuture<Operation> future = diskClient.deleteDiskCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -728,7 +805,7 @@ public final UnaryCallable getIamPolicyDisk * try (DiskClient diskClient = DiskClient.create()) { * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); * Disk diskResource = Disk.newBuilder().build(); - * Operation response = diskClient.insertDisk(zone, diskResource); + * diskClient.insertDiskAsync(zone, diskResource).get(); * } * * @@ -737,15 +814,17 @@ public final UnaryCallable getIamPolicyDisk * ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertDisk(ProjectZoneName zone, Disk diskResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertDiskAsync( + ProjectZoneName zone, Disk diskResource) { InsertDiskHttpRequest request = InsertDiskHttpRequest.newBuilder() .setZone(zone == null ? null : zone.toString()) .setDiskResource(diskResource) .build(); - return insertDisk(request); + return insertDiskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -761,7 +840,7 @@ public final Operation insertDisk(ProjectZoneName zone, Disk diskResource) { * try (DiskClient diskClient = DiskClient.create()) { * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); * Disk diskResource = Disk.newBuilder().build(); - * Operation response = diskClient.insertDisk(zone.toString(), diskResource); + * diskClient.insertDiskAsync(zone.toString(), diskResource).get(); * } * * @@ -770,12 +849,14 @@ public final Operation insertDisk(ProjectZoneName zone, Disk diskResource) { * ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertDisk(String zone, Disk diskResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertDiskAsync( + String zone, Disk diskResource) { InsertDiskHttpRequest request = InsertDiskHttpRequest.newBuilder().setZone(zone).setDiskResource(diskResource).build(); - return insertDisk(request); + return insertDiskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -795,16 +876,47 @@ public final Operation insertDisk(String zone, Disk diskResource) { * .setZone(zone.toString()) * .setDiskResource(diskResource) * .build(); - * Operation response = diskClient.insertDisk(request); + * diskClient.insertDiskAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertDisk(InsertDiskHttpRequest request) { - return insertDiskCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertDiskAsync( + InsertDiskHttpRequest request) { + return insertDiskOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a persistent disk in the specified project using the data in the request. You can + * create a disk with a sourceImage, a sourceSnapshot, or create an empty 500 GB data disk by + * omitting all properties. You can also create a disk that is larger than the default size by + * specifying the sizeGb property. + * + *

Sample code: + * + *


+   * try (DiskClient diskClient = DiskClient.create()) {
+   *   ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+   *   Disk diskResource = Disk.newBuilder().build();
+   *   InsertDiskHttpRequest request = InsertDiskHttpRequest.newBuilder()
+   *     .setZone(zone.toString())
+   *     .setDiskResource(diskResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = diskClient.insertDiskOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertDiskOperationCallable() { + return stub.insertDiskOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -826,7 +938,7 @@ public final Operation insertDisk(InsertDiskHttpRequest request) { * .build(); * ApiFuture<Operation> future = diskClient.insertDiskCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -978,7 +1090,7 @@ public final UnaryCallable listDisksCallable() { * try (DiskClient diskClient = DiskClient.create()) { * ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]"); * DisksResizeRequest disksResizeRequestResource = DisksResizeRequest.newBuilder().build(); - * Operation response = diskClient.resizeDisk(disk, disksResizeRequestResource); + * diskClient.resizeDiskAsync(disk, disksResizeRequestResource).get(); * } * * @@ -986,8 +1098,9 @@ public final UnaryCallable listDisksCallable() { * @param disksResizeRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation resizeDisk( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture resizeDiskAsync( ProjectZoneDiskName disk, DisksResizeRequest disksResizeRequestResource) { ResizeDiskHttpRequest request = @@ -995,7 +1108,7 @@ public final Operation resizeDisk( .setDisk(disk == null ? null : disk.toString()) .setDisksResizeRequestResource(disksResizeRequestResource) .build(); - return resizeDisk(request); + return resizeDiskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1008,7 +1121,7 @@ public final Operation resizeDisk( * try (DiskClient diskClient = DiskClient.create()) { * ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]"); * DisksResizeRequest disksResizeRequestResource = DisksResizeRequest.newBuilder().build(); - * Operation response = diskClient.resizeDisk(disk.toString(), disksResizeRequestResource); + * diskClient.resizeDiskAsync(disk.toString(), disksResizeRequestResource).get(); * } * * @@ -1016,15 +1129,17 @@ public final Operation resizeDisk( * @param disksResizeRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation resizeDisk(String disk, DisksResizeRequest disksResizeRequestResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture resizeDiskAsync( + String disk, DisksResizeRequest disksResizeRequestResource) { ResizeDiskHttpRequest request = ResizeDiskHttpRequest.newBuilder() .setDisk(disk) .setDisksResizeRequestResource(disksResizeRequestResource) .build(); - return resizeDisk(request); + return resizeDiskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1041,16 +1156,44 @@ public final Operation resizeDisk(String disk, DisksResizeRequest disksResizeReq * .setDisk(disk.toString()) * .setDisksResizeRequestResource(disksResizeRequestResource) * .build(); - * Operation response = diskClient.resizeDisk(request); + * diskClient.resizeDiskAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation resizeDisk(ResizeDiskHttpRequest request) { - return resizeDiskCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture resizeDiskAsync( + ResizeDiskHttpRequest request) { + return resizeDiskOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Resizes the specified persistent disk. You can only increase the size of the disk. + * + *

Sample code: + * + *


+   * try (DiskClient diskClient = DiskClient.create()) {
+   *   ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]");
+   *   DisksResizeRequest disksResizeRequestResource = DisksResizeRequest.newBuilder().build();
+   *   ResizeDiskHttpRequest request = ResizeDiskHttpRequest.newBuilder()
+   *     .setDisk(disk.toString())
+   *     .setDisksResizeRequestResource(disksResizeRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = diskClient.resizeDiskOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + resizeDiskOperationCallable() { + return stub.resizeDiskOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1069,7 +1212,7 @@ public final Operation resizeDisk(ResizeDiskHttpRequest request) { * .build(); * ApiFuture<Operation> future = diskClient.resizeDiskCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1200,7 +1343,7 @@ public final UnaryCallable setIamPolicyDisk * try (DiskClient diskClient = DiskClient.create()) { * ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]"); * ZoneSetLabelsRequest zoneSetLabelsRequestResource = ZoneSetLabelsRequest.newBuilder().build(); - * Operation response = diskClient.setLabelsDisk(resource, zoneSetLabelsRequestResource); + * diskClient.setLabelsDiskAsync(resource, zoneSetLabelsRequestResource).get(); * } * * @@ -1208,8 +1351,9 @@ public final UnaryCallable setIamPolicyDisk * @param zoneSetLabelsRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setLabelsDisk( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setLabelsDiskAsync( ProjectZoneDiskResourceName resource, ZoneSetLabelsRequest zoneSetLabelsRequestResource) { SetLabelsDiskHttpRequest request = @@ -1217,7 +1361,7 @@ public final Operation setLabelsDisk( .setResource(resource == null ? null : resource.toString()) .setZoneSetLabelsRequestResource(zoneSetLabelsRequestResource) .build(); - return setLabelsDisk(request); + return setLabelsDiskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1231,7 +1375,7 @@ public final Operation setLabelsDisk( * try (DiskClient diskClient = DiskClient.create()) { * ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]"); * ZoneSetLabelsRequest zoneSetLabelsRequestResource = ZoneSetLabelsRequest.newBuilder().build(); - * Operation response = diskClient.setLabelsDisk(resource.toString(), zoneSetLabelsRequestResource); + * diskClient.setLabelsDiskAsync(resource.toString(), zoneSetLabelsRequestResource).get(); * } * * @@ -1239,8 +1383,9 @@ public final Operation setLabelsDisk( * @param zoneSetLabelsRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setLabelsDisk( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setLabelsDiskAsync( String resource, ZoneSetLabelsRequest zoneSetLabelsRequestResource) { SetLabelsDiskHttpRequest request = @@ -1248,7 +1393,7 @@ public final Operation setLabelsDisk( .setResource(resource) .setZoneSetLabelsRequestResource(zoneSetLabelsRequestResource) .build(); - return setLabelsDisk(request); + return setLabelsDiskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1266,16 +1411,45 @@ public final Operation setLabelsDisk( * .setResource(resource.toString()) * .setZoneSetLabelsRequestResource(zoneSetLabelsRequestResource) * .build(); - * Operation response = diskClient.setLabelsDisk(request); + * diskClient.setLabelsDiskAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setLabelsDisk(SetLabelsDiskHttpRequest request) { - return setLabelsDiskCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setLabelsDiskAsync( + SetLabelsDiskHttpRequest request) { + return setLabelsDiskOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the labels on a disk. To learn more about labels, read the Labeling Resources + * documentation. + * + *

Sample code: + * + *


+   * try (DiskClient diskClient = DiskClient.create()) {
+   *   ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
+   *   ZoneSetLabelsRequest zoneSetLabelsRequestResource = ZoneSetLabelsRequest.newBuilder().build();
+   *   SetLabelsDiskHttpRequest request = SetLabelsDiskHttpRequest.newBuilder()
+   *     .setResource(resource.toString())
+   *     .setZoneSetLabelsRequestResource(zoneSetLabelsRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = diskClient.setLabelsDiskOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + setLabelsDiskOperationCallable() { + return stub.setLabelsDiskOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1295,7 +1469,7 @@ public final Operation setLabelsDisk(SetLabelsDiskHttpRequest request) { * .build(); * ApiFuture<Operation> future = diskClient.setLabelsDiskCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskSettings.java index d379ae074f9c..8b7915bc4192 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskSettings.java @@ -22,10 +22,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -49,13 +51,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of createSnapshotDisk to 30 seconds: + * example, to set the total timeout of getDisk to 30 seconds: * *

  * 
  * DiskSettings.Builder diskSettingsBuilder =
  *     DiskSettings.newBuilder();
- * diskSettingsBuilder.createSnapshotDiskSettings().getRetrySettings().toBuilder()
+ * diskSettingsBuilder.getDiskSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * DiskSettings diskSettings = diskSettingsBuilder.build();
  * 
@@ -76,11 +78,27 @@ public UnaryCallSettings createSnapsho
     return ((DiskStubSettings) getStubSettings()).createSnapshotDiskSettings();
   }
 
+  /** Returns the object with the settings used for calls to createSnapshotDisk. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      createSnapshotDiskOperationSettings() {
+    return ((DiskStubSettings) getStubSettings()).createSnapshotDiskOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to deleteDisk. */
   public UnaryCallSettings deleteDiskSettings() {
     return ((DiskStubSettings) getStubSettings()).deleteDiskSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteDisk. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteDiskOperationSettings() {
+    return ((DiskStubSettings) getStubSettings()).deleteDiskOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getDisk. */
   public UnaryCallSettings getDiskSettings() {
     return ((DiskStubSettings) getStubSettings()).getDiskSettings();
@@ -96,6 +114,14 @@ public UnaryCallSettings insertDiskSettings()
     return ((DiskStubSettings) getStubSettings()).insertDiskSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertDisk. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertDiskOperationSettings() {
+    return ((DiskStubSettings) getStubSettings()).insertDiskOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listDisks. */
   public PagedCallSettings
       listDisksSettings() {
@@ -107,6 +133,14 @@ public UnaryCallSettings resizeDiskSettings()
     return ((DiskStubSettings) getStubSettings()).resizeDiskSettings();
   }
 
+  /** Returns the object with the settings used for calls to resizeDisk. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      resizeDiskOperationSettings() {
+    return ((DiskStubSettings) getStubSettings()).resizeDiskOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setIamPolicyDisk. */
   public UnaryCallSettings setIamPolicyDiskSettings() {
     return ((DiskStubSettings) getStubSettings()).setIamPolicyDiskSettings();
@@ -117,6 +151,14 @@ public UnaryCallSettings setLabelsDiskSetti
     return ((DiskStubSettings) getStubSettings()).setLabelsDiskSettings();
   }
 
+  /** Returns the object with the settings used for calls to setLabelsDisk. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setLabelsDiskOperationSettings() {
+    return ((DiskStubSettings) getStubSettings()).setLabelsDiskOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to testIamPermissionsDisk. */
   public UnaryCallSettings
       testIamPermissionsDiskSettings() {
@@ -237,11 +279,27 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().createSnapshotDiskSettings();
     }
 
+    /** Returns the builder for the settings used for calls to createSnapshotDisk. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        createSnapshotDiskOperationSettings() {
+      return getStubSettingsBuilder().createSnapshotDiskOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to deleteDisk. */
     public UnaryCallSettings.Builder deleteDiskSettings() {
       return getStubSettingsBuilder().deleteDiskSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteDisk. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteDiskOperationSettings() {
+      return getStubSettingsBuilder().deleteDiskOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getDisk. */
     public UnaryCallSettings.Builder getDiskSettings() {
       return getStubSettingsBuilder().getDiskSettings();
@@ -258,6 +316,14 @@ public UnaryCallSettings.Builder insertDiskSet
       return getStubSettingsBuilder().insertDiskSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertDisk. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertDiskOperationSettings() {
+      return getStubSettingsBuilder().insertDiskOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listDisks. */
     public PagedCallSettings.Builder
         listDisksSettings() {
@@ -269,6 +335,14 @@ public UnaryCallSettings.Builder resizeDiskSet
       return getStubSettingsBuilder().resizeDiskSettings();
     }
 
+    /** Returns the builder for the settings used for calls to resizeDisk. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        resizeDiskOperationSettings() {
+      return getStubSettingsBuilder().resizeDiskOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setIamPolicyDisk. */
     public UnaryCallSettings.Builder
         setIamPolicyDiskSettings() {
@@ -280,6 +354,14 @@ public UnaryCallSettings.Builder setLabelsD
       return getStubSettingsBuilder().setLabelsDiskSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setLabelsDisk. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        setLabelsDiskOperationSettings() {
+      return getStubSettingsBuilder().setLabelsDiskOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to testIamPermissionsDisk. */
     public UnaryCallSettings.Builder
         testIamPermissionsDiskSettings() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java
index 6bc1ca517763..c1d3a7967577 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.FirewallStub;
@@ -43,7 +46,7 @@
  * 
  * try (FirewallClient firewallClient = FirewallClient.create()) {
  *   ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]");
- *   Operation response = firewallClient.deleteFirewall(firewall);
+ *   Firewall response = firewallClient.getFirewall(firewall);
  * }
  * 
  * 
@@ -103,6 +106,7 @@ public class FirewallClient implements BackgroundResource { private final FirewallSettings settings; private final FirewallStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of FirewallClient with default settings. */ public static final FirewallClient create() throws IOException { @@ -133,12 +137,14 @@ public static final FirewallClient create(FirewallStub stub) { protected FirewallClient(FirewallSettings settings) throws IOException { this.settings = settings; this.stub = ((FirewallStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected FirewallClient(FirewallStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final FirewallSettings getSettings() { @@ -150,6 +156,16 @@ public FirewallStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Deletes the specified firewall. @@ -159,21 +175,23 @@ public FirewallStub getStub() { *

    * try (FirewallClient firewallClient = FirewallClient.create()) {
    *   ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]");
-   *   Operation response = firewallClient.deleteFirewall(firewall);
+   *   firewallClient.deleteFirewallAsync(firewall).get();
    * }
    * 
* * @param firewall Name of the firewall rule to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteFirewall(ProjectGlobalFirewallName firewall) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteFirewallAsync( + ProjectGlobalFirewallName firewall) { DeleteFirewallHttpRequest request = DeleteFirewallHttpRequest.newBuilder() .setFirewall(firewall == null ? null : firewall.toString()) .build(); - return deleteFirewall(request); + return deleteFirewallAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -185,19 +203,20 @@ public final Operation deleteFirewall(ProjectGlobalFirewallName firewall) { *

    * try (FirewallClient firewallClient = FirewallClient.create()) {
    *   ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]");
-   *   Operation response = firewallClient.deleteFirewall(firewall.toString());
+   *   firewallClient.deleteFirewallAsync(firewall.toString()).get();
    * }
    * 
* * @param firewall Name of the firewall rule to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteFirewall(String firewall) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteFirewallAsync(String firewall) { DeleteFirewallHttpRequest request = DeleteFirewallHttpRequest.newBuilder().setFirewall(firewall).build(); - return deleteFirewall(request); + return deleteFirewallAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -212,16 +231,42 @@ public final Operation deleteFirewall(String firewall) { * DeleteFirewallHttpRequest request = DeleteFirewallHttpRequest.newBuilder() * .setFirewall(firewall.toString()) * .build(); - * Operation response = firewallClient.deleteFirewall(request); + * firewallClient.deleteFirewallAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteFirewall(DeleteFirewallHttpRequest request) { - return deleteFirewallCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteFirewallAsync( + DeleteFirewallHttpRequest request) { + return deleteFirewallOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified firewall. + * + *

Sample code: + * + *


+   * try (FirewallClient firewallClient = FirewallClient.create()) {
+   *   ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]");
+   *   DeleteFirewallHttpRequest request = DeleteFirewallHttpRequest.newBuilder()
+   *     .setFirewall(firewall.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = firewallClient.deleteFirewallOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteFirewallOperationCallable() { + return stub.deleteFirewallOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -238,7 +283,7 @@ public final Operation deleteFirewall(DeleteFirewallHttpRequest request) { * .build(); * ApiFuture<Operation> future = firewallClient.deleteFirewallCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -354,7 +399,7 @@ public final UnaryCallable getFirewallCallable * try (FirewallClient firewallClient = FirewallClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * Firewall firewallResource = Firewall.newBuilder().build(); - * Operation response = firewallClient.insertFirewall(project, firewallResource); + * firewallClient.insertFirewallAsync(project, firewallResource).get(); * } * * @@ -362,15 +407,17 @@ public final UnaryCallable getFirewallCallable * @param firewallResource Represents a Firewall resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertFirewall(ProjectName project, Firewall firewallResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertFirewallAsync( + ProjectName project, Firewall firewallResource) { InsertFirewallHttpRequest request = InsertFirewallHttpRequest.newBuilder() .setProject(project == null ? null : project.toString()) .setFirewallResource(firewallResource) .build(); - return insertFirewall(request); + return insertFirewallAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -383,7 +430,7 @@ public final Operation insertFirewall(ProjectName project, Firewall firewallReso * try (FirewallClient firewallClient = FirewallClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * Firewall firewallResource = Firewall.newBuilder().build(); - * Operation response = firewallClient.insertFirewall(project.toString(), firewallResource); + * firewallClient.insertFirewallAsync(project.toString(), firewallResource).get(); * } * * @@ -391,15 +438,17 @@ public final Operation insertFirewall(ProjectName project, Firewall firewallReso * @param firewallResource Represents a Firewall resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertFirewall(String project, Firewall firewallResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertFirewallAsync( + String project, Firewall firewallResource) { InsertFirewallHttpRequest request = InsertFirewallHttpRequest.newBuilder() .setProject(project) .setFirewallResource(firewallResource) .build(); - return insertFirewall(request); + return insertFirewallAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -416,16 +465,44 @@ public final Operation insertFirewall(String project, Firewall firewallResource) * .setProject(project.toString()) * .setFirewallResource(firewallResource) * .build(); - * Operation response = firewallClient.insertFirewall(request); + * firewallClient.insertFirewallAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertFirewall(InsertFirewallHttpRequest request) { - return insertFirewallCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertFirewallAsync( + InsertFirewallHttpRequest request) { + return insertFirewallOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a firewall rule in the specified project using the data included in the request. + * + *

Sample code: + * + *


+   * try (FirewallClient firewallClient = FirewallClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   Firewall firewallResource = Firewall.newBuilder().build();
+   *   InsertFirewallHttpRequest request = InsertFirewallHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setFirewallResource(firewallResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = firewallClient.insertFirewallOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertFirewallOperationCallable() { + return stub.insertFirewallOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -444,7 +521,7 @@ public final Operation insertFirewall(InsertFirewallHttpRequest request) { * .build(); * ApiFuture<Operation> future = firewallClient.insertFirewallCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -601,7 +678,7 @@ public final UnaryCallable listFirewalls * ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]"); * Firewall firewallResource = Firewall.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = firewallClient.patchFirewall(firewall, firewallResource, fieldMask); + * firewallClient.patchFirewallAsync(firewall, firewallResource, fieldMask).get(); * } * * @@ -613,8 +690,9 @@ public final UnaryCallable listFirewalls * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchFirewall( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchFirewallAsync( ProjectGlobalFirewallName firewall, Firewall firewallResource, List fieldMask) { PatchFirewallHttpRequest request = @@ -623,7 +701,7 @@ public final Operation patchFirewall( .setFirewallResource(firewallResource) .addAllFieldMask(fieldMask) .build(); - return patchFirewall(request); + return patchFirewallAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -638,7 +716,7 @@ public final Operation patchFirewall( * ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]"); * Firewall firewallResource = Firewall.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = firewallClient.patchFirewall(firewall.toString(), firewallResource, fieldMask); + * firewallClient.patchFirewallAsync(firewall.toString(), firewallResource, fieldMask).get(); * } * * @@ -650,8 +728,9 @@ public final Operation patchFirewall( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchFirewall( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchFirewallAsync( String firewall, Firewall firewallResource, List fieldMask) { PatchFirewallHttpRequest request = @@ -660,7 +739,7 @@ public final Operation patchFirewall( .setFirewallResource(firewallResource) .addAllFieldMask(fieldMask) .build(); - return patchFirewall(request); + return patchFirewallAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -680,16 +759,47 @@ public final Operation patchFirewall( * .setFirewallResource(firewallResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = firewallClient.patchFirewall(request); + * firewallClient.patchFirewallAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchFirewall(PatchFirewallHttpRequest request) { - return patchFirewallCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchFirewallAsync( + PatchFirewallHttpRequest request) { + return patchFirewallOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the specified firewall rule with the data included in the request. This method supports + * PATCH semantics and uses the JSON merge patch format and processing rules. + * + *

Sample code: + * + *


+   * try (FirewallClient firewallClient = FirewallClient.create()) {
+   *   ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]");
+   *   Firewall firewallResource = Firewall.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   PatchFirewallHttpRequest request = PatchFirewallHttpRequest.newBuilder()
+   *     .setFirewall(firewall.toString())
+   *     .setFirewallResource(firewallResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = firewallClient.patchFirewallOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + patchFirewallOperationCallable() { + return stub.patchFirewallOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -711,7 +821,7 @@ public final Operation patchFirewall(PatchFirewallHttpRequest request) { * .build(); * ApiFuture<Operation> future = firewallClient.patchFirewallCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -733,7 +843,7 @@ public final UnaryCallable patchFirewallCal * ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]"); * Firewall firewallResource = Firewall.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = firewallClient.updateFirewall(firewall, firewallResource, fieldMask); + * firewallClient.updateFirewallAsync(firewall, firewallResource, fieldMask).get(); * } * * @@ -745,8 +855,9 @@ public final UnaryCallable patchFirewallCal * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateFirewall( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateFirewallAsync( ProjectGlobalFirewallName firewall, Firewall firewallResource, List fieldMask) { UpdateFirewallHttpRequest request = @@ -755,7 +866,7 @@ public final Operation updateFirewall( .setFirewallResource(firewallResource) .addAllFieldMask(fieldMask) .build(); - return updateFirewall(request); + return updateFirewallAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -771,7 +882,7 @@ public final Operation updateFirewall( * ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]"); * Firewall firewallResource = Firewall.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = firewallClient.updateFirewall(firewall.toString(), firewallResource, fieldMask); + * firewallClient.updateFirewallAsync(firewall.toString(), firewallResource, fieldMask).get(); * } * * @@ -783,8 +894,9 @@ public final Operation updateFirewall( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateFirewall( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateFirewallAsync( String firewall, Firewall firewallResource, List fieldMask) { UpdateFirewallHttpRequest request = @@ -793,7 +905,7 @@ public final Operation updateFirewall( .setFirewallResource(firewallResource) .addAllFieldMask(fieldMask) .build(); - return updateFirewall(request); + return updateFirewallAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -814,16 +926,48 @@ public final Operation updateFirewall( * .setFirewallResource(firewallResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = firewallClient.updateFirewall(request); + * firewallClient.updateFirewallAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateFirewall(UpdateFirewallHttpRequest request) { - return updateFirewallCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateFirewallAsync( + UpdateFirewallHttpRequest request) { + return updateFirewallOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the specified firewall rule with the data included in the request. The PUT method can + * only update the following fields of firewall rule: allowed, description, sourceRanges, + * sourceTags, targetTags. + * + *

Sample code: + * + *


+   * try (FirewallClient firewallClient = FirewallClient.create()) {
+   *   ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]");
+   *   Firewall firewallResource = Firewall.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   UpdateFirewallHttpRequest request = UpdateFirewallHttpRequest.newBuilder()
+   *     .setFirewall(firewall.toString())
+   *     .setFirewallResource(firewallResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = firewallClient.updateFirewallOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + updateFirewallOperationCallable() { + return stub.updateFirewallOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -846,7 +990,7 @@ public final Operation updateFirewall(UpdateFirewallHttpRequest request) { * .build(); * ApiFuture<Operation> future = firewallClient.updateFirewallCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallSettings.java index b5c7163a9e1b..f68f98d4e38e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallSettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteFirewall to 30 seconds: + * example, to set the total timeout of getFirewall to 30 seconds: * *

  * 
  * FirewallSettings.Builder firewallSettingsBuilder =
  *     FirewallSettings.newBuilder();
- * firewallSettingsBuilder.deleteFirewallSettings().getRetrySettings().toBuilder()
+ * firewallSettingsBuilder.getFirewallSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * FirewallSettings firewallSettings = firewallSettingsBuilder.build();
  * 
@@ -68,6 +70,14 @@ public UnaryCallSettings deleteFirewallSet
     return ((FirewallStubSettings) getStubSettings()).deleteFirewallSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteFirewall. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteFirewallOperationSettings() {
+    return ((FirewallStubSettings) getStubSettings()).deleteFirewallOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getFirewall. */
   public UnaryCallSettings getFirewallSettings() {
     return ((FirewallStubSettings) getStubSettings()).getFirewallSettings();
@@ -78,6 +88,14 @@ public UnaryCallSettings insertFirewallSet
     return ((FirewallStubSettings) getStubSettings()).insertFirewallSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertFirewall. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertFirewallOperationSettings() {
+    return ((FirewallStubSettings) getStubSettings()).insertFirewallOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listFirewalls. */
   public PagedCallSettings
       listFirewallsSettings() {
@@ -89,11 +107,27 @@ public UnaryCallSettings patchFirewallSetti
     return ((FirewallStubSettings) getStubSettings()).patchFirewallSettings();
   }
 
+  /** Returns the object with the settings used for calls to patchFirewall. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchFirewallOperationSettings() {
+    return ((FirewallStubSettings) getStubSettings()).patchFirewallOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to updateFirewall. */
   public UnaryCallSettings updateFirewallSettings() {
     return ((FirewallStubSettings) getStubSettings()).updateFirewallSettings();
   }
 
+  /** Returns the object with the settings used for calls to updateFirewall. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateFirewallOperationSettings() {
+    return ((FirewallStubSettings) getStubSettings()).updateFirewallOperationSettings();
+  }
+
   public static final FirewallSettings create(FirewallStubSettings stub) throws IOException {
     return new FirewallSettings.Builder(stub.toBuilder()).build();
   }
@@ -201,6 +235,14 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteFirewallSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteFirewall. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteFirewallOperationSettings() {
+      return getStubSettingsBuilder().deleteFirewallOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getFirewall. */
     public UnaryCallSettings.Builder getFirewallSettings() {
       return getStubSettingsBuilder().getFirewallSettings();
@@ -212,6 +254,14 @@ public UnaryCallSettings.Builder getFirewallSe
       return getStubSettingsBuilder().insertFirewallSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertFirewall. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertFirewallOperationSettings() {
+      return getStubSettingsBuilder().insertFirewallOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listFirewalls. */
     public PagedCallSettings.Builder<
             ListFirewallsHttpRequest, FirewallList, ListFirewallsPagedResponse>
@@ -224,12 +274,28 @@ public UnaryCallSettings.Builder patchFirew
       return getStubSettingsBuilder().patchFirewallSettings();
     }
 
+    /** Returns the builder for the settings used for calls to patchFirewall. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchFirewallOperationSettings() {
+      return getStubSettingsBuilder().patchFirewallOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to updateFirewall. */
     public UnaryCallSettings.Builder
         updateFirewallSettings() {
       return getStubSettingsBuilder().updateFirewallSettings();
     }
 
+    /** Returns the builder for the settings used for calls to updateFirewall. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        updateFirewallOperationSettings() {
+      return getStubSettingsBuilder().updateFirewallOperationSettings();
+    }
+
     @Override
     public FirewallSettings build() throws IOException {
       return new FirewallSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java
index ba45653bc3ea..3cfc578b17b1 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.ForwardingRuleStub;
@@ -43,7 +46,7 @@
  * 
  * try (ForwardingRuleClient forwardingRuleClient = ForwardingRuleClient.create()) {
  *   ProjectRegionForwardingRuleName forwardingRule = ProjectRegionForwardingRuleName.of("[PROJECT]", "[REGION]", "[FORWARDING_RULE]");
- *   Operation response = forwardingRuleClient.deleteForwardingRule(forwardingRule);
+ *   ForwardingRule response = forwardingRuleClient.getForwardingRule(forwardingRule);
  * }
  * 
  * 
@@ -103,6 +106,7 @@ public class ForwardingRuleClient implements BackgroundResource { private final ForwardingRuleSettings settings; private final ForwardingRuleStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of ForwardingRuleClient with default settings. */ public static final ForwardingRuleClient create() throws IOException { @@ -135,12 +139,14 @@ public static final ForwardingRuleClient create(ForwardingRuleStub stub) { protected ForwardingRuleClient(ForwardingRuleSettings settings) throws IOException { this.settings = settings; this.stub = ((ForwardingRuleStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected ForwardingRuleClient(ForwardingRuleStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final ForwardingRuleSettings getSettings() { @@ -152,6 +158,16 @@ public ForwardingRuleStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Retrieves an aggregated list of forwarding rules. @@ -302,21 +318,23 @@ public final AggregatedListForwardingRulesPagedResponse aggregatedListForwarding *

    * try (ForwardingRuleClient forwardingRuleClient = ForwardingRuleClient.create()) {
    *   ProjectRegionForwardingRuleName forwardingRule = ProjectRegionForwardingRuleName.of("[PROJECT]", "[REGION]", "[FORWARDING_RULE]");
-   *   Operation response = forwardingRuleClient.deleteForwardingRule(forwardingRule);
+   *   forwardingRuleClient.deleteForwardingRuleAsync(forwardingRule).get();
    * }
    * 
* * @param forwardingRule Name of the ForwardingRule resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteForwardingRule(ProjectRegionForwardingRuleName forwardingRule) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteForwardingRuleAsync( + ProjectRegionForwardingRuleName forwardingRule) { DeleteForwardingRuleHttpRequest request = DeleteForwardingRuleHttpRequest.newBuilder() .setForwardingRule(forwardingRule == null ? null : forwardingRule.toString()) .build(); - return deleteForwardingRule(request); + return deleteForwardingRuleAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -328,19 +346,21 @@ public final Operation deleteForwardingRule(ProjectRegionForwardingRuleName forw *

    * try (ForwardingRuleClient forwardingRuleClient = ForwardingRuleClient.create()) {
    *   ProjectRegionForwardingRuleName forwardingRule = ProjectRegionForwardingRuleName.of("[PROJECT]", "[REGION]", "[FORWARDING_RULE]");
-   *   Operation response = forwardingRuleClient.deleteForwardingRule(forwardingRule.toString());
+   *   forwardingRuleClient.deleteForwardingRuleAsync(forwardingRule.toString()).get();
    * }
    * 
* * @param forwardingRule Name of the ForwardingRule resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteForwardingRule(String forwardingRule) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteForwardingRuleAsync( + String forwardingRule) { DeleteForwardingRuleHttpRequest request = DeleteForwardingRuleHttpRequest.newBuilder().setForwardingRule(forwardingRule).build(); - return deleteForwardingRule(request); + return deleteForwardingRuleAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -355,16 +375,42 @@ public final Operation deleteForwardingRule(String forwardingRule) { * DeleteForwardingRuleHttpRequest request = DeleteForwardingRuleHttpRequest.newBuilder() * .setForwardingRule(forwardingRule.toString()) * .build(); - * Operation response = forwardingRuleClient.deleteForwardingRule(request); + * forwardingRuleClient.deleteForwardingRuleAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteForwardingRule(DeleteForwardingRuleHttpRequest request) { - return deleteForwardingRuleCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteForwardingRuleAsync( + DeleteForwardingRuleHttpRequest request) { + return deleteForwardingRuleOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified ForwardingRule resource. + * + *

Sample code: + * + *


+   * try (ForwardingRuleClient forwardingRuleClient = ForwardingRuleClient.create()) {
+   *   ProjectRegionForwardingRuleName forwardingRule = ProjectRegionForwardingRuleName.of("[PROJECT]", "[REGION]", "[FORWARDING_RULE]");
+   *   DeleteForwardingRuleHttpRequest request = DeleteForwardingRuleHttpRequest.newBuilder()
+   *     .setForwardingRule(forwardingRule.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = forwardingRuleClient.deleteForwardingRuleOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteForwardingRuleOperationCallable() { + return stub.deleteForwardingRuleOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -381,7 +427,7 @@ public final Operation deleteForwardingRule(DeleteForwardingRuleHttpRequest requ * .build(); * ApiFuture<Operation> future = forwardingRuleClient.deleteForwardingRuleCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -500,7 +546,7 @@ public final ForwardingRule getForwardingRule(GetForwardingRuleHttpRequest reque * try (ForwardingRuleClient forwardingRuleClient = ForwardingRuleClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * ForwardingRule forwardingRuleResource = ForwardingRule.newBuilder().build(); - * Operation response = forwardingRuleClient.insertForwardingRule(region, forwardingRuleResource); + * forwardingRuleClient.insertForwardingRuleAsync(region, forwardingRuleResource).get(); * } * * @@ -513,8 +559,9 @@ public final ForwardingRule getForwardingRule(GetForwardingRuleHttpRequest reque * (== resource_for v1.regionForwardingRules ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertForwardingRule( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertForwardingRuleAsync( ProjectRegionName region, ForwardingRule forwardingRuleResource) { InsertForwardingRuleHttpRequest request = @@ -522,7 +569,7 @@ public final Operation insertForwardingRule( .setRegion(region == null ? null : region.toString()) .setForwardingRuleResource(forwardingRuleResource) .build(); - return insertForwardingRule(request); + return insertForwardingRuleAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -536,7 +583,7 @@ public final Operation insertForwardingRule( * try (ForwardingRuleClient forwardingRuleClient = ForwardingRuleClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * ForwardingRule forwardingRuleResource = ForwardingRule.newBuilder().build(); - * Operation response = forwardingRuleClient.insertForwardingRule(region.toString(), forwardingRuleResource); + * forwardingRuleClient.insertForwardingRuleAsync(region.toString(), forwardingRuleResource).get(); * } * * @@ -549,8 +596,9 @@ public final Operation insertForwardingRule( * (== resource_for v1.regionForwardingRules ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertForwardingRule( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertForwardingRuleAsync( String region, ForwardingRule forwardingRuleResource) { InsertForwardingRuleHttpRequest request = @@ -558,7 +606,7 @@ public final Operation insertForwardingRule( .setRegion(region) .setForwardingRuleResource(forwardingRuleResource) .build(); - return insertForwardingRule(request); + return insertForwardingRuleAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -576,16 +624,45 @@ public final Operation insertForwardingRule( * .setRegion(region.toString()) * .setForwardingRuleResource(forwardingRuleResource) * .build(); - * Operation response = forwardingRuleClient.insertForwardingRule(request); + * forwardingRuleClient.insertForwardingRuleAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertForwardingRule(InsertForwardingRuleHttpRequest request) { - return insertForwardingRuleCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertForwardingRuleAsync( + InsertForwardingRuleHttpRequest request) { + return insertForwardingRuleOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a ForwardingRule resource in the specified project and region using the data included + * in the request. + * + *

Sample code: + * + *


+   * try (ForwardingRuleClient forwardingRuleClient = ForwardingRuleClient.create()) {
+   *   ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
+   *   ForwardingRule forwardingRuleResource = ForwardingRule.newBuilder().build();
+   *   InsertForwardingRuleHttpRequest request = InsertForwardingRuleHttpRequest.newBuilder()
+   *     .setRegion(region.toString())
+   *     .setForwardingRuleResource(forwardingRuleResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = forwardingRuleClient.insertForwardingRuleOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertForwardingRuleOperationCallable() { + return stub.insertForwardingRuleOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -605,7 +682,7 @@ public final Operation insertForwardingRule(InsertForwardingRuleHttpRequest requ * .build(); * ApiFuture<Operation> future = forwardingRuleClient.insertForwardingRuleCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -764,7 +841,7 @@ public final ListForwardingRulesPagedResponse listForwardingRules( * try (ForwardingRuleClient forwardingRuleClient = ForwardingRuleClient.create()) { * ProjectRegionForwardingRuleName forwardingRule = ProjectRegionForwardingRuleName.of("[PROJECT]", "[REGION]", "[FORWARDING_RULE]"); * TargetReference targetReferenceResource = TargetReference.newBuilder().build(); - * Operation response = forwardingRuleClient.setTargetForwardingRule(forwardingRule, targetReferenceResource); + * forwardingRuleClient.setTargetForwardingRuleAsync(forwardingRule, targetReferenceResource).get(); * } * * @@ -772,8 +849,9 @@ public final ListForwardingRulesPagedResponse listForwardingRules( * @param targetReferenceResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setTargetForwardingRule( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setTargetForwardingRuleAsync( ProjectRegionForwardingRuleName forwardingRule, TargetReference targetReferenceResource) { SetTargetForwardingRuleHttpRequest request = @@ -781,7 +859,7 @@ public final Operation setTargetForwardingRule( .setForwardingRule(forwardingRule == null ? null : forwardingRule.toString()) .setTargetReferenceResource(targetReferenceResource) .build(); - return setTargetForwardingRule(request); + return setTargetForwardingRuleAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -795,7 +873,7 @@ public final Operation setTargetForwardingRule( * try (ForwardingRuleClient forwardingRuleClient = ForwardingRuleClient.create()) { * ProjectRegionForwardingRuleName forwardingRule = ProjectRegionForwardingRuleName.of("[PROJECT]", "[REGION]", "[FORWARDING_RULE]"); * TargetReference targetReferenceResource = TargetReference.newBuilder().build(); - * Operation response = forwardingRuleClient.setTargetForwardingRule(forwardingRule.toString(), targetReferenceResource); + * forwardingRuleClient.setTargetForwardingRuleAsync(forwardingRule.toString(), targetReferenceResource).get(); * } * * @@ -803,8 +881,9 @@ public final Operation setTargetForwardingRule( * @param targetReferenceResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setTargetForwardingRule( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setTargetForwardingRuleAsync( String forwardingRule, TargetReference targetReferenceResource) { SetTargetForwardingRuleHttpRequest request = @@ -812,7 +891,7 @@ public final Operation setTargetForwardingRule( .setForwardingRule(forwardingRule) .setTargetReferenceResource(targetReferenceResource) .build(); - return setTargetForwardingRule(request); + return setTargetForwardingRuleAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -830,16 +909,45 @@ public final Operation setTargetForwardingRule( * .setForwardingRule(forwardingRule.toString()) * .setTargetReferenceResource(targetReferenceResource) * .build(); - * Operation response = forwardingRuleClient.setTargetForwardingRule(request); + * forwardingRuleClient.setTargetForwardingRuleAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setTargetForwardingRule(SetTargetForwardingRuleHttpRequest request) { - return setTargetForwardingRuleCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setTargetForwardingRuleAsync( + SetTargetForwardingRuleHttpRequest request) { + return setTargetForwardingRuleOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Changes target URL for forwarding rule. The new target should be of the same type as the old + * target. + * + *

Sample code: + * + *


+   * try (ForwardingRuleClient forwardingRuleClient = ForwardingRuleClient.create()) {
+   *   ProjectRegionForwardingRuleName forwardingRule = ProjectRegionForwardingRuleName.of("[PROJECT]", "[REGION]", "[FORWARDING_RULE]");
+   *   TargetReference targetReferenceResource = TargetReference.newBuilder().build();
+   *   SetTargetForwardingRuleHttpRequest request = SetTargetForwardingRuleHttpRequest.newBuilder()
+   *     .setForwardingRule(forwardingRule.toString())
+   *     .setTargetReferenceResource(targetReferenceResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = forwardingRuleClient.setTargetForwardingRuleOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + setTargetForwardingRuleOperationCallable() { + return stub.setTargetForwardingRuleOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -859,7 +967,7 @@ public final Operation setTargetForwardingRule(SetTargetForwardingRuleHttpReques * .build(); * ApiFuture<Operation> future = forwardingRuleClient.setTargetForwardingRuleCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleSettings.java index 14f7413d3f60..2572bc42f37d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleSettings.java @@ -22,10 +22,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -49,13 +51,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteForwardingRule to 30 seconds: + * example, to set the total timeout of getForwardingRule to 30 seconds: * *

  * 
  * ForwardingRuleSettings.Builder forwardingRuleSettingsBuilder =
  *     ForwardingRuleSettings.newBuilder();
- * forwardingRuleSettingsBuilder.deleteForwardingRuleSettings().getRetrySettings().toBuilder()
+ * forwardingRuleSettingsBuilder.getForwardingRuleSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * ForwardingRuleSettings forwardingRuleSettings = forwardingRuleSettingsBuilder.build();
  * 
@@ -79,6 +81,14 @@ public class ForwardingRuleSettings extends ClientSettings
+      deleteForwardingRuleOperationSettings() {
+    return ((ForwardingRuleStubSettings) getStubSettings()).deleteForwardingRuleOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getForwardingRule. */
   public UnaryCallSettings
       getForwardingRuleSettings() {
@@ -91,6 +101,14 @@ public class ForwardingRuleSettings extends ClientSettings
+      insertForwardingRuleOperationSettings() {
+    return ((ForwardingRuleStubSettings) getStubSettings()).insertForwardingRuleOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listForwardingRules. */
   public PagedCallSettings<
           ListForwardingRulesHttpRequest, ForwardingRuleList, ListForwardingRulesPagedResponse>
@@ -104,6 +122,15 @@ public class ForwardingRuleSettings extends ClientSettings
+      setTargetForwardingRuleOperationSettings() {
+    return ((ForwardingRuleStubSettings) getStubSettings())
+        .setTargetForwardingRuleOperationSettings();
+  }
+
   public static final ForwardingRuleSettings create(ForwardingRuleStubSettings stub)
       throws IOException {
     return new ForwardingRuleSettings.Builder(stub.toBuilder()).build();
@@ -221,6 +248,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteForwardingRuleSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteForwardingRule. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+        deleteForwardingRuleOperationSettings() {
+      return getStubSettingsBuilder().deleteForwardingRuleOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getForwardingRule. */
     public UnaryCallSettings.Builder
         getForwardingRuleSettings() {
@@ -233,6 +269,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertForwardingRuleSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertForwardingRule. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+        insertForwardingRuleOperationSettings() {
+      return getStubSettingsBuilder().insertForwardingRuleOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listForwardingRules. */
     public PagedCallSettings.Builder<
             ListForwardingRulesHttpRequest, ForwardingRuleList, ListForwardingRulesPagedResponse>
@@ -246,6 +291,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().setTargetForwardingRuleSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setTargetForwardingRule. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetTargetForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+        setTargetForwardingRuleOperationSettings() {
+      return getStubSettingsBuilder().setTargetForwardingRuleOperationSettings();
+    }
+
     @Override
     public ForwardingRuleSettings build() throws IOException {
       return new ForwardingRuleSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressClient.java
index 9aa48d06041f..4f0c8e3c034d 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.GlobalAddressStub;
@@ -43,7 +46,7 @@
  * 
  * try (GlobalAddressClient globalAddressClient = GlobalAddressClient.create()) {
  *   ProjectGlobalAddressName address = ProjectGlobalAddressName.of("[PROJECT]", "[ADDRESS]");
- *   Operation response = globalAddressClient.deleteGlobalAddress(address);
+ *   Address response = globalAddressClient.getGlobalAddress(address);
  * }
  * 
  * 
@@ -103,6 +106,7 @@ public class GlobalAddressClient implements BackgroundResource { private final GlobalAddressSettings settings; private final GlobalAddressStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of GlobalAddressClient with default settings. */ public static final GlobalAddressClient create() throws IOException { @@ -135,12 +139,14 @@ public static final GlobalAddressClient create(GlobalAddressStub stub) { protected GlobalAddressClient(GlobalAddressSettings settings) throws IOException { this.settings = settings; this.stub = ((GlobalAddressStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected GlobalAddressClient(GlobalAddressStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final GlobalAddressSettings getSettings() { @@ -152,6 +158,16 @@ public GlobalAddressStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Deletes the specified address resource. @@ -161,21 +177,23 @@ public GlobalAddressStub getStub() { *

    * try (GlobalAddressClient globalAddressClient = GlobalAddressClient.create()) {
    *   ProjectGlobalAddressName address = ProjectGlobalAddressName.of("[PROJECT]", "[ADDRESS]");
-   *   Operation response = globalAddressClient.deleteGlobalAddress(address);
+   *   globalAddressClient.deleteGlobalAddressAsync(address).get();
    * }
    * 
* * @param address Name of the address resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteGlobalAddress(ProjectGlobalAddressName address) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteGlobalAddressAsync( + ProjectGlobalAddressName address) { DeleteGlobalAddressHttpRequest request = DeleteGlobalAddressHttpRequest.newBuilder() .setAddress(address == null ? null : address.toString()) .build(); - return deleteGlobalAddress(request); + return deleteGlobalAddressAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -187,19 +205,21 @@ public final Operation deleteGlobalAddress(ProjectGlobalAddressName address) { *

    * try (GlobalAddressClient globalAddressClient = GlobalAddressClient.create()) {
    *   ProjectGlobalAddressName address = ProjectGlobalAddressName.of("[PROJECT]", "[ADDRESS]");
-   *   Operation response = globalAddressClient.deleteGlobalAddress(address.toString());
+   *   globalAddressClient.deleteGlobalAddressAsync(address.toString()).get();
    * }
    * 
* * @param address Name of the address resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteGlobalAddress(String address) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteGlobalAddressAsync( + String address) { DeleteGlobalAddressHttpRequest request = DeleteGlobalAddressHttpRequest.newBuilder().setAddress(address).build(); - return deleteGlobalAddress(request); + return deleteGlobalAddressAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -214,16 +234,42 @@ public final Operation deleteGlobalAddress(String address) { * DeleteGlobalAddressHttpRequest request = DeleteGlobalAddressHttpRequest.newBuilder() * .setAddress(address.toString()) * .build(); - * Operation response = globalAddressClient.deleteGlobalAddress(request); + * globalAddressClient.deleteGlobalAddressAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteGlobalAddress(DeleteGlobalAddressHttpRequest request) { - return deleteGlobalAddressCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteGlobalAddressAsync( + DeleteGlobalAddressHttpRequest request) { + return deleteGlobalAddressOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified address resource. + * + *

Sample code: + * + *


+   * try (GlobalAddressClient globalAddressClient = GlobalAddressClient.create()) {
+   *   ProjectGlobalAddressName address = ProjectGlobalAddressName.of("[PROJECT]", "[ADDRESS]");
+   *   DeleteGlobalAddressHttpRequest request = DeleteGlobalAddressHttpRequest.newBuilder()
+   *     .setAddress(address.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = globalAddressClient.deleteGlobalAddressOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteGlobalAddressOperationCallable() { + return stub.deleteGlobalAddressOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -240,7 +286,7 @@ public final Operation deleteGlobalAddress(DeleteGlobalAddressHttpRequest reques * .build(); * ApiFuture<Operation> future = globalAddressClient.deleteGlobalAddressCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -361,7 +407,7 @@ public final UnaryCallable getGlobalAddres * try (GlobalAddressClient globalAddressClient = GlobalAddressClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * Address addressResource = Address.newBuilder().build(); - * Operation response = globalAddressClient.insertGlobalAddress(project, addressResource); + * globalAddressClient.insertGlobalAddressAsync(project, addressResource).get(); * } * * @@ -371,15 +417,17 @@ public final UnaryCallable getGlobalAddres * v1.globalAddresses ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertGlobalAddress(ProjectName project, Address addressResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertGlobalAddressAsync( + ProjectName project, Address addressResource) { InsertGlobalAddressHttpRequest request = InsertGlobalAddressHttpRequest.newBuilder() .setProject(project == null ? null : project.toString()) .setAddressResource(addressResource) .build(); - return insertGlobalAddress(request); + return insertGlobalAddressAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -392,7 +440,7 @@ public final Operation insertGlobalAddress(ProjectName project, Address addressR * try (GlobalAddressClient globalAddressClient = GlobalAddressClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * Address addressResource = Address.newBuilder().build(); - * Operation response = globalAddressClient.insertGlobalAddress(project.toString(), addressResource); + * globalAddressClient.insertGlobalAddressAsync(project.toString(), addressResource).get(); * } * * @@ -402,15 +450,17 @@ public final Operation insertGlobalAddress(ProjectName project, Address addressR * v1.globalAddresses ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertGlobalAddress(String project, Address addressResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertGlobalAddressAsync( + String project, Address addressResource) { InsertGlobalAddressHttpRequest request = InsertGlobalAddressHttpRequest.newBuilder() .setProject(project) .setAddressResource(addressResource) .build(); - return insertGlobalAddress(request); + return insertGlobalAddressAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -427,16 +477,44 @@ public final Operation insertGlobalAddress(String project, Address addressResour * .setProject(project.toString()) * .setAddressResource(addressResource) * .build(); - * Operation response = globalAddressClient.insertGlobalAddress(request); + * globalAddressClient.insertGlobalAddressAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertGlobalAddress(InsertGlobalAddressHttpRequest request) { - return insertGlobalAddressCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertGlobalAddressAsync( + InsertGlobalAddressHttpRequest request) { + return insertGlobalAddressOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates an address resource in the specified project using the data included in the request. + * + *

Sample code: + * + *


+   * try (GlobalAddressClient globalAddressClient = GlobalAddressClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   Address addressResource = Address.newBuilder().build();
+   *   InsertGlobalAddressHttpRequest request = InsertGlobalAddressHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setAddressResource(addressResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = globalAddressClient.insertGlobalAddressOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertGlobalAddressOperationCallable() { + return stub.insertGlobalAddressOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -455,7 +533,7 @@ public final Operation insertGlobalAddress(InsertGlobalAddressHttpRequest reques * .build(); * ApiFuture<Operation> future = globalAddressClient.insertGlobalAddressCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressSettings.java index 7539e81ce69a..1c3e55ca4d7d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressSettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteGlobalAddress to 30 seconds: + * example, to set the total timeout of getGlobalAddress to 30 seconds: * *

  * 
  * GlobalAddressSettings.Builder globalAddressSettingsBuilder =
  *     GlobalAddressSettings.newBuilder();
- * globalAddressSettingsBuilder.deleteGlobalAddressSettings().getRetrySettings().toBuilder()
+ * globalAddressSettingsBuilder.getGlobalAddressSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * GlobalAddressSettings globalAddressSettings = globalAddressSettingsBuilder.build();
  * 
@@ -69,6 +71,14 @@ public class GlobalAddressSettings extends ClientSettings
     return ((GlobalAddressStubSettings) getStubSettings()).deleteGlobalAddressSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteGlobalAddress. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteGlobalAddressOperationSettings() {
+    return ((GlobalAddressStubSettings) getStubSettings()).deleteGlobalAddressOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getGlobalAddress. */
   public UnaryCallSettings getGlobalAddressSettings() {
     return ((GlobalAddressStubSettings) getStubSettings()).getGlobalAddressSettings();
@@ -80,6 +90,14 @@ public UnaryCallSettings getGlobalAddressS
     return ((GlobalAddressStubSettings) getStubSettings()).insertGlobalAddressSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertGlobalAddress. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertGlobalAddressOperationSettings() {
+    return ((GlobalAddressStubSettings) getStubSettings()).insertGlobalAddressOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listGlobalAddresses. */
   public PagedCallSettings<
           ListGlobalAddressesHttpRequest, AddressList, ListGlobalAddressesPagedResponse>
@@ -195,6 +213,14 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteGlobalAddressSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteGlobalAddress. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteGlobalAddressOperationSettings() {
+      return getStubSettingsBuilder().deleteGlobalAddressOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getGlobalAddress. */
     public UnaryCallSettings.Builder
         getGlobalAddressSettings() {
@@ -207,6 +233,14 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertGlobalAddressSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertGlobalAddress. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertGlobalAddressOperationSettings() {
+      return getStubSettingsBuilder().insertGlobalAddressOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listGlobalAddresses. */
     public PagedCallSettings.Builder<
             ListGlobalAddressesHttpRequest, AddressList, ListGlobalAddressesPagedResponse>
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleClient.java
index 64156dde5424..9983577a18b4 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.GlobalForwardingRuleStub;
@@ -43,7 +46,7 @@
  * 
  * try (GlobalForwardingRuleClient globalForwardingRuleClient = GlobalForwardingRuleClient.create()) {
  *   ProjectGlobalForwardingRuleName forwardingRule = ProjectGlobalForwardingRuleName.of("[PROJECT]", "[FORWARDING_RULE]");
- *   Operation response = globalForwardingRuleClient.deleteGlobalForwardingRule(forwardingRule);
+ *   ForwardingRule response = globalForwardingRuleClient.getGlobalForwardingRule(forwardingRule);
  * }
  * 
  * 
@@ -104,6 +107,7 @@ public class GlobalForwardingRuleClient implements BackgroundResource { private final GlobalForwardingRuleSettings settings; private final GlobalForwardingRuleStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of GlobalForwardingRuleClient with default settings. */ public static final GlobalForwardingRuleClient create() throws IOException { @@ -136,12 +140,14 @@ public static final GlobalForwardingRuleClient create(GlobalForwardingRuleStub s protected GlobalForwardingRuleClient(GlobalForwardingRuleSettings settings) throws IOException { this.settings = settings; this.stub = ((GlobalForwardingRuleStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected GlobalForwardingRuleClient(GlobalForwardingRuleStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final GlobalForwardingRuleSettings getSettings() { @@ -153,6 +159,16 @@ public GlobalForwardingRuleStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Deletes the specified GlobalForwardingRule resource. @@ -162,22 +178,23 @@ public GlobalForwardingRuleStub getStub() { *

    * try (GlobalForwardingRuleClient globalForwardingRuleClient = GlobalForwardingRuleClient.create()) {
    *   ProjectGlobalForwardingRuleName forwardingRule = ProjectGlobalForwardingRuleName.of("[PROJECT]", "[FORWARDING_RULE]");
-   *   Operation response = globalForwardingRuleClient.deleteGlobalForwardingRule(forwardingRule);
+   *   globalForwardingRuleClient.deleteGlobalForwardingRuleAsync(forwardingRule).get();
    * }
    * 
* * @param forwardingRule Name of the ForwardingRule resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteGlobalForwardingRule( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteGlobalForwardingRuleAsync( ProjectGlobalForwardingRuleName forwardingRule) { DeleteGlobalForwardingRuleHttpRequest request = DeleteGlobalForwardingRuleHttpRequest.newBuilder() .setForwardingRule(forwardingRule == null ? null : forwardingRule.toString()) .build(); - return deleteGlobalForwardingRule(request); + return deleteGlobalForwardingRuleAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -189,21 +206,23 @@ public final Operation deleteGlobalForwardingRule( *

    * try (GlobalForwardingRuleClient globalForwardingRuleClient = GlobalForwardingRuleClient.create()) {
    *   ProjectGlobalForwardingRuleName forwardingRule = ProjectGlobalForwardingRuleName.of("[PROJECT]", "[FORWARDING_RULE]");
-   *   Operation response = globalForwardingRuleClient.deleteGlobalForwardingRule(forwardingRule.toString());
+   *   globalForwardingRuleClient.deleteGlobalForwardingRuleAsync(forwardingRule.toString()).get();
    * }
    * 
* * @param forwardingRule Name of the ForwardingRule resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteGlobalForwardingRule(String forwardingRule) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteGlobalForwardingRuleAsync( + String forwardingRule) { DeleteGlobalForwardingRuleHttpRequest request = DeleteGlobalForwardingRuleHttpRequest.newBuilder() .setForwardingRule(forwardingRule) .build(); - return deleteGlobalForwardingRule(request); + return deleteGlobalForwardingRuleAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -218,16 +237,42 @@ public final Operation deleteGlobalForwardingRule(String forwardingRule) { * DeleteGlobalForwardingRuleHttpRequest request = DeleteGlobalForwardingRuleHttpRequest.newBuilder() * .setForwardingRule(forwardingRule.toString()) * .build(); - * Operation response = globalForwardingRuleClient.deleteGlobalForwardingRule(request); + * globalForwardingRuleClient.deleteGlobalForwardingRuleAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteGlobalForwardingRule(DeleteGlobalForwardingRuleHttpRequest request) { - return deleteGlobalForwardingRuleCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteGlobalForwardingRuleAsync( + DeleteGlobalForwardingRuleHttpRequest request) { + return deleteGlobalForwardingRuleOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified GlobalForwardingRule resource. + * + *

Sample code: + * + *


+   * try (GlobalForwardingRuleClient globalForwardingRuleClient = GlobalForwardingRuleClient.create()) {
+   *   ProjectGlobalForwardingRuleName forwardingRule = ProjectGlobalForwardingRuleName.of("[PROJECT]", "[FORWARDING_RULE]");
+   *   DeleteGlobalForwardingRuleHttpRequest request = DeleteGlobalForwardingRuleHttpRequest.newBuilder()
+   *     .setForwardingRule(forwardingRule.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = globalForwardingRuleClient.deleteGlobalForwardingRuleOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteGlobalForwardingRuleOperationCallable() { + return stub.deleteGlobalForwardingRuleOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -244,7 +289,7 @@ public final Operation deleteGlobalForwardingRule(DeleteGlobalForwardingRuleHttp * .build(); * ApiFuture<Operation> future = globalForwardingRuleClient.deleteGlobalForwardingRuleCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -368,7 +413,7 @@ public final ForwardingRule getGlobalForwardingRule(GetGlobalForwardingRuleHttpR * try (GlobalForwardingRuleClient globalForwardingRuleClient = GlobalForwardingRuleClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * ForwardingRule forwardingRuleResource = ForwardingRule.newBuilder().build(); - * Operation response = globalForwardingRuleClient.insertGlobalForwardingRule(project, forwardingRuleResource); + * globalForwardingRuleClient.insertGlobalForwardingRuleAsync(project, forwardingRuleResource).get(); * } * * @@ -381,8 +426,9 @@ public final ForwardingRule getGlobalForwardingRule(GetGlobalForwardingRuleHttpR * (== resource_for v1.regionForwardingRules ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertGlobalForwardingRule( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertGlobalForwardingRuleAsync( ProjectName project, ForwardingRule forwardingRuleResource) { InsertGlobalForwardingRuleHttpRequest request = @@ -390,7 +436,7 @@ public final Operation insertGlobalForwardingRule( .setProject(project == null ? null : project.toString()) .setForwardingRuleResource(forwardingRuleResource) .build(); - return insertGlobalForwardingRule(request); + return insertGlobalForwardingRuleAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -404,7 +450,7 @@ public final Operation insertGlobalForwardingRule( * try (GlobalForwardingRuleClient globalForwardingRuleClient = GlobalForwardingRuleClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * ForwardingRule forwardingRuleResource = ForwardingRule.newBuilder().build(); - * Operation response = globalForwardingRuleClient.insertGlobalForwardingRule(project.toString(), forwardingRuleResource); + * globalForwardingRuleClient.insertGlobalForwardingRuleAsync(project.toString(), forwardingRuleResource).get(); * } * * @@ -417,8 +463,9 @@ public final Operation insertGlobalForwardingRule( * (== resource_for v1.regionForwardingRules ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertGlobalForwardingRule( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertGlobalForwardingRuleAsync( String project, ForwardingRule forwardingRuleResource) { InsertGlobalForwardingRuleHttpRequest request = @@ -426,7 +473,7 @@ public final Operation insertGlobalForwardingRule( .setProject(project) .setForwardingRuleResource(forwardingRuleResource) .build(); - return insertGlobalForwardingRule(request); + return insertGlobalForwardingRuleAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -444,16 +491,45 @@ public final Operation insertGlobalForwardingRule( * .setProject(project.toString()) * .setForwardingRuleResource(forwardingRuleResource) * .build(); - * Operation response = globalForwardingRuleClient.insertGlobalForwardingRule(request); + * globalForwardingRuleClient.insertGlobalForwardingRuleAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertGlobalForwardingRule(InsertGlobalForwardingRuleHttpRequest request) { - return insertGlobalForwardingRuleCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertGlobalForwardingRuleAsync( + InsertGlobalForwardingRuleHttpRequest request) { + return insertGlobalForwardingRuleOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a GlobalForwardingRule resource in the specified project using the data included in the + * request. + * + *

Sample code: + * + *


+   * try (GlobalForwardingRuleClient globalForwardingRuleClient = GlobalForwardingRuleClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   ForwardingRule forwardingRuleResource = ForwardingRule.newBuilder().build();
+   *   InsertGlobalForwardingRuleHttpRequest request = InsertGlobalForwardingRuleHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setForwardingRuleResource(forwardingRuleResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = globalForwardingRuleClient.insertGlobalForwardingRuleOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertGlobalForwardingRuleOperationCallable() { + return stub.insertGlobalForwardingRuleOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -473,7 +549,7 @@ public final Operation insertGlobalForwardingRule(InsertGlobalForwardingRuleHttp * .build(); * ApiFuture<Operation> future = globalForwardingRuleClient.insertGlobalForwardingRuleCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -634,7 +710,7 @@ public final ListGlobalForwardingRulesPagedResponse listGlobalForwardingRules( * try (GlobalForwardingRuleClient globalForwardingRuleClient = GlobalForwardingRuleClient.create()) { * ProjectGlobalForwardingRuleName forwardingRule = ProjectGlobalForwardingRuleName.of("[PROJECT]", "[FORWARDING_RULE]"); * TargetReference targetReferenceResource = TargetReference.newBuilder().build(); - * Operation response = globalForwardingRuleClient.setTargetGlobalForwardingRule(forwardingRule, targetReferenceResource); + * globalForwardingRuleClient.setTargetGlobalForwardingRuleAsync(forwardingRule, targetReferenceResource).get(); * } * * @@ -642,8 +718,9 @@ public final ListGlobalForwardingRulesPagedResponse listGlobalForwardingRules( * @param targetReferenceResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setTargetGlobalForwardingRule( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setTargetGlobalForwardingRuleAsync( ProjectGlobalForwardingRuleName forwardingRule, TargetReference targetReferenceResource) { SetTargetGlobalForwardingRuleHttpRequest request = @@ -651,7 +728,7 @@ public final Operation setTargetGlobalForwardingRule( .setForwardingRule(forwardingRule == null ? null : forwardingRule.toString()) .setTargetReferenceResource(targetReferenceResource) .build(); - return setTargetGlobalForwardingRule(request); + return setTargetGlobalForwardingRuleAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -665,7 +742,7 @@ public final Operation setTargetGlobalForwardingRule( * try (GlobalForwardingRuleClient globalForwardingRuleClient = GlobalForwardingRuleClient.create()) { * ProjectGlobalForwardingRuleName forwardingRule = ProjectGlobalForwardingRuleName.of("[PROJECT]", "[FORWARDING_RULE]"); * TargetReference targetReferenceResource = TargetReference.newBuilder().build(); - * Operation response = globalForwardingRuleClient.setTargetGlobalForwardingRule(forwardingRule.toString(), targetReferenceResource); + * globalForwardingRuleClient.setTargetGlobalForwardingRuleAsync(forwardingRule.toString(), targetReferenceResource).get(); * } * * @@ -673,8 +750,9 @@ public final Operation setTargetGlobalForwardingRule( * @param targetReferenceResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setTargetGlobalForwardingRule( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setTargetGlobalForwardingRuleAsync( String forwardingRule, TargetReference targetReferenceResource) { SetTargetGlobalForwardingRuleHttpRequest request = @@ -682,7 +760,7 @@ public final Operation setTargetGlobalForwardingRule( .setForwardingRule(forwardingRule) .setTargetReferenceResource(targetReferenceResource) .build(); - return setTargetGlobalForwardingRule(request); + return setTargetGlobalForwardingRuleAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -700,17 +778,46 @@ public final Operation setTargetGlobalForwardingRule( * .setForwardingRule(forwardingRule.toString()) * .setTargetReferenceResource(targetReferenceResource) * .build(); - * Operation response = globalForwardingRuleClient.setTargetGlobalForwardingRule(request); + * globalForwardingRuleClient.setTargetGlobalForwardingRuleAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setTargetGlobalForwardingRule( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setTargetGlobalForwardingRuleAsync( SetTargetGlobalForwardingRuleHttpRequest request) { - return setTargetGlobalForwardingRuleCallable().call(request); + return setTargetGlobalForwardingRuleOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Changes target URL for the GlobalForwardingRule resource. The new target should be of the same + * type as the old target. + * + *

Sample code: + * + *


+   * try (GlobalForwardingRuleClient globalForwardingRuleClient = GlobalForwardingRuleClient.create()) {
+   *   ProjectGlobalForwardingRuleName forwardingRule = ProjectGlobalForwardingRuleName.of("[PROJECT]", "[FORWARDING_RULE]");
+   *   TargetReference targetReferenceResource = TargetReference.newBuilder().build();
+   *   SetTargetGlobalForwardingRuleHttpRequest request = SetTargetGlobalForwardingRuleHttpRequest.newBuilder()
+   *     .setForwardingRule(forwardingRule.toString())
+   *     .setTargetReferenceResource(targetReferenceResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = globalForwardingRuleClient.setTargetGlobalForwardingRuleOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + SetTargetGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + setTargetGlobalForwardingRuleOperationCallable() { + return stub.setTargetGlobalForwardingRuleOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -730,7 +837,7 @@ public final Operation setTargetGlobalForwardingRule( * .build(); * ApiFuture<Operation> future = globalForwardingRuleClient.setTargetGlobalForwardingRuleCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleSettings.java index acec8173719d..5c3ab923fe2e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleSettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteGlobalForwardingRule to 30 seconds: + * example, to set the total timeout of getGlobalForwardingRule to 30 seconds: * *

  * 
  * GlobalForwardingRuleSettings.Builder globalForwardingRuleSettingsBuilder =
  *     GlobalForwardingRuleSettings.newBuilder();
- * globalForwardingRuleSettingsBuilder.deleteGlobalForwardingRuleSettings().getRetrySettings().toBuilder()
+ * globalForwardingRuleSettingsBuilder.getGlobalForwardingRuleSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * GlobalForwardingRuleSettings globalForwardingRuleSettings = globalForwardingRuleSettingsBuilder.build();
  * 
@@ -70,6 +72,15 @@ public class GlobalForwardingRuleSettings extends ClientSettings
+      deleteGlobalForwardingRuleOperationSettings() {
+    return ((GlobalForwardingRuleStubSettings) getStubSettings())
+        .deleteGlobalForwardingRuleOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getGlobalForwardingRule. */
   public UnaryCallSettings
       getGlobalForwardingRuleSettings() {
@@ -83,6 +94,15 @@ public class GlobalForwardingRuleSettings extends ClientSettings
+      insertGlobalForwardingRuleOperationSettings() {
+    return ((GlobalForwardingRuleStubSettings) getStubSettings())
+        .insertGlobalForwardingRuleOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listGlobalForwardingRules. */
   public PagedCallSettings<
           ListGlobalForwardingRulesHttpRequest,
@@ -100,6 +120,15 @@ public class GlobalForwardingRuleSettings extends ClientSettings
+      setTargetGlobalForwardingRuleOperationSettings() {
+    return ((GlobalForwardingRuleStubSettings) getStubSettings())
+        .setTargetGlobalForwardingRuleOperationSettings();
+  }
+
   public static final GlobalForwardingRuleSettings create(GlobalForwardingRuleStubSettings stub)
       throws IOException {
     return new GlobalForwardingRuleSettings.Builder(stub.toBuilder()).build();
@@ -209,6 +238,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteGlobalForwardingRuleSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteGlobalForwardingRule. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+        deleteGlobalForwardingRuleOperationSettings() {
+      return getStubSettingsBuilder().deleteGlobalForwardingRuleOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getGlobalForwardingRule. */
     public UnaryCallSettings.Builder
         getGlobalForwardingRuleSettings() {
@@ -221,6 +259,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertGlobalForwardingRuleSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertGlobalForwardingRule. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+        insertGlobalForwardingRuleOperationSettings() {
+      return getStubSettingsBuilder().insertGlobalForwardingRuleOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listGlobalForwardingRules. */
     public PagedCallSettings.Builder<
             ListGlobalForwardingRulesHttpRequest,
@@ -236,6 +283,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().setTargetGlobalForwardingRuleSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setTargetGlobalForwardingRule. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetTargetGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+        setTargetGlobalForwardingRuleOperationSettings() {
+      return getStubSettingsBuilder().setTargetGlobalForwardingRuleOperationSettings();
+    }
+
     @Override
     public GlobalForwardingRuleSettings build() throws IOException {
       return new GlobalForwardingRuleSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationClient.java
index cf3ff11bfbfe..1f8c5af1629d 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationClient.java
@@ -20,6 +20,7 @@
 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.EmptyMessage;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
@@ -387,7 +388,7 @@ public final void deleteGlobalOperation(DeleteGlobalOperationHttpRequest request
    * 
*/ @BetaApi - public final UnaryCallable + public final UnaryCallable deleteGlobalOperationCallable() { return stub.deleteGlobalOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationSettings.java index 51772546798b..09ec9aacfd53 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalOperationSettings.java @@ -22,6 +22,7 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; @@ -75,7 +76,8 @@ public class GlobalOperationSettings extends ClientSettings deleteGlobalOperationSettings() { + public UnaryCallSettings + deleteGlobalOperationSettings() { return ((GlobalOperationStubSettings) getStubSettings()).deleteGlobalOperationSettings(); } @@ -203,7 +205,7 @@ public Builder applyToAllUnaryMethods( } /** Returns the builder for the settings used for calls to deleteGlobalOperation. */ - public UnaryCallSettings.Builder + public UnaryCallSettings.Builder deleteGlobalOperationSettings() { return getStubSettingsBuilder().deleteGlobalOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java index 0eaa5d6ed784..41976ede3f3f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java @@ -20,9 +20,12 @@ 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.EmptyMessage; +import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.HealthCheckStub; @@ -43,7 +46,7 @@ * * try (HealthCheckClient healthCheckClient = HealthCheckClient.create()) { * ProjectGlobalHealthCheckName healthCheck = ProjectGlobalHealthCheckName.of("[PROJECT]", "[HEALTH_CHECK]"); - * Operation response = healthCheckClient.deleteHealthCheck(healthCheck); + * HealthCheck response = healthCheckClient.getHealthCheck(healthCheck); * } * * @@ -103,6 +106,7 @@ public class HealthCheckClient implements BackgroundResource { private final HealthCheckSettings settings; private final HealthCheckStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of HealthCheckClient with default settings. */ public static final HealthCheckClient create() throws IOException { @@ -134,12 +138,14 @@ public static final HealthCheckClient create(HealthCheckStub stub) { protected HealthCheckClient(HealthCheckSettings settings) throws IOException { this.settings = settings; this.stub = ((HealthCheckStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected HealthCheckClient(HealthCheckStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final HealthCheckSettings getSettings() { @@ -151,6 +157,16 @@ public HealthCheckStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Deletes the specified HealthCheck resource. @@ -160,21 +176,23 @@ public HealthCheckStub getStub() { *

    * try (HealthCheckClient healthCheckClient = HealthCheckClient.create()) {
    *   ProjectGlobalHealthCheckName healthCheck = ProjectGlobalHealthCheckName.of("[PROJECT]", "[HEALTH_CHECK]");
-   *   Operation response = healthCheckClient.deleteHealthCheck(healthCheck);
+   *   healthCheckClient.deleteHealthCheckAsync(healthCheck).get();
    * }
    * 
* * @param healthCheck Name of the HealthCheck resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteHealthCheck(ProjectGlobalHealthCheckName healthCheck) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteHealthCheckAsync( + ProjectGlobalHealthCheckName healthCheck) { DeleteHealthCheckHttpRequest request = DeleteHealthCheckHttpRequest.newBuilder() .setHealthCheck(healthCheck == null ? null : healthCheck.toString()) .build(); - return deleteHealthCheck(request); + return deleteHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -186,19 +204,21 @@ public final Operation deleteHealthCheck(ProjectGlobalHealthCheckName healthChec *

    * try (HealthCheckClient healthCheckClient = HealthCheckClient.create()) {
    *   ProjectGlobalHealthCheckName healthCheck = ProjectGlobalHealthCheckName.of("[PROJECT]", "[HEALTH_CHECK]");
-   *   Operation response = healthCheckClient.deleteHealthCheck(healthCheck.toString());
+   *   healthCheckClient.deleteHealthCheckAsync(healthCheck.toString()).get();
    * }
    * 
* * @param healthCheck Name of the HealthCheck resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteHealthCheck(String healthCheck) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteHealthCheckAsync( + String healthCheck) { DeleteHealthCheckHttpRequest request = DeleteHealthCheckHttpRequest.newBuilder().setHealthCheck(healthCheck).build(); - return deleteHealthCheck(request); + return deleteHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -213,16 +233,42 @@ public final Operation deleteHealthCheck(String healthCheck) { * DeleteHealthCheckHttpRequest request = DeleteHealthCheckHttpRequest.newBuilder() * .setHealthCheck(healthCheck.toString()) * .build(); - * Operation response = healthCheckClient.deleteHealthCheck(request); + * healthCheckClient.deleteHealthCheckAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteHealthCheck(DeleteHealthCheckHttpRequest request) { - return deleteHealthCheckCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteHealthCheckAsync( + DeleteHealthCheckHttpRequest request) { + return deleteHealthCheckOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified HealthCheck resource. + * + *

Sample code: + * + *


+   * try (HealthCheckClient healthCheckClient = HealthCheckClient.create()) {
+   *   ProjectGlobalHealthCheckName healthCheck = ProjectGlobalHealthCheckName.of("[PROJECT]", "[HEALTH_CHECK]");
+   *   DeleteHealthCheckHttpRequest request = DeleteHealthCheckHttpRequest.newBuilder()
+   *     .setHealthCheck(healthCheck.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = healthCheckClient.deleteHealthCheckOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteHealthCheckOperationCallable() { + return stub.deleteHealthCheckOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -239,7 +285,7 @@ public final Operation deleteHealthCheck(DeleteHealthCheckHttpRequest request) { * .build(); * ApiFuture<Operation> future = healthCheckClient.deleteHealthCheckCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -359,7 +405,7 @@ public final UnaryCallable getHealthChec * try (HealthCheckClient healthCheckClient = HealthCheckClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * HealthCheck healthCheckResource = HealthCheck.newBuilder().build(); - * Operation response = healthCheckClient.insertHealthCheck(project, healthCheckResource); + * healthCheckClient.insertHealthCheckAsync(project, healthCheckResource).get(); * } * * @@ -369,15 +415,17 @@ public final UnaryCallable getHealthChec * protocols. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertHealthCheck(ProjectName project, HealthCheck healthCheckResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertHealthCheckAsync( + ProjectName project, HealthCheck healthCheckResource) { InsertHealthCheckHttpRequest request = InsertHealthCheckHttpRequest.newBuilder() .setProject(project == null ? null : project.toString()) .setHealthCheckResource(healthCheckResource) .build(); - return insertHealthCheck(request); + return insertHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -390,7 +438,7 @@ public final Operation insertHealthCheck(ProjectName project, HealthCheck health * try (HealthCheckClient healthCheckClient = HealthCheckClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * HealthCheck healthCheckResource = HealthCheck.newBuilder().build(); - * Operation response = healthCheckClient.insertHealthCheck(project.toString(), healthCheckResource); + * healthCheckClient.insertHealthCheckAsync(project.toString(), healthCheckResource).get(); * } * * @@ -400,15 +448,17 @@ public final Operation insertHealthCheck(ProjectName project, HealthCheck health * protocols. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertHealthCheck(String project, HealthCheck healthCheckResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertHealthCheckAsync( + String project, HealthCheck healthCheckResource) { InsertHealthCheckHttpRequest request = InsertHealthCheckHttpRequest.newBuilder() .setProject(project) .setHealthCheckResource(healthCheckResource) .build(); - return insertHealthCheck(request); + return insertHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -425,16 +475,44 @@ public final Operation insertHealthCheck(String project, HealthCheck healthCheck * .setProject(project.toString()) * .setHealthCheckResource(healthCheckResource) * .build(); - * Operation response = healthCheckClient.insertHealthCheck(request); + * healthCheckClient.insertHealthCheckAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertHealthCheck(InsertHealthCheckHttpRequest request) { - return insertHealthCheckCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertHealthCheckAsync( + InsertHealthCheckHttpRequest request) { + return insertHealthCheckOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a HealthCheck resource in the specified project using the data included in the request. + * + *

Sample code: + * + *


+   * try (HealthCheckClient healthCheckClient = HealthCheckClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   HealthCheck healthCheckResource = HealthCheck.newBuilder().build();
+   *   InsertHealthCheckHttpRequest request = InsertHealthCheckHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setHealthCheckResource(healthCheckResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = healthCheckClient.insertHealthCheckOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertHealthCheckOperationCallable() { + return stub.insertHealthCheckOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -453,7 +531,7 @@ public final Operation insertHealthCheck(InsertHealthCheckHttpRequest request) { * .build(); * ApiFuture<Operation> future = healthCheckClient.insertHealthCheckCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -611,7 +689,7 @@ public final ListHealthChecksPagedResponse listHealthChecks(ListHealthChecksHttp * ProjectGlobalHealthCheckName healthCheck = ProjectGlobalHealthCheckName.of("[PROJECT]", "[HEALTH_CHECK]"); * HealthCheck healthCheckResource = HealthCheck.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = healthCheckClient.patchHealthCheck(healthCheck, healthCheckResource, fieldMask); + * healthCheckClient.patchHealthCheckAsync(healthCheck, healthCheckResource, fieldMask).get(); * } * * @@ -625,8 +703,9 @@ public final ListHealthChecksPagedResponse listHealthChecks(ListHealthChecksHttp * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchHealthCheck( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchHealthCheckAsync( ProjectGlobalHealthCheckName healthCheck, HealthCheck healthCheckResource, List fieldMask) { @@ -637,7 +716,7 @@ public final Operation patchHealthCheck( .setHealthCheckResource(healthCheckResource) .addAllFieldMask(fieldMask) .build(); - return patchHealthCheck(request); + return patchHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -652,7 +731,7 @@ public final Operation patchHealthCheck( * ProjectGlobalHealthCheckName healthCheck = ProjectGlobalHealthCheckName.of("[PROJECT]", "[HEALTH_CHECK]"); * HealthCheck healthCheckResource = HealthCheck.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = healthCheckClient.patchHealthCheck(healthCheck.toString(), healthCheckResource, fieldMask); + * healthCheckClient.patchHealthCheckAsync(healthCheck.toString(), healthCheckResource, fieldMask).get(); * } * * @@ -666,8 +745,9 @@ public final Operation patchHealthCheck( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchHealthCheck( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchHealthCheckAsync( String healthCheck, HealthCheck healthCheckResource, List fieldMask) { PatchHealthCheckHttpRequest request = @@ -676,7 +756,7 @@ public final Operation patchHealthCheck( .setHealthCheckResource(healthCheckResource) .addAllFieldMask(fieldMask) .build(); - return patchHealthCheck(request); + return patchHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -696,16 +776,47 @@ public final Operation patchHealthCheck( * .setHealthCheckResource(healthCheckResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = healthCheckClient.patchHealthCheck(request); + * healthCheckClient.patchHealthCheckAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchHealthCheck(PatchHealthCheckHttpRequest request) { - return patchHealthCheckCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchHealthCheckAsync( + PatchHealthCheckHttpRequest request) { + return patchHealthCheckOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a HealthCheck resource in the specified project using the data included in the request. + * This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * + *

Sample code: + * + *


+   * try (HealthCheckClient healthCheckClient = HealthCheckClient.create()) {
+   *   ProjectGlobalHealthCheckName healthCheck = ProjectGlobalHealthCheckName.of("[PROJECT]", "[HEALTH_CHECK]");
+   *   HealthCheck healthCheckResource = HealthCheck.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   PatchHealthCheckHttpRequest request = PatchHealthCheckHttpRequest.newBuilder()
+   *     .setHealthCheck(healthCheck.toString())
+   *     .setHealthCheckResource(healthCheckResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = healthCheckClient.patchHealthCheckOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + patchHealthCheckOperationCallable() { + return stub.patchHealthCheckOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -727,7 +838,7 @@ public final Operation patchHealthCheck(PatchHealthCheckHttpRequest request) { * .build(); * ApiFuture<Operation> future = healthCheckClient.patchHealthCheckCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -747,7 +858,7 @@ public final UnaryCallable patchHealthCh * ProjectGlobalHealthCheckName healthCheck = ProjectGlobalHealthCheckName.of("[PROJECT]", "[HEALTH_CHECK]"); * HealthCheck healthCheckResource = HealthCheck.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = healthCheckClient.updateHealthCheck(healthCheck, healthCheckResource, fieldMask); + * healthCheckClient.updateHealthCheckAsync(healthCheck, healthCheckResource, fieldMask).get(); * } * * @@ -761,8 +872,9 @@ public final UnaryCallable patchHealthCh * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateHealthCheck( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateHealthCheckAsync( ProjectGlobalHealthCheckName healthCheck, HealthCheck healthCheckResource, List fieldMask) { @@ -773,7 +885,7 @@ public final Operation updateHealthCheck( .setHealthCheckResource(healthCheckResource) .addAllFieldMask(fieldMask) .build(); - return updateHealthCheck(request); + return updateHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -787,7 +899,7 @@ public final Operation updateHealthCheck( * ProjectGlobalHealthCheckName healthCheck = ProjectGlobalHealthCheckName.of("[PROJECT]", "[HEALTH_CHECK]"); * HealthCheck healthCheckResource = HealthCheck.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = healthCheckClient.updateHealthCheck(healthCheck.toString(), healthCheckResource, fieldMask); + * healthCheckClient.updateHealthCheckAsync(healthCheck.toString(), healthCheckResource, fieldMask).get(); * } * * @@ -801,8 +913,9 @@ public final Operation updateHealthCheck( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateHealthCheck( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateHealthCheckAsync( String healthCheck, HealthCheck healthCheckResource, List fieldMask) { UpdateHealthCheckHttpRequest request = @@ -811,7 +924,7 @@ public final Operation updateHealthCheck( .setHealthCheckResource(healthCheckResource) .addAllFieldMask(fieldMask) .build(); - return updateHealthCheck(request); + return updateHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -830,16 +943,46 @@ public final Operation updateHealthCheck( * .setHealthCheckResource(healthCheckResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = healthCheckClient.updateHealthCheck(request); + * healthCheckClient.updateHealthCheckAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateHealthCheck(UpdateHealthCheckHttpRequest request) { - return updateHealthCheckCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateHealthCheckAsync( + UpdateHealthCheckHttpRequest request) { + return updateHealthCheckOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a HealthCheck resource in the specified project using the data included in the request. + * + *

Sample code: + * + *


+   * try (HealthCheckClient healthCheckClient = HealthCheckClient.create()) {
+   *   ProjectGlobalHealthCheckName healthCheck = ProjectGlobalHealthCheckName.of("[PROJECT]", "[HEALTH_CHECK]");
+   *   HealthCheck healthCheckResource = HealthCheck.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   UpdateHealthCheckHttpRequest request = UpdateHealthCheckHttpRequest.newBuilder()
+   *     .setHealthCheck(healthCheck.toString())
+   *     .setHealthCheckResource(healthCheckResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = healthCheckClient.updateHealthCheckOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + updateHealthCheckOperationCallable() { + return stub.updateHealthCheckOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -860,7 +1003,7 @@ public final Operation updateHealthCheck(UpdateHealthCheckHttpRequest request) { * .build(); * ApiFuture<Operation> future = healthCheckClient.updateHealthCheckCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckSettings.java index f10e60d3cff0..9c603f3f8705 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckSettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteHealthCheck to 30 seconds: + * example, to set the total timeout of getHealthCheck to 30 seconds: * *

  * 
  * HealthCheckSettings.Builder healthCheckSettingsBuilder =
  *     HealthCheckSettings.newBuilder();
- * healthCheckSettingsBuilder.deleteHealthCheckSettings().getRetrySettings().toBuilder()
+ * healthCheckSettingsBuilder.getHealthCheckSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * HealthCheckSettings healthCheckSettings = healthCheckSettingsBuilder.build();
  * 
@@ -68,6 +70,14 @@ public UnaryCallSettings deleteHealthCh
     return ((HealthCheckStubSettings) getStubSettings()).deleteHealthCheckSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteHealthCheck. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteHealthCheckOperationSettings() {
+    return ((HealthCheckStubSettings) getStubSettings()).deleteHealthCheckOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getHealthCheck. */
   public UnaryCallSettings getHealthCheckSettings() {
     return ((HealthCheckStubSettings) getStubSettings()).getHealthCheckSettings();
@@ -78,6 +88,14 @@ public UnaryCallSettings insertHealthCh
     return ((HealthCheckStubSettings) getStubSettings()).insertHealthCheckSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertHealthCheck. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertHealthCheckOperationSettings() {
+    return ((HealthCheckStubSettings) getStubSettings()).insertHealthCheckOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listHealthChecks. */
   public PagedCallSettings<
           ListHealthChecksHttpRequest, HealthCheckList, ListHealthChecksPagedResponse>
@@ -90,11 +108,27 @@ public UnaryCallSettings patchHealthChec
     return ((HealthCheckStubSettings) getStubSettings()).patchHealthCheckSettings();
   }
 
+  /** Returns the object with the settings used for calls to patchHealthCheck. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchHealthCheckOperationSettings() {
+    return ((HealthCheckStubSettings) getStubSettings()).patchHealthCheckOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to updateHealthCheck. */
   public UnaryCallSettings updateHealthCheckSettings() {
     return ((HealthCheckStubSettings) getStubSettings()).updateHealthCheckSettings();
   }
 
+  /** Returns the object with the settings used for calls to updateHealthCheck. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateHealthCheckOperationSettings() {
+    return ((HealthCheckStubSettings) getStubSettings()).updateHealthCheckOperationSettings();
+  }
+
   public static final HealthCheckSettings create(HealthCheckStubSettings stub) throws IOException {
     return new HealthCheckSettings.Builder(stub.toBuilder()).build();
   }
@@ -202,6 +236,14 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteHealthCheckSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteHealthCheck. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteHealthCheckOperationSettings() {
+      return getStubSettingsBuilder().deleteHealthCheckOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getHealthCheck. */
     public UnaryCallSettings.Builder
         getHealthCheckSettings() {
@@ -214,6 +256,14 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertHealthCheckSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertHealthCheck. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertHealthCheckOperationSettings() {
+      return getStubSettingsBuilder().insertHealthCheckOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listHealthChecks. */
     public PagedCallSettings.Builder<
             ListHealthChecksHttpRequest, HealthCheckList, ListHealthChecksPagedResponse>
@@ -227,12 +277,28 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().patchHealthCheckSettings();
     }
 
+    /** Returns the builder for the settings used for calls to patchHealthCheck. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchHealthCheckOperationSettings() {
+      return getStubSettingsBuilder().patchHealthCheckOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to updateHealthCheck. */
     public UnaryCallSettings.Builder
         updateHealthCheckSettings() {
       return getStubSettingsBuilder().updateHealthCheckSettings();
     }
 
+    /** Returns the builder for the settings used for calls to updateHealthCheck. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        updateHealthCheckOperationSettings() {
+      return getStubSettingsBuilder().updateHealthCheckOperationSettings();
+    }
+
     @Override
     public HealthCheckSettings build() throws IOException {
       return new HealthCheckSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckClient.java
index dd2f1223f2f2..29d1bda095b4 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.HttpHealthCheckStub;
@@ -43,7 +46,7 @@
  * 
  * try (HttpHealthCheckClient httpHealthCheckClient = HttpHealthCheckClient.create()) {
  *   ProjectGlobalHttpHealthCheckName httpHealthCheck = ProjectGlobalHttpHealthCheckName.of("[PROJECT]", "[HTTP_HEALTH_CHECK]");
- *   Operation response = httpHealthCheckClient.deleteHttpHealthCheck(httpHealthCheck);
+ *   HttpHealthCheck2 response = httpHealthCheckClient.getHttpHealthCheck(httpHealthCheck);
  * }
  * 
  * 
@@ -104,6 +107,7 @@ public class HttpHealthCheckClient implements BackgroundResource { private final HttpHealthCheckSettings settings; private final HttpHealthCheckStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of HttpHealthCheckClient with default settings. */ public static final HttpHealthCheckClient create() throws IOException { @@ -136,12 +140,14 @@ public static final HttpHealthCheckClient create(HttpHealthCheckStub stub) { protected HttpHealthCheckClient(HttpHealthCheckSettings settings) throws IOException { this.settings = settings; this.stub = ((HttpHealthCheckStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected HttpHealthCheckClient(HttpHealthCheckStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final HttpHealthCheckSettings getSettings() { @@ -153,6 +159,16 @@ public HttpHealthCheckStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Deletes the specified HttpHealthCheck resource. @@ -162,21 +178,23 @@ public HttpHealthCheckStub getStub() { *

    * try (HttpHealthCheckClient httpHealthCheckClient = HttpHealthCheckClient.create()) {
    *   ProjectGlobalHttpHealthCheckName httpHealthCheck = ProjectGlobalHttpHealthCheckName.of("[PROJECT]", "[HTTP_HEALTH_CHECK]");
-   *   Operation response = httpHealthCheckClient.deleteHttpHealthCheck(httpHealthCheck);
+   *   httpHealthCheckClient.deleteHttpHealthCheckAsync(httpHealthCheck).get();
    * }
    * 
* * @param httpHealthCheck Name of the HttpHealthCheck resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteHttpHealthCheck(ProjectGlobalHttpHealthCheckName httpHealthCheck) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteHttpHealthCheckAsync( + ProjectGlobalHttpHealthCheckName httpHealthCheck) { DeleteHttpHealthCheckHttpRequest request = DeleteHttpHealthCheckHttpRequest.newBuilder() .setHttpHealthCheck(httpHealthCheck == null ? null : httpHealthCheck.toString()) .build(); - return deleteHttpHealthCheck(request); + return deleteHttpHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -188,19 +206,21 @@ public final Operation deleteHttpHealthCheck(ProjectGlobalHttpHealthCheckName ht *

    * try (HttpHealthCheckClient httpHealthCheckClient = HttpHealthCheckClient.create()) {
    *   ProjectGlobalHttpHealthCheckName httpHealthCheck = ProjectGlobalHttpHealthCheckName.of("[PROJECT]", "[HTTP_HEALTH_CHECK]");
-   *   Operation response = httpHealthCheckClient.deleteHttpHealthCheck(httpHealthCheck.toString());
+   *   httpHealthCheckClient.deleteHttpHealthCheckAsync(httpHealthCheck.toString()).get();
    * }
    * 
* * @param httpHealthCheck Name of the HttpHealthCheck resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteHttpHealthCheck(String httpHealthCheck) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteHttpHealthCheckAsync( + String httpHealthCheck) { DeleteHttpHealthCheckHttpRequest request = DeleteHttpHealthCheckHttpRequest.newBuilder().setHttpHealthCheck(httpHealthCheck).build(); - return deleteHttpHealthCheck(request); + return deleteHttpHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -215,16 +235,42 @@ public final Operation deleteHttpHealthCheck(String httpHealthCheck) { * DeleteHttpHealthCheckHttpRequest request = DeleteHttpHealthCheckHttpRequest.newBuilder() * .setHttpHealthCheck(httpHealthCheck.toString()) * .build(); - * Operation response = httpHealthCheckClient.deleteHttpHealthCheck(request); + * httpHealthCheckClient.deleteHttpHealthCheckAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteHttpHealthCheck(DeleteHttpHealthCheckHttpRequest request) { - return deleteHttpHealthCheckCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteHttpHealthCheckAsync( + DeleteHttpHealthCheckHttpRequest request) { + return deleteHttpHealthCheckOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified HttpHealthCheck resource. + * + *

Sample code: + * + *


+   * try (HttpHealthCheckClient httpHealthCheckClient = HttpHealthCheckClient.create()) {
+   *   ProjectGlobalHttpHealthCheckName httpHealthCheck = ProjectGlobalHttpHealthCheckName.of("[PROJECT]", "[HTTP_HEALTH_CHECK]");
+   *   DeleteHttpHealthCheckHttpRequest request = DeleteHttpHealthCheckHttpRequest.newBuilder()
+   *     .setHttpHealthCheck(httpHealthCheck.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = httpHealthCheckClient.deleteHttpHealthCheckOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteHttpHealthCheckOperationCallable() { + return stub.deleteHttpHealthCheckOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -241,7 +287,7 @@ public final Operation deleteHttpHealthCheck(DeleteHttpHealthCheckHttpRequest re * .build(); * ApiFuture<Operation> future = httpHealthCheckClient.deleteHttpHealthCheckCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -365,7 +411,7 @@ public final HttpHealthCheck2 getHttpHealthCheck(GetHttpHealthCheckHttpRequest r * try (HttpHealthCheckClient httpHealthCheckClient = HttpHealthCheckClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * HttpHealthCheck2 httpHealthCheckResource = HttpHealthCheck2.newBuilder().build(); - * Operation response = httpHealthCheckClient.insertHttpHealthCheck(project, httpHealthCheckResource); + * httpHealthCheckClient.insertHttpHealthCheckAsync(project, httpHealthCheckResource).get(); * } * * @@ -374,8 +420,9 @@ public final HttpHealthCheck2 getHttpHealthCheck(GetHttpHealthCheckHttpRequest r * for how individual instances should be checked for health, via HTTP. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertHttpHealthCheck( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertHttpHealthCheckAsync( ProjectName project, HttpHealthCheck2 httpHealthCheckResource) { InsertHttpHealthCheckHttpRequest request = @@ -383,7 +430,7 @@ public final Operation insertHttpHealthCheck( .setProject(project == null ? null : project.toString()) .setHttpHealthCheckResource(httpHealthCheckResource) .build(); - return insertHttpHealthCheck(request); + return insertHttpHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -397,7 +444,7 @@ public final Operation insertHttpHealthCheck( * try (HttpHealthCheckClient httpHealthCheckClient = HttpHealthCheckClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * HttpHealthCheck2 httpHealthCheckResource = HttpHealthCheck2.newBuilder().build(); - * Operation response = httpHealthCheckClient.insertHttpHealthCheck(project.toString(), httpHealthCheckResource); + * httpHealthCheckClient.insertHttpHealthCheckAsync(project.toString(), httpHealthCheckResource).get(); * } * * @@ -406,8 +453,9 @@ public final Operation insertHttpHealthCheck( * for how individual instances should be checked for health, via HTTP. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertHttpHealthCheck( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertHttpHealthCheckAsync( String project, HttpHealthCheck2 httpHealthCheckResource) { InsertHttpHealthCheckHttpRequest request = @@ -415,7 +463,7 @@ public final Operation insertHttpHealthCheck( .setProject(project) .setHttpHealthCheckResource(httpHealthCheckResource) .build(); - return insertHttpHealthCheck(request); + return insertHttpHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -433,16 +481,45 @@ public final Operation insertHttpHealthCheck( * .setProject(project.toString()) * .setHttpHealthCheckResource(httpHealthCheckResource) * .build(); - * Operation response = httpHealthCheckClient.insertHttpHealthCheck(request); + * httpHealthCheckClient.insertHttpHealthCheckAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertHttpHealthCheck(InsertHttpHealthCheckHttpRequest request) { - return insertHttpHealthCheckCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertHttpHealthCheckAsync( + InsertHttpHealthCheckHttpRequest request) { + return insertHttpHealthCheckOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a HttpHealthCheck resource in the specified project using the data included in the + * request. + * + *

Sample code: + * + *


+   * try (HttpHealthCheckClient httpHealthCheckClient = HttpHealthCheckClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   HttpHealthCheck2 httpHealthCheckResource = HttpHealthCheck2.newBuilder().build();
+   *   InsertHttpHealthCheckHttpRequest request = InsertHttpHealthCheckHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setHttpHealthCheckResource(httpHealthCheckResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = httpHealthCheckClient.insertHttpHealthCheckOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertHttpHealthCheckOperationCallable() { + return stub.insertHttpHealthCheckOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -462,7 +539,7 @@ public final Operation insertHttpHealthCheck(InsertHttpHealthCheckHttpRequest re * .build(); * ApiFuture<Operation> future = httpHealthCheckClient.insertHttpHealthCheckCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -623,7 +700,7 @@ public final ListHttpHealthChecksPagedResponse listHttpHealthChecks( * ProjectGlobalHttpHealthCheckName httpHealthCheck = ProjectGlobalHttpHealthCheckName.of("[PROJECT]", "[HTTP_HEALTH_CHECK]"); * HttpHealthCheck2 httpHealthCheckResource = HttpHealthCheck2.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = httpHealthCheckClient.patchHttpHealthCheck(httpHealthCheck, httpHealthCheckResource, fieldMask); + * httpHealthCheckClient.patchHttpHealthCheckAsync(httpHealthCheck, httpHealthCheckResource, fieldMask).get(); * } * * @@ -636,8 +713,9 @@ public final ListHttpHealthChecksPagedResponse listHttpHealthChecks( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchHttpHealthCheck( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchHttpHealthCheckAsync( ProjectGlobalHttpHealthCheckName httpHealthCheck, HttpHealthCheck2 httpHealthCheckResource, List fieldMask) { @@ -648,7 +726,7 @@ public final Operation patchHttpHealthCheck( .setHttpHealthCheckResource(httpHealthCheckResource) .addAllFieldMask(fieldMask) .build(); - return patchHttpHealthCheck(request); + return patchHttpHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -664,7 +742,7 @@ public final Operation patchHttpHealthCheck( * ProjectGlobalHttpHealthCheckName httpHealthCheck = ProjectGlobalHttpHealthCheckName.of("[PROJECT]", "[HTTP_HEALTH_CHECK]"); * HttpHealthCheck2 httpHealthCheckResource = HttpHealthCheck2.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = httpHealthCheckClient.patchHttpHealthCheck(httpHealthCheck.toString(), httpHealthCheckResource, fieldMask); + * httpHealthCheckClient.patchHttpHealthCheckAsync(httpHealthCheck.toString(), httpHealthCheckResource, fieldMask).get(); * } * * @@ -677,8 +755,9 @@ public final Operation patchHttpHealthCheck( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchHttpHealthCheck( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchHttpHealthCheckAsync( String httpHealthCheck, HttpHealthCheck2 httpHealthCheckResource, List fieldMask) { PatchHttpHealthCheckHttpRequest request = @@ -687,7 +766,7 @@ public final Operation patchHttpHealthCheck( .setHttpHealthCheckResource(httpHealthCheckResource) .addAllFieldMask(fieldMask) .build(); - return patchHttpHealthCheck(request); + return patchHttpHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -708,16 +787,48 @@ public final Operation patchHttpHealthCheck( * .setHttpHealthCheckResource(httpHealthCheckResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = httpHealthCheckClient.patchHttpHealthCheck(request); + * httpHealthCheckClient.patchHttpHealthCheckAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchHttpHealthCheck(PatchHttpHealthCheckHttpRequest request) { - return patchHttpHealthCheckCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchHttpHealthCheckAsync( + PatchHttpHealthCheckHttpRequest request) { + return patchHttpHealthCheckOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a HttpHealthCheck resource in the specified project using the data included in the + * request. This method supports PATCH semantics and uses the JSON merge patch format and + * processing rules. + * + *

Sample code: + * + *


+   * try (HttpHealthCheckClient httpHealthCheckClient = HttpHealthCheckClient.create()) {
+   *   ProjectGlobalHttpHealthCheckName httpHealthCheck = ProjectGlobalHttpHealthCheckName.of("[PROJECT]", "[HTTP_HEALTH_CHECK]");
+   *   HttpHealthCheck2 httpHealthCheckResource = HttpHealthCheck2.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   PatchHttpHealthCheckHttpRequest request = PatchHttpHealthCheckHttpRequest.newBuilder()
+   *     .setHttpHealthCheck(httpHealthCheck.toString())
+   *     .setHttpHealthCheckResource(httpHealthCheckResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = httpHealthCheckClient.patchHttpHealthCheckOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + patchHttpHealthCheckOperationCallable() { + return stub.patchHttpHealthCheckOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -740,7 +851,7 @@ public final Operation patchHttpHealthCheck(PatchHttpHealthCheckHttpRequest requ * .build(); * ApiFuture<Operation> future = httpHealthCheckClient.patchHttpHealthCheckCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -762,7 +873,7 @@ public final Operation patchHttpHealthCheck(PatchHttpHealthCheckHttpRequest requ * ProjectGlobalHttpHealthCheckName httpHealthCheck = ProjectGlobalHttpHealthCheckName.of("[PROJECT]", "[HTTP_HEALTH_CHECK]"); * HttpHealthCheck2 httpHealthCheckResource = HttpHealthCheck2.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = httpHealthCheckClient.updateHttpHealthCheck(httpHealthCheck, httpHealthCheckResource, fieldMask); + * httpHealthCheckClient.updateHttpHealthCheckAsync(httpHealthCheck, httpHealthCheckResource, fieldMask).get(); * } * * @@ -775,8 +886,9 @@ public final Operation patchHttpHealthCheck(PatchHttpHealthCheckHttpRequest requ * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateHttpHealthCheck( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateHttpHealthCheckAsync( ProjectGlobalHttpHealthCheckName httpHealthCheck, HttpHealthCheck2 httpHealthCheckResource, List fieldMask) { @@ -787,7 +899,7 @@ public final Operation updateHttpHealthCheck( .setHttpHealthCheckResource(httpHealthCheckResource) .addAllFieldMask(fieldMask) .build(); - return updateHttpHealthCheck(request); + return updateHttpHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -802,7 +914,7 @@ public final Operation updateHttpHealthCheck( * ProjectGlobalHttpHealthCheckName httpHealthCheck = ProjectGlobalHttpHealthCheckName.of("[PROJECT]", "[HTTP_HEALTH_CHECK]"); * HttpHealthCheck2 httpHealthCheckResource = HttpHealthCheck2.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = httpHealthCheckClient.updateHttpHealthCheck(httpHealthCheck.toString(), httpHealthCheckResource, fieldMask); + * httpHealthCheckClient.updateHttpHealthCheckAsync(httpHealthCheck.toString(), httpHealthCheckResource, fieldMask).get(); * } * * @@ -815,8 +927,9 @@ public final Operation updateHttpHealthCheck( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateHttpHealthCheck( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateHttpHealthCheckAsync( String httpHealthCheck, HttpHealthCheck2 httpHealthCheckResource, List fieldMask) { UpdateHttpHealthCheckHttpRequest request = @@ -825,7 +938,7 @@ public final Operation updateHttpHealthCheck( .setHttpHealthCheckResource(httpHealthCheckResource) .addAllFieldMask(fieldMask) .build(); - return updateHttpHealthCheck(request); + return updateHttpHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -845,16 +958,47 @@ public final Operation updateHttpHealthCheck( * .setHttpHealthCheckResource(httpHealthCheckResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = httpHealthCheckClient.updateHttpHealthCheck(request); + * httpHealthCheckClient.updateHttpHealthCheckAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateHttpHealthCheck(UpdateHttpHealthCheckHttpRequest request) { - return updateHttpHealthCheckCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateHttpHealthCheckAsync( + UpdateHttpHealthCheckHttpRequest request) { + return updateHttpHealthCheckOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a HttpHealthCheck resource in the specified project using the data included in the + * request. + * + *

Sample code: + * + *


+   * try (HttpHealthCheckClient httpHealthCheckClient = HttpHealthCheckClient.create()) {
+   *   ProjectGlobalHttpHealthCheckName httpHealthCheck = ProjectGlobalHttpHealthCheckName.of("[PROJECT]", "[HTTP_HEALTH_CHECK]");
+   *   HttpHealthCheck2 httpHealthCheckResource = HttpHealthCheck2.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   UpdateHttpHealthCheckHttpRequest request = UpdateHttpHealthCheckHttpRequest.newBuilder()
+   *     .setHttpHealthCheck(httpHealthCheck.toString())
+   *     .setHttpHealthCheckResource(httpHealthCheckResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = httpHealthCheckClient.updateHttpHealthCheckOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + updateHttpHealthCheckOperationCallable() { + return stub.updateHttpHealthCheckOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -876,7 +1020,7 @@ public final Operation updateHttpHealthCheck(UpdateHttpHealthCheckHttpRequest re * .build(); * ApiFuture<Operation> future = httpHealthCheckClient.updateHttpHealthCheckCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckSettings.java index f352d44fd012..2d8a505e4647 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckSettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteHttpHealthCheck to 30 seconds: + * example, to set the total timeout of getHttpHealthCheck to 30 seconds: * *

  * 
  * HttpHealthCheckSettings.Builder httpHealthCheckSettingsBuilder =
  *     HttpHealthCheckSettings.newBuilder();
- * httpHealthCheckSettingsBuilder.deleteHttpHealthCheckSettings().getRetrySettings().toBuilder()
+ * httpHealthCheckSettingsBuilder.getHttpHealthCheckSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * HttpHealthCheckSettings httpHealthCheckSettings = httpHealthCheckSettingsBuilder.build();
  * 
@@ -69,6 +71,15 @@ public class HttpHealthCheckSettings extends ClientSettings
+      deleteHttpHealthCheckOperationSettings() {
+    return ((HttpHealthCheckStubSettings) getStubSettings())
+        .deleteHttpHealthCheckOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getHttpHealthCheck. */
   public UnaryCallSettings
       getHttpHealthCheckSettings() {
@@ -81,6 +92,15 @@ public class HttpHealthCheckSettings extends ClientSettings
+      insertHttpHealthCheckOperationSettings() {
+    return ((HttpHealthCheckStubSettings) getStubSettings())
+        .insertHttpHealthCheckOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listHttpHealthChecks. */
   public PagedCallSettings<
           ListHttpHealthChecksHttpRequest, HttpHealthCheckList, ListHttpHealthChecksPagedResponse>
@@ -94,12 +114,30 @@ public class HttpHealthCheckSettings extends ClientSettings
+      patchHttpHealthCheckOperationSettings() {
+    return ((HttpHealthCheckStubSettings) getStubSettings())
+        .patchHttpHealthCheckOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to updateHttpHealthCheck. */
   public UnaryCallSettings
       updateHttpHealthCheckSettings() {
     return ((HttpHealthCheckStubSettings) getStubSettings()).updateHttpHealthCheckSettings();
   }
 
+  /** Returns the object with the settings used for calls to updateHttpHealthCheck. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateHttpHealthCheckOperationSettings() {
+    return ((HttpHealthCheckStubSettings) getStubSettings())
+        .updateHttpHealthCheckOperationSettings();
+  }
+
   public static final HttpHealthCheckSettings create(HttpHealthCheckStubSettings stub)
       throws IOException {
     return new HttpHealthCheckSettings.Builder(stub.toBuilder()).build();
@@ -208,6 +246,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteHttpHealthCheckSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteHttpHealthCheck. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        deleteHttpHealthCheckOperationSettings() {
+      return getStubSettingsBuilder().deleteHttpHealthCheckOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getHttpHealthCheck. */
     public UnaryCallSettings.Builder
         getHttpHealthCheckSettings() {
@@ -220,6 +267,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertHttpHealthCheckSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertHttpHealthCheck. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        insertHttpHealthCheckOperationSettings() {
+      return getStubSettingsBuilder().insertHttpHealthCheckOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listHttpHealthChecks. */
     public PagedCallSettings.Builder<
             ListHttpHealthChecksHttpRequest, HttpHealthCheckList, ListHttpHealthChecksPagedResponse>
@@ -233,12 +289,30 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().patchHttpHealthCheckSettings();
     }
 
+    /** Returns the builder for the settings used for calls to patchHttpHealthCheck. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            PatchHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        patchHttpHealthCheckOperationSettings() {
+      return getStubSettingsBuilder().patchHttpHealthCheckOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to updateHttpHealthCheck. */
     public UnaryCallSettings.Builder
         updateHttpHealthCheckSettings() {
       return getStubSettingsBuilder().updateHttpHealthCheckSettings();
     }
 
+    /** Returns the builder for the settings used for calls to updateHttpHealthCheck. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            UpdateHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        updateHttpHealthCheckOperationSettings() {
+      return getStubSettingsBuilder().updateHttpHealthCheckOperationSettings();
+    }
+
     @Override
     public HttpHealthCheckSettings build() throws IOException {
       return new HttpHealthCheckSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckClient.java
index 7fcf330f460b..aeea9e5e6a7a 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.HttpsHealthCheckStub;
@@ -43,7 +46,7 @@
  * 
  * try (HttpsHealthCheckClient httpsHealthCheckClient = HttpsHealthCheckClient.create()) {
  *   ProjectGlobalHttpsHealthCheckName httpsHealthCheck = ProjectGlobalHttpsHealthCheckName.of("[PROJECT]", "[HTTPS_HEALTH_CHECK]");
- *   Operation response = httpsHealthCheckClient.deleteHttpsHealthCheck(httpsHealthCheck);
+ *   HttpsHealthCheck2 response = httpsHealthCheckClient.getHttpsHealthCheck(httpsHealthCheck);
  * }
  * 
  * 
@@ -104,6 +107,7 @@ public class HttpsHealthCheckClient implements BackgroundResource { private final HttpsHealthCheckSettings settings; private final HttpsHealthCheckStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of HttpsHealthCheckClient with default settings. */ public static final HttpsHealthCheckClient create() throws IOException { @@ -136,12 +140,14 @@ public static final HttpsHealthCheckClient create(HttpsHealthCheckStub stub) { protected HttpsHealthCheckClient(HttpsHealthCheckSettings settings) throws IOException { this.settings = settings; this.stub = ((HttpsHealthCheckStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected HttpsHealthCheckClient(HttpsHealthCheckStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final HttpsHealthCheckSettings getSettings() { @@ -153,6 +159,16 @@ public HttpsHealthCheckStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Deletes the specified HttpsHealthCheck resource. @@ -162,22 +178,23 @@ public HttpsHealthCheckStub getStub() { *

    * try (HttpsHealthCheckClient httpsHealthCheckClient = HttpsHealthCheckClient.create()) {
    *   ProjectGlobalHttpsHealthCheckName httpsHealthCheck = ProjectGlobalHttpsHealthCheckName.of("[PROJECT]", "[HTTPS_HEALTH_CHECK]");
-   *   Operation response = httpsHealthCheckClient.deleteHttpsHealthCheck(httpsHealthCheck);
+   *   httpsHealthCheckClient.deleteHttpsHealthCheckAsync(httpsHealthCheck).get();
    * }
    * 
* * @param httpsHealthCheck Name of the HttpsHealthCheck resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteHttpsHealthCheck( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteHttpsHealthCheckAsync( ProjectGlobalHttpsHealthCheckName httpsHealthCheck) { DeleteHttpsHealthCheckHttpRequest request = DeleteHttpsHealthCheckHttpRequest.newBuilder() .setHttpsHealthCheck(httpsHealthCheck == null ? null : httpsHealthCheck.toString()) .build(); - return deleteHttpsHealthCheck(request); + return deleteHttpsHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -189,21 +206,23 @@ public final Operation deleteHttpsHealthCheck( *

    * try (HttpsHealthCheckClient httpsHealthCheckClient = HttpsHealthCheckClient.create()) {
    *   ProjectGlobalHttpsHealthCheckName httpsHealthCheck = ProjectGlobalHttpsHealthCheckName.of("[PROJECT]", "[HTTPS_HEALTH_CHECK]");
-   *   Operation response = httpsHealthCheckClient.deleteHttpsHealthCheck(httpsHealthCheck.toString());
+   *   httpsHealthCheckClient.deleteHttpsHealthCheckAsync(httpsHealthCheck.toString()).get();
    * }
    * 
* * @param httpsHealthCheck Name of the HttpsHealthCheck resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteHttpsHealthCheck(String httpsHealthCheck) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteHttpsHealthCheckAsync( + String httpsHealthCheck) { DeleteHttpsHealthCheckHttpRequest request = DeleteHttpsHealthCheckHttpRequest.newBuilder() .setHttpsHealthCheck(httpsHealthCheck) .build(); - return deleteHttpsHealthCheck(request); + return deleteHttpsHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -218,16 +237,42 @@ public final Operation deleteHttpsHealthCheck(String httpsHealthCheck) { * DeleteHttpsHealthCheckHttpRequest request = DeleteHttpsHealthCheckHttpRequest.newBuilder() * .setHttpsHealthCheck(httpsHealthCheck.toString()) * .build(); - * Operation response = httpsHealthCheckClient.deleteHttpsHealthCheck(request); + * httpsHealthCheckClient.deleteHttpsHealthCheckAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteHttpsHealthCheck(DeleteHttpsHealthCheckHttpRequest request) { - return deleteHttpsHealthCheckCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteHttpsHealthCheckAsync( + DeleteHttpsHealthCheckHttpRequest request) { + return deleteHttpsHealthCheckOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified HttpsHealthCheck resource. + * + *

Sample code: + * + *


+   * try (HttpsHealthCheckClient httpsHealthCheckClient = HttpsHealthCheckClient.create()) {
+   *   ProjectGlobalHttpsHealthCheckName httpsHealthCheck = ProjectGlobalHttpsHealthCheckName.of("[PROJECT]", "[HTTPS_HEALTH_CHECK]");
+   *   DeleteHttpsHealthCheckHttpRequest request = DeleteHttpsHealthCheckHttpRequest.newBuilder()
+   *     .setHttpsHealthCheck(httpsHealthCheck.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = httpsHealthCheckClient.deleteHttpsHealthCheckOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteHttpsHealthCheckOperationCallable() { + return stub.deleteHttpsHealthCheckOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -244,7 +289,7 @@ public final Operation deleteHttpsHealthCheck(DeleteHttpsHealthCheckHttpRequest * .build(); * ApiFuture<Operation> future = httpsHealthCheckClient.deleteHttpsHealthCheckCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -368,7 +413,7 @@ public final HttpsHealthCheck2 getHttpsHealthCheck(GetHttpsHealthCheckHttpReques * try (HttpsHealthCheckClient httpsHealthCheckClient = HttpsHealthCheckClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * HttpsHealthCheck2 httpsHealthCheckResource = HttpsHealthCheck2.newBuilder().build(); - * Operation response = httpsHealthCheckClient.insertHttpsHealthCheck(project, httpsHealthCheckResource); + * httpsHealthCheckClient.insertHttpsHealthCheckAsync(project, httpsHealthCheckResource).get(); * } * * @@ -377,8 +422,9 @@ public final HttpsHealthCheck2 getHttpsHealthCheck(GetHttpsHealthCheckHttpReques * for how individual instances should be checked for health, via HTTPS. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertHttpsHealthCheck( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertHttpsHealthCheckAsync( ProjectName project, HttpsHealthCheck2 httpsHealthCheckResource) { InsertHttpsHealthCheckHttpRequest request = @@ -386,7 +432,7 @@ public final Operation insertHttpsHealthCheck( .setProject(project == null ? null : project.toString()) .setHttpsHealthCheckResource(httpsHealthCheckResource) .build(); - return insertHttpsHealthCheck(request); + return insertHttpsHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -400,7 +446,7 @@ public final Operation insertHttpsHealthCheck( * try (HttpsHealthCheckClient httpsHealthCheckClient = HttpsHealthCheckClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * HttpsHealthCheck2 httpsHealthCheckResource = HttpsHealthCheck2.newBuilder().build(); - * Operation response = httpsHealthCheckClient.insertHttpsHealthCheck(project.toString(), httpsHealthCheckResource); + * httpsHealthCheckClient.insertHttpsHealthCheckAsync(project.toString(), httpsHealthCheckResource).get(); * } * * @@ -409,8 +455,9 @@ public final Operation insertHttpsHealthCheck( * for how individual instances should be checked for health, via HTTPS. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertHttpsHealthCheck( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertHttpsHealthCheckAsync( String project, HttpsHealthCheck2 httpsHealthCheckResource) { InsertHttpsHealthCheckHttpRequest request = @@ -418,7 +465,7 @@ public final Operation insertHttpsHealthCheck( .setProject(project) .setHttpsHealthCheckResource(httpsHealthCheckResource) .build(); - return insertHttpsHealthCheck(request); + return insertHttpsHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -436,16 +483,45 @@ public final Operation insertHttpsHealthCheck( * .setProject(project.toString()) * .setHttpsHealthCheckResource(httpsHealthCheckResource) * .build(); - * Operation response = httpsHealthCheckClient.insertHttpsHealthCheck(request); + * httpsHealthCheckClient.insertHttpsHealthCheckAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertHttpsHealthCheck(InsertHttpsHealthCheckHttpRequest request) { - return insertHttpsHealthCheckCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertHttpsHealthCheckAsync( + InsertHttpsHealthCheckHttpRequest request) { + return insertHttpsHealthCheckOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a HttpsHealthCheck resource in the specified project using the data included in the + * request. + * + *

Sample code: + * + *


+   * try (HttpsHealthCheckClient httpsHealthCheckClient = HttpsHealthCheckClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   HttpsHealthCheck2 httpsHealthCheckResource = HttpsHealthCheck2.newBuilder().build();
+   *   InsertHttpsHealthCheckHttpRequest request = InsertHttpsHealthCheckHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setHttpsHealthCheckResource(httpsHealthCheckResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = httpsHealthCheckClient.insertHttpsHealthCheckOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertHttpsHealthCheckOperationCallable() { + return stub.insertHttpsHealthCheckOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -465,7 +541,7 @@ public final Operation insertHttpsHealthCheck(InsertHttpsHealthCheckHttpRequest * .build(); * ApiFuture<Operation> future = httpsHealthCheckClient.insertHttpsHealthCheckCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -626,7 +702,7 @@ public final ListHttpsHealthChecksPagedResponse listHttpsHealthChecks( * ProjectGlobalHttpsHealthCheckName httpsHealthCheck = ProjectGlobalHttpsHealthCheckName.of("[PROJECT]", "[HTTPS_HEALTH_CHECK]"); * HttpsHealthCheck2 httpsHealthCheckResource = HttpsHealthCheck2.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = httpsHealthCheckClient.patchHttpsHealthCheck(httpsHealthCheck, httpsHealthCheckResource, fieldMask); + * httpsHealthCheckClient.patchHttpsHealthCheckAsync(httpsHealthCheck, httpsHealthCheckResource, fieldMask).get(); * } * * @@ -639,8 +715,9 @@ public final ListHttpsHealthChecksPagedResponse listHttpsHealthChecks( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchHttpsHealthCheck( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchHttpsHealthCheckAsync( ProjectGlobalHttpsHealthCheckName httpsHealthCheck, HttpsHealthCheck2 httpsHealthCheckResource, List fieldMask) { @@ -651,7 +728,7 @@ public final Operation patchHttpsHealthCheck( .setHttpsHealthCheckResource(httpsHealthCheckResource) .addAllFieldMask(fieldMask) .build(); - return patchHttpsHealthCheck(request); + return patchHttpsHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -667,7 +744,7 @@ public final Operation patchHttpsHealthCheck( * ProjectGlobalHttpsHealthCheckName httpsHealthCheck = ProjectGlobalHttpsHealthCheckName.of("[PROJECT]", "[HTTPS_HEALTH_CHECK]"); * HttpsHealthCheck2 httpsHealthCheckResource = HttpsHealthCheck2.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = httpsHealthCheckClient.patchHttpsHealthCheck(httpsHealthCheck.toString(), httpsHealthCheckResource, fieldMask); + * httpsHealthCheckClient.patchHttpsHealthCheckAsync(httpsHealthCheck.toString(), httpsHealthCheckResource, fieldMask).get(); * } * * @@ -680,8 +757,9 @@ public final Operation patchHttpsHealthCheck( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchHttpsHealthCheck( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchHttpsHealthCheckAsync( String httpsHealthCheck, HttpsHealthCheck2 httpsHealthCheckResource, List fieldMask) { PatchHttpsHealthCheckHttpRequest request = @@ -690,7 +768,7 @@ public final Operation patchHttpsHealthCheck( .setHttpsHealthCheckResource(httpsHealthCheckResource) .addAllFieldMask(fieldMask) .build(); - return patchHttpsHealthCheck(request); + return patchHttpsHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -711,16 +789,48 @@ public final Operation patchHttpsHealthCheck( * .setHttpsHealthCheckResource(httpsHealthCheckResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = httpsHealthCheckClient.patchHttpsHealthCheck(request); + * httpsHealthCheckClient.patchHttpsHealthCheckAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchHttpsHealthCheck(PatchHttpsHealthCheckHttpRequest request) { - return patchHttpsHealthCheckCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchHttpsHealthCheckAsync( + PatchHttpsHealthCheckHttpRequest request) { + return patchHttpsHealthCheckOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a HttpsHealthCheck resource in the specified project using the data included in the + * request. This method supports PATCH semantics and uses the JSON merge patch format and + * processing rules. + * + *

Sample code: + * + *


+   * try (HttpsHealthCheckClient httpsHealthCheckClient = HttpsHealthCheckClient.create()) {
+   *   ProjectGlobalHttpsHealthCheckName httpsHealthCheck = ProjectGlobalHttpsHealthCheckName.of("[PROJECT]", "[HTTPS_HEALTH_CHECK]");
+   *   HttpsHealthCheck2 httpsHealthCheckResource = HttpsHealthCheck2.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   PatchHttpsHealthCheckHttpRequest request = PatchHttpsHealthCheckHttpRequest.newBuilder()
+   *     .setHttpsHealthCheck(httpsHealthCheck.toString())
+   *     .setHttpsHealthCheckResource(httpsHealthCheckResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = httpsHealthCheckClient.patchHttpsHealthCheckOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + patchHttpsHealthCheckOperationCallable() { + return stub.patchHttpsHealthCheckOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -743,7 +853,7 @@ public final Operation patchHttpsHealthCheck(PatchHttpsHealthCheckHttpRequest re * .build(); * ApiFuture<Operation> future = httpsHealthCheckClient.patchHttpsHealthCheckCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -765,7 +875,7 @@ public final Operation patchHttpsHealthCheck(PatchHttpsHealthCheckHttpRequest re * ProjectGlobalHttpsHealthCheckName httpsHealthCheck = ProjectGlobalHttpsHealthCheckName.of("[PROJECT]", "[HTTPS_HEALTH_CHECK]"); * HttpsHealthCheck2 httpsHealthCheckResource = HttpsHealthCheck2.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = httpsHealthCheckClient.updateHttpsHealthCheck(httpsHealthCheck, httpsHealthCheckResource, fieldMask); + * httpsHealthCheckClient.updateHttpsHealthCheckAsync(httpsHealthCheck, httpsHealthCheckResource, fieldMask).get(); * } * * @@ -778,8 +888,9 @@ public final Operation patchHttpsHealthCheck(PatchHttpsHealthCheckHttpRequest re * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateHttpsHealthCheck( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateHttpsHealthCheckAsync( ProjectGlobalHttpsHealthCheckName httpsHealthCheck, HttpsHealthCheck2 httpsHealthCheckResource, List fieldMask) { @@ -790,7 +901,7 @@ public final Operation updateHttpsHealthCheck( .setHttpsHealthCheckResource(httpsHealthCheckResource) .addAllFieldMask(fieldMask) .build(); - return updateHttpsHealthCheck(request); + return updateHttpsHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -805,7 +916,7 @@ public final Operation updateHttpsHealthCheck( * ProjectGlobalHttpsHealthCheckName httpsHealthCheck = ProjectGlobalHttpsHealthCheckName.of("[PROJECT]", "[HTTPS_HEALTH_CHECK]"); * HttpsHealthCheck2 httpsHealthCheckResource = HttpsHealthCheck2.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = httpsHealthCheckClient.updateHttpsHealthCheck(httpsHealthCheck.toString(), httpsHealthCheckResource, fieldMask); + * httpsHealthCheckClient.updateHttpsHealthCheckAsync(httpsHealthCheck.toString(), httpsHealthCheckResource, fieldMask).get(); * } * * @@ -818,8 +929,9 @@ public final Operation updateHttpsHealthCheck( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateHttpsHealthCheck( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateHttpsHealthCheckAsync( String httpsHealthCheck, HttpsHealthCheck2 httpsHealthCheckResource, List fieldMask) { UpdateHttpsHealthCheckHttpRequest request = @@ -828,7 +940,7 @@ public final Operation updateHttpsHealthCheck( .setHttpsHealthCheckResource(httpsHealthCheckResource) .addAllFieldMask(fieldMask) .build(); - return updateHttpsHealthCheck(request); + return updateHttpsHealthCheckAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -848,16 +960,47 @@ public final Operation updateHttpsHealthCheck( * .setHttpsHealthCheckResource(httpsHealthCheckResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = httpsHealthCheckClient.updateHttpsHealthCheck(request); + * httpsHealthCheckClient.updateHttpsHealthCheckAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateHttpsHealthCheck(UpdateHttpsHealthCheckHttpRequest request) { - return updateHttpsHealthCheckCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateHttpsHealthCheckAsync( + UpdateHttpsHealthCheckHttpRequest request) { + return updateHttpsHealthCheckOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a HttpsHealthCheck resource in the specified project using the data included in the + * request. + * + *

Sample code: + * + *


+   * try (HttpsHealthCheckClient httpsHealthCheckClient = HttpsHealthCheckClient.create()) {
+   *   ProjectGlobalHttpsHealthCheckName httpsHealthCheck = ProjectGlobalHttpsHealthCheckName.of("[PROJECT]", "[HTTPS_HEALTH_CHECK]");
+   *   HttpsHealthCheck2 httpsHealthCheckResource = HttpsHealthCheck2.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   UpdateHttpsHealthCheckHttpRequest request = UpdateHttpsHealthCheckHttpRequest.newBuilder()
+   *     .setHttpsHealthCheck(httpsHealthCheck.toString())
+   *     .setHttpsHealthCheckResource(httpsHealthCheckResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = httpsHealthCheckClient.updateHttpsHealthCheckOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + updateHttpsHealthCheckOperationCallable() { + return stub.updateHttpsHealthCheckOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -879,7 +1022,7 @@ public final Operation updateHttpsHealthCheck(UpdateHttpsHealthCheckHttpRequest * .build(); * ApiFuture<Operation> future = httpsHealthCheckClient.updateHttpsHealthCheckCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckSettings.java index 9451ef907783..626745586825 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckSettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteHttpsHealthCheck to 30 seconds: + * example, to set the total timeout of getHttpsHealthCheck to 30 seconds: * *

  * 
  * HttpsHealthCheckSettings.Builder httpsHealthCheckSettingsBuilder =
  *     HttpsHealthCheckSettings.newBuilder();
- * httpsHealthCheckSettingsBuilder.deleteHttpsHealthCheckSettings().getRetrySettings().toBuilder()
+ * httpsHealthCheckSettingsBuilder.getHttpsHealthCheckSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * HttpsHealthCheckSettings httpsHealthCheckSettings = httpsHealthCheckSettingsBuilder.build();
  * 
@@ -69,6 +71,15 @@ public class HttpsHealthCheckSettings extends ClientSettings
+      deleteHttpsHealthCheckOperationSettings() {
+    return ((HttpsHealthCheckStubSettings) getStubSettings())
+        .deleteHttpsHealthCheckOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getHttpsHealthCheck. */
   public UnaryCallSettings
       getHttpsHealthCheckSettings() {
@@ -81,6 +92,15 @@ public class HttpsHealthCheckSettings extends ClientSettings
+      insertHttpsHealthCheckOperationSettings() {
+    return ((HttpsHealthCheckStubSettings) getStubSettings())
+        .insertHttpsHealthCheckOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listHttpsHealthChecks. */
   public PagedCallSettings<
           ListHttpsHealthChecksHttpRequest,
@@ -96,12 +116,30 @@ public class HttpsHealthCheckSettings extends ClientSettings
+      patchHttpsHealthCheckOperationSettings() {
+    return ((HttpsHealthCheckStubSettings) getStubSettings())
+        .patchHttpsHealthCheckOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to updateHttpsHealthCheck. */
   public UnaryCallSettings
       updateHttpsHealthCheckSettings() {
     return ((HttpsHealthCheckStubSettings) getStubSettings()).updateHttpsHealthCheckSettings();
   }
 
+  /** Returns the object with the settings used for calls to updateHttpsHealthCheck. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateHttpsHealthCheckOperationSettings() {
+    return ((HttpsHealthCheckStubSettings) getStubSettings())
+        .updateHttpsHealthCheckOperationSettings();
+  }
+
   public static final HttpsHealthCheckSettings create(HttpsHealthCheckStubSettings stub)
       throws IOException {
     return new HttpsHealthCheckSettings.Builder(stub.toBuilder()).build();
@@ -210,6 +248,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteHttpsHealthCheckSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteHttpsHealthCheck. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        deleteHttpsHealthCheckOperationSettings() {
+      return getStubSettingsBuilder().deleteHttpsHealthCheckOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getHttpsHealthCheck. */
     public UnaryCallSettings.Builder
         getHttpsHealthCheckSettings() {
@@ -222,6 +269,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertHttpsHealthCheckSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertHttpsHealthCheck. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        insertHttpsHealthCheckOperationSettings() {
+      return getStubSettingsBuilder().insertHttpsHealthCheckOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listHttpsHealthChecks. */
     public PagedCallSettings.Builder<
             ListHttpsHealthChecksHttpRequest,
@@ -237,12 +293,30 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().patchHttpsHealthCheckSettings();
     }
 
+    /** Returns the builder for the settings used for calls to patchHttpsHealthCheck. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            PatchHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        patchHttpsHealthCheckOperationSettings() {
+      return getStubSettingsBuilder().patchHttpsHealthCheckOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to updateHttpsHealthCheck. */
     public UnaryCallSettings.Builder
         updateHttpsHealthCheckSettings() {
       return getStubSettingsBuilder().updateHttpsHealthCheckSettings();
     }
 
+    /** Returns the builder for the settings used for calls to updateHttpsHealthCheck. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            UpdateHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        updateHttpsHealthCheckOperationSettings() {
+      return getStubSettingsBuilder().updateHttpsHealthCheckOperationSettings();
+    }
+
     @Override
     public HttpsHealthCheckSettings build() throws IOException {
       return new HttpsHealthCheckSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageClient.java
index cdef2a1d21b7..8d0e3b880a4b 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.ImageStub;
@@ -43,7 +46,7 @@
  * 
  * try (ImageClient imageClient = ImageClient.create()) {
  *   ProjectGlobalImageName image = ProjectGlobalImageName.of("[PROJECT]", "[IMAGE]");
- *   Operation response = imageClient.deleteImage(image);
+ *   Image response = imageClient.getImage(image);
  * }
  * 
  * 
@@ -103,6 +106,7 @@ public class ImageClient implements BackgroundResource { private final ImageSettings settings; private final ImageStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of ImageClient with default settings. */ public static final ImageClient create() throws IOException { @@ -133,12 +137,14 @@ public static final ImageClient create(ImageStub stub) { protected ImageClient(ImageSettings settings) throws IOException { this.settings = settings; this.stub = ((ImageStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected ImageClient(ImageStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final ImageSettings getSettings() { @@ -150,6 +156,16 @@ public ImageStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Deletes the specified image. @@ -159,21 +175,23 @@ public ImageStub getStub() { *

    * try (ImageClient imageClient = ImageClient.create()) {
    *   ProjectGlobalImageName image = ProjectGlobalImageName.of("[PROJECT]", "[IMAGE]");
-   *   Operation response = imageClient.deleteImage(image);
+   *   imageClient.deleteImageAsync(image).get();
    * }
    * 
* * @param image Name of the image resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteImage(ProjectGlobalImageName image) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteImageAsync( + ProjectGlobalImageName image) { DeleteImageHttpRequest request = DeleteImageHttpRequest.newBuilder() .setImage(image == null ? null : image.toString()) .build(); - return deleteImage(request); + return deleteImageAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -185,18 +203,19 @@ public final Operation deleteImage(ProjectGlobalImageName image) { *

    * try (ImageClient imageClient = ImageClient.create()) {
    *   ProjectGlobalImageName image = ProjectGlobalImageName.of("[PROJECT]", "[IMAGE]");
-   *   Operation response = imageClient.deleteImage(image.toString());
+   *   imageClient.deleteImageAsync(image.toString()).get();
    * }
    * 
* * @param image Name of the image resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteImage(String image) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteImageAsync(String image) { DeleteImageHttpRequest request = DeleteImageHttpRequest.newBuilder().setImage(image).build(); - return deleteImage(request); + return deleteImageAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -211,16 +230,42 @@ public final Operation deleteImage(String image) { * DeleteImageHttpRequest request = DeleteImageHttpRequest.newBuilder() * .setImage(image.toString()) * .build(); - * Operation response = imageClient.deleteImage(request); + * imageClient.deleteImageAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteImage(DeleteImageHttpRequest request) { - return deleteImageCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteImageAsync( + DeleteImageHttpRequest request) { + return deleteImageOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified image. + * + *

Sample code: + * + *


+   * try (ImageClient imageClient = ImageClient.create()) {
+   *   ProjectGlobalImageName image = ProjectGlobalImageName.of("[PROJECT]", "[IMAGE]");
+   *   DeleteImageHttpRequest request = DeleteImageHttpRequest.newBuilder()
+   *     .setImage(image.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = imageClient.deleteImageOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteImageOperationCallable() { + return stub.deleteImageOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -237,7 +282,7 @@ public final Operation deleteImage(DeleteImageHttpRequest request) { * .build(); * ApiFuture<Operation> future = imageClient.deleteImageCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -258,7 +303,7 @@ public final UnaryCallable deleteImageCallabl * try (ImageClient imageClient = ImageClient.create()) { * ProjectGlobalImageName image = ProjectGlobalImageName.of("[PROJECT]", "[IMAGE]"); * DeprecationStatus deprecationStatusResource = DeprecationStatus.newBuilder().build(); - * Operation response = imageClient.deprecateImage(image, deprecationStatusResource); + * imageClient.deprecateImageAsync(image, deprecationStatusResource).get(); * } * * @@ -266,8 +311,9 @@ public final UnaryCallable deleteImageCallabl * @param deprecationStatusResource Deprecation status for a public resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deprecateImage( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deprecateImageAsync( ProjectGlobalImageName image, DeprecationStatus deprecationStatusResource) { DeprecateImageHttpRequest request = @@ -275,7 +321,7 @@ public final Operation deprecateImage( .setImage(image == null ? null : image.toString()) .setDeprecationStatusResource(deprecationStatusResource) .build(); - return deprecateImage(request); + return deprecateImageAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -290,7 +336,7 @@ public final Operation deprecateImage( * try (ImageClient imageClient = ImageClient.create()) { * ProjectGlobalImageName image = ProjectGlobalImageName.of("[PROJECT]", "[IMAGE]"); * DeprecationStatus deprecationStatusResource = DeprecationStatus.newBuilder().build(); - * Operation response = imageClient.deprecateImage(image.toString(), deprecationStatusResource); + * imageClient.deprecateImageAsync(image.toString(), deprecationStatusResource).get(); * } * * @@ -298,15 +344,17 @@ public final Operation deprecateImage( * @param deprecationStatusResource Deprecation status for a public resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deprecateImage(String image, DeprecationStatus deprecationStatusResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deprecateImageAsync( + String image, DeprecationStatus deprecationStatusResource) { DeprecateImageHttpRequest request = DeprecateImageHttpRequest.newBuilder() .setImage(image) .setDeprecationStatusResource(deprecationStatusResource) .build(); - return deprecateImage(request); + return deprecateImageAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -325,16 +373,46 @@ public final Operation deprecateImage(String image, DeprecationStatus deprecatio * .setImage(image.toString()) * .setDeprecationStatusResource(deprecationStatusResource) * .build(); - * Operation response = imageClient.deprecateImage(request); + * imageClient.deprecateImageAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deprecateImage(DeprecateImageHttpRequest request) { - return deprecateImageCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deprecateImageAsync( + DeprecateImageHttpRequest request) { + return deprecateImageOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the deprecation status of an image. + * + *

If an empty request body is given, clears the deprecation status instead. + * + *

Sample code: + * + *


+   * try (ImageClient imageClient = ImageClient.create()) {
+   *   ProjectGlobalImageName image = ProjectGlobalImageName.of("[PROJECT]", "[IMAGE]");
+   *   DeprecationStatus deprecationStatusResource = DeprecationStatus.newBuilder().build();
+   *   DeprecateImageHttpRequest request = DeprecateImageHttpRequest.newBuilder()
+   *     .setImage(image.toString())
+   *     .setDeprecationStatusResource(deprecationStatusResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = imageClient.deprecateImageOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deprecateImageOperationCallable() { + return stub.deprecateImageOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -355,7 +433,7 @@ public final Operation deprecateImage(DeprecateImageHttpRequest request) { * .build(); * ApiFuture<Operation> future = imageClient.deprecateImageCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -667,7 +745,7 @@ public final UnaryCallable getIamPolicyIma * Boolean forceCreate = false; * ProjectName project = ProjectName.of("[PROJECT]"); * Image imageResource = Image.newBuilder().build(); - * Operation response = imageClient.insertImage(forceCreate, project, imageResource); + * imageClient.insertImageAsync(forceCreate, project, imageResource).get(); * } * * @@ -677,8 +755,9 @@ public final UnaryCallable getIamPolicyIma * v1.images ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertImage( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertImageAsync( Boolean forceCreate, ProjectName project, Image imageResource) { InsertImageHttpRequest request = @@ -687,7 +766,7 @@ public final Operation insertImage( .setProject(project == null ? null : project.toString()) .setImageResource(imageResource) .build(); - return insertImage(request); + return insertImageAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -701,7 +780,7 @@ public final Operation insertImage( * Boolean forceCreate = false; * ProjectName project = ProjectName.of("[PROJECT]"); * Image imageResource = Image.newBuilder().build(); - * Operation response = imageClient.insertImage(forceCreate, project.toString(), imageResource); + * imageClient.insertImageAsync(forceCreate, project.toString(), imageResource).get(); * } * * @@ -711,8 +790,10 @@ public final Operation insertImage( * v1.images ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertImage(Boolean forceCreate, String project, Image imageResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertImageAsync( + Boolean forceCreate, String project, Image imageResource) { InsertImageHttpRequest request = InsertImageHttpRequest.newBuilder() @@ -720,7 +801,7 @@ public final Operation insertImage(Boolean forceCreate, String project, Image im .setProject(project) .setImageResource(imageResource) .build(); - return insertImage(request); + return insertImageAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -739,16 +820,46 @@ public final Operation insertImage(Boolean forceCreate, String project, Image im * .setProject(project.toString()) * .setImageResource(imageResource) * .build(); - * Operation response = imageClient.insertImage(request); + * imageClient.insertImageAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertImage(InsertImageHttpRequest request) { - return insertImageCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertImageAsync( + InsertImageHttpRequest request) { + return insertImageOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates an image in the specified project using the data included in the request. + * + *

Sample code: + * + *


+   * try (ImageClient imageClient = ImageClient.create()) {
+   *   Boolean forceCreate = false;
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   Image imageResource = Image.newBuilder().build();
+   *   InsertImageHttpRequest request = InsertImageHttpRequest.newBuilder()
+   *     .setForceCreate(forceCreate)
+   *     .setProject(project.toString())
+   *     .setImageResource(imageResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = imageClient.insertImageOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertImageOperationCallable() { + return stub.insertImageOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -769,7 +880,7 @@ public final Operation insertImage(InsertImageHttpRequest request) { * .build(); * ApiFuture<Operation> future = imageClient.insertImageCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1056,7 +1167,7 @@ public final UnaryCallable setIamPolicyIma * try (ImageClient imageClient = ImageClient.create()) { * ProjectGlobalImageResourceName resource = ProjectGlobalImageResourceName.of("[PROJECT]", "[RESOURCE]"); * GlobalSetLabelsRequest globalSetLabelsRequestResource = GlobalSetLabelsRequest.newBuilder().build(); - * Operation response = imageClient.setLabelsImage(resource, globalSetLabelsRequestResource); + * imageClient.setLabelsImageAsync(resource, globalSetLabelsRequestResource).get(); * } * * @@ -1064,8 +1175,9 @@ public final UnaryCallable setIamPolicyIma * @param globalSetLabelsRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setLabelsImage( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setLabelsImageAsync( ProjectGlobalImageResourceName resource, GlobalSetLabelsRequest globalSetLabelsRequestResource) { @@ -1074,7 +1186,7 @@ public final Operation setLabelsImage( .setResource(resource == null ? null : resource.toString()) .setGlobalSetLabelsRequestResource(globalSetLabelsRequestResource) .build(); - return setLabelsImage(request); + return setLabelsImageAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1088,7 +1200,7 @@ public final Operation setLabelsImage( * try (ImageClient imageClient = ImageClient.create()) { * ProjectGlobalImageResourceName resource = ProjectGlobalImageResourceName.of("[PROJECT]", "[RESOURCE]"); * GlobalSetLabelsRequest globalSetLabelsRequestResource = GlobalSetLabelsRequest.newBuilder().build(); - * Operation response = imageClient.setLabelsImage(resource.toString(), globalSetLabelsRequestResource); + * imageClient.setLabelsImageAsync(resource.toString(), globalSetLabelsRequestResource).get(); * } * * @@ -1096,8 +1208,9 @@ public final Operation setLabelsImage( * @param globalSetLabelsRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setLabelsImage( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setLabelsImageAsync( String resource, GlobalSetLabelsRequest globalSetLabelsRequestResource) { SetLabelsImageHttpRequest request = @@ -1105,7 +1218,7 @@ public final Operation setLabelsImage( .setResource(resource) .setGlobalSetLabelsRequestResource(globalSetLabelsRequestResource) .build(); - return setLabelsImage(request); + return setLabelsImageAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1123,16 +1236,45 @@ public final Operation setLabelsImage( * .setResource(resource.toString()) * .setGlobalSetLabelsRequestResource(globalSetLabelsRequestResource) * .build(); - * Operation response = imageClient.setLabelsImage(request); + * imageClient.setLabelsImageAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setLabelsImage(SetLabelsImageHttpRequest request) { - return setLabelsImageCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setLabelsImageAsync( + SetLabelsImageHttpRequest request) { + return setLabelsImageOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the labels on an image. To learn more about labels, read the Labeling Resources + * documentation. + * + *

Sample code: + * + *


+   * try (ImageClient imageClient = ImageClient.create()) {
+   *   ProjectGlobalImageResourceName resource = ProjectGlobalImageResourceName.of("[PROJECT]", "[RESOURCE]");
+   *   GlobalSetLabelsRequest globalSetLabelsRequestResource = GlobalSetLabelsRequest.newBuilder().build();
+   *   SetLabelsImageHttpRequest request = SetLabelsImageHttpRequest.newBuilder()
+   *     .setResource(resource.toString())
+   *     .setGlobalSetLabelsRequestResource(globalSetLabelsRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = imageClient.setLabelsImageOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + setLabelsImageOperationCallable() { + return stub.setLabelsImageOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1152,7 +1294,7 @@ public final Operation setLabelsImage(SetLabelsImageHttpRequest request) { * .build(); * ApiFuture<Operation> future = imageClient.setLabelsImageCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageSettings.java index 97f9d48dcbb0..2d1d20fdada7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageSettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteImage to 30 seconds: + * example, to set the total timeout of getImage to 30 seconds: * *

  * 
  * ImageSettings.Builder imageSettingsBuilder =
  *     ImageSettings.newBuilder();
- * imageSettingsBuilder.deleteImageSettings().getRetrySettings().toBuilder()
+ * imageSettingsBuilder.getImageSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * ImageSettings imageSettings = imageSettingsBuilder.build();
  * 
@@ -68,11 +70,27 @@ public UnaryCallSettings deleteImageSettings(
     return ((ImageStubSettings) getStubSettings()).deleteImageSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteImage. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteImageOperationSettings() {
+    return ((ImageStubSettings) getStubSettings()).deleteImageOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to deprecateImage. */
   public UnaryCallSettings deprecateImageSettings() {
     return ((ImageStubSettings) getStubSettings()).deprecateImageSettings();
   }
 
+  /** Returns the object with the settings used for calls to deprecateImage. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deprecateImageOperationSettings() {
+    return ((ImageStubSettings) getStubSettings()).deprecateImageOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getImage. */
   public UnaryCallSettings getImageSettings() {
     return ((ImageStubSettings) getStubSettings()).getImageSettings();
@@ -93,6 +111,14 @@ public UnaryCallSettings insertImageSettings(
     return ((ImageStubSettings) getStubSettings()).insertImageSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertImage. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertImageOperationSettings() {
+    return ((ImageStubSettings) getStubSettings()).insertImageOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listImages. */
   public PagedCallSettings
       listImagesSettings() {
@@ -109,6 +135,14 @@ public UnaryCallSettings setLabelsImageSet
     return ((ImageStubSettings) getStubSettings()).setLabelsImageSettings();
   }
 
+  /** Returns the object with the settings used for calls to setLabelsImage. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setLabelsImageOperationSettings() {
+    return ((ImageStubSettings) getStubSettings()).setLabelsImageOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to testIamPermissionsImage. */
   public UnaryCallSettings
       testIamPermissionsImageSettings() {
@@ -221,12 +255,28 @@ public UnaryCallSettings.Builder deleteImageS
       return getStubSettingsBuilder().deleteImageSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteImage. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteImageOperationSettings() {
+      return getStubSettingsBuilder().deleteImageOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to deprecateImage. */
     public UnaryCallSettings.Builder
         deprecateImageSettings() {
       return getStubSettingsBuilder().deprecateImageSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deprecateImage. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deprecateImageOperationSettings() {
+      return getStubSettingsBuilder().deprecateImageOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getImage. */
     public UnaryCallSettings.Builder getImageSettings() {
       return getStubSettingsBuilder().getImageSettings();
@@ -249,6 +299,14 @@ public UnaryCallSettings.Builder insertImageS
       return getStubSettingsBuilder().insertImageSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertImage. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertImageOperationSettings() {
+      return getStubSettingsBuilder().insertImageOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listImages. */
     public PagedCallSettings.Builder
         listImagesSettings() {
@@ -267,6 +325,14 @@ public UnaryCallSettings.Builder insertImageS
       return getStubSettingsBuilder().setLabelsImageSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setLabelsImage. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        setLabelsImageOperationSettings() {
+      return getStubSettingsBuilder().setLabelsImageOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to testIamPermissionsImage. */
     public UnaryCallSettings.Builder
         testIamPermissionsImageSettings() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java
index 7458a77b898a..7289b7add4b9 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.InstanceStub;
@@ -43,9 +46,7 @@
  * 
  * try (InstanceClient instanceClient = InstanceClient.create()) {
  *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
- *   String networkInterface = "";
- *   AccessConfig accessConfigResource = AccessConfig.newBuilder().build();
- *   Operation response = instanceClient.addAccessConfigInstance(instance, networkInterface, accessConfigResource);
+ *   Instance response = instanceClient.getInstance(instance);
  * }
  * 
  * 
@@ -105,6 +106,7 @@ public class InstanceClient implements BackgroundResource { private final InstanceSettings settings; private final InstanceStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of InstanceClient with default settings. */ public static final InstanceClient create() throws IOException { @@ -135,12 +137,14 @@ public static final InstanceClient create(InstanceStub stub) { protected InstanceClient(InstanceSettings settings) throws IOException { this.settings = settings; this.stub = ((InstanceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected InstanceClient(InstanceStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final InstanceSettings getSettings() { @@ -152,6 +156,16 @@ public InstanceStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Adds an access config to an instance's network interface. @@ -163,7 +177,7 @@ public InstanceStub getStub() { * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * String networkInterface = ""; * AccessConfig accessConfigResource = AccessConfig.newBuilder().build(); - * Operation response = instanceClient.addAccessConfigInstance(instance, networkInterface, accessConfigResource); + * instanceClient.addAccessConfigInstanceAsync(instance, networkInterface, accessConfigResource).get(); * } * * @@ -173,8 +187,9 @@ public InstanceStub getStub() { * interface. Only one access config per instance is supported. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addAccessConfigInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addAccessConfigInstanceAsync( ProjectZoneInstanceName instance, String networkInterface, AccessConfig accessConfigResource) { @@ -185,7 +200,7 @@ public final Operation addAccessConfigInstance( .setNetworkInterface(networkInterface) .setAccessConfigResource(accessConfigResource) .build(); - return addAccessConfigInstance(request); + return addAccessConfigInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -199,7 +214,7 @@ public final Operation addAccessConfigInstance( * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * String networkInterface = ""; * AccessConfig accessConfigResource = AccessConfig.newBuilder().build(); - * Operation response = instanceClient.addAccessConfigInstance(instance.toString(), networkInterface, accessConfigResource); + * instanceClient.addAccessConfigInstanceAsync(instance.toString(), networkInterface, accessConfigResource).get(); * } * * @@ -209,8 +224,9 @@ public final Operation addAccessConfigInstance( * interface. Only one access config per instance is supported. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addAccessConfigInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addAccessConfigInstanceAsync( String instance, String networkInterface, AccessConfig accessConfigResource) { AddAccessConfigInstanceHttpRequest request = @@ -219,7 +235,7 @@ public final Operation addAccessConfigInstance( .setNetworkInterface(networkInterface) .setAccessConfigResource(accessConfigResource) .build(); - return addAccessConfigInstance(request); + return addAccessConfigInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -238,16 +254,46 @@ public final Operation addAccessConfigInstance( * .setNetworkInterface(networkInterface) * .setAccessConfigResource(accessConfigResource) * .build(); - * Operation response = instanceClient.addAccessConfigInstance(request); + * instanceClient.addAccessConfigInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addAccessConfigInstance(AddAccessConfigInstanceHttpRequest request) { - return addAccessConfigInstanceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addAccessConfigInstanceAsync( + AddAccessConfigInstanceHttpRequest request) { + return addAccessConfigInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Adds an access config to an instance's network interface. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+   *   String networkInterface = "";
+   *   AccessConfig accessConfigResource = AccessConfig.newBuilder().build();
+   *   AddAccessConfigInstanceHttpRequest request = AddAccessConfigInstanceHttpRequest.newBuilder()
+   *     .setInstance(instance.toString())
+   *     .setNetworkInterface(networkInterface)
+   *     .setAccessConfigResource(accessConfigResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.addAccessConfigInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + addAccessConfigInstanceOperationCallable() { + return stub.addAccessConfigInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -268,7 +314,7 @@ public final Operation addAccessConfigInstance(AddAccessConfigInstanceHttpReques * .build(); * ApiFuture<Operation> future = instanceClient.addAccessConfigInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -430,7 +476,7 @@ public final AggregatedListInstancesPagedResponse aggregatedListInstances( * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * Boolean forceAttach = false; * AttachedDisk attachedDiskResource = AttachedDisk.newBuilder().build(); - * Operation response = instanceClient.attachDiskInstance(instance, forceAttach, attachedDiskResource); + * instanceClient.attachDiskInstanceAsync(instance, forceAttach, attachedDiskResource).get(); * } * * @@ -440,8 +486,9 @@ public final AggregatedListInstancesPagedResponse aggregatedListInstances( * @param attachedDiskResource An instance-attached disk resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation attachDiskInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture attachDiskInstanceAsync( ProjectZoneInstanceName instance, Boolean forceAttach, AttachedDisk attachedDiskResource) { AttachDiskInstanceHttpRequest request = @@ -450,7 +497,7 @@ public final Operation attachDiskInstance( .setForceAttach(forceAttach) .setAttachedDiskResource(attachedDiskResource) .build(); - return attachDiskInstance(request); + return attachDiskInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -466,7 +513,7 @@ public final Operation attachDiskInstance( * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * Boolean forceAttach = false; * AttachedDisk attachedDiskResource = AttachedDisk.newBuilder().build(); - * Operation response = instanceClient.attachDiskInstance(instance.toString(), forceAttach, attachedDiskResource); + * instanceClient.attachDiskInstanceAsync(instance.toString(), forceAttach, attachedDiskResource).get(); * } * * @@ -476,8 +523,9 @@ public final Operation attachDiskInstance( * @param attachedDiskResource An instance-attached disk resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation attachDiskInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture attachDiskInstanceAsync( String instance, Boolean forceAttach, AttachedDisk attachedDiskResource) { AttachDiskInstanceHttpRequest request = @@ -486,7 +534,7 @@ public final Operation attachDiskInstance( .setForceAttach(forceAttach) .setAttachedDiskResource(attachedDiskResource) .build(); - return attachDiskInstance(request); + return attachDiskInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -507,16 +555,48 @@ public final Operation attachDiskInstance( * .setForceAttach(forceAttach) * .setAttachedDiskResource(attachedDiskResource) * .build(); - * Operation response = instanceClient.attachDiskInstance(request); + * instanceClient.attachDiskInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation attachDiskInstance(AttachDiskInstanceHttpRequest request) { - return attachDiskInstanceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture attachDiskInstanceAsync( + AttachDiskInstanceHttpRequest request) { + return attachDiskInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Attaches an existing Disk resource to an instance. You must first create the disk before you + * can attach it. It is not possible to create and attach a disk at the same time. For more + * information, read Adding a persistent disk to your instance. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+   *   Boolean forceAttach = false;
+   *   AttachedDisk attachedDiskResource = AttachedDisk.newBuilder().build();
+   *   AttachDiskInstanceHttpRequest request = AttachDiskInstanceHttpRequest.newBuilder()
+   *     .setInstance(instance.toString())
+   *     .setForceAttach(forceAttach)
+   *     .setAttachedDiskResource(attachedDiskResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.attachDiskInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + attachDiskInstanceOperationCallable() { + return stub.attachDiskInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -539,7 +619,7 @@ public final Operation attachDiskInstance(AttachDiskInstanceHttpRequest request) * .build(); * ApiFuture<Operation> future = instanceClient.attachDiskInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -559,21 +639,23 @@ public final Operation attachDiskInstance(AttachDiskInstanceHttpRequest request) *

    * try (InstanceClient instanceClient = InstanceClient.create()) {
    *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
-   *   Operation response = instanceClient.deleteInstance(instance);
+   *   instanceClient.deleteInstanceAsync(instance).get();
    * }
    * 
* * @param instance Name of the instance resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInstance(ProjectZoneInstanceName instance) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInstanceAsync( + ProjectZoneInstanceName instance) { DeleteInstanceHttpRequest request = DeleteInstanceHttpRequest.newBuilder() .setInstance(instance == null ? null : instance.toString()) .build(); - return deleteInstance(request); + return deleteInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -586,19 +668,20 @@ public final Operation deleteInstance(ProjectZoneInstanceName instance) { *

    * try (InstanceClient instanceClient = InstanceClient.create()) {
    *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
-   *   Operation response = instanceClient.deleteInstance(instance.toString());
+   *   instanceClient.deleteInstanceAsync(instance.toString()).get();
    * }
    * 
* * @param instance Name of the instance resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInstance(String instance) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInstanceAsync(String instance) { DeleteInstanceHttpRequest request = DeleteInstanceHttpRequest.newBuilder().setInstance(instance).build(); - return deleteInstance(request); + return deleteInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -614,16 +697,43 @@ public final Operation deleteInstance(String instance) { * DeleteInstanceHttpRequest request = DeleteInstanceHttpRequest.newBuilder() * .setInstance(instance.toString()) * .build(); - * Operation response = instanceClient.deleteInstance(request); + * instanceClient.deleteInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInstance(DeleteInstanceHttpRequest request) { - return deleteInstanceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInstanceAsync( + DeleteInstanceHttpRequest request) { + return deleteInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified Instance resource. For more information, see Stopping or Deleting an + * Instance. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+   *   DeleteInstanceHttpRequest request = DeleteInstanceHttpRequest.newBuilder()
+   *     .setInstance(instance.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.deleteInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteInstanceOperationCallable() { + return stub.deleteInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -641,7 +751,7 @@ public final Operation deleteInstance(DeleteInstanceHttpRequest request) { * .build(); * ApiFuture<Operation> future = instanceClient.deleteInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -661,7 +771,7 @@ public final UnaryCallable deleteInstanceC * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * String networkInterface = ""; * String accessConfig = ""; - * Operation response = instanceClient.deleteAccessConfigInstance(instance, networkInterface, accessConfig); + * instanceClient.deleteAccessConfigInstanceAsync(instance, networkInterface, accessConfig).get(); * } * * @@ -670,8 +780,9 @@ public final UnaryCallable deleteInstanceC * @param accessConfig The name of the access config to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteAccessConfigInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteAccessConfigInstanceAsync( ProjectZoneInstanceName instance, String networkInterface, String accessConfig) { DeleteAccessConfigInstanceHttpRequest request = @@ -680,7 +791,7 @@ public final Operation deleteAccessConfigInstance( .setNetworkInterface(networkInterface) .setAccessConfig(accessConfig) .build(); - return deleteAccessConfigInstance(request); + return deleteAccessConfigInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -694,7 +805,7 @@ public final Operation deleteAccessConfigInstance( * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * String networkInterface = ""; * String accessConfig = ""; - * Operation response = instanceClient.deleteAccessConfigInstance(instance.toString(), networkInterface, accessConfig); + * instanceClient.deleteAccessConfigInstanceAsync(instance.toString(), networkInterface, accessConfig).get(); * } * * @@ -703,8 +814,9 @@ public final Operation deleteAccessConfigInstance( * @param accessConfig The name of the access config to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteAccessConfigInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteAccessConfigInstanceAsync( String instance, String networkInterface, String accessConfig) { DeleteAccessConfigInstanceHttpRequest request = @@ -713,7 +825,7 @@ public final Operation deleteAccessConfigInstance( .setNetworkInterface(networkInterface) .setAccessConfig(accessConfig) .build(); - return deleteAccessConfigInstance(request); + return deleteAccessConfigInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -732,16 +844,46 @@ public final Operation deleteAccessConfigInstance( * .setNetworkInterface(networkInterface) * .setAccessConfig(accessConfig) * .build(); - * Operation response = instanceClient.deleteAccessConfigInstance(request); + * instanceClient.deleteAccessConfigInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteAccessConfigInstance(DeleteAccessConfigInstanceHttpRequest request) { - return deleteAccessConfigInstanceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteAccessConfigInstanceAsync( + DeleteAccessConfigInstanceHttpRequest request) { + return deleteAccessConfigInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes an access config from an instance's network interface. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+   *   String networkInterface = "";
+   *   String accessConfig = "";
+   *   DeleteAccessConfigInstanceHttpRequest request = DeleteAccessConfigInstanceHttpRequest.newBuilder()
+   *     .setInstance(instance.toString())
+   *     .setNetworkInterface(networkInterface)
+   *     .setAccessConfig(accessConfig)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.deleteAccessConfigInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteAccessConfigInstanceOperationCallable() { + return stub.deleteAccessConfigInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -762,7 +904,7 @@ public final Operation deleteAccessConfigInstance(DeleteAccessConfigInstanceHttp * .build(); * ApiFuture<Operation> future = instanceClient.deleteAccessConfigInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -782,7 +924,7 @@ public final Operation deleteAccessConfigInstance(DeleteAccessConfigInstanceHttp * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * String deviceName = ""; - * Operation response = instanceClient.detachDiskInstance(instance, deviceName); + * instanceClient.detachDiskInstanceAsync(instance, deviceName).get(); * } * * @@ -791,15 +933,17 @@ public final Operation deleteAccessConfigInstance(DeleteAccessConfigInstanceHttp * to view currently attached disks and device names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation detachDiskInstance(ProjectZoneInstanceName instance, String deviceName) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture detachDiskInstanceAsync( + ProjectZoneInstanceName instance, String deviceName) { DetachDiskInstanceHttpRequest request = DetachDiskInstanceHttpRequest.newBuilder() .setInstance(instance == null ? null : instance.toString()) .setDeviceName(deviceName) .build(); - return detachDiskInstance(request); + return detachDiskInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -812,7 +956,7 @@ public final Operation detachDiskInstance(ProjectZoneInstanceName instance, Stri * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * String deviceName = ""; - * Operation response = instanceClient.detachDiskInstance(instance.toString(), deviceName); + * instanceClient.detachDiskInstanceAsync(instance.toString(), deviceName).get(); * } * * @@ -821,15 +965,17 @@ public final Operation detachDiskInstance(ProjectZoneInstanceName instance, Stri * to view currently attached disks and device names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation detachDiskInstance(String instance, String deviceName) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture detachDiskInstanceAsync( + String instance, String deviceName) { DetachDiskInstanceHttpRequest request = DetachDiskInstanceHttpRequest.newBuilder() .setInstance(instance) .setDeviceName(deviceName) .build(); - return detachDiskInstance(request); + return detachDiskInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -846,16 +992,44 @@ public final Operation detachDiskInstance(String instance, String deviceName) { * .setInstance(instance.toString()) * .setDeviceName(deviceName) * .build(); - * Operation response = instanceClient.detachDiskInstance(request); + * instanceClient.detachDiskInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation detachDiskInstance(DetachDiskInstanceHttpRequest request) { - return detachDiskInstanceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture detachDiskInstanceAsync( + DetachDiskInstanceHttpRequest request) { + return detachDiskInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Detaches a disk from an instance. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+   *   String deviceName = "";
+   *   DetachDiskInstanceHttpRequest request = DetachDiskInstanceHttpRequest.newBuilder()
+   *     .setInstance(instance.toString())
+   *     .setDeviceName(deviceName)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.detachDiskInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + detachDiskInstanceOperationCallable() { + return stub.detachDiskInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -874,7 +1048,7 @@ public final Operation detachDiskInstance(DetachDiskInstanceHttpRequest request) * .build(); * ApiFuture<Operation> future = instanceClient.detachDiskInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1226,7 +1400,7 @@ public final SerialPortOutput getSerialPortOutputInstance( * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); * Instance instanceResource = Instance.newBuilder().build(); - * Operation response = instanceClient.insertInstance(zone, instanceResource); + * instanceClient.insertInstanceAsync(zone, instanceResource).get(); * } * * @@ -1235,15 +1409,17 @@ public final SerialPortOutput getSerialPortOutputInstance( * resource_for v1.instances ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertInstance(ProjectZoneName zone, Instance instanceResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertInstanceAsync( + ProjectZoneName zone, Instance instanceResource) { InsertInstanceHttpRequest request = InsertInstanceHttpRequest.newBuilder() .setZone(zone == null ? null : zone.toString()) .setInstanceResource(instanceResource) .build(); - return insertInstance(request); + return insertInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1256,7 +1432,7 @@ public final Operation insertInstance(ProjectZoneName zone, Instance instanceRes * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); * Instance instanceResource = Instance.newBuilder().build(); - * Operation response = instanceClient.insertInstance(zone.toString(), instanceResource); + * instanceClient.insertInstanceAsync(zone.toString(), instanceResource).get(); * } * * @@ -1265,15 +1441,17 @@ public final Operation insertInstance(ProjectZoneName zone, Instance instanceRes * resource_for v1.instances ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertInstance(String zone, Instance instanceResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertInstanceAsync( + String zone, Instance instanceResource) { InsertInstanceHttpRequest request = InsertInstanceHttpRequest.newBuilder() .setZone(zone) .setInstanceResource(instanceResource) .build(); - return insertInstance(request); + return insertInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1290,16 +1468,44 @@ public final Operation insertInstance(String zone, Instance instanceResource) { * .setZone(zone.toString()) * .setInstanceResource(instanceResource) * .build(); - * Operation response = instanceClient.insertInstance(request); + * instanceClient.insertInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertInstance(InsertInstanceHttpRequest request) { - return insertInstanceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertInstanceAsync( + InsertInstanceHttpRequest request) { + return insertInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates an instance resource in the specified project using the data included in the request. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+   *   Instance instanceResource = Instance.newBuilder().build();
+   *   InsertInstanceHttpRequest request = InsertInstanceHttpRequest.newBuilder()
+   *     .setZone(zone.toString())
+   *     .setInstanceResource(instanceResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.insertInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertInstanceOperationCallable() { + return stub.insertInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1318,7 +1524,7 @@ public final Operation insertInstance(InsertInstanceHttpRequest request) { * .build(); * ApiFuture<Operation> future = instanceClient.insertInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1618,21 +1824,23 @@ public final ListReferrersInstancesPagedResponse listReferrersInstances( *

    * try (InstanceClient instanceClient = InstanceClient.create()) {
    *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
-   *   Operation response = instanceClient.resetInstance(instance);
+   *   instanceClient.resetInstanceAsync(instance).get();
    * }
    * 
* * @param instance Name of the instance scoping this request. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation resetInstance(ProjectZoneInstanceName instance) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture resetInstanceAsync( + ProjectZoneInstanceName instance) { ResetInstanceHttpRequest request = ResetInstanceHttpRequest.newBuilder() .setInstance(instance == null ? null : instance.toString()) .build(); - return resetInstance(request); + return resetInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1645,19 +1853,20 @@ public final Operation resetInstance(ProjectZoneInstanceName instance) { *

    * try (InstanceClient instanceClient = InstanceClient.create()) {
    *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
-   *   Operation response = instanceClient.resetInstance(instance.toString());
+   *   instanceClient.resetInstanceAsync(instance.toString()).get();
    * }
    * 
* * @param instance Name of the instance scoping this request. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation resetInstance(String instance) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture resetInstanceAsync(String instance) { ResetInstanceHttpRequest request = ResetInstanceHttpRequest.newBuilder().setInstance(instance).build(); - return resetInstance(request); + return resetInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1673,16 +1882,43 @@ public final Operation resetInstance(String instance) { * ResetInstanceHttpRequest request = ResetInstanceHttpRequest.newBuilder() * .setInstance(instance.toString()) * .build(); - * Operation response = instanceClient.resetInstance(request); + * instanceClient.resetInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation resetInstance(ResetInstanceHttpRequest request) { - return resetInstanceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture resetInstanceAsync( + ResetInstanceHttpRequest request) { + return resetInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Performs a reset on the instance. This is a hard reset; the VM does not do a graceful shutdown. + * For more information, see Resetting an instance. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+   *   ResetInstanceHttpRequest request = ResetInstanceHttpRequest.newBuilder()
+   *     .setInstance(instance.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.resetInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + resetInstanceOperationCallable() { + return stub.resetInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1700,7 +1936,7 @@ public final Operation resetInstance(ResetInstanceHttpRequest request) { * .build(); * ApiFuture<Operation> future = instanceClient.resetInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1719,7 +1955,7 @@ public final UnaryCallable resetInstanceCal * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceResourceName resource = ProjectZoneInstanceResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]"); * Boolean deletionProtection = false; - * Operation response = instanceClient.setDeletionProtectionInstance(resource, deletionProtection); + * instanceClient.setDeletionProtectionInstanceAsync(resource, deletionProtection).get(); * } * * @@ -1727,8 +1963,9 @@ public final UnaryCallable resetInstanceCal * @param deletionProtection Whether the resource should be protected against deletion. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setDeletionProtectionInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setDeletionProtectionInstanceAsync( ProjectZoneInstanceResourceName resource, Boolean deletionProtection) { SetDeletionProtectionInstanceHttpRequest request = @@ -1736,7 +1973,7 @@ public final Operation setDeletionProtectionInstance( .setResource(resource == null ? null : resource.toString()) .setDeletionProtection(deletionProtection) .build(); - return setDeletionProtectionInstance(request); + return setDeletionProtectionInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1749,7 +1986,7 @@ public final Operation setDeletionProtectionInstance( * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceResourceName resource = ProjectZoneInstanceResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]"); * Boolean deletionProtection = false; - * Operation response = instanceClient.setDeletionProtectionInstance(resource.toString(), deletionProtection); + * instanceClient.setDeletionProtectionInstanceAsync(resource.toString(), deletionProtection).get(); * } * * @@ -1757,8 +1994,9 @@ public final Operation setDeletionProtectionInstance( * @param deletionProtection Whether the resource should be protected against deletion. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setDeletionProtectionInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setDeletionProtectionInstanceAsync( String resource, Boolean deletionProtection) { SetDeletionProtectionInstanceHttpRequest request = @@ -1766,7 +2004,7 @@ public final Operation setDeletionProtectionInstance( .setResource(resource) .setDeletionProtection(deletionProtection) .build(); - return setDeletionProtectionInstance(request); + return setDeletionProtectionInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1783,17 +2021,45 @@ public final Operation setDeletionProtectionInstance( * .setResource(resource.toString()) * .setDeletionProtection(deletionProtection) * .build(); - * Operation response = instanceClient.setDeletionProtectionInstance(request); + * instanceClient.setDeletionProtectionInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setDeletionProtectionInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setDeletionProtectionInstanceAsync( SetDeletionProtectionInstanceHttpRequest request) { - return setDeletionProtectionInstanceCallable().call(request); + return setDeletionProtectionInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets deletion protection on the instance. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneInstanceResourceName resource = ProjectZoneInstanceResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
+   *   Boolean deletionProtection = false;
+   *   SetDeletionProtectionInstanceHttpRequest request = SetDeletionProtectionInstanceHttpRequest.newBuilder()
+   *     .setResource(resource.toString())
+   *     .setDeletionProtection(deletionProtection)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.setDeletionProtectionInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + SetDeletionProtectionInstanceHttpRequest, EmptyMessage, EmptyMessage> + setDeletionProtectionInstanceOperationCallable() { + return stub.setDeletionProtectionInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1812,7 +2078,7 @@ public final Operation setDeletionProtectionInstance( * .build(); * ApiFuture<Operation> future = instanceClient.setDeletionProtectionInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1833,7 +2099,7 @@ public final Operation setDeletionProtectionInstance( * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * Boolean autoDelete = false; * String deviceName = ""; - * Operation response = instanceClient.setDiskAutoDeleteInstance(instance, autoDelete, deviceName); + * instanceClient.setDiskAutoDeleteInstanceAsync(instance, autoDelete, deviceName).get(); * } * * @@ -1843,8 +2109,9 @@ public final Operation setDeletionProtectionInstance( * to view currently attached disks and device names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setDiskAutoDeleteInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setDiskAutoDeleteInstanceAsync( ProjectZoneInstanceName instance, Boolean autoDelete, String deviceName) { SetDiskAutoDeleteInstanceHttpRequest request = @@ -1853,7 +2120,7 @@ public final Operation setDiskAutoDeleteInstance( .setAutoDelete(autoDelete) .setDeviceName(deviceName) .build(); - return setDiskAutoDeleteInstance(request); + return setDiskAutoDeleteInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1867,7 +2134,7 @@ public final Operation setDiskAutoDeleteInstance( * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * Boolean autoDelete = false; * String deviceName = ""; - * Operation response = instanceClient.setDiskAutoDeleteInstance(instance.toString(), autoDelete, deviceName); + * instanceClient.setDiskAutoDeleteInstanceAsync(instance.toString(), autoDelete, deviceName).get(); * } * * @@ -1877,8 +2144,9 @@ public final Operation setDiskAutoDeleteInstance( * to view currently attached disks and device names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setDiskAutoDeleteInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setDiskAutoDeleteInstanceAsync( String instance, Boolean autoDelete, String deviceName) { SetDiskAutoDeleteInstanceHttpRequest request = @@ -1887,7 +2155,7 @@ public final Operation setDiskAutoDeleteInstance( .setAutoDelete(autoDelete) .setDeviceName(deviceName) .build(); - return setDiskAutoDeleteInstance(request); + return setDiskAutoDeleteInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1906,16 +2174,46 @@ public final Operation setDiskAutoDeleteInstance( * .setAutoDelete(autoDelete) * .setDeviceName(deviceName) * .build(); - * Operation response = instanceClient.setDiskAutoDeleteInstance(request); + * instanceClient.setDiskAutoDeleteInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setDiskAutoDeleteInstance(SetDiskAutoDeleteInstanceHttpRequest request) { - return setDiskAutoDeleteInstanceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setDiskAutoDeleteInstanceAsync( + SetDiskAutoDeleteInstanceHttpRequest request) { + return setDiskAutoDeleteInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the auto-delete flag for a disk attached to an instance. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+   *   Boolean autoDelete = false;
+   *   String deviceName = "";
+   *   SetDiskAutoDeleteInstanceHttpRequest request = SetDiskAutoDeleteInstanceHttpRequest.newBuilder()
+   *     .setInstance(instance.toString())
+   *     .setAutoDelete(autoDelete)
+   *     .setDeviceName(deviceName)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.setDiskAutoDeleteInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + setDiskAutoDeleteInstanceOperationCallable() { + return stub.setDiskAutoDeleteInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1936,7 +2234,7 @@ public final Operation setDiskAutoDeleteInstance(SetDiskAutoDeleteInstanceHttpRe * .build(); * ApiFuture<Operation> future = instanceClient.setDiskAutoDeleteInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -2069,7 +2367,7 @@ public final Policy setIamPolicyInstance(SetIamPolicyInstanceHttpRequest request * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * InstancesSetLabelsRequest instancesSetLabelsRequestResource = InstancesSetLabelsRequest.newBuilder().build(); - * Operation response = instanceClient.setLabelsInstance(instance, instancesSetLabelsRequestResource); + * instanceClient.setLabelsInstanceAsync(instance, instancesSetLabelsRequestResource).get(); * } * * @@ -2077,8 +2375,9 @@ public final Policy setIamPolicyInstance(SetIamPolicyInstanceHttpRequest request * @param instancesSetLabelsRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setLabelsInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setLabelsInstanceAsync( ProjectZoneInstanceName instance, InstancesSetLabelsRequest instancesSetLabelsRequestResource) { @@ -2087,7 +2386,7 @@ public final Operation setLabelsInstance( .setInstance(instance == null ? null : instance.toString()) .setInstancesSetLabelsRequestResource(instancesSetLabelsRequestResource) .build(); - return setLabelsInstance(request); + return setLabelsInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2101,7 +2400,7 @@ public final Operation setLabelsInstance( * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * InstancesSetLabelsRequest instancesSetLabelsRequestResource = InstancesSetLabelsRequest.newBuilder().build(); - * Operation response = instanceClient.setLabelsInstance(instance.toString(), instancesSetLabelsRequestResource); + * instanceClient.setLabelsInstanceAsync(instance.toString(), instancesSetLabelsRequestResource).get(); * } * * @@ -2109,8 +2408,9 @@ public final Operation setLabelsInstance( * @param instancesSetLabelsRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setLabelsInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setLabelsInstanceAsync( String instance, InstancesSetLabelsRequest instancesSetLabelsRequestResource) { SetLabelsInstanceHttpRequest request = @@ -2118,7 +2418,7 @@ public final Operation setLabelsInstance( .setInstance(instance) .setInstancesSetLabelsRequestResource(instancesSetLabelsRequestResource) .build(); - return setLabelsInstance(request); + return setLabelsInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2136,16 +2436,45 @@ public final Operation setLabelsInstance( * .setInstance(instance.toString()) * .setInstancesSetLabelsRequestResource(instancesSetLabelsRequestResource) * .build(); - * Operation response = instanceClient.setLabelsInstance(request); + * instanceClient.setLabelsInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setLabelsInstance(SetLabelsInstanceHttpRequest request) { - return setLabelsInstanceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setLabelsInstanceAsync( + SetLabelsInstanceHttpRequest request) { + return setLabelsInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets labels on an instance. To learn more about labels, read the Labeling Resources + * documentation. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+   *   InstancesSetLabelsRequest instancesSetLabelsRequestResource = InstancesSetLabelsRequest.newBuilder().build();
+   *   SetLabelsInstanceHttpRequest request = SetLabelsInstanceHttpRequest.newBuilder()
+   *     .setInstance(instance.toString())
+   *     .setInstancesSetLabelsRequestResource(instancesSetLabelsRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.setLabelsInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + setLabelsInstanceOperationCallable() { + return stub.setLabelsInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2165,7 +2494,7 @@ public final Operation setLabelsInstance(SetLabelsInstanceHttpRequest request) { * .build(); * ApiFuture<Operation> future = instanceClient.setLabelsInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -2185,7 +2514,7 @@ public final UnaryCallable setLabelsIns * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * InstancesSetMachineResourcesRequest instancesSetMachineResourcesRequestResource = InstancesSetMachineResourcesRequest.newBuilder().build(); - * Operation response = instanceClient.setMachineResourcesInstance(instance, instancesSetMachineResourcesRequestResource); + * instanceClient.setMachineResourcesInstanceAsync(instance, instancesSetMachineResourcesRequestResource).get(); * } * * @@ -2193,8 +2522,9 @@ public final UnaryCallable setLabelsIns * @param instancesSetMachineResourcesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setMachineResourcesInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setMachineResourcesInstanceAsync( ProjectZoneInstanceName instance, InstancesSetMachineResourcesRequest instancesSetMachineResourcesRequestResource) { @@ -2204,7 +2534,7 @@ public final Operation setMachineResourcesInstance( .setInstancesSetMachineResourcesRequestResource( instancesSetMachineResourcesRequestResource) .build(); - return setMachineResourcesInstance(request); + return setMachineResourcesInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2218,7 +2548,7 @@ public final Operation setMachineResourcesInstance( * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * InstancesSetMachineResourcesRequest instancesSetMachineResourcesRequestResource = InstancesSetMachineResourcesRequest.newBuilder().build(); - * Operation response = instanceClient.setMachineResourcesInstance(instance.toString(), instancesSetMachineResourcesRequestResource); + * instanceClient.setMachineResourcesInstanceAsync(instance.toString(), instancesSetMachineResourcesRequestResource).get(); * } * * @@ -2226,8 +2556,9 @@ public final Operation setMachineResourcesInstance( * @param instancesSetMachineResourcesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setMachineResourcesInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setMachineResourcesInstanceAsync( String instance, InstancesSetMachineResourcesRequest instancesSetMachineResourcesRequestResource) { @@ -2237,7 +2568,7 @@ public final Operation setMachineResourcesInstance( .setInstancesSetMachineResourcesRequestResource( instancesSetMachineResourcesRequestResource) .build(); - return setMachineResourcesInstance(request); + return setMachineResourcesInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2255,17 +2586,18 @@ public final Operation setMachineResourcesInstance( * .setInstance(instance.toString()) * .setInstancesSetMachineResourcesRequestResource(instancesSetMachineResourcesRequestResource) * .build(); - * Operation response = instanceClient.setMachineResourcesInstance(request); + * instanceClient.setMachineResourcesInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setMachineResourcesInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setMachineResourcesInstanceAsync( SetMachineResourcesInstanceHttpRequest request) { - return setMachineResourcesInstanceCallable().call(request); + return setMachineResourcesInstanceOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2283,21 +2615,48 @@ public final Operation setMachineResourcesInstance( * .setInstance(instance.toString()) * .setInstancesSetMachineResourcesRequestResource(instancesSetMachineResourcesRequestResource) * .build(); - * ApiFuture<Operation> future = instanceClient.setMachineResourcesInstanceCallable().futureCall(request); + * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.setMachineResourcesInstanceOperationCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ - @BetaApi - public final UnaryCallable - setMachineResourcesInstanceCallable() { - return stub.setMachineResourcesInstanceCallable(); + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + setMachineResourcesInstanceOperationCallable() { + return stub.setMachineResourcesInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Changes the machine type for a stopped instance to the machine type specified in the request. + * Changes the number and/or type of accelerator for a stopped instance to the values specified in + * the request. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+   *   InstancesSetMachineResourcesRequest instancesSetMachineResourcesRequestResource = InstancesSetMachineResourcesRequest.newBuilder().build();
+   *   SetMachineResourcesInstanceHttpRequest request = SetMachineResourcesInstanceHttpRequest.newBuilder()
+   *     .setInstance(instance.toString())
+   *     .setInstancesSetMachineResourcesRequestResource(instancesSetMachineResourcesRequestResource)
+   *     .build();
+   *   ApiFuture<Operation> future = instanceClient.setMachineResourcesInstanceCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi + public final UnaryCallable + setMachineResourcesInstanceCallable() { + return stub.setMachineResourcesInstanceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Changes the machine type for a stopped instance to the machine type specified in the request. * *

Sample code: * @@ -2305,7 +2664,7 @@ public final Operation setMachineResourcesInstance( * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * InstancesSetMachineTypeRequest instancesSetMachineTypeRequestResource = InstancesSetMachineTypeRequest.newBuilder().build(); - * Operation response = instanceClient.setMachineTypeInstance(instance, instancesSetMachineTypeRequestResource); + * instanceClient.setMachineTypeInstanceAsync(instance, instancesSetMachineTypeRequestResource).get(); * } * * @@ -2313,8 +2672,9 @@ public final Operation setMachineResourcesInstance( * @param instancesSetMachineTypeRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setMachineTypeInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setMachineTypeInstanceAsync( ProjectZoneInstanceName instance, InstancesSetMachineTypeRequest instancesSetMachineTypeRequestResource) { @@ -2323,7 +2683,7 @@ public final Operation setMachineTypeInstance( .setInstance(instance == null ? null : instance.toString()) .setInstancesSetMachineTypeRequestResource(instancesSetMachineTypeRequestResource) .build(); - return setMachineTypeInstance(request); + return setMachineTypeInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2336,7 +2696,7 @@ public final Operation setMachineTypeInstance( * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * InstancesSetMachineTypeRequest instancesSetMachineTypeRequestResource = InstancesSetMachineTypeRequest.newBuilder().build(); - * Operation response = instanceClient.setMachineTypeInstance(instance.toString(), instancesSetMachineTypeRequestResource); + * instanceClient.setMachineTypeInstanceAsync(instance.toString(), instancesSetMachineTypeRequestResource).get(); * } * * @@ -2344,8 +2704,9 @@ public final Operation setMachineTypeInstance( * @param instancesSetMachineTypeRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setMachineTypeInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setMachineTypeInstanceAsync( String instance, InstancesSetMachineTypeRequest instancesSetMachineTypeRequestResource) { SetMachineTypeInstanceHttpRequest request = @@ -2353,7 +2714,7 @@ public final Operation setMachineTypeInstance( .setInstance(instance) .setInstancesSetMachineTypeRequestResource(instancesSetMachineTypeRequestResource) .build(); - return setMachineTypeInstance(request); + return setMachineTypeInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2370,16 +2731,44 @@ public final Operation setMachineTypeInstance( * .setInstance(instance.toString()) * .setInstancesSetMachineTypeRequestResource(instancesSetMachineTypeRequestResource) * .build(); - * Operation response = instanceClient.setMachineTypeInstance(request); + * instanceClient.setMachineTypeInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setMachineTypeInstance(SetMachineTypeInstanceHttpRequest request) { - return setMachineTypeInstanceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setMachineTypeInstanceAsync( + SetMachineTypeInstanceHttpRequest request) { + return setMachineTypeInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Changes the machine type for a stopped instance to the machine type specified in the request. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+   *   InstancesSetMachineTypeRequest instancesSetMachineTypeRequestResource = InstancesSetMachineTypeRequest.newBuilder().build();
+   *   SetMachineTypeInstanceHttpRequest request = SetMachineTypeInstanceHttpRequest.newBuilder()
+   *     .setInstance(instance.toString())
+   *     .setInstancesSetMachineTypeRequestResource(instancesSetMachineTypeRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.setMachineTypeInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + setMachineTypeInstanceOperationCallable() { + return stub.setMachineTypeInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2398,7 +2787,7 @@ public final Operation setMachineTypeInstance(SetMachineTypeInstanceHttpRequest * .build(); * ApiFuture<Operation> future = instanceClient.setMachineTypeInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -2418,7 +2807,7 @@ public final Operation setMachineTypeInstance(SetMachineTypeInstanceHttpRequest * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * Metadata metadataResource = Metadata.newBuilder().build(); - * Operation response = instanceClient.setMetadataInstance(instance, metadataResource); + * instanceClient.setMetadataInstanceAsync(instance, metadataResource).get(); * } * * @@ -2426,8 +2815,9 @@ public final Operation setMachineTypeInstance(SetMachineTypeInstanceHttpRequest * @param metadataResource A metadata key/value entry. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setMetadataInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setMetadataInstanceAsync( ProjectZoneInstanceName instance, Metadata metadataResource) { SetMetadataInstanceHttpRequest request = @@ -2435,7 +2825,7 @@ public final Operation setMetadataInstance( .setInstance(instance == null ? null : instance.toString()) .setMetadataResource(metadataResource) .build(); - return setMetadataInstance(request); + return setMetadataInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2448,7 +2838,7 @@ public final Operation setMetadataInstance( * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * Metadata metadataResource = Metadata.newBuilder().build(); - * Operation response = instanceClient.setMetadataInstance(instance.toString(), metadataResource); + * instanceClient.setMetadataInstanceAsync(instance.toString(), metadataResource).get(); * } * * @@ -2456,15 +2846,17 @@ public final Operation setMetadataInstance( * @param metadataResource A metadata key/value entry. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setMetadataInstance(String instance, Metadata metadataResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setMetadataInstanceAsync( + String instance, Metadata metadataResource) { SetMetadataInstanceHttpRequest request = SetMetadataInstanceHttpRequest.newBuilder() .setInstance(instance) .setMetadataResource(metadataResource) .build(); - return setMetadataInstance(request); + return setMetadataInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2481,16 +2873,44 @@ public final Operation setMetadataInstance(String instance, Metadata metadataRes * .setInstance(instance.toString()) * .setMetadataResource(metadataResource) * .build(); - * Operation response = instanceClient.setMetadataInstance(request); + * instanceClient.setMetadataInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setMetadataInstance(SetMetadataInstanceHttpRequest request) { - return setMetadataInstanceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setMetadataInstanceAsync( + SetMetadataInstanceHttpRequest request) { + return setMetadataInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets metadata for the specified instance to the data included in the request. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+   *   Metadata metadataResource = Metadata.newBuilder().build();
+   *   SetMetadataInstanceHttpRequest request = SetMetadataInstanceHttpRequest.newBuilder()
+   *     .setInstance(instance.toString())
+   *     .setMetadataResource(metadataResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.setMetadataInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + setMetadataInstanceOperationCallable() { + return stub.setMetadataInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2509,7 +2929,7 @@ public final Operation setMetadataInstance(SetMetadataInstanceHttpRequest reques * .build(); * ApiFuture<Operation> future = instanceClient.setMetadataInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -2530,7 +2950,7 @@ public final Operation setMetadataInstance(SetMetadataInstanceHttpRequest reques * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * InstancesSetMinCpuPlatformRequest instancesSetMinCpuPlatformRequestResource = InstancesSetMinCpuPlatformRequest.newBuilder().build(); - * Operation response = instanceClient.setMinCpuPlatformInstance(instance, instancesSetMinCpuPlatformRequestResource); + * instanceClient.setMinCpuPlatformInstanceAsync(instance, instancesSetMinCpuPlatformRequestResource).get(); * } * * @@ -2538,8 +2958,9 @@ public final Operation setMetadataInstance(SetMetadataInstanceHttpRequest reques * @param instancesSetMinCpuPlatformRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setMinCpuPlatformInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setMinCpuPlatformInstanceAsync( ProjectZoneInstanceName instance, InstancesSetMinCpuPlatformRequest instancesSetMinCpuPlatformRequestResource) { @@ -2548,7 +2969,7 @@ public final Operation setMinCpuPlatformInstance( .setInstance(instance == null ? null : instance.toString()) .setInstancesSetMinCpuPlatformRequestResource(instancesSetMinCpuPlatformRequestResource) .build(); - return setMinCpuPlatformInstance(request); + return setMinCpuPlatformInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2562,7 +2983,7 @@ public final Operation setMinCpuPlatformInstance( * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * InstancesSetMinCpuPlatformRequest instancesSetMinCpuPlatformRequestResource = InstancesSetMinCpuPlatformRequest.newBuilder().build(); - * Operation response = instanceClient.setMinCpuPlatformInstance(instance.toString(), instancesSetMinCpuPlatformRequestResource); + * instanceClient.setMinCpuPlatformInstanceAsync(instance.toString(), instancesSetMinCpuPlatformRequestResource).get(); * } * * @@ -2570,8 +2991,9 @@ public final Operation setMinCpuPlatformInstance( * @param instancesSetMinCpuPlatformRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setMinCpuPlatformInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setMinCpuPlatformInstanceAsync( String instance, InstancesSetMinCpuPlatformRequest instancesSetMinCpuPlatformRequestResource) { @@ -2580,7 +3002,7 @@ public final Operation setMinCpuPlatformInstance( .setInstance(instance) .setInstancesSetMinCpuPlatformRequestResource(instancesSetMinCpuPlatformRequestResource) .build(); - return setMinCpuPlatformInstance(request); + return setMinCpuPlatformInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2598,16 +3020,45 @@ public final Operation setMinCpuPlatformInstance( * .setInstance(instance.toString()) * .setInstancesSetMinCpuPlatformRequestResource(instancesSetMinCpuPlatformRequestResource) * .build(); - * Operation response = instanceClient.setMinCpuPlatformInstance(request); + * instanceClient.setMinCpuPlatformInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setMinCpuPlatformInstance(SetMinCpuPlatformInstanceHttpRequest request) { - return setMinCpuPlatformInstanceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setMinCpuPlatformInstanceAsync( + SetMinCpuPlatformInstanceHttpRequest request) { + return setMinCpuPlatformInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Changes the minimum CPU platform that this instance should use. This method can only be called + * on a stopped instance. For more information, read Specifying a Minimum CPU Platform. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+   *   InstancesSetMinCpuPlatformRequest instancesSetMinCpuPlatformRequestResource = InstancesSetMinCpuPlatformRequest.newBuilder().build();
+   *   SetMinCpuPlatformInstanceHttpRequest request = SetMinCpuPlatformInstanceHttpRequest.newBuilder()
+   *     .setInstance(instance.toString())
+   *     .setInstancesSetMinCpuPlatformRequestResource(instancesSetMinCpuPlatformRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.setMinCpuPlatformInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + setMinCpuPlatformInstanceOperationCallable() { + return stub.setMinCpuPlatformInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2627,7 +3078,7 @@ public final Operation setMinCpuPlatformInstance(SetMinCpuPlatformInstanceHttpRe * .build(); * ApiFuture<Operation> future = instanceClient.setMinCpuPlatformInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -2647,7 +3098,7 @@ public final Operation setMinCpuPlatformInstance(SetMinCpuPlatformInstanceHttpRe * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * Scheduling schedulingResource = Scheduling.newBuilder().build(); - * Operation response = instanceClient.setSchedulingInstance(instance, schedulingResource); + * instanceClient.setSchedulingInstanceAsync(instance, schedulingResource).get(); * } * * @@ -2655,8 +3106,9 @@ public final Operation setMinCpuPlatformInstance(SetMinCpuPlatformInstanceHttpRe * @param schedulingResource Sets the scheduling options for an Instance. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setSchedulingInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setSchedulingInstanceAsync( ProjectZoneInstanceName instance, Scheduling schedulingResource) { SetSchedulingInstanceHttpRequest request = @@ -2664,7 +3116,7 @@ public final Operation setSchedulingInstance( .setInstance(instance == null ? null : instance.toString()) .setSchedulingResource(schedulingResource) .build(); - return setSchedulingInstance(request); + return setSchedulingInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2677,7 +3129,7 @@ public final Operation setSchedulingInstance( * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * Scheduling schedulingResource = Scheduling.newBuilder().build(); - * Operation response = instanceClient.setSchedulingInstance(instance.toString(), schedulingResource); + * instanceClient.setSchedulingInstanceAsync(instance.toString(), schedulingResource).get(); * } * * @@ -2685,15 +3137,17 @@ public final Operation setSchedulingInstance( * @param schedulingResource Sets the scheduling options for an Instance. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setSchedulingInstance(String instance, Scheduling schedulingResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setSchedulingInstanceAsync( + String instance, Scheduling schedulingResource) { SetSchedulingInstanceHttpRequest request = SetSchedulingInstanceHttpRequest.newBuilder() .setInstance(instance) .setSchedulingResource(schedulingResource) .build(); - return setSchedulingInstance(request); + return setSchedulingInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2710,16 +3164,44 @@ public final Operation setSchedulingInstance(String instance, Scheduling schedul * .setInstance(instance.toString()) * .setSchedulingResource(schedulingResource) * .build(); - * Operation response = instanceClient.setSchedulingInstance(request); + * instanceClient.setSchedulingInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setSchedulingInstance(SetSchedulingInstanceHttpRequest request) { - return setSchedulingInstanceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setSchedulingInstanceAsync( + SetSchedulingInstanceHttpRequest request) { + return setSchedulingInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets an instance's scheduling options. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+   *   Scheduling schedulingResource = Scheduling.newBuilder().build();
+   *   SetSchedulingInstanceHttpRequest request = SetSchedulingInstanceHttpRequest.newBuilder()
+   *     .setInstance(instance.toString())
+   *     .setSchedulingResource(schedulingResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.setSchedulingInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + setSchedulingInstanceOperationCallable() { + return stub.setSchedulingInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2738,7 +3220,7 @@ public final Operation setSchedulingInstance(SetSchedulingInstanceHttpRequest re * .build(); * ApiFuture<Operation> future = instanceClient.setSchedulingInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -2759,7 +3241,7 @@ public final Operation setSchedulingInstance(SetSchedulingInstanceHttpRequest re * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * InstancesSetServiceAccountRequest instancesSetServiceAccountRequestResource = InstancesSetServiceAccountRequest.newBuilder().build(); - * Operation response = instanceClient.setServiceAccountInstance(instance, instancesSetServiceAccountRequestResource); + * instanceClient.setServiceAccountInstanceAsync(instance, instancesSetServiceAccountRequestResource).get(); * } * * @@ -2767,8 +3249,9 @@ public final Operation setSchedulingInstance(SetSchedulingInstanceHttpRequest re * @param instancesSetServiceAccountRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setServiceAccountInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setServiceAccountInstanceAsync( ProjectZoneInstanceName instance, InstancesSetServiceAccountRequest instancesSetServiceAccountRequestResource) { @@ -2777,7 +3260,7 @@ public final Operation setServiceAccountInstance( .setInstance(instance == null ? null : instance.toString()) .setInstancesSetServiceAccountRequestResource(instancesSetServiceAccountRequestResource) .build(); - return setServiceAccountInstance(request); + return setServiceAccountInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2791,7 +3274,7 @@ public final Operation setServiceAccountInstance( * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * InstancesSetServiceAccountRequest instancesSetServiceAccountRequestResource = InstancesSetServiceAccountRequest.newBuilder().build(); - * Operation response = instanceClient.setServiceAccountInstance(instance.toString(), instancesSetServiceAccountRequestResource); + * instanceClient.setServiceAccountInstanceAsync(instance.toString(), instancesSetServiceAccountRequestResource).get(); * } * * @@ -2799,8 +3282,9 @@ public final Operation setServiceAccountInstance( * @param instancesSetServiceAccountRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setServiceAccountInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setServiceAccountInstanceAsync( String instance, InstancesSetServiceAccountRequest instancesSetServiceAccountRequestResource) { @@ -2809,7 +3293,7 @@ public final Operation setServiceAccountInstance( .setInstance(instance) .setInstancesSetServiceAccountRequestResource(instancesSetServiceAccountRequestResource) .build(); - return setServiceAccountInstance(request); + return setServiceAccountInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2827,16 +3311,45 @@ public final Operation setServiceAccountInstance( * .setInstance(instance.toString()) * .setInstancesSetServiceAccountRequestResource(instancesSetServiceAccountRequestResource) * .build(); - * Operation response = instanceClient.setServiceAccountInstance(request); + * instanceClient.setServiceAccountInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setServiceAccountInstance(SetServiceAccountInstanceHttpRequest request) { - return setServiceAccountInstanceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setServiceAccountInstanceAsync( + SetServiceAccountInstanceHttpRequest request) { + return setServiceAccountInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the service account on the instance. For more information, read Changing the service + * account and access scopes for an instance. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+   *   InstancesSetServiceAccountRequest instancesSetServiceAccountRequestResource = InstancesSetServiceAccountRequest.newBuilder().build();
+   *   SetServiceAccountInstanceHttpRequest request = SetServiceAccountInstanceHttpRequest.newBuilder()
+   *     .setInstance(instance.toString())
+   *     .setInstancesSetServiceAccountRequestResource(instancesSetServiceAccountRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.setServiceAccountInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + setServiceAccountInstanceOperationCallable() { + return stub.setServiceAccountInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2856,7 +3369,7 @@ public final Operation setServiceAccountInstance(SetServiceAccountInstanceHttpRe * .build(); * ApiFuture<Operation> future = instanceClient.setServiceAccountInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -2876,7 +3389,7 @@ public final Operation setServiceAccountInstance(SetServiceAccountInstanceHttpRe * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * Tags tagsResource = Tags.newBuilder().build(); - * Operation response = instanceClient.setTagsInstance(instance, tagsResource); + * instanceClient.setTagsInstanceAsync(instance, tagsResource).get(); * } * * @@ -2884,15 +3397,17 @@ public final Operation setServiceAccountInstance(SetServiceAccountInstanceHttpRe * @param tagsResource A set of instance tags. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setTagsInstance(ProjectZoneInstanceName instance, Tags tagsResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setTagsInstanceAsync( + ProjectZoneInstanceName instance, Tags tagsResource) { SetTagsInstanceHttpRequest request = SetTagsInstanceHttpRequest.newBuilder() .setInstance(instance == null ? null : instance.toString()) .setTagsResource(tagsResource) .build(); - return setTagsInstance(request); + return setTagsInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2905,7 +3420,7 @@ public final Operation setTagsInstance(ProjectZoneInstanceName instance, Tags ta * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * Tags tagsResource = Tags.newBuilder().build(); - * Operation response = instanceClient.setTagsInstance(instance.toString(), tagsResource); + * instanceClient.setTagsInstanceAsync(instance.toString(), tagsResource).get(); * } * * @@ -2913,15 +3428,17 @@ public final Operation setTagsInstance(ProjectZoneInstanceName instance, Tags ta * @param tagsResource A set of instance tags. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setTagsInstance(String instance, Tags tagsResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setTagsInstanceAsync( + String instance, Tags tagsResource) { SetTagsInstanceHttpRequest request = SetTagsInstanceHttpRequest.newBuilder() .setInstance(instance) .setTagsResource(tagsResource) .build(); - return setTagsInstance(request); + return setTagsInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2938,16 +3455,44 @@ public final Operation setTagsInstance(String instance, Tags tagsResource) { * .setInstance(instance.toString()) * .setTagsResource(tagsResource) * .build(); - * Operation response = instanceClient.setTagsInstance(request); + * instanceClient.setTagsInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setTagsInstance(SetTagsInstanceHttpRequest request) { - return setTagsInstanceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setTagsInstanceAsync( + SetTagsInstanceHttpRequest request) { + return setTagsInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets network tags for the specified instance to the data included in the request. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+   *   Tags tagsResource = Tags.newBuilder().build();
+   *   SetTagsInstanceHttpRequest request = SetTagsInstanceHttpRequest.newBuilder()
+   *     .setInstance(instance.toString())
+   *     .setTagsResource(tagsResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.setTagsInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + setTagsInstanceOperationCallable() { + return stub.setTagsInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2966,7 +3511,7 @@ public final Operation setTagsInstance(SetTagsInstanceHttpRequest request) { * .build(); * ApiFuture<Operation> future = instanceClient.setTagsInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -2984,21 +3529,23 @@ public final UnaryCallable setTagsInstanc *

    * try (InstanceClient instanceClient = InstanceClient.create()) {
    *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
-   *   Operation response = instanceClient.simulateMaintenanceEventInstance(instance);
+   *   instanceClient.simulateMaintenanceEventInstanceAsync(instance).get();
    * }
    * 
* * @param instance Name of the instance scoping this request. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation simulateMaintenanceEventInstance(ProjectZoneInstanceName instance) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture simulateMaintenanceEventInstanceAsync( + ProjectZoneInstanceName instance) { SimulateMaintenanceEventInstanceHttpRequest request = SimulateMaintenanceEventInstanceHttpRequest.newBuilder() .setInstance(instance == null ? null : instance.toString()) .build(); - return simulateMaintenanceEventInstance(request); + return simulateMaintenanceEventInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -3010,19 +3557,21 @@ public final Operation simulateMaintenanceEventInstance(ProjectZoneInstanceName *

    * try (InstanceClient instanceClient = InstanceClient.create()) {
    *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
-   *   Operation response = instanceClient.simulateMaintenanceEventInstance(instance.toString());
+   *   instanceClient.simulateMaintenanceEventInstanceAsync(instance.toString()).get();
    * }
    * 
* * @param instance Name of the instance scoping this request. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation simulateMaintenanceEventInstance(String instance) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture simulateMaintenanceEventInstanceAsync( + String instance) { SimulateMaintenanceEventInstanceHttpRequest request = SimulateMaintenanceEventInstanceHttpRequest.newBuilder().setInstance(instance).build(); - return simulateMaintenanceEventInstance(request); + return simulateMaintenanceEventInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -3037,17 +3586,43 @@ public final Operation simulateMaintenanceEventInstance(String instance) { * SimulateMaintenanceEventInstanceHttpRequest request = SimulateMaintenanceEventInstanceHttpRequest.newBuilder() * .setInstance(instance.toString()) * .build(); - * Operation response = instanceClient.simulateMaintenanceEventInstance(request); + * instanceClient.simulateMaintenanceEventInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation simulateMaintenanceEventInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture simulateMaintenanceEventInstanceAsync( SimulateMaintenanceEventInstanceHttpRequest request) { - return simulateMaintenanceEventInstanceCallable().call(request); + return simulateMaintenanceEventInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Simulates a maintenance event on the instance. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+   *   SimulateMaintenanceEventInstanceHttpRequest request = SimulateMaintenanceEventInstanceHttpRequest.newBuilder()
+   *     .setInstance(instance.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.simulateMaintenanceEventInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + SimulateMaintenanceEventInstanceHttpRequest, EmptyMessage, EmptyMessage> + simulateMaintenanceEventInstanceOperationCallable() { + return stub.simulateMaintenanceEventInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -3064,7 +3639,7 @@ public final Operation simulateMaintenanceEventInstance( * .build(); * ApiFuture<Operation> future = instanceClient.simulateMaintenanceEventInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -3084,21 +3659,23 @@ public final Operation simulateMaintenanceEventInstance( *

    * try (InstanceClient instanceClient = InstanceClient.create()) {
    *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
-   *   Operation response = instanceClient.startInstance(instance);
+   *   instanceClient.startInstanceAsync(instance).get();
    * }
    * 
* * @param instance Name of the instance resource to start. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation startInstance(ProjectZoneInstanceName instance) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture startInstanceAsync( + ProjectZoneInstanceName instance) { StartInstanceHttpRequest request = StartInstanceHttpRequest.newBuilder() .setInstance(instance == null ? null : instance.toString()) .build(); - return startInstance(request); + return startInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -3111,19 +3688,20 @@ public final Operation startInstance(ProjectZoneInstanceName instance) { *

    * try (InstanceClient instanceClient = InstanceClient.create()) {
    *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
-   *   Operation response = instanceClient.startInstance(instance.toString());
+   *   instanceClient.startInstanceAsync(instance.toString()).get();
    * }
    * 
* * @param instance Name of the instance resource to start. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation startInstance(String instance) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture startInstanceAsync(String instance) { StartInstanceHttpRequest request = StartInstanceHttpRequest.newBuilder().setInstance(instance).build(); - return startInstance(request); + return startInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -3139,16 +3717,43 @@ public final Operation startInstance(String instance) { * StartInstanceHttpRequest request = StartInstanceHttpRequest.newBuilder() * .setInstance(instance.toString()) * .build(); - * Operation response = instanceClient.startInstance(request); + * instanceClient.startInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation startInstance(StartInstanceHttpRequest request) { - return startInstanceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture startInstanceAsync( + StartInstanceHttpRequest request) { + return startInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Starts an instance that was stopped using the instances().stop method. For more information, + * see Restart an instance. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+   *   StartInstanceHttpRequest request = StartInstanceHttpRequest.newBuilder()
+   *     .setInstance(instance.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.startInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + startInstanceOperationCallable() { + return stub.startInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -3166,7 +3771,7 @@ public final Operation startInstance(StartInstanceHttpRequest request) { * .build(); * ApiFuture<Operation> future = instanceClient.startInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -3186,7 +3791,7 @@ public final UnaryCallable startInstanceCal * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * InstancesStartWithEncryptionKeyRequest instancesStartWithEncryptionKeyRequestResource = InstancesStartWithEncryptionKeyRequest.newBuilder().build(); - * Operation response = instanceClient.startWithEncryptionKeyInstance(instance, instancesStartWithEncryptionKeyRequestResource); + * instanceClient.startWithEncryptionKeyInstanceAsync(instance, instancesStartWithEncryptionKeyRequestResource).get(); * } * * @@ -3194,8 +3799,9 @@ public final UnaryCallable startInstanceCal * @param instancesStartWithEncryptionKeyRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation startWithEncryptionKeyInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture startWithEncryptionKeyInstanceAsync( ProjectZoneInstanceName instance, InstancesStartWithEncryptionKeyRequest instancesStartWithEncryptionKeyRequestResource) { @@ -3205,7 +3811,7 @@ public final Operation startWithEncryptionKeyInstance( .setInstancesStartWithEncryptionKeyRequestResource( instancesStartWithEncryptionKeyRequestResource) .build(); - return startWithEncryptionKeyInstance(request); + return startWithEncryptionKeyInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -3219,7 +3825,7 @@ public final Operation startWithEncryptionKeyInstance( * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * InstancesStartWithEncryptionKeyRequest instancesStartWithEncryptionKeyRequestResource = InstancesStartWithEncryptionKeyRequest.newBuilder().build(); - * Operation response = instanceClient.startWithEncryptionKeyInstance(instance.toString(), instancesStartWithEncryptionKeyRequestResource); + * instanceClient.startWithEncryptionKeyInstanceAsync(instance.toString(), instancesStartWithEncryptionKeyRequestResource).get(); * } * * @@ -3227,8 +3833,9 @@ public final Operation startWithEncryptionKeyInstance( * @param instancesStartWithEncryptionKeyRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation startWithEncryptionKeyInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture startWithEncryptionKeyInstanceAsync( String instance, InstancesStartWithEncryptionKeyRequest instancesStartWithEncryptionKeyRequestResource) { @@ -3238,7 +3845,7 @@ public final Operation startWithEncryptionKeyInstance( .setInstancesStartWithEncryptionKeyRequestResource( instancesStartWithEncryptionKeyRequestResource) .build(); - return startWithEncryptionKeyInstance(request); + return startWithEncryptionKeyInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -3256,17 +3863,46 @@ public final Operation startWithEncryptionKeyInstance( * .setInstance(instance.toString()) * .setInstancesStartWithEncryptionKeyRequestResource(instancesStartWithEncryptionKeyRequestResource) * .build(); - * Operation response = instanceClient.startWithEncryptionKeyInstance(request); + * instanceClient.startWithEncryptionKeyInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation startWithEncryptionKeyInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture startWithEncryptionKeyInstanceAsync( StartWithEncryptionKeyInstanceHttpRequest request) { - return startWithEncryptionKeyInstanceCallable().call(request); + return startWithEncryptionKeyInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Starts an instance that was stopped using the instances().stop method. For more information, + * see Restart an instance. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+   *   InstancesStartWithEncryptionKeyRequest instancesStartWithEncryptionKeyRequestResource = InstancesStartWithEncryptionKeyRequest.newBuilder().build();
+   *   StartWithEncryptionKeyInstanceHttpRequest request = StartWithEncryptionKeyInstanceHttpRequest.newBuilder()
+   *     .setInstance(instance.toString())
+   *     .setInstancesStartWithEncryptionKeyRequestResource(instancesStartWithEncryptionKeyRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.startWithEncryptionKeyInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + StartWithEncryptionKeyInstanceHttpRequest, EmptyMessage, EmptyMessage> + startWithEncryptionKeyInstanceOperationCallable() { + return stub.startWithEncryptionKeyInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -3286,7 +3922,7 @@ public final Operation startWithEncryptionKeyInstance( * .build(); * ApiFuture<Operation> future = instanceClient.startWithEncryptionKeyInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -3308,21 +3944,23 @@ public final Operation startWithEncryptionKeyInstance( *

    * try (InstanceClient instanceClient = InstanceClient.create()) {
    *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
-   *   Operation response = instanceClient.stopInstance(instance);
+   *   instanceClient.stopInstanceAsync(instance).get();
    * }
    * 
* * @param instance Name of the instance resource to stop. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation stopInstance(ProjectZoneInstanceName instance) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture stopInstanceAsync( + ProjectZoneInstanceName instance) { StopInstanceHttpRequest request = StopInstanceHttpRequest.newBuilder() .setInstance(instance == null ? null : instance.toString()) .build(); - return stopInstance(request); + return stopInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -3337,19 +3975,20 @@ public final Operation stopInstance(ProjectZoneInstanceName instance) { *

    * try (InstanceClient instanceClient = InstanceClient.create()) {
    *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
-   *   Operation response = instanceClient.stopInstance(instance.toString());
+   *   instanceClient.stopInstanceAsync(instance.toString()).get();
    * }
    * 
* * @param instance Name of the instance resource to stop. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation stopInstance(String instance) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture stopInstanceAsync(String instance) { StopInstanceHttpRequest request = StopInstanceHttpRequest.newBuilder().setInstance(instance).build(); - return stopInstance(request); + return stopInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -3367,16 +4006,45 @@ public final Operation stopInstance(String instance) { * StopInstanceHttpRequest request = StopInstanceHttpRequest.newBuilder() * .setInstance(instance.toString()) * .build(); - * Operation response = instanceClient.stopInstance(request); + * instanceClient.stopInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation stopInstance(StopInstanceHttpRequest request) { - return stopInstanceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture stopInstanceAsync( + StopInstanceHttpRequest request) { + return stopInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a + * later time. Stopped instances do not incur VM usage charges while they are stopped. However, + * resources that the VM is using, such as persistent disks and static IP addresses, will continue + * to be charged until they are deleted. For more information, see Stopping an instance. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+   *   StopInstanceHttpRequest request = StopInstanceHttpRequest.newBuilder()
+   *     .setInstance(instance.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.stopInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + stopInstanceOperationCallable() { + return stub.stopInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -3396,7 +4064,7 @@ public final Operation stopInstance(StopInstanceHttpRequest request) { * .build(); * ApiFuture<Operation> future = instanceClient.stopInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -3532,7 +4200,7 @@ public final TestPermissionsResponse testIamPermissionsInstance( * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * String networkInterface = ""; * AccessConfig accessConfigResource = AccessConfig.newBuilder().build(); - * Operation response = instanceClient.updateAccessConfigInstance(instance, networkInterface, accessConfigResource); + * instanceClient.updateAccessConfigInstanceAsync(instance, networkInterface, accessConfigResource).get(); * } * * @@ -3542,8 +4210,9 @@ public final TestPermissionsResponse testIamPermissionsInstance( * interface. Only one access config per instance is supported. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateAccessConfigInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateAccessConfigInstanceAsync( ProjectZoneInstanceName instance, String networkInterface, AccessConfig accessConfigResource) { @@ -3554,7 +4223,7 @@ public final Operation updateAccessConfigInstance( .setNetworkInterface(networkInterface) .setAccessConfigResource(accessConfigResource) .build(); - return updateAccessConfigInstance(request); + return updateAccessConfigInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -3570,7 +4239,7 @@ public final Operation updateAccessConfigInstance( * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); * String networkInterface = ""; * AccessConfig accessConfigResource = AccessConfig.newBuilder().build(); - * Operation response = instanceClient.updateAccessConfigInstance(instance.toString(), networkInterface, accessConfigResource); + * instanceClient.updateAccessConfigInstanceAsync(instance.toString(), networkInterface, accessConfigResource).get(); * } * * @@ -3580,8 +4249,9 @@ public final Operation updateAccessConfigInstance( * interface. Only one access config per instance is supported. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateAccessConfigInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateAccessConfigInstanceAsync( String instance, String networkInterface, AccessConfig accessConfigResource) { UpdateAccessConfigInstanceHttpRequest request = @@ -3590,7 +4260,7 @@ public final Operation updateAccessConfigInstance( .setNetworkInterface(networkInterface) .setAccessConfigResource(accessConfigResource) .build(); - return updateAccessConfigInstance(request); + return updateAccessConfigInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -3611,16 +4281,48 @@ public final Operation updateAccessConfigInstance( * .setNetworkInterface(networkInterface) * .setAccessConfigResource(accessConfigResource) * .build(); - * Operation response = instanceClient.updateAccessConfigInstance(request); + * instanceClient.updateAccessConfigInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateAccessConfigInstance(UpdateAccessConfigInstanceHttpRequest request) { - return updateAccessConfigInstanceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateAccessConfigInstanceAsync( + UpdateAccessConfigInstanceHttpRequest request) { + return updateAccessConfigInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the specified access config from an instance's network interface with the data included + * in the request. This method supports PATCH semantics and uses the JSON merge patch format and + * processing rules. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+   *   String networkInterface = "";
+   *   AccessConfig accessConfigResource = AccessConfig.newBuilder().build();
+   *   UpdateAccessConfigInstanceHttpRequest request = UpdateAccessConfigInstanceHttpRequest.newBuilder()
+   *     .setInstance(instance.toString())
+   *     .setNetworkInterface(networkInterface)
+   *     .setAccessConfigResource(accessConfigResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.updateAccessConfigInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + updateAccessConfigInstanceOperationCallable() { + return stub.updateAccessConfigInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -3643,7 +4345,7 @@ public final Operation updateAccessConfigInstance(UpdateAccessConfigInstanceHttp * .build(); * ApiFuture<Operation> future = instanceClient.updateAccessConfigInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -3665,7 +4367,7 @@ public final Operation updateAccessConfigInstance(UpdateAccessConfigInstanceHttp * String networkInterface = ""; * NetworkInterface networkInterfaceResource = NetworkInterface.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = instanceClient.updateNetworkInterfaceInstance(instance, networkInterface, networkInterfaceResource, fieldMask); + * instanceClient.updateNetworkInterfaceInstanceAsync(instance, networkInterface, networkInterfaceResource, fieldMask).get(); * } * * @@ -3678,8 +4380,9 @@ public final Operation updateAccessConfigInstance(UpdateAccessConfigInstanceHttp * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateNetworkInterfaceInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateNetworkInterfaceInstanceAsync( ProjectZoneInstanceName instance, String networkInterface, NetworkInterface networkInterfaceResource, @@ -3692,7 +4395,7 @@ public final Operation updateNetworkInterfaceInstance( .setNetworkInterfaceResource(networkInterfaceResource) .addAllFieldMask(fieldMask) .build(); - return updateNetworkInterfaceInstance(request); + return updateNetworkInterfaceInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -3707,7 +4410,7 @@ public final Operation updateNetworkInterfaceInstance( * String networkInterface = ""; * NetworkInterface networkInterfaceResource = NetworkInterface.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = instanceClient.updateNetworkInterfaceInstance(instance.toString(), networkInterface, networkInterfaceResource, fieldMask); + * instanceClient.updateNetworkInterfaceInstanceAsync(instance.toString(), networkInterface, networkInterfaceResource, fieldMask).get(); * } * * @@ -3720,8 +4423,9 @@ public final Operation updateNetworkInterfaceInstance( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateNetworkInterfaceInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateNetworkInterfaceInstanceAsync( String instance, String networkInterface, NetworkInterface networkInterfaceResource, @@ -3734,7 +4438,7 @@ public final Operation updateNetworkInterfaceInstance( .setNetworkInterfaceResource(networkInterfaceResource) .addAllFieldMask(fieldMask) .build(); - return updateNetworkInterfaceInstance(request); + return updateNetworkInterfaceInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -3755,17 +4459,49 @@ public final Operation updateNetworkInterfaceInstance( * .setNetworkInterfaceResource(networkInterfaceResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = instanceClient.updateNetworkInterfaceInstance(request); + * instanceClient.updateNetworkInterfaceInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateNetworkInterfaceInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateNetworkInterfaceInstanceAsync( UpdateNetworkInterfaceInstanceHttpRequest request) { - return updateNetworkInterfaceInstanceCallable().call(request); + return updateNetworkInterfaceInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an instance's network interface. This method follows PATCH semantics. + * + *

Sample code: + * + *


+   * try (InstanceClient instanceClient = InstanceClient.create()) {
+   *   ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+   *   String networkInterface = "";
+   *   NetworkInterface networkInterfaceResource = NetworkInterface.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   UpdateNetworkInterfaceInstanceHttpRequest request = UpdateNetworkInterfaceInstanceHttpRequest.newBuilder()
+   *     .setInstance(instance.toString())
+   *     .setNetworkInterface(networkInterface)
+   *     .setNetworkInterfaceResource(networkInterfaceResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.updateNetworkInterfaceInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + UpdateNetworkInterfaceInstanceHttpRequest, EmptyMessage, EmptyMessage> + updateNetworkInterfaceInstanceOperationCallable() { + return stub.updateNetworkInterfaceInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -3788,7 +4524,7 @@ public final Operation updateNetworkInterfaceInstance( * .build(); * ApiFuture<Operation> future = instanceClient.updateNetworkInterfaceInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java index 11efff7ab9d4..75faca6d85ab 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java @@ -20,9 +20,12 @@ 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.EmptyMessage; +import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.InstanceGroupStub; @@ -43,8 +46,7 @@ * * try (InstanceGroupClient instanceGroupClient = InstanceGroupClient.create()) { * ProjectZoneInstanceGroupName instanceGroup = ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]"); - * InstanceGroupsAddInstancesRequest instanceGroupsAddInstancesRequestResource = InstanceGroupsAddInstancesRequest.newBuilder().build(); - * Operation response = instanceGroupClient.addInstancesInstanceGroup(instanceGroup, instanceGroupsAddInstancesRequestResource); + * InstanceGroup response = instanceGroupClient.getInstanceGroup(instanceGroup); * } * * @@ -104,6 +106,7 @@ public class InstanceGroupClient implements BackgroundResource { private final InstanceGroupSettings settings; private final InstanceGroupStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of InstanceGroupClient with default settings. */ public static final InstanceGroupClient create() throws IOException { @@ -136,12 +139,14 @@ public static final InstanceGroupClient create(InstanceGroupStub stub) { protected InstanceGroupClient(InstanceGroupSettings settings) throws IOException { this.settings = settings; this.stub = ((InstanceGroupStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected InstanceGroupClient(InstanceGroupStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final InstanceGroupSettings getSettings() { @@ -153,6 +158,16 @@ public InstanceGroupStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Adds a list of instances to the specified instance group. All of the instances in the instance @@ -164,7 +179,7 @@ public InstanceGroupStub getStub() { * try (InstanceGroupClient instanceGroupClient = InstanceGroupClient.create()) { * ProjectZoneInstanceGroupName instanceGroup = ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]"); * InstanceGroupsAddInstancesRequest instanceGroupsAddInstancesRequestResource = InstanceGroupsAddInstancesRequest.newBuilder().build(); - * Operation response = instanceGroupClient.addInstancesInstanceGroup(instanceGroup, instanceGroupsAddInstancesRequestResource); + * instanceGroupClient.addInstancesInstanceGroupAsync(instanceGroup, instanceGroupsAddInstancesRequestResource).get(); * } * * @@ -172,8 +187,9 @@ public InstanceGroupStub getStub() { * @param instanceGroupsAddInstancesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addInstancesInstanceGroup( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addInstancesInstanceGroupAsync( ProjectZoneInstanceGroupName instanceGroup, InstanceGroupsAddInstancesRequest instanceGroupsAddInstancesRequestResource) { @@ -182,7 +198,7 @@ public final Operation addInstancesInstanceGroup( .setInstanceGroup(instanceGroup == null ? null : instanceGroup.toString()) .setInstanceGroupsAddInstancesRequestResource(instanceGroupsAddInstancesRequestResource) .build(); - return addInstancesInstanceGroup(request); + return addInstancesInstanceGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -196,7 +212,7 @@ public final Operation addInstancesInstanceGroup( * try (InstanceGroupClient instanceGroupClient = InstanceGroupClient.create()) { * ProjectZoneInstanceGroupName instanceGroup = ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]"); * InstanceGroupsAddInstancesRequest instanceGroupsAddInstancesRequestResource = InstanceGroupsAddInstancesRequest.newBuilder().build(); - * Operation response = instanceGroupClient.addInstancesInstanceGroup(instanceGroup.toString(), instanceGroupsAddInstancesRequestResource); + * instanceGroupClient.addInstancesInstanceGroupAsync(instanceGroup.toString(), instanceGroupsAddInstancesRequestResource).get(); * } * * @@ -204,8 +220,9 @@ public final Operation addInstancesInstanceGroup( * @param instanceGroupsAddInstancesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addInstancesInstanceGroup( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addInstancesInstanceGroupAsync( String instanceGroup, InstanceGroupsAddInstancesRequest instanceGroupsAddInstancesRequestResource) { @@ -214,7 +231,7 @@ public final Operation addInstancesInstanceGroup( .setInstanceGroup(instanceGroup) .setInstanceGroupsAddInstancesRequestResource(instanceGroupsAddInstancesRequestResource) .build(); - return addInstancesInstanceGroup(request); + return addInstancesInstanceGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -232,16 +249,45 @@ public final Operation addInstancesInstanceGroup( * .setInstanceGroup(instanceGroup.toString()) * .setInstanceGroupsAddInstancesRequestResource(instanceGroupsAddInstancesRequestResource) * .build(); - * Operation response = instanceGroupClient.addInstancesInstanceGroup(request); + * instanceGroupClient.addInstancesInstanceGroupAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addInstancesInstanceGroup(AddInstancesInstanceGroupHttpRequest request) { - return addInstancesInstanceGroupCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addInstancesInstanceGroupAsync( + AddInstancesInstanceGroupHttpRequest request) { + return addInstancesInstanceGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Adds a list of instances to the specified instance group. All of the instances in the instance + * group must be in the same network/subnetwork. Read Adding instances for more information. + * + *

Sample code: + * + *


+   * try (InstanceGroupClient instanceGroupClient = InstanceGroupClient.create()) {
+   *   ProjectZoneInstanceGroupName instanceGroup = ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]");
+   *   InstanceGroupsAddInstancesRequest instanceGroupsAddInstancesRequestResource = InstanceGroupsAddInstancesRequest.newBuilder().build();
+   *   AddInstancesInstanceGroupHttpRequest request = AddInstancesInstanceGroupHttpRequest.newBuilder()
+   *     .setInstanceGroup(instanceGroup.toString())
+   *     .setInstanceGroupsAddInstancesRequestResource(instanceGroupsAddInstancesRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupClient.addInstancesInstanceGroupOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + addInstancesInstanceGroupOperationCallable() { + return stub.addInstancesInstanceGroupOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -261,7 +307,7 @@ public final Operation addInstancesInstanceGroup(AddInstancesInstanceGroupHttpRe * .build(); * ApiFuture<Operation> future = instanceGroupClient.addInstancesInstanceGroupCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -423,21 +469,23 @@ public final AggregatedListInstanceGroupsPagedResponse aggregatedListInstanceGro *

    * try (InstanceGroupClient instanceGroupClient = InstanceGroupClient.create()) {
    *   ProjectZoneInstanceGroupName instanceGroup = ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]");
-   *   Operation response = instanceGroupClient.deleteInstanceGroup(instanceGroup);
+   *   instanceGroupClient.deleteInstanceGroupAsync(instanceGroup).get();
    * }
    * 
* * @param instanceGroup The name of the instance group to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInstanceGroup(ProjectZoneInstanceGroupName instanceGroup) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInstanceGroupAsync( + ProjectZoneInstanceGroupName instanceGroup) { DeleteInstanceGroupHttpRequest request = DeleteInstanceGroupHttpRequest.newBuilder() .setInstanceGroup(instanceGroup == null ? null : instanceGroup.toString()) .build(); - return deleteInstanceGroup(request); + return deleteInstanceGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -451,19 +499,21 @@ public final Operation deleteInstanceGroup(ProjectZoneInstanceGroupName instance *

    * try (InstanceGroupClient instanceGroupClient = InstanceGroupClient.create()) {
    *   ProjectZoneInstanceGroupName instanceGroup = ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]");
-   *   Operation response = instanceGroupClient.deleteInstanceGroup(instanceGroup.toString());
+   *   instanceGroupClient.deleteInstanceGroupAsync(instanceGroup.toString()).get();
    * }
    * 
* * @param instanceGroup The name of the instance group to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInstanceGroup(String instanceGroup) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInstanceGroupAsync( + String instanceGroup) { DeleteInstanceGroupHttpRequest request = DeleteInstanceGroupHttpRequest.newBuilder().setInstanceGroup(instanceGroup).build(); - return deleteInstanceGroup(request); + return deleteInstanceGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -480,16 +530,44 @@ public final Operation deleteInstanceGroup(String instanceGroup) { * DeleteInstanceGroupHttpRequest request = DeleteInstanceGroupHttpRequest.newBuilder() * .setInstanceGroup(instanceGroup.toString()) * .build(); - * Operation response = instanceGroupClient.deleteInstanceGroup(request); + * instanceGroupClient.deleteInstanceGroupAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInstanceGroup(DeleteInstanceGroupHttpRequest request) { - return deleteInstanceGroupCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInstanceGroupAsync( + DeleteInstanceGroupHttpRequest request) { + return deleteInstanceGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified instance group. The instances in the group are not deleted. Note that + * instance group must not belong to a backend service. Read Deleting an instance group for more + * information. + * + *

Sample code: + * + *


+   * try (InstanceGroupClient instanceGroupClient = InstanceGroupClient.create()) {
+   *   ProjectZoneInstanceGroupName instanceGroup = ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]");
+   *   DeleteInstanceGroupHttpRequest request = DeleteInstanceGroupHttpRequest.newBuilder()
+   *     .setInstanceGroup(instanceGroup.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupClient.deleteInstanceGroupOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteInstanceGroupOperationCallable() { + return stub.deleteInstanceGroupOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -508,7 +586,7 @@ public final Operation deleteInstanceGroup(DeleteInstanceGroupHttpRequest reques * .build(); * ApiFuture<Operation> future = instanceGroupClient.deleteInstanceGroupCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -631,7 +709,7 @@ public final InstanceGroup getInstanceGroup(GetInstanceGroupHttpRequest request) * try (InstanceGroupClient instanceGroupClient = InstanceGroupClient.create()) { * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); * InstanceGroup instanceGroupResource = InstanceGroup.newBuilder().build(); - * Operation response = instanceGroupClient.insertInstanceGroup(zone, instanceGroupResource); + * instanceGroupClient.insertInstanceGroupAsync(zone, instanceGroupResource).get(); * } * * @@ -641,8 +719,9 @@ public final InstanceGroup getInstanceGroup(GetInstanceGroupHttpRequest request) * resource_for v1.regionInstanceGroups ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertInstanceGroup( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertInstanceGroupAsync( ProjectZoneName zone, InstanceGroup instanceGroupResource) { InsertInstanceGroupHttpRequest request = @@ -650,7 +729,7 @@ public final Operation insertInstanceGroup( .setZone(zone == null ? null : zone.toString()) .setInstanceGroupResource(instanceGroupResource) .build(); - return insertInstanceGroup(request); + return insertInstanceGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -664,7 +743,7 @@ public final Operation insertInstanceGroup( * try (InstanceGroupClient instanceGroupClient = InstanceGroupClient.create()) { * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); * InstanceGroup instanceGroupResource = InstanceGroup.newBuilder().build(); - * Operation response = instanceGroupClient.insertInstanceGroup(zone.toString(), instanceGroupResource); + * instanceGroupClient.insertInstanceGroupAsync(zone.toString(), instanceGroupResource).get(); * } * * @@ -674,15 +753,17 @@ public final Operation insertInstanceGroup( * resource_for v1.regionInstanceGroups ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertInstanceGroup(String zone, InstanceGroup instanceGroupResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertInstanceGroupAsync( + String zone, InstanceGroup instanceGroupResource) { InsertInstanceGroupHttpRequest request = InsertInstanceGroupHttpRequest.newBuilder() .setZone(zone) .setInstanceGroupResource(instanceGroupResource) .build(); - return insertInstanceGroup(request); + return insertInstanceGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -700,16 +781,45 @@ public final Operation insertInstanceGroup(String zone, InstanceGroup instanceGr * .setZone(zone.toString()) * .setInstanceGroupResource(instanceGroupResource) * .build(); - * Operation response = instanceGroupClient.insertInstanceGroup(request); + * instanceGroupClient.insertInstanceGroupAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertInstanceGroup(InsertInstanceGroupHttpRequest request) { - return insertInstanceGroupCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertInstanceGroupAsync( + InsertInstanceGroupHttpRequest request) { + return insertInstanceGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates an instance group in the specified project using the parameters that are included in + * the request. + * + *

Sample code: + * + *


+   * try (InstanceGroupClient instanceGroupClient = InstanceGroupClient.create()) {
+   *   ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+   *   InstanceGroup instanceGroupResource = InstanceGroup.newBuilder().build();
+   *   InsertInstanceGroupHttpRequest request = InsertInstanceGroupHttpRequest.newBuilder()
+   *     .setZone(zone.toString())
+   *     .setInstanceGroupResource(instanceGroupResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupClient.insertInstanceGroupOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertInstanceGroupOperationCallable() { + return stub.insertInstanceGroupOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -729,7 +839,7 @@ public final Operation insertInstanceGroup(InsertInstanceGroupHttpRequest reques * .build(); * ApiFuture<Operation> future = instanceGroupClient.insertInstanceGroupCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1053,7 +1163,7 @@ public final ListInstancesInstanceGroupsPagedResponse listInstancesInstanceGroup * try (InstanceGroupClient instanceGroupClient = InstanceGroupClient.create()) { * ProjectZoneInstanceGroupName instanceGroup = ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]"); * InstanceGroupsRemoveInstancesRequest instanceGroupsRemoveInstancesRequestResource = InstanceGroupsRemoveInstancesRequest.newBuilder().build(); - * Operation response = instanceGroupClient.removeInstancesInstanceGroup(instanceGroup, instanceGroupsRemoveInstancesRequestResource); + * instanceGroupClient.removeInstancesInstanceGroupAsync(instanceGroup, instanceGroupsRemoveInstancesRequestResource).get(); * } * * @@ -1062,8 +1172,9 @@ public final ListInstancesInstanceGroupsPagedResponse listInstancesInstanceGroup * @param instanceGroupsRemoveInstancesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation removeInstancesInstanceGroup( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture removeInstancesInstanceGroupAsync( ProjectZoneInstanceGroupName instanceGroup, InstanceGroupsRemoveInstancesRequest instanceGroupsRemoveInstancesRequestResource) { @@ -1073,7 +1184,7 @@ public final Operation removeInstancesInstanceGroup( .setInstanceGroupsRemoveInstancesRequestResource( instanceGroupsRemoveInstancesRequestResource) .build(); - return removeInstancesInstanceGroup(request); + return removeInstancesInstanceGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1091,7 +1202,7 @@ public final Operation removeInstancesInstanceGroup( * try (InstanceGroupClient instanceGroupClient = InstanceGroupClient.create()) { * ProjectZoneInstanceGroupName instanceGroup = ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]"); * InstanceGroupsRemoveInstancesRequest instanceGroupsRemoveInstancesRequestResource = InstanceGroupsRemoveInstancesRequest.newBuilder().build(); - * Operation response = instanceGroupClient.removeInstancesInstanceGroup(instanceGroup.toString(), instanceGroupsRemoveInstancesRequestResource); + * instanceGroupClient.removeInstancesInstanceGroupAsync(instanceGroup.toString(), instanceGroupsRemoveInstancesRequestResource).get(); * } * * @@ -1100,8 +1211,9 @@ public final Operation removeInstancesInstanceGroup( * @param instanceGroupsRemoveInstancesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation removeInstancesInstanceGroup( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture removeInstancesInstanceGroupAsync( String instanceGroup, InstanceGroupsRemoveInstancesRequest instanceGroupsRemoveInstancesRequestResource) { @@ -1111,7 +1223,7 @@ public final Operation removeInstancesInstanceGroup( .setInstanceGroupsRemoveInstancesRequestResource( instanceGroupsRemoveInstancesRequestResource) .build(); - return removeInstancesInstanceGroup(request); + return removeInstancesInstanceGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1133,17 +1245,50 @@ public final Operation removeInstancesInstanceGroup( * .setInstanceGroup(instanceGroup.toString()) * .setInstanceGroupsRemoveInstancesRequestResource(instanceGroupsRemoveInstancesRequestResource) * .build(); - * Operation response = instanceGroupClient.removeInstancesInstanceGroup(request); + * instanceGroupClient.removeInstancesInstanceGroupAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation removeInstancesInstanceGroup( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture removeInstancesInstanceGroupAsync( RemoveInstancesInstanceGroupHttpRequest request) { - return removeInstancesInstanceGroupCallable().call(request); + return removeInstancesInstanceGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Removes one or more instances from the specified instance group, but does not delete those + * instances. + * + *

If the group is part of a backend service that has enabled connection draining, it can take + * up to 60 seconds after the connection draining duration before the VM instance is removed or + * deleted. + * + *

Sample code: + * + *


+   * try (InstanceGroupClient instanceGroupClient = InstanceGroupClient.create()) {
+   *   ProjectZoneInstanceGroupName instanceGroup = ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]");
+   *   InstanceGroupsRemoveInstancesRequest instanceGroupsRemoveInstancesRequestResource = InstanceGroupsRemoveInstancesRequest.newBuilder().build();
+   *   RemoveInstancesInstanceGroupHttpRequest request = RemoveInstancesInstanceGroupHttpRequest.newBuilder()
+   *     .setInstanceGroup(instanceGroup.toString())
+   *     .setInstanceGroupsRemoveInstancesRequestResource(instanceGroupsRemoveInstancesRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupClient.removeInstancesInstanceGroupOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + RemoveInstancesInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + removeInstancesInstanceGroupOperationCallable() { + return stub.removeInstancesInstanceGroupOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1167,7 +1312,7 @@ public final Operation removeInstancesInstanceGroup( * .build(); * ApiFuture<Operation> future = instanceGroupClient.removeInstancesInstanceGroupCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1187,7 +1332,7 @@ public final Operation removeInstancesInstanceGroup( * try (InstanceGroupClient instanceGroupClient = InstanceGroupClient.create()) { * ProjectZoneInstanceGroupName instanceGroup = ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]"); * InstanceGroupsSetNamedPortsRequest instanceGroupsSetNamedPortsRequestResource = InstanceGroupsSetNamedPortsRequest.newBuilder().build(); - * Operation response = instanceGroupClient.setNamedPortsInstanceGroup(instanceGroup, instanceGroupsSetNamedPortsRequestResource); + * instanceGroupClient.setNamedPortsInstanceGroupAsync(instanceGroup, instanceGroupsSetNamedPortsRequestResource).get(); * } * * @@ -1195,8 +1340,9 @@ public final Operation removeInstancesInstanceGroup( * @param instanceGroupsSetNamedPortsRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setNamedPortsInstanceGroup( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setNamedPortsInstanceGroupAsync( ProjectZoneInstanceGroupName instanceGroup, InstanceGroupsSetNamedPortsRequest instanceGroupsSetNamedPortsRequestResource) { @@ -1206,7 +1352,7 @@ public final Operation setNamedPortsInstanceGroup( .setInstanceGroupsSetNamedPortsRequestResource( instanceGroupsSetNamedPortsRequestResource) .build(); - return setNamedPortsInstanceGroup(request); + return setNamedPortsInstanceGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1219,7 +1365,7 @@ public final Operation setNamedPortsInstanceGroup( * try (InstanceGroupClient instanceGroupClient = InstanceGroupClient.create()) { * ProjectZoneInstanceGroupName instanceGroup = ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]"); * InstanceGroupsSetNamedPortsRequest instanceGroupsSetNamedPortsRequestResource = InstanceGroupsSetNamedPortsRequest.newBuilder().build(); - * Operation response = instanceGroupClient.setNamedPortsInstanceGroup(instanceGroup.toString(), instanceGroupsSetNamedPortsRequestResource); + * instanceGroupClient.setNamedPortsInstanceGroupAsync(instanceGroup.toString(), instanceGroupsSetNamedPortsRequestResource).get(); * } * * @@ -1227,8 +1373,9 @@ public final Operation setNamedPortsInstanceGroup( * @param instanceGroupsSetNamedPortsRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setNamedPortsInstanceGroup( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setNamedPortsInstanceGroupAsync( String instanceGroup, InstanceGroupsSetNamedPortsRequest instanceGroupsSetNamedPortsRequestResource) { @@ -1238,7 +1385,7 @@ public final Operation setNamedPortsInstanceGroup( .setInstanceGroupsSetNamedPortsRequestResource( instanceGroupsSetNamedPortsRequestResource) .build(); - return setNamedPortsInstanceGroup(request); + return setNamedPortsInstanceGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1255,16 +1402,44 @@ public final Operation setNamedPortsInstanceGroup( * .setInstanceGroup(instanceGroup.toString()) * .setInstanceGroupsSetNamedPortsRequestResource(instanceGroupsSetNamedPortsRequestResource) * .build(); - * Operation response = instanceGroupClient.setNamedPortsInstanceGroup(request); + * instanceGroupClient.setNamedPortsInstanceGroupAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setNamedPortsInstanceGroup(SetNamedPortsInstanceGroupHttpRequest request) { - return setNamedPortsInstanceGroupCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setNamedPortsInstanceGroupAsync( + SetNamedPortsInstanceGroupHttpRequest request) { + return setNamedPortsInstanceGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the named ports for the specified instance group. + * + *

Sample code: + * + *


+   * try (InstanceGroupClient instanceGroupClient = InstanceGroupClient.create()) {
+   *   ProjectZoneInstanceGroupName instanceGroup = ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]");
+   *   InstanceGroupsSetNamedPortsRequest instanceGroupsSetNamedPortsRequestResource = InstanceGroupsSetNamedPortsRequest.newBuilder().build();
+   *   SetNamedPortsInstanceGroupHttpRequest request = SetNamedPortsInstanceGroupHttpRequest.newBuilder()
+   *     .setInstanceGroup(instanceGroup.toString())
+   *     .setInstanceGroupsSetNamedPortsRequestResource(instanceGroupsSetNamedPortsRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupClient.setNamedPortsInstanceGroupOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + setNamedPortsInstanceGroupOperationCallable() { + return stub.setNamedPortsInstanceGroupOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1283,7 +1458,7 @@ public final Operation setNamedPortsInstanceGroup(SetNamedPortsInstanceGroupHttp * .build(); * ApiFuture<Operation> future = instanceGroupClient.setNamedPortsInstanceGroupCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java index c6beb0d7ec7d..efa73535f16f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java @@ -20,9 +20,12 @@ 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.EmptyMessage; +import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.InstanceGroupManagerStub; @@ -43,8 +46,7 @@ * * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) { * ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); - * InstanceGroupManagersAbandonInstancesRequest instanceGroupManagersAbandonInstancesRequestResource = InstanceGroupManagersAbandonInstancesRequest.newBuilder().build(); - * Operation response = instanceGroupManagerClient.abandonInstancesInstanceGroupManager(instanceGroupManager, instanceGroupManagersAbandonInstancesRequestResource); + * InstanceGroupManager response = instanceGroupManagerClient.getInstanceGroupManager(instanceGroupManager); * } * * @@ -105,6 +107,7 @@ public class InstanceGroupManagerClient implements BackgroundResource { private final InstanceGroupManagerSettings settings; private final InstanceGroupManagerStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of InstanceGroupManagerClient with default settings. */ public static final InstanceGroupManagerClient create() throws IOException { @@ -137,12 +140,14 @@ public static final InstanceGroupManagerClient create(InstanceGroupManagerStub s protected InstanceGroupManagerClient(InstanceGroupManagerSettings settings) throws IOException { this.settings = settings; this.stub = ((InstanceGroupManagerStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected InstanceGroupManagerClient(InstanceGroupManagerStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final InstanceGroupManagerSettings getSettings() { @@ -154,6 +159,16 @@ public InstanceGroupManagerStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Flags the specified instances to be removed from the managed instance group. Abandoning an @@ -176,7 +191,7 @@ public InstanceGroupManagerStub getStub() { * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) { * ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); * InstanceGroupManagersAbandonInstancesRequest instanceGroupManagersAbandonInstancesRequestResource = InstanceGroupManagersAbandonInstancesRequest.newBuilder().build(); - * Operation response = instanceGroupManagerClient.abandonInstancesInstanceGroupManager(instanceGroupManager, instanceGroupManagersAbandonInstancesRequestResource); + * instanceGroupManagerClient.abandonInstancesInstanceGroupManagerAsync(instanceGroupManager, instanceGroupManagersAbandonInstancesRequestResource).get(); * } * * @@ -184,11 +199,13 @@ public InstanceGroupManagerStub getStub() { * @param instanceGroupManagersAbandonInstancesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation abandonInstancesInstanceGroupManager( - ProjectZoneInstanceGroupManagerName instanceGroupManager, - InstanceGroupManagersAbandonInstancesRequest - instanceGroupManagersAbandonInstancesRequestResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + abandonInstancesInstanceGroupManagerAsync( + ProjectZoneInstanceGroupManagerName instanceGroupManager, + InstanceGroupManagersAbandonInstancesRequest + instanceGroupManagersAbandonInstancesRequestResource) { AbandonInstancesInstanceGroupManagerHttpRequest request = AbandonInstancesInstanceGroupManagerHttpRequest.newBuilder() @@ -197,7 +214,7 @@ public final Operation abandonInstancesInstanceGroupManager( .setInstanceGroupManagersAbandonInstancesRequestResource( instanceGroupManagersAbandonInstancesRequestResource) .build(); - return abandonInstancesInstanceGroupManager(request); + return abandonInstancesInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -222,7 +239,7 @@ public final Operation abandonInstancesInstanceGroupManager( * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) { * ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); * InstanceGroupManagersAbandonInstancesRequest instanceGroupManagersAbandonInstancesRequestResource = InstanceGroupManagersAbandonInstancesRequest.newBuilder().build(); - * Operation response = instanceGroupManagerClient.abandonInstancesInstanceGroupManager(instanceGroupManager.toString(), instanceGroupManagersAbandonInstancesRequestResource); + * instanceGroupManagerClient.abandonInstancesInstanceGroupManagerAsync(instanceGroupManager.toString(), instanceGroupManagersAbandonInstancesRequestResource).get(); * } * * @@ -230,11 +247,13 @@ public final Operation abandonInstancesInstanceGroupManager( * @param instanceGroupManagersAbandonInstancesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation abandonInstancesInstanceGroupManager( - String instanceGroupManager, - InstanceGroupManagersAbandonInstancesRequest - instanceGroupManagersAbandonInstancesRequestResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + abandonInstancesInstanceGroupManagerAsync( + String instanceGroupManager, + InstanceGroupManagersAbandonInstancesRequest + instanceGroupManagersAbandonInstancesRequestResource) { AbandonInstancesInstanceGroupManagerHttpRequest request = AbandonInstancesInstanceGroupManagerHttpRequest.newBuilder() @@ -242,7 +261,7 @@ public final Operation abandonInstancesInstanceGroupManager( .setInstanceGroupManagersAbandonInstancesRequestResource( instanceGroupManagersAbandonInstancesRequestResource) .build(); - return abandonInstancesInstanceGroupManager(request); + return abandonInstancesInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -271,17 +290,58 @@ public final Operation abandonInstancesInstanceGroupManager( * .setInstanceGroupManager(instanceGroupManager.toString()) * .setInstanceGroupManagersAbandonInstancesRequestResource(instanceGroupManagersAbandonInstancesRequestResource) * .build(); - * Operation response = instanceGroupManagerClient.abandonInstancesInstanceGroupManager(request); + * instanceGroupManagerClient.abandonInstancesInstanceGroupManagerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation abandonInstancesInstanceGroupManager( - AbandonInstancesInstanceGroupManagerHttpRequest request) { - return abandonInstancesInstanceGroupManagerCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + abandonInstancesInstanceGroupManagerAsync( + AbandonInstancesInstanceGroupManagerHttpRequest request) { + return abandonInstancesInstanceGroupManagerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Flags the specified instances to be removed from the managed instance group. Abandoning an + * instance does not delete the instance, but it does remove the instance from any target pools + * that are applied by the managed instance group. This method reduces the targetSize of the + * managed instance group by the number of instances that you abandon. This operation is marked as + * DONE when the action is scheduled even if the instances have not yet been removed from the + * group. You must separately verify the status of the abandoning action with the + * listmanagedinstances method. + * + *

If the group is part of a backend service that has enabled connection draining, it can take + * up to 60 seconds after the connection draining duration has elapsed before the VM instance is + * removed or deleted. + * + *

You can specify a maximum of 1000 instances with this method per request. + * + *

Sample code: + * + *


+   * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+   *   ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
+   *   InstanceGroupManagersAbandonInstancesRequest instanceGroupManagersAbandonInstancesRequestResource = InstanceGroupManagersAbandonInstancesRequest.newBuilder().build();
+   *   AbandonInstancesInstanceGroupManagerHttpRequest request = AbandonInstancesInstanceGroupManagerHttpRequest.newBuilder()
+   *     .setInstanceGroupManager(instanceGroupManager.toString())
+   *     .setInstanceGroupManagersAbandonInstancesRequestResource(instanceGroupManagersAbandonInstancesRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupManagerClient.abandonInstancesInstanceGroupManagerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + abandonInstancesInstanceGroupManagerOperationCallable() { + return stub.abandonInstancesInstanceGroupManagerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -312,7 +372,7 @@ public final Operation abandonInstancesInstanceGroupManager( * .build(); * ApiFuture<Operation> future = instanceGroupManagerClient.abandonInstancesInstanceGroupManagerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -476,15 +536,16 @@ public final AggregatedListInstanceGroupManagersPagedResponse aggregatedListInst *

    * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
    *   ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
-   *   Operation response = instanceGroupManagerClient.deleteInstanceGroupManager(instanceGroupManager);
+   *   instanceGroupManagerClient.deleteInstanceGroupManagerAsync(instanceGroupManager).get();
    * }
    * 
* * @param instanceGroupManager The name of the managed instance group to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInstanceGroupManagerAsync( ProjectZoneInstanceGroupManagerName instanceGroupManager) { DeleteInstanceGroupManagerHttpRequest request = @@ -492,7 +553,7 @@ public final Operation deleteInstanceGroupManager( .setInstanceGroupManager( instanceGroupManager == null ? null : instanceGroupManager.toString()) .build(); - return deleteInstanceGroupManager(request); + return deleteInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -506,21 +567,23 @@ public final Operation deleteInstanceGroupManager( *

    * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
    *   ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
-   *   Operation response = instanceGroupManagerClient.deleteInstanceGroupManager(instanceGroupManager.toString());
+   *   instanceGroupManagerClient.deleteInstanceGroupManagerAsync(instanceGroupManager.toString()).get();
    * }
    * 
* * @param instanceGroupManager The name of the managed instance group to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInstanceGroupManager(String instanceGroupManager) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInstanceGroupManagerAsync( + String instanceGroupManager) { DeleteInstanceGroupManagerHttpRequest request = DeleteInstanceGroupManagerHttpRequest.newBuilder() .setInstanceGroupManager(instanceGroupManager) .build(); - return deleteInstanceGroupManager(request); + return deleteInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -537,16 +600,44 @@ public final Operation deleteInstanceGroupManager(String instanceGroupManager) { * DeleteInstanceGroupManagerHttpRequest request = DeleteInstanceGroupManagerHttpRequest.newBuilder() * .setInstanceGroupManager(instanceGroupManager.toString()) * .build(); - * Operation response = instanceGroupManagerClient.deleteInstanceGroupManager(request); + * instanceGroupManagerClient.deleteInstanceGroupManagerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInstanceGroupManager(DeleteInstanceGroupManagerHttpRequest request) { - return deleteInstanceGroupManagerCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInstanceGroupManagerAsync( + DeleteInstanceGroupManagerHttpRequest request) { + return deleteInstanceGroupManagerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified managed instance group and all of the instances in that group. Note that + * the instance group must not belong to a backend service. Read Deleting an instance group for + * more information. + * + *

Sample code: + * + *


+   * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+   *   ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
+   *   DeleteInstanceGroupManagerHttpRequest request = DeleteInstanceGroupManagerHttpRequest.newBuilder()
+   *     .setInstanceGroupManager(instanceGroupManager.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupManagerClient.deleteInstanceGroupManagerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteInstanceGroupManagerOperationCallable() { + return stub.deleteInstanceGroupManagerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -565,7 +656,7 @@ public final Operation deleteInstanceGroupManager(DeleteInstanceGroupManagerHttp * .build(); * ApiFuture<Operation> future = instanceGroupManagerClient.deleteInstanceGroupManagerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -596,7 +687,7 @@ public final Operation deleteInstanceGroupManager(DeleteInstanceGroupManagerHttp * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) { * ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); * InstanceGroupManagersDeleteInstancesRequest instanceGroupManagersDeleteInstancesRequestResource = InstanceGroupManagersDeleteInstancesRequest.newBuilder().build(); - * Operation response = instanceGroupManagerClient.deleteInstancesInstanceGroupManager(instanceGroupManager, instanceGroupManagersDeleteInstancesRequestResource); + * instanceGroupManagerClient.deleteInstancesInstanceGroupManagerAsync(instanceGroupManager, instanceGroupManagersDeleteInstancesRequestResource).get(); * } * * @@ -604,8 +695,9 @@ public final Operation deleteInstanceGroupManager(DeleteInstanceGroupManagerHttp * @param instanceGroupManagersDeleteInstancesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInstancesInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInstancesInstanceGroupManagerAsync( ProjectZoneInstanceGroupManagerName instanceGroupManager, InstanceGroupManagersDeleteInstancesRequest instanceGroupManagersDeleteInstancesRequestResource) { @@ -617,7 +709,7 @@ public final Operation deleteInstancesInstanceGroupManager( .setInstanceGroupManagersDeleteInstancesRequestResource( instanceGroupManagersDeleteInstancesRequestResource) .build(); - return deleteInstancesInstanceGroupManager(request); + return deleteInstancesInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -641,7 +733,7 @@ public final Operation deleteInstancesInstanceGroupManager( * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) { * ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); * InstanceGroupManagersDeleteInstancesRequest instanceGroupManagersDeleteInstancesRequestResource = InstanceGroupManagersDeleteInstancesRequest.newBuilder().build(); - * Operation response = instanceGroupManagerClient.deleteInstancesInstanceGroupManager(instanceGroupManager.toString(), instanceGroupManagersDeleteInstancesRequestResource); + * instanceGroupManagerClient.deleteInstancesInstanceGroupManagerAsync(instanceGroupManager.toString(), instanceGroupManagersDeleteInstancesRequestResource).get(); * } * * @@ -649,8 +741,9 @@ public final Operation deleteInstancesInstanceGroupManager( * @param instanceGroupManagersDeleteInstancesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInstancesInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInstancesInstanceGroupManagerAsync( String instanceGroupManager, InstanceGroupManagersDeleteInstancesRequest instanceGroupManagersDeleteInstancesRequestResource) { @@ -661,7 +754,7 @@ public final Operation deleteInstancesInstanceGroupManager( .setInstanceGroupManagersDeleteInstancesRequestResource( instanceGroupManagersDeleteInstancesRequestResource) .build(); - return deleteInstancesInstanceGroupManager(request); + return deleteInstancesInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -689,17 +782,56 @@ public final Operation deleteInstancesInstanceGroupManager( * .setInstanceGroupManager(instanceGroupManager.toString()) * .setInstanceGroupManagersDeleteInstancesRequestResource(instanceGroupManagersDeleteInstancesRequestResource) * .build(); - * Operation response = instanceGroupManagerClient.deleteInstancesInstanceGroupManager(request); + * instanceGroupManagerClient.deleteInstancesInstanceGroupManagerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInstancesInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInstancesInstanceGroupManagerAsync( DeleteInstancesInstanceGroupManagerHttpRequest request) { - return deleteInstancesInstanceGroupManagerCallable().call(request); + return deleteInstancesInstanceGroupManagerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Flags the specified instances in the managed instance group for immediate deletion. The + * instances are also removed from any target pools of which they were a member. This method + * reduces the targetSize of the managed instance group by the number of instances that you + * delete. This operation is marked as DONE when the action is scheduled even if the instances are + * still being deleted. You must separately verify the status of the deleting action with the + * listmanagedinstances method. + * + *

If the group is part of a backend service that has enabled connection draining, it can take + * up to 60 seconds after the connection draining duration has elapsed before the VM instance is + * removed or deleted. + * + *

You can specify a maximum of 1000 instances with this method per request. + * + *

Sample code: + * + *


+   * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+   *   ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
+   *   InstanceGroupManagersDeleteInstancesRequest instanceGroupManagersDeleteInstancesRequestResource = InstanceGroupManagersDeleteInstancesRequest.newBuilder().build();
+   *   DeleteInstancesInstanceGroupManagerHttpRequest request = DeleteInstancesInstanceGroupManagerHttpRequest.newBuilder()
+   *     .setInstanceGroupManager(instanceGroupManager.toString())
+   *     .setInstanceGroupManagersDeleteInstancesRequestResource(instanceGroupManagersDeleteInstancesRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupManagerClient.deleteInstancesInstanceGroupManagerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + deleteInstancesInstanceGroupManagerOperationCallable() { + return stub.deleteInstancesInstanceGroupManagerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -729,7 +861,7 @@ public final Operation deleteInstancesInstanceGroupManager( * .build(); * ApiFuture<Operation> future = instanceGroupManagerClient.deleteInstancesInstanceGroupManagerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -863,7 +995,7 @@ public final InstanceGroupManager getInstanceGroupManager( * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) { * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); * InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build(); - * Operation response = instanceGroupManagerClient.insertInstanceGroupManager(zone, instanceGroupManagerResource); + * instanceGroupManagerClient.insertInstanceGroupManagerAsync(zone, instanceGroupManagerResource).get(); * } * * @@ -874,8 +1006,9 @@ public final InstanceGroupManager getInstanceGroupManager( * v1.regionInstanceGroupManagers ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertInstanceGroupManagerAsync( ProjectZoneName zone, InstanceGroupManager instanceGroupManagerResource) { InsertInstanceGroupManagerHttpRequest request = @@ -883,7 +1016,7 @@ public final Operation insertInstanceGroupManager( .setZone(zone == null ? null : zone.toString()) .setInstanceGroupManagerResource(instanceGroupManagerResource) .build(); - return insertInstanceGroupManager(request); + return insertInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -903,7 +1036,7 @@ public final Operation insertInstanceGroupManager( * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) { * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); * InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build(); - * Operation response = instanceGroupManagerClient.insertInstanceGroupManager(zone.toString(), instanceGroupManagerResource); + * instanceGroupManagerClient.insertInstanceGroupManagerAsync(zone.toString(), instanceGroupManagerResource).get(); * } * * @@ -914,8 +1047,9 @@ public final Operation insertInstanceGroupManager( * v1.regionInstanceGroupManagers ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertInstanceGroupManagerAsync( String zone, InstanceGroupManager instanceGroupManagerResource) { InsertInstanceGroupManagerHttpRequest request = @@ -923,7 +1057,7 @@ public final Operation insertInstanceGroupManager( .setZone(zone) .setInstanceGroupManagerResource(instanceGroupManagerResource) .build(); - return insertInstanceGroupManager(request); + return insertInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -947,16 +1081,51 @@ public final Operation insertInstanceGroupManager( * .setZone(zone.toString()) * .setInstanceGroupManagerResource(instanceGroupManagerResource) * .build(); - * Operation response = instanceGroupManagerClient.insertInstanceGroupManager(request); + * instanceGroupManagerClient.insertInstanceGroupManagerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertInstanceGroupManager(InsertInstanceGroupManagerHttpRequest request) { - return insertInstanceGroupManagerCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertInstanceGroupManagerAsync( + InsertInstanceGroupManagerHttpRequest request) { + return insertInstanceGroupManagerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a managed instance group using the information that you specify in the request. After + * the group is created, instances in the group are created using the specified instance template. + * This operation is marked as DONE when the group is created even if the instances in the group + * have not yet been created. You must separately verify the status of the individual instances + * with the listmanagedinstances method. + * + *

A managed instance group can have up to 1000 VM instances per group. Please contact Cloud + * Support if you need an increase in this limit. + * + *

Sample code: + * + *


+   * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+   *   ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+   *   InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build();
+   *   InsertInstanceGroupManagerHttpRequest request = InsertInstanceGroupManagerHttpRequest.newBuilder()
+   *     .setZone(zone.toString())
+   *     .setInstanceGroupManagerResource(instanceGroupManagerResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupManagerClient.insertInstanceGroupManagerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertInstanceGroupManagerOperationCallable() { + return stub.insertInstanceGroupManagerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -982,7 +1151,7 @@ public final Operation insertInstanceGroupManager(InsertInstanceGroupManagerHttp * .build(); * ApiFuture<Operation> future = instanceGroupManagerClient.insertInstanceGroupManagerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1272,7 +1441,7 @@ public final ListInstanceGroupManagersPagedResponse listInstanceGroupManagers( * ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); * InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = instanceGroupManagerClient.patchInstanceGroupManager(instanceGroupManager, instanceGroupManagerResource, fieldMask); + * instanceGroupManagerClient.patchInstanceGroupManagerAsync(instanceGroupManager, instanceGroupManagerResource, fieldMask).get(); * } * * @@ -1287,8 +1456,9 @@ public final ListInstanceGroupManagersPagedResponse listInstanceGroupManagers( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchInstanceGroupManagerAsync( ProjectZoneInstanceGroupManagerName instanceGroupManager, InstanceGroupManager instanceGroupManagerResource, List fieldMask) { @@ -1300,7 +1470,7 @@ public final Operation patchInstanceGroupManager( .setInstanceGroupManagerResource(instanceGroupManagerResource) .addAllFieldMask(fieldMask) .build(); - return patchInstanceGroupManager(request); + return patchInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1318,7 +1488,7 @@ public final Operation patchInstanceGroupManager( * ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); * InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = instanceGroupManagerClient.patchInstanceGroupManager(instanceGroupManager.toString(), instanceGroupManagerResource, fieldMask); + * instanceGroupManagerClient.patchInstanceGroupManagerAsync(instanceGroupManager.toString(), instanceGroupManagerResource, fieldMask).get(); * } * * @@ -1333,8 +1503,9 @@ public final Operation patchInstanceGroupManager( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchInstanceGroupManagerAsync( String instanceGroupManager, InstanceGroupManager instanceGroupManagerResource, List fieldMask) { @@ -1345,7 +1516,7 @@ public final Operation patchInstanceGroupManager( .setInstanceGroupManagerResource(instanceGroupManagerResource) .addAllFieldMask(fieldMask) .build(); - return patchInstanceGroupManager(request); + return patchInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1368,16 +1539,50 @@ public final Operation patchInstanceGroupManager( * .setInstanceGroupManagerResource(instanceGroupManagerResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = instanceGroupManagerClient.patchInstanceGroupManager(request); + * instanceGroupManagerClient.patchInstanceGroupManagerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchInstanceGroupManager(PatchInstanceGroupManagerHttpRequest request) { - return patchInstanceGroupManagerCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchInstanceGroupManagerAsync( + PatchInstanceGroupManagerHttpRequest request) { + return patchInstanceGroupManagerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a managed instance group using the information that you specify in the request. This + * operation is marked as DONE when the group is patched even if the instances in the group are + * still in the process of being patched. You must separately verify the status of the individual + * instances with the listManagedInstances method. This method supports PATCH semantics and uses + * the JSON merge patch format and processing rules. + * + *

Sample code: + * + *


+   * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+   *   ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
+   *   InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   PatchInstanceGroupManagerHttpRequest request = PatchInstanceGroupManagerHttpRequest.newBuilder()
+   *     .setInstanceGroupManager(instanceGroupManager.toString())
+   *     .setInstanceGroupManagerResource(instanceGroupManagerResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupManagerClient.patchInstanceGroupManagerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + patchInstanceGroupManagerOperationCallable() { + return stub.patchInstanceGroupManagerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1402,7 +1607,7 @@ public final Operation patchInstanceGroupManager(PatchInstanceGroupManagerHttpRe * .build(); * ApiFuture<Operation> future = instanceGroupManagerClient.patchInstanceGroupManagerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1432,7 +1637,7 @@ public final Operation patchInstanceGroupManager(PatchInstanceGroupManagerHttpRe * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) { * ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); * InstanceGroupManagersRecreateInstancesRequest instanceGroupManagersRecreateInstancesRequestResource = InstanceGroupManagersRecreateInstancesRequest.newBuilder().build(); - * Operation response = instanceGroupManagerClient.recreateInstancesInstanceGroupManager(instanceGroupManager, instanceGroupManagersRecreateInstancesRequestResource); + * instanceGroupManagerClient.recreateInstancesInstanceGroupManagerAsync(instanceGroupManager, instanceGroupManagersRecreateInstancesRequestResource).get(); * } * * @@ -1440,11 +1645,13 @@ public final Operation patchInstanceGroupManager(PatchInstanceGroupManagerHttpRe * @param instanceGroupManagersRecreateInstancesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation recreateInstancesInstanceGroupManager( - ProjectZoneInstanceGroupManagerName instanceGroupManager, - InstanceGroupManagersRecreateInstancesRequest - instanceGroupManagersRecreateInstancesRequestResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + recreateInstancesInstanceGroupManagerAsync( + ProjectZoneInstanceGroupManagerName instanceGroupManager, + InstanceGroupManagersRecreateInstancesRequest + instanceGroupManagersRecreateInstancesRequestResource) { RecreateInstancesInstanceGroupManagerHttpRequest request = RecreateInstancesInstanceGroupManagerHttpRequest.newBuilder() @@ -1453,7 +1660,7 @@ public final Operation recreateInstancesInstanceGroupManager( .setInstanceGroupManagersRecreateInstancesRequestResource( instanceGroupManagersRecreateInstancesRequestResource) .build(); - return recreateInstancesInstanceGroupManager(request); + return recreateInstancesInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1476,7 +1683,7 @@ public final Operation recreateInstancesInstanceGroupManager( * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) { * ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); * InstanceGroupManagersRecreateInstancesRequest instanceGroupManagersRecreateInstancesRequestResource = InstanceGroupManagersRecreateInstancesRequest.newBuilder().build(); - * Operation response = instanceGroupManagerClient.recreateInstancesInstanceGroupManager(instanceGroupManager.toString(), instanceGroupManagersRecreateInstancesRequestResource); + * instanceGroupManagerClient.recreateInstancesInstanceGroupManagerAsync(instanceGroupManager.toString(), instanceGroupManagersRecreateInstancesRequestResource).get(); * } * * @@ -1484,11 +1691,13 @@ public final Operation recreateInstancesInstanceGroupManager( * @param instanceGroupManagersRecreateInstancesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation recreateInstancesInstanceGroupManager( - String instanceGroupManager, - InstanceGroupManagersRecreateInstancesRequest - instanceGroupManagersRecreateInstancesRequestResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + recreateInstancesInstanceGroupManagerAsync( + String instanceGroupManager, + InstanceGroupManagersRecreateInstancesRequest + instanceGroupManagersRecreateInstancesRequestResource) { RecreateInstancesInstanceGroupManagerHttpRequest request = RecreateInstancesInstanceGroupManagerHttpRequest.newBuilder() @@ -1496,7 +1705,7 @@ public final Operation recreateInstancesInstanceGroupManager( .setInstanceGroupManagersRecreateInstancesRequestResource( instanceGroupManagersRecreateInstancesRequestResource) .build(); - return recreateInstancesInstanceGroupManager(request); + return recreateInstancesInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1523,17 +1732,56 @@ public final Operation recreateInstancesInstanceGroupManager( * .setInstanceGroupManager(instanceGroupManager.toString()) * .setInstanceGroupManagersRecreateInstancesRequestResource(instanceGroupManagersRecreateInstancesRequestResource) * .build(); - * Operation response = instanceGroupManagerClient.recreateInstancesInstanceGroupManager(request); + * instanceGroupManagerClient.recreateInstancesInstanceGroupManagerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation recreateInstancesInstanceGroupManager( - RecreateInstancesInstanceGroupManagerHttpRequest request) { - return recreateInstancesInstanceGroupManagerCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + recreateInstancesInstanceGroupManagerAsync( + RecreateInstancesInstanceGroupManagerHttpRequest request) { + return recreateInstancesInstanceGroupManagerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Flags the specified instances in the managed instance group to be immediately recreated. The + * instances are deleted and recreated using the current instance template for the managed + * instance group. This operation is marked as DONE when the flag is set even if the instances + * have not yet been recreated. You must separately verify the status of the recreating action + * with the listmanagedinstances method. + * + *

If the group is part of a backend service that has enabled connection draining, it can take + * up to 60 seconds after the connection draining duration has elapsed before the VM instance is + * removed or deleted. + * + *

You can specify a maximum of 1000 instances with this method per request. + * + *

Sample code: + * + *


+   * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+   *   ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
+   *   InstanceGroupManagersRecreateInstancesRequest instanceGroupManagersRecreateInstancesRequestResource = InstanceGroupManagersRecreateInstancesRequest.newBuilder().build();
+   *   RecreateInstancesInstanceGroupManagerHttpRequest request = RecreateInstancesInstanceGroupManagerHttpRequest.newBuilder()
+   *     .setInstanceGroupManager(instanceGroupManager.toString())
+   *     .setInstanceGroupManagersRecreateInstancesRequestResource(instanceGroupManagersRecreateInstancesRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupManagerClient.recreateInstancesInstanceGroupManagerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + recreateInstancesInstanceGroupManagerOperationCallable() { + return stub.recreateInstancesInstanceGroupManagerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1562,7 +1810,7 @@ public final Operation recreateInstancesInstanceGroupManager( * .build(); * ApiFuture<Operation> future = instanceGroupManagerClient.recreateInstancesInstanceGroupManagerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1599,7 +1847,7 @@ public final Operation recreateInstancesInstanceGroupManager( * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) { * Integer size = 0; * ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); - * Operation response = instanceGroupManagerClient.resizeInstanceGroupManager(size, instanceGroupManager); + * instanceGroupManagerClient.resizeInstanceGroupManagerAsync(size, instanceGroupManager).get(); * } * * @@ -1609,8 +1857,9 @@ public final Operation recreateInstancesInstanceGroupManager( * @param instanceGroupManager The name of the managed instance group. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation resizeInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture resizeInstanceGroupManagerAsync( Integer size, ProjectZoneInstanceGroupManagerName instanceGroupManager) { ResizeInstanceGroupManagerHttpRequest request = @@ -1619,7 +1868,7 @@ public final Operation resizeInstanceGroupManager( .setInstanceGroupManager( instanceGroupManager == null ? null : instanceGroupManager.toString()) .build(); - return resizeInstanceGroupManager(request); + return resizeInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1649,7 +1898,7 @@ public final Operation resizeInstanceGroupManager( * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) { * Integer size = 0; * ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); - * Operation response = instanceGroupManagerClient.resizeInstanceGroupManager(size, instanceGroupManager.toString()); + * instanceGroupManagerClient.resizeInstanceGroupManagerAsync(size, instanceGroupManager.toString()).get(); * } * * @@ -1659,15 +1908,17 @@ public final Operation resizeInstanceGroupManager( * @param instanceGroupManager The name of the managed instance group. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation resizeInstanceGroupManager(Integer size, String instanceGroupManager) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture resizeInstanceGroupManagerAsync( + Integer size, String instanceGroupManager) { ResizeInstanceGroupManagerHttpRequest request = ResizeInstanceGroupManagerHttpRequest.newBuilder() .setSize(size) .setInstanceGroupManager(instanceGroupManager) .build(); - return resizeInstanceGroupManager(request); + return resizeInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1701,16 +1952,61 @@ public final Operation resizeInstanceGroupManager(Integer size, String instanceG * .setSize(size) * .setInstanceGroupManager(instanceGroupManager.toString()) * .build(); - * Operation response = instanceGroupManagerClient.resizeInstanceGroupManager(request); + * instanceGroupManagerClient.resizeInstanceGroupManagerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation resizeInstanceGroupManager(ResizeInstanceGroupManagerHttpRequest request) { - return resizeInstanceGroupManagerCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture resizeInstanceGroupManagerAsync( + ResizeInstanceGroupManagerHttpRequest request) { + return resizeInstanceGroupManagerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Resizes the managed instance group. If you increase the size, the group creates new instances + * using the current instance template. If you decrease the size, the group deletes instances. The + * resize operation is marked DONE when the resize actions are scheduled even if the group has not + * yet added or deleted any instances. You must separately verify the status of the creating or + * deleting actions with the listmanagedinstances method. + * + *

When resizing down, the instance group arbitrarily chooses the order in which VMs are + * deleted. The group takes into account some VM attributes when making the selection including: + * + *

+ The status of the VM instance. + The health of the VM instance. + The instance template + * version the VM is based on. + For regional managed instance groups, the location of the VM + * instance. + * + *

This list is subject to change. + * + *

If the group is part of a backend service that has enabled connection draining, it can take + * up to 60 seconds after the connection draining duration has elapsed before the VM instance is + * removed or deleted. + * + *

Sample code: + * + *


+   * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+   *   Integer size = 0;
+   *   ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
+   *   ResizeInstanceGroupManagerHttpRequest request = ResizeInstanceGroupManagerHttpRequest.newBuilder()
+   *     .setSize(size)
+   *     .setInstanceGroupManager(instanceGroupManager.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupManagerClient.resizeInstanceGroupManagerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + resizeInstanceGroupManagerOperationCallable() { + return stub.resizeInstanceGroupManagerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1746,7 +2042,7 @@ public final Operation resizeInstanceGroupManager(ResizeInstanceGroupManagerHttp * .build(); * ApiFuture<Operation> future = instanceGroupManagerClient.resizeInstanceGroupManagerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1767,7 +2063,7 @@ public final Operation resizeInstanceGroupManager(ResizeInstanceGroupManagerHttp * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) { * ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); * InstanceGroupManagersSetInstanceTemplateRequest instanceGroupManagersSetInstanceTemplateRequestResource = InstanceGroupManagersSetInstanceTemplateRequest.newBuilder().build(); - * Operation response = instanceGroupManagerClient.setInstanceTemplateInstanceGroupManager(instanceGroupManager, instanceGroupManagersSetInstanceTemplateRequestResource); + * instanceGroupManagerClient.setInstanceTemplateInstanceGroupManagerAsync(instanceGroupManager, instanceGroupManagersSetInstanceTemplateRequestResource).get(); * } * * @@ -1775,11 +2071,13 @@ public final Operation resizeInstanceGroupManager(ResizeInstanceGroupManagerHttp * @param instanceGroupManagersSetInstanceTemplateRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setInstanceTemplateInstanceGroupManager( - ProjectZoneInstanceGroupManagerName instanceGroupManager, - InstanceGroupManagersSetInstanceTemplateRequest - instanceGroupManagersSetInstanceTemplateRequestResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + setInstanceTemplateInstanceGroupManagerAsync( + ProjectZoneInstanceGroupManagerName instanceGroupManager, + InstanceGroupManagersSetInstanceTemplateRequest + instanceGroupManagersSetInstanceTemplateRequestResource) { SetInstanceTemplateInstanceGroupManagerHttpRequest request = SetInstanceTemplateInstanceGroupManagerHttpRequest.newBuilder() @@ -1788,7 +2086,7 @@ public final Operation setInstanceTemplateInstanceGroupManager( .setInstanceGroupManagersSetInstanceTemplateRequestResource( instanceGroupManagersSetInstanceTemplateRequestResource) .build(); - return setInstanceTemplateInstanceGroupManager(request); + return setInstanceTemplateInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1802,7 +2100,7 @@ public final Operation setInstanceTemplateInstanceGroupManager( * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) { * ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); * InstanceGroupManagersSetInstanceTemplateRequest instanceGroupManagersSetInstanceTemplateRequestResource = InstanceGroupManagersSetInstanceTemplateRequest.newBuilder().build(); - * Operation response = instanceGroupManagerClient.setInstanceTemplateInstanceGroupManager(instanceGroupManager.toString(), instanceGroupManagersSetInstanceTemplateRequestResource); + * instanceGroupManagerClient.setInstanceTemplateInstanceGroupManagerAsync(instanceGroupManager.toString(), instanceGroupManagersSetInstanceTemplateRequestResource).get(); * } * * @@ -1810,11 +2108,13 @@ public final Operation setInstanceTemplateInstanceGroupManager( * @param instanceGroupManagersSetInstanceTemplateRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setInstanceTemplateInstanceGroupManager( - String instanceGroupManager, - InstanceGroupManagersSetInstanceTemplateRequest - instanceGroupManagersSetInstanceTemplateRequestResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + setInstanceTemplateInstanceGroupManagerAsync( + String instanceGroupManager, + InstanceGroupManagersSetInstanceTemplateRequest + instanceGroupManagersSetInstanceTemplateRequestResource) { SetInstanceTemplateInstanceGroupManagerHttpRequest request = SetInstanceTemplateInstanceGroupManagerHttpRequest.newBuilder() @@ -1822,7 +2122,7 @@ public final Operation setInstanceTemplateInstanceGroupManager( .setInstanceGroupManagersSetInstanceTemplateRequestResource( instanceGroupManagersSetInstanceTemplateRequestResource) .build(); - return setInstanceTemplateInstanceGroupManager(request); + return setInstanceTemplateInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1840,17 +2140,47 @@ public final Operation setInstanceTemplateInstanceGroupManager( * .setInstanceGroupManager(instanceGroupManager.toString()) * .setInstanceGroupManagersSetInstanceTemplateRequestResource(instanceGroupManagersSetInstanceTemplateRequestResource) * .build(); - * Operation response = instanceGroupManagerClient.setInstanceTemplateInstanceGroupManager(request); + * instanceGroupManagerClient.setInstanceTemplateInstanceGroupManagerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setInstanceTemplateInstanceGroupManager( - SetInstanceTemplateInstanceGroupManagerHttpRequest request) { - return setInstanceTemplateInstanceGroupManagerCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + setInstanceTemplateInstanceGroupManagerAsync( + SetInstanceTemplateInstanceGroupManagerHttpRequest request) { + return setInstanceTemplateInstanceGroupManagerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Specifies the instance template to use when creating new instances in this group. The templates + * for existing instances in the group do not change unless you recreate them. + * + *

Sample code: + * + *


+   * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+   *   ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
+   *   InstanceGroupManagersSetInstanceTemplateRequest instanceGroupManagersSetInstanceTemplateRequestResource = InstanceGroupManagersSetInstanceTemplateRequest.newBuilder().build();
+   *   SetInstanceTemplateInstanceGroupManagerHttpRequest request = SetInstanceTemplateInstanceGroupManagerHttpRequest.newBuilder()
+   *     .setInstanceGroupManager(instanceGroupManager.toString())
+   *     .setInstanceGroupManagersSetInstanceTemplateRequestResource(instanceGroupManagersSetInstanceTemplateRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupManagerClient.setInstanceTemplateInstanceGroupManagerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + setInstanceTemplateInstanceGroupManagerOperationCallable() { + return stub.setInstanceTemplateInstanceGroupManagerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1870,7 +2200,7 @@ public final Operation setInstanceTemplateInstanceGroupManager( * .build(); * ApiFuture<Operation> future = instanceGroupManagerClient.setInstanceTemplateInstanceGroupManagerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1894,7 +2224,7 @@ public final Operation setInstanceTemplateInstanceGroupManager( * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) { * ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); * InstanceGroupManagersSetTargetPoolsRequest instanceGroupManagersSetTargetPoolsRequestResource = InstanceGroupManagersSetTargetPoolsRequest.newBuilder().build(); - * Operation response = instanceGroupManagerClient.setTargetPoolsInstanceGroupManager(instanceGroupManager, instanceGroupManagersSetTargetPoolsRequestResource); + * instanceGroupManagerClient.setTargetPoolsInstanceGroupManagerAsync(instanceGroupManager, instanceGroupManagersSetTargetPoolsRequestResource).get(); * } * * @@ -1902,8 +2232,9 @@ public final Operation setInstanceTemplateInstanceGroupManager( * @param instanceGroupManagersSetTargetPoolsRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setTargetPoolsInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setTargetPoolsInstanceGroupManagerAsync( ProjectZoneInstanceGroupManagerName instanceGroupManager, InstanceGroupManagersSetTargetPoolsRequest instanceGroupManagersSetTargetPoolsRequestResource) { @@ -1915,7 +2246,7 @@ public final Operation setTargetPoolsInstanceGroupManager( .setInstanceGroupManagersSetTargetPoolsRequestResource( instanceGroupManagersSetTargetPoolsRequestResource) .build(); - return setTargetPoolsInstanceGroupManager(request); + return setTargetPoolsInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1932,7 +2263,7 @@ public final Operation setTargetPoolsInstanceGroupManager( * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) { * ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); * InstanceGroupManagersSetTargetPoolsRequest instanceGroupManagersSetTargetPoolsRequestResource = InstanceGroupManagersSetTargetPoolsRequest.newBuilder().build(); - * Operation response = instanceGroupManagerClient.setTargetPoolsInstanceGroupManager(instanceGroupManager.toString(), instanceGroupManagersSetTargetPoolsRequestResource); + * instanceGroupManagerClient.setTargetPoolsInstanceGroupManagerAsync(instanceGroupManager.toString(), instanceGroupManagersSetTargetPoolsRequestResource).get(); * } * * @@ -1940,8 +2271,9 @@ public final Operation setTargetPoolsInstanceGroupManager( * @param instanceGroupManagersSetTargetPoolsRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setTargetPoolsInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setTargetPoolsInstanceGroupManagerAsync( String instanceGroupManager, InstanceGroupManagersSetTargetPoolsRequest instanceGroupManagersSetTargetPoolsRequestResource) { @@ -1952,7 +2284,7 @@ public final Operation setTargetPoolsInstanceGroupManager( .setInstanceGroupManagersSetTargetPoolsRequestResource( instanceGroupManagersSetTargetPoolsRequestResource) .build(); - return setTargetPoolsInstanceGroupManager(request); + return setTargetPoolsInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1973,17 +2305,49 @@ public final Operation setTargetPoolsInstanceGroupManager( * .setInstanceGroupManager(instanceGroupManager.toString()) * .setInstanceGroupManagersSetTargetPoolsRequestResource(instanceGroupManagersSetTargetPoolsRequestResource) * .build(); - * Operation response = instanceGroupManagerClient.setTargetPoolsInstanceGroupManager(request); + * instanceGroupManagerClient.setTargetPoolsInstanceGroupManagerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setTargetPoolsInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setTargetPoolsInstanceGroupManagerAsync( SetTargetPoolsInstanceGroupManagerHttpRequest request) { - return setTargetPoolsInstanceGroupManagerCallable().call(request); + return setTargetPoolsInstanceGroupManagerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Modifies the target pools to which all instances in this managed instance group are assigned. + * The target pools automatically apply to all of the instances in the managed instance group. + * This operation is marked DONE when you make the request even if the instances have not yet been + * added to their target pools. The change might take some time to apply to all of the instances + * in the group depending on the size of the group. + * + *

Sample code: + * + *


+   * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+   *   ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
+   *   InstanceGroupManagersSetTargetPoolsRequest instanceGroupManagersSetTargetPoolsRequestResource = InstanceGroupManagersSetTargetPoolsRequest.newBuilder().build();
+   *   SetTargetPoolsInstanceGroupManagerHttpRequest request = SetTargetPoolsInstanceGroupManagerHttpRequest.newBuilder()
+   *     .setInstanceGroupManager(instanceGroupManager.toString())
+   *     .setInstanceGroupManagersSetTargetPoolsRequestResource(instanceGroupManagersSetTargetPoolsRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupManagerClient.setTargetPoolsInstanceGroupManagerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + setTargetPoolsInstanceGroupManagerOperationCallable() { + return stub.setTargetPoolsInstanceGroupManagerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2006,7 +2370,7 @@ public final Operation setTargetPoolsInstanceGroupManager( * .build(); * ApiFuture<Operation> future = instanceGroupManagerClient.setTargetPoolsInstanceGroupManagerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerSettings.java index fc81da5b7b32..c373fb344adb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerSettings.java @@ -22,10 +22,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -49,13 +51,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of abandonInstancesInstanceGroupManager to 30 seconds: + * example, to set the total timeout of getInstanceGroupManager to 30 seconds: * *

  * 
  * InstanceGroupManagerSettings.Builder instanceGroupManagerSettingsBuilder =
  *     InstanceGroupManagerSettings.newBuilder();
- * instanceGroupManagerSettingsBuilder.abandonInstancesInstanceGroupManagerSettings().getRetrySettings().toBuilder()
+ * instanceGroupManagerSettingsBuilder.getInstanceGroupManagerSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * InstanceGroupManagerSettings instanceGroupManagerSettings = instanceGroupManagerSettingsBuilder.build();
  * 
@@ -73,6 +75,18 @@ public class InstanceGroupManagerSettings extends ClientSettings
+      abandonInstancesInstanceGroupManagerOperationSettings() {
+    return ((InstanceGroupManagerStubSettings) getStubSettings())
+        .abandonInstancesInstanceGroupManagerOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to aggregatedListInstanceGroupManagers. */
   public PagedCallSettings<
           AggregatedListInstanceGroupManagersHttpRequest,
@@ -90,6 +104,15 @@ public class InstanceGroupManagerSettings extends ClientSettings
+      deleteInstanceGroupManagerOperationSettings() {
+    return ((InstanceGroupManagerStubSettings) getStubSettings())
+        .deleteInstanceGroupManagerOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to deleteInstancesInstanceGroupManager. */
   public UnaryCallSettings
       deleteInstancesInstanceGroupManagerSettings() {
@@ -97,6 +120,16 @@ public class InstanceGroupManagerSettings extends ClientSettings
+      deleteInstancesInstanceGroupManagerOperationSettings() {
+    return ((InstanceGroupManagerStubSettings) getStubSettings())
+        .deleteInstancesInstanceGroupManagerOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getInstanceGroupManager. */
   public UnaryCallSettings
       getInstanceGroupManagerSettings() {
@@ -110,6 +143,15 @@ public class InstanceGroupManagerSettings extends ClientSettings
+      insertInstanceGroupManagerOperationSettings() {
+    return ((InstanceGroupManagerStubSettings) getStubSettings())
+        .insertInstanceGroupManagerOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listInstanceGroupManagers. */
   public PagedCallSettings<
           ListInstanceGroupManagersHttpRequest,
@@ -139,6 +181,15 @@ public class InstanceGroupManagerSettings extends ClientSettings
+      patchInstanceGroupManagerOperationSettings() {
+    return ((InstanceGroupManagerStubSettings) getStubSettings())
+        .patchInstanceGroupManagerOperationSettings();
+  }
+
   /**
    * Returns the object with the settings used for calls to recreateInstancesInstanceGroupManager.
    */
@@ -148,6 +199,18 @@ public class InstanceGroupManagerSettings extends ClientSettings
+      recreateInstancesInstanceGroupManagerOperationSettings() {
+    return ((InstanceGroupManagerStubSettings) getStubSettings())
+        .recreateInstancesInstanceGroupManagerOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to resizeInstanceGroupManager. */
   public UnaryCallSettings
       resizeInstanceGroupManagerSettings() {
@@ -155,6 +218,15 @@ public class InstanceGroupManagerSettings extends ClientSettings
+      resizeInstanceGroupManagerOperationSettings() {
+    return ((InstanceGroupManagerStubSettings) getStubSettings())
+        .resizeInstanceGroupManagerOperationSettings();
+  }
+
   /**
    * Returns the object with the settings used for calls to setInstanceTemplateInstanceGroupManager.
    */
@@ -164,6 +236,18 @@ public class InstanceGroupManagerSettings extends ClientSettings
+      setInstanceTemplateInstanceGroupManagerOperationSettings() {
+    return ((InstanceGroupManagerStubSettings) getStubSettings())
+        .setInstanceTemplateInstanceGroupManagerOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setTargetPoolsInstanceGroupManager. */
   public UnaryCallSettings
       setTargetPoolsInstanceGroupManagerSettings() {
@@ -171,6 +255,16 @@ public class InstanceGroupManagerSettings extends ClientSettings
+      setTargetPoolsInstanceGroupManagerOperationSettings() {
+    return ((InstanceGroupManagerStubSettings) getStubSettings())
+        .setTargetPoolsInstanceGroupManagerOperationSettings();
+  }
+
   public static final InstanceGroupManagerSettings create(InstanceGroupManagerStubSettings stub)
       throws IOException {
     return new InstanceGroupManagerSettings.Builder(stub.toBuilder()).build();
@@ -282,6 +376,17 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().abandonInstancesInstanceGroupManagerSettings();
     }
 
+    /**
+     * Returns the builder for the settings used for calls to abandonInstancesInstanceGroupManager.
+     */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        abandonInstancesInstanceGroupManagerOperationSettings() {
+      return getStubSettingsBuilder().abandonInstancesInstanceGroupManagerOperationSettings();
+    }
+
     /**
      * Returns the builder for the settings used for calls to aggregatedListInstanceGroupManagers.
      */
@@ -299,6 +404,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteInstanceGroupManagerSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteInstanceGroupManager. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        deleteInstanceGroupManagerOperationSettings() {
+      return getStubSettingsBuilder().deleteInstanceGroupManagerOperationSettings();
+    }
+
     /**
      * Returns the builder for the settings used for calls to deleteInstancesInstanceGroupManager.
      */
@@ -307,6 +421,17 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteInstancesInstanceGroupManagerSettings();
     }
 
+    /**
+     * Returns the builder for the settings used for calls to deleteInstancesInstanceGroupManager.
+     */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        deleteInstancesInstanceGroupManagerOperationSettings() {
+      return getStubSettingsBuilder().deleteInstancesInstanceGroupManagerOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getInstanceGroupManager. */
     public UnaryCallSettings.Builder
         getInstanceGroupManagerSettings() {
@@ -319,6 +444,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertInstanceGroupManagerSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertInstanceGroupManager. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        insertInstanceGroupManagerOperationSettings() {
+      return getStubSettingsBuilder().insertInstanceGroupManagerOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listInstanceGroupManagers. */
     public PagedCallSettings.Builder<
             ListInstanceGroupManagersHttpRequest,
@@ -345,6 +479,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().patchInstanceGroupManagerSettings();
     }
 
+    /** Returns the builder for the settings used for calls to patchInstanceGroupManager. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            PatchInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        patchInstanceGroupManagerOperationSettings() {
+      return getStubSettingsBuilder().patchInstanceGroupManagerOperationSettings();
+    }
+
     /**
      * Returns the builder for the settings used for calls to recreateInstancesInstanceGroupManager.
      */
@@ -353,12 +496,32 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().recreateInstancesInstanceGroupManagerSettings();
     }
 
+    /**
+     * Returns the builder for the settings used for calls to recreateInstancesInstanceGroupManager.
+     */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        recreateInstancesInstanceGroupManagerOperationSettings() {
+      return getStubSettingsBuilder().recreateInstancesInstanceGroupManagerOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to resizeInstanceGroupManager. */
     public UnaryCallSettings.Builder
         resizeInstanceGroupManagerSettings() {
       return getStubSettingsBuilder().resizeInstanceGroupManagerSettings();
     }
 
+    /** Returns the builder for the settings used for calls to resizeInstanceGroupManager. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            ResizeInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        resizeInstanceGroupManagerOperationSettings() {
+      return getStubSettingsBuilder().resizeInstanceGroupManagerOperationSettings();
+    }
+
     /**
      * Returns the builder for the settings used for calls to
      * setInstanceTemplateInstanceGroupManager.
@@ -368,6 +531,18 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().setInstanceTemplateInstanceGroupManagerSettings();
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * setInstanceTemplateInstanceGroupManager.
+     */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        setInstanceTemplateInstanceGroupManagerOperationSettings() {
+      return getStubSettingsBuilder().setInstanceTemplateInstanceGroupManagerOperationSettings();
+    }
+
     /**
      * Returns the builder for the settings used for calls to setTargetPoolsInstanceGroupManager.
      */
@@ -376,6 +551,17 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().setTargetPoolsInstanceGroupManagerSettings();
     }
 
+    /**
+     * Returns the builder for the settings used for calls to setTargetPoolsInstanceGroupManager.
+     */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        setTargetPoolsInstanceGroupManagerOperationSettings() {
+      return getStubSettingsBuilder().setTargetPoolsInstanceGroupManagerOperationSettings();
+    }
+
     @Override
     public InstanceGroupManagerSettings build() throws IOException {
       return new InstanceGroupManagerSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupSettings.java
index 246647502bd6..38969ed3a1a0 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupSettings.java
@@ -23,10 +23,12 @@
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
 import com.google.api.gax.rpc.ClientSettings;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.TransportChannelProvider;
 import com.google.api.gax.rpc.UnaryCallSettings;
@@ -50,13 +52,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of addInstancesInstanceGroup to 30 seconds: + * example, to set the total timeout of getInstanceGroup to 30 seconds: * *

  * 
  * InstanceGroupSettings.Builder instanceGroupSettingsBuilder =
  *     InstanceGroupSettings.newBuilder();
- * instanceGroupSettingsBuilder.addInstancesInstanceGroupSettings().getRetrySettings().toBuilder()
+ * instanceGroupSettingsBuilder.getInstanceGroupSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * InstanceGroupSettings instanceGroupSettings = instanceGroupSettingsBuilder.build();
  * 
@@ -71,6 +73,15 @@ public class InstanceGroupSettings extends ClientSettings
     return ((InstanceGroupStubSettings) getStubSettings()).addInstancesInstanceGroupSettings();
   }
 
+  /** Returns the object with the settings used for calls to addInstancesInstanceGroup. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      addInstancesInstanceGroupOperationSettings() {
+    return ((InstanceGroupStubSettings) getStubSettings())
+        .addInstancesInstanceGroupOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to aggregatedListInstanceGroups. */
   public PagedCallSettings<
           AggregatedListInstanceGroupsHttpRequest,
@@ -86,6 +97,14 @@ public class InstanceGroupSettings extends ClientSettings
     return ((InstanceGroupStubSettings) getStubSettings()).deleteInstanceGroupSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteInstanceGroup. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteInstanceGroupOperationSettings() {
+    return ((InstanceGroupStubSettings) getStubSettings()).deleteInstanceGroupOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getInstanceGroup. */
   public UnaryCallSettings getInstanceGroupSettings() {
     return ((InstanceGroupStubSettings) getStubSettings()).getInstanceGroupSettings();
@@ -97,6 +116,14 @@ public UnaryCallSettings getInstance
     return ((InstanceGroupStubSettings) getStubSettings()).insertInstanceGroupSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertInstanceGroup. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertInstanceGroupOperationSettings() {
+    return ((InstanceGroupStubSettings) getStubSettings()).insertInstanceGroupOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listInstanceGroups. */
   public PagedCallSettings<
           ListInstanceGroupsHttpRequest, InstanceGroupList, ListInstanceGroupsPagedResponse>
@@ -119,12 +146,30 @@ public UnaryCallSettings getInstance
     return ((InstanceGroupStubSettings) getStubSettings()).removeInstancesInstanceGroupSettings();
   }
 
+  /** Returns the object with the settings used for calls to removeInstancesInstanceGroup. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      removeInstancesInstanceGroupOperationSettings() {
+    return ((InstanceGroupStubSettings) getStubSettings())
+        .removeInstancesInstanceGroupOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setNamedPortsInstanceGroup. */
   public UnaryCallSettings
       setNamedPortsInstanceGroupSettings() {
     return ((InstanceGroupStubSettings) getStubSettings()).setNamedPortsInstanceGroupSettings();
   }
 
+  /** Returns the object with the settings used for calls to setNamedPortsInstanceGroup. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setNamedPortsInstanceGroupOperationSettings() {
+    return ((InstanceGroupStubSettings) getStubSettings())
+        .setNamedPortsInstanceGroupOperationSettings();
+  }
+
   public static final InstanceGroupSettings create(InstanceGroupStubSettings stub)
       throws IOException {
     return new InstanceGroupSettings.Builder(stub.toBuilder()).build();
@@ -233,6 +278,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().addInstancesInstanceGroupSettings();
     }
 
+    /** Returns the builder for the settings used for calls to addInstancesInstanceGroup. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            AddInstancesInstanceGroupHttpRequest, EmptyMessage, EmptyMessage>
+        addInstancesInstanceGroupOperationSettings() {
+      return getStubSettingsBuilder().addInstancesInstanceGroupOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to aggregatedListInstanceGroups. */
     public PagedCallSettings.Builder<
             AggregatedListInstanceGroupsHttpRequest,
@@ -248,6 +302,14 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteInstanceGroupSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteInstanceGroup. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteInstanceGroupOperationSettings() {
+      return getStubSettingsBuilder().deleteInstanceGroupOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getInstanceGroup. */
     public UnaryCallSettings.Builder
         getInstanceGroupSettings() {
@@ -260,6 +322,14 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertInstanceGroupSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertInstanceGroup. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertInstanceGroupOperationSettings() {
+      return getStubSettingsBuilder().insertInstanceGroupOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listInstanceGroups. */
     public PagedCallSettings.Builder<
             ListInstanceGroupsHttpRequest, InstanceGroupList, ListInstanceGroupsPagedResponse>
@@ -282,12 +352,30 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().removeInstancesInstanceGroupSettings();
     }
 
+    /** Returns the builder for the settings used for calls to removeInstancesInstanceGroup. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            RemoveInstancesInstanceGroupHttpRequest, EmptyMessage, EmptyMessage>
+        removeInstancesInstanceGroupOperationSettings() {
+      return getStubSettingsBuilder().removeInstancesInstanceGroupOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setNamedPortsInstanceGroup. */
     public UnaryCallSettings.Builder
         setNamedPortsInstanceGroupSettings() {
       return getStubSettingsBuilder().setNamedPortsInstanceGroupSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setNamedPortsInstanceGroup. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetNamedPortsInstanceGroupHttpRequest, EmptyMessage, EmptyMessage>
+        setNamedPortsInstanceGroupOperationSettings() {
+      return getStubSettingsBuilder().setNamedPortsInstanceGroupOperationSettings();
+    }
+
     @Override
     public InstanceGroupSettings build() throws IOException {
       return new InstanceGroupSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettings.java
index b4c674af0497..d8a254dff56b 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettings.java
@@ -23,10 +23,12 @@
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
 import com.google.api.gax.rpc.ClientSettings;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.TransportChannelProvider;
 import com.google.api.gax.rpc.UnaryCallSettings;
@@ -50,13 +52,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of addAccessConfigInstance to 30 seconds: + * example, to set the total timeout of getInstance to 30 seconds: * *

  * 
  * InstanceSettings.Builder instanceSettingsBuilder =
  *     InstanceSettings.newBuilder();
- * instanceSettingsBuilder.addAccessConfigInstanceSettings().getRetrySettings().toBuilder()
+ * instanceSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * InstanceSettings instanceSettings = instanceSettingsBuilder.build();
  * 
@@ -71,6 +73,14 @@ public class InstanceSettings extends ClientSettings {
     return ((InstanceStubSettings) getStubSettings()).addAccessConfigInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to addAccessConfigInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      addAccessConfigInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings()).addAccessConfigInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to aggregatedListInstances. */
   public PagedCallSettings<
           AggregatedListInstancesHttpRequest,
@@ -85,22 +95,54 @@ public UnaryCallSettings attachDiskIns
     return ((InstanceStubSettings) getStubSettings()).attachDiskInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to attachDiskInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      attachDiskInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings()).attachDiskInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to deleteInstance. */
   public UnaryCallSettings deleteInstanceSettings() {
     return ((InstanceStubSettings) getStubSettings()).deleteInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings()).deleteInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to deleteAccessConfigInstance. */
   public UnaryCallSettings
       deleteAccessConfigInstanceSettings() {
     return ((InstanceStubSettings) getStubSettings()).deleteAccessConfigInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteAccessConfigInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteAccessConfigInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings()).deleteAccessConfigInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to detachDiskInstance. */
   public UnaryCallSettings detachDiskInstanceSettings() {
     return ((InstanceStubSettings) getStubSettings()).detachDiskInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to detachDiskInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      detachDiskInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings()).detachDiskInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getInstance. */
   public UnaryCallSettings getInstanceSettings() {
     return ((InstanceStubSettings) getStubSettings()).getInstanceSettings();
@@ -122,6 +164,14 @@ public UnaryCallSettings insertInstanceSet
     return ((InstanceStubSettings) getStubSettings()).insertInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings()).insertInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listInstances. */
   public PagedCallSettings
       listInstancesSettings() {
@@ -142,18 +192,43 @@ public UnaryCallSettings resetInstanceSetti
     return ((InstanceStubSettings) getStubSettings()).resetInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to resetInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      resetInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings()).resetInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setDeletionProtectionInstance. */
   public UnaryCallSettings
       setDeletionProtectionInstanceSettings() {
     return ((InstanceStubSettings) getStubSettings()).setDeletionProtectionInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to setDeletionProtectionInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setDeletionProtectionInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings())
+        .setDeletionProtectionInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setDiskAutoDeleteInstance. */
   public UnaryCallSettings
       setDiskAutoDeleteInstanceSettings() {
     return ((InstanceStubSettings) getStubSettings()).setDiskAutoDeleteInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to setDiskAutoDeleteInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setDiskAutoDeleteInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings()).setDiskAutoDeleteInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setIamPolicyInstance. */
   public UnaryCallSettings setIamPolicyInstanceSettings() {
     return ((InstanceStubSettings) getStubSettings()).setIamPolicyInstanceSettings();
@@ -164,69 +239,170 @@ public UnaryCallSettings setLabelsInsta
     return ((InstanceStubSettings) getStubSettings()).setLabelsInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to setLabelsInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setLabelsInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings()).setLabelsInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setMachineResourcesInstance. */
   public UnaryCallSettings
       setMachineResourcesInstanceSettings() {
     return ((InstanceStubSettings) getStubSettings()).setMachineResourcesInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to setMachineResourcesInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setMachineResourcesInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings())
+        .setMachineResourcesInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setMachineTypeInstance. */
   public UnaryCallSettings
       setMachineTypeInstanceSettings() {
     return ((InstanceStubSettings) getStubSettings()).setMachineTypeInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to setMachineTypeInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setMachineTypeInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings()).setMachineTypeInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setMetadataInstance. */
   public UnaryCallSettings
       setMetadataInstanceSettings() {
     return ((InstanceStubSettings) getStubSettings()).setMetadataInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to setMetadataInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setMetadataInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings()).setMetadataInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setMinCpuPlatformInstance. */
   public UnaryCallSettings
       setMinCpuPlatformInstanceSettings() {
     return ((InstanceStubSettings) getStubSettings()).setMinCpuPlatformInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to setMinCpuPlatformInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setMinCpuPlatformInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings()).setMinCpuPlatformInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setSchedulingInstance. */
   public UnaryCallSettings
       setSchedulingInstanceSettings() {
     return ((InstanceStubSettings) getStubSettings()).setSchedulingInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to setSchedulingInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setSchedulingInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings()).setSchedulingInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setServiceAccountInstance. */
   public UnaryCallSettings
       setServiceAccountInstanceSettings() {
     return ((InstanceStubSettings) getStubSettings()).setServiceAccountInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to setServiceAccountInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setServiceAccountInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings()).setServiceAccountInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setTagsInstance. */
   public UnaryCallSettings setTagsInstanceSettings() {
     return ((InstanceStubSettings) getStubSettings()).setTagsInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to setTagsInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setTagsInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings()).setTagsInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to simulateMaintenanceEventInstance. */
   public UnaryCallSettings
       simulateMaintenanceEventInstanceSettings() {
     return ((InstanceStubSettings) getStubSettings()).simulateMaintenanceEventInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to simulateMaintenanceEventInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          SimulateMaintenanceEventInstanceHttpRequest, EmptyMessage, EmptyMessage>
+      simulateMaintenanceEventInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings())
+        .simulateMaintenanceEventInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to startInstance. */
   public UnaryCallSettings startInstanceSettings() {
     return ((InstanceStubSettings) getStubSettings()).startInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to startInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      startInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings()).startInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to startWithEncryptionKeyInstance. */
   public UnaryCallSettings
       startWithEncryptionKeyInstanceSettings() {
     return ((InstanceStubSettings) getStubSettings()).startWithEncryptionKeyInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to startWithEncryptionKeyInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          StartWithEncryptionKeyInstanceHttpRequest, EmptyMessage, EmptyMessage>
+      startWithEncryptionKeyInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings())
+        .startWithEncryptionKeyInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to stopInstance. */
   public UnaryCallSettings stopInstanceSettings() {
     return ((InstanceStubSettings) getStubSettings()).stopInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to stopInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      stopInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings()).stopInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to testIamPermissionsInstance. */
   public UnaryCallSettings
       testIamPermissionsInstanceSettings() {
@@ -239,12 +415,30 @@ public UnaryCallSettings stopInstanceSetting
     return ((InstanceStubSettings) getStubSettings()).updateAccessConfigInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to updateAccessConfigInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateAccessConfigInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings()).updateAccessConfigInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to updateNetworkInterfaceInstance. */
   public UnaryCallSettings
       updateNetworkInterfaceInstanceSettings() {
     return ((InstanceStubSettings) getStubSettings()).updateNetworkInterfaceInstanceSettings();
   }
 
+  /** Returns the object with the settings used for calls to updateNetworkInterfaceInstance. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          UpdateNetworkInterfaceInstanceHttpRequest, EmptyMessage, EmptyMessage>
+      updateNetworkInterfaceInstanceOperationSettings() {
+    return ((InstanceStubSettings) getStubSettings())
+        .updateNetworkInterfaceInstanceOperationSettings();
+  }
+
   public static final InstanceSettings create(InstanceStubSettings stub) throws IOException {
     return new InstanceSettings.Builder(stub.toBuilder()).build();
   }
@@ -352,6 +546,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().addAccessConfigInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to addAccessConfigInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            AddAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        addAccessConfigInstanceOperationSettings() {
+      return getStubSettingsBuilder().addAccessConfigInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to aggregatedListInstances. */
     public PagedCallSettings.Builder<
             AggregatedListInstancesHttpRequest,
@@ -367,24 +570,57 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().attachDiskInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to attachDiskInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        attachDiskInstanceOperationSettings() {
+      return getStubSettingsBuilder().attachDiskInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to deleteInstance. */
     public UnaryCallSettings.Builder
         deleteInstanceSettings() {
       return getStubSettingsBuilder().deleteInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteInstanceOperationSettings() {
+      return getStubSettingsBuilder().deleteInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to deleteAccessConfigInstance. */
     public UnaryCallSettings.Builder
         deleteAccessConfigInstanceSettings() {
       return getStubSettingsBuilder().deleteAccessConfigInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteAccessConfigInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        deleteAccessConfigInstanceOperationSettings() {
+      return getStubSettingsBuilder().deleteAccessConfigInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to detachDiskInstance. */
     public UnaryCallSettings.Builder
         detachDiskInstanceSettings() {
       return getStubSettingsBuilder().detachDiskInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to detachDiskInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        detachDiskInstanceOperationSettings() {
+      return getStubSettingsBuilder().detachDiskInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getInstance. */
     public UnaryCallSettings.Builder getInstanceSettings() {
       return getStubSettingsBuilder().getInstanceSettings();
@@ -408,6 +644,14 @@ public UnaryCallSettings.Builder getInstanceSe
       return getStubSettingsBuilder().insertInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertInstanceOperationSettings() {
+      return getStubSettingsBuilder().insertInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listInstances. */
     public PagedCallSettings.Builder<
             ListInstancesHttpRequest, InstanceList, ListInstancesPagedResponse>
@@ -429,18 +673,44 @@ public UnaryCallSettings.Builder resetInsta
       return getStubSettingsBuilder().resetInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to resetInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        resetInstanceOperationSettings() {
+      return getStubSettingsBuilder().resetInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setDeletionProtectionInstance. */
     public UnaryCallSettings.Builder
         setDeletionProtectionInstanceSettings() {
       return getStubSettingsBuilder().setDeletionProtectionInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setDeletionProtectionInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetDeletionProtectionInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setDeletionProtectionInstanceOperationSettings() {
+      return getStubSettingsBuilder().setDeletionProtectionInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setDiskAutoDeleteInstance. */
     public UnaryCallSettings.Builder
         setDiskAutoDeleteInstanceSettings() {
       return getStubSettingsBuilder().setDiskAutoDeleteInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setDiskAutoDeleteInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetDiskAutoDeleteInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setDiskAutoDeleteInstanceOperationSettings() {
+      return getStubSettingsBuilder().setDiskAutoDeleteInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setIamPolicyInstance. */
     public UnaryCallSettings.Builder
         setIamPolicyInstanceSettings() {
@@ -453,70 +723,173 @@ public UnaryCallSettings.Builder resetInsta
       return getStubSettingsBuilder().setLabelsInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setLabelsInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        setLabelsInstanceOperationSettings() {
+      return getStubSettingsBuilder().setLabelsInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setMachineResourcesInstance. */
     public UnaryCallSettings.Builder
         setMachineResourcesInstanceSettings() {
       return getStubSettingsBuilder().setMachineResourcesInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setMachineResourcesInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetMachineResourcesInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setMachineResourcesInstanceOperationSettings() {
+      return getStubSettingsBuilder().setMachineResourcesInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setMachineTypeInstance. */
     public UnaryCallSettings.Builder
         setMachineTypeInstanceSettings() {
       return getStubSettingsBuilder().setMachineTypeInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setMachineTypeInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetMachineTypeInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setMachineTypeInstanceOperationSettings() {
+      return getStubSettingsBuilder().setMachineTypeInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setMetadataInstance. */
     public UnaryCallSettings.Builder
         setMetadataInstanceSettings() {
       return getStubSettingsBuilder().setMetadataInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setMetadataInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        setMetadataInstanceOperationSettings() {
+      return getStubSettingsBuilder().setMetadataInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setMinCpuPlatformInstance. */
     public UnaryCallSettings.Builder
         setMinCpuPlatformInstanceSettings() {
       return getStubSettingsBuilder().setMinCpuPlatformInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setMinCpuPlatformInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetMinCpuPlatformInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setMinCpuPlatformInstanceOperationSettings() {
+      return getStubSettingsBuilder().setMinCpuPlatformInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setSchedulingInstance. */
     public UnaryCallSettings.Builder
         setSchedulingInstanceSettings() {
       return getStubSettingsBuilder().setSchedulingInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setSchedulingInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetSchedulingInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setSchedulingInstanceOperationSettings() {
+      return getStubSettingsBuilder().setSchedulingInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setServiceAccountInstance. */
     public UnaryCallSettings.Builder
         setServiceAccountInstanceSettings() {
       return getStubSettingsBuilder().setServiceAccountInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setServiceAccountInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetServiceAccountInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setServiceAccountInstanceOperationSettings() {
+      return getStubSettingsBuilder().setServiceAccountInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setTagsInstance. */
     public UnaryCallSettings.Builder
         setTagsInstanceSettings() {
       return getStubSettingsBuilder().setTagsInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setTagsInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        setTagsInstanceOperationSettings() {
+      return getStubSettingsBuilder().setTagsInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to simulateMaintenanceEventInstance. */
     public UnaryCallSettings.Builder
         simulateMaintenanceEventInstanceSettings() {
       return getStubSettingsBuilder().simulateMaintenanceEventInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to simulateMaintenanceEventInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SimulateMaintenanceEventInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        simulateMaintenanceEventInstanceOperationSettings() {
+      return getStubSettingsBuilder().simulateMaintenanceEventInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to startInstance. */
     public UnaryCallSettings.Builder startInstanceSettings() {
       return getStubSettingsBuilder().startInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to startInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        startInstanceOperationSettings() {
+      return getStubSettingsBuilder().startInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to startWithEncryptionKeyInstance. */
     public UnaryCallSettings.Builder
         startWithEncryptionKeyInstanceSettings() {
       return getStubSettingsBuilder().startWithEncryptionKeyInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to startWithEncryptionKeyInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            StartWithEncryptionKeyInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        startWithEncryptionKeyInstanceOperationSettings() {
+      return getStubSettingsBuilder().startWithEncryptionKeyInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to stopInstance. */
     public UnaryCallSettings.Builder stopInstanceSettings() {
       return getStubSettingsBuilder().stopInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to stopInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        stopInstanceOperationSettings() {
+      return getStubSettingsBuilder().stopInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to testIamPermissionsInstance. */
     public UnaryCallSettings.Builder
         testIamPermissionsInstanceSettings() {
@@ -529,12 +902,30 @@ public UnaryCallSettings.Builder stopInstanc
       return getStubSettingsBuilder().updateAccessConfigInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to updateAccessConfigInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            UpdateAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        updateAccessConfigInstanceOperationSettings() {
+      return getStubSettingsBuilder().updateAccessConfigInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to updateNetworkInterfaceInstance. */
     public UnaryCallSettings.Builder
         updateNetworkInterfaceInstanceSettings() {
       return getStubSettingsBuilder().updateNetworkInterfaceInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to updateNetworkInterfaceInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            UpdateNetworkInterfaceInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        updateNetworkInterfaceInstanceOperationSettings() {
+      return getStubSettingsBuilder().updateNetworkInterfaceInstanceOperationSettings();
+    }
+
     @Override
     public InstanceSettings build() throws IOException {
       return new InstanceSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateClient.java
index 9c2db2c3a0ce..d93a29b033db 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.InstanceTemplateStub;
@@ -43,7 +46,7 @@
  * 
  * try (InstanceTemplateClient instanceTemplateClient = InstanceTemplateClient.create()) {
  *   ProjectGlobalInstanceTemplateName instanceTemplate = ProjectGlobalInstanceTemplateName.of("[PROJECT]", "[INSTANCE_TEMPLATE]");
- *   Operation response = instanceTemplateClient.deleteInstanceTemplate(instanceTemplate);
+ *   InstanceTemplate response = instanceTemplateClient.getInstanceTemplate(instanceTemplate);
  * }
  * 
  * 
@@ -104,6 +107,7 @@ public class InstanceTemplateClient implements BackgroundResource { private final InstanceTemplateSettings settings; private final InstanceTemplateStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of InstanceTemplateClient with default settings. */ public static final InstanceTemplateClient create() throws IOException { @@ -136,12 +140,14 @@ public static final InstanceTemplateClient create(InstanceTemplateStub stub) { protected InstanceTemplateClient(InstanceTemplateSettings settings) throws IOException { this.settings = settings; this.stub = ((InstanceTemplateStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected InstanceTemplateClient(InstanceTemplateStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final InstanceTemplateSettings getSettings() { @@ -153,6 +159,16 @@ public InstanceTemplateStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Deletes the specified instance template. Deleting an instance template is permanent and cannot @@ -164,22 +180,23 @@ public InstanceTemplateStub getStub() { *

    * try (InstanceTemplateClient instanceTemplateClient = InstanceTemplateClient.create()) {
    *   ProjectGlobalInstanceTemplateName instanceTemplate = ProjectGlobalInstanceTemplateName.of("[PROJECT]", "[INSTANCE_TEMPLATE]");
-   *   Operation response = instanceTemplateClient.deleteInstanceTemplate(instanceTemplate);
+   *   instanceTemplateClient.deleteInstanceTemplateAsync(instanceTemplate).get();
    * }
    * 
* * @param instanceTemplate The name of the instance template to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInstanceTemplate( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInstanceTemplateAsync( ProjectGlobalInstanceTemplateName instanceTemplate) { DeleteInstanceTemplateHttpRequest request = DeleteInstanceTemplateHttpRequest.newBuilder() .setInstanceTemplate(instanceTemplate == null ? null : instanceTemplate.toString()) .build(); - return deleteInstanceTemplate(request); + return deleteInstanceTemplateAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -193,21 +210,23 @@ public final Operation deleteInstanceTemplate( *

    * try (InstanceTemplateClient instanceTemplateClient = InstanceTemplateClient.create()) {
    *   ProjectGlobalInstanceTemplateName instanceTemplate = ProjectGlobalInstanceTemplateName.of("[PROJECT]", "[INSTANCE_TEMPLATE]");
-   *   Operation response = instanceTemplateClient.deleteInstanceTemplate(instanceTemplate.toString());
+   *   instanceTemplateClient.deleteInstanceTemplateAsync(instanceTemplate.toString()).get();
    * }
    * 
* * @param instanceTemplate The name of the instance template to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInstanceTemplate(String instanceTemplate) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInstanceTemplateAsync( + String instanceTemplate) { DeleteInstanceTemplateHttpRequest request = DeleteInstanceTemplateHttpRequest.newBuilder() .setInstanceTemplate(instanceTemplate) .build(); - return deleteInstanceTemplate(request); + return deleteInstanceTemplateAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -224,16 +243,44 @@ public final Operation deleteInstanceTemplate(String instanceTemplate) { * DeleteInstanceTemplateHttpRequest request = DeleteInstanceTemplateHttpRequest.newBuilder() * .setInstanceTemplate(instanceTemplate.toString()) * .build(); - * Operation response = instanceTemplateClient.deleteInstanceTemplate(request); + * instanceTemplateClient.deleteInstanceTemplateAsync(request).get(); * } *
* * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInstanceTemplate(DeleteInstanceTemplateHttpRequest request) { - return deleteInstanceTemplateCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInstanceTemplateAsync( + DeleteInstanceTemplateHttpRequest request) { + return deleteInstanceTemplateOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified instance template. Deleting an instance template is permanent and cannot + * be undone. It is not possible to delete templates that are already in use by a managed instance + * group. + * + *

Sample code: + * + *


+   * try (InstanceTemplateClient instanceTemplateClient = InstanceTemplateClient.create()) {
+   *   ProjectGlobalInstanceTemplateName instanceTemplate = ProjectGlobalInstanceTemplateName.of("[PROJECT]", "[INSTANCE_TEMPLATE]");
+   *   DeleteInstanceTemplateHttpRequest request = DeleteInstanceTemplateHttpRequest.newBuilder()
+   *     .setInstanceTemplate(instanceTemplate.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceTemplateClient.deleteInstanceTemplateOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteInstanceTemplateOperationCallable() { + return stub.deleteInstanceTemplateOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -252,7 +299,7 @@ public final Operation deleteInstanceTemplate(DeleteInstanceTemplateHttpRequest * .build(); * ApiFuture<Operation> future = instanceTemplateClient.deleteInstanceTemplateCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } *
*/ @@ -482,7 +529,7 @@ public final Policy getIamPolicyInstanceTemplate( * try (InstanceTemplateClient instanceTemplateClient = InstanceTemplateClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * InstanceTemplate instanceTemplateResource = InstanceTemplate.newBuilder().build(); - * Operation response = instanceTemplateClient.insertInstanceTemplate(project, instanceTemplateResource); + * instanceTemplateClient.insertInstanceTemplateAsync(project, instanceTemplateResource).get(); * } * * @@ -491,8 +538,9 @@ public final Policy getIamPolicyInstanceTemplate( * beta.instanceTemplates ==) (== resource_for v1.instanceTemplates ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertInstanceTemplate( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertInstanceTemplateAsync( ProjectName project, InstanceTemplate instanceTemplateResource) { InsertInstanceTemplateHttpRequest request = @@ -500,7 +548,7 @@ public final Operation insertInstanceTemplate( .setProject(project == null ? null : project.toString()) .setInstanceTemplateResource(instanceTemplateResource) .build(); - return insertInstanceTemplate(request); + return insertInstanceTemplateAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -516,7 +564,7 @@ public final Operation insertInstanceTemplate( * try (InstanceTemplateClient instanceTemplateClient = InstanceTemplateClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * InstanceTemplate instanceTemplateResource = InstanceTemplate.newBuilder().build(); - * Operation response = instanceTemplateClient.insertInstanceTemplate(project.toString(), instanceTemplateResource); + * instanceTemplateClient.insertInstanceTemplateAsync(project.toString(), instanceTemplateResource).get(); * } * * @@ -525,8 +573,9 @@ public final Operation insertInstanceTemplate( * beta.instanceTemplates ==) (== resource_for v1.instanceTemplates ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertInstanceTemplate( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertInstanceTemplateAsync( String project, InstanceTemplate instanceTemplateResource) { InsertInstanceTemplateHttpRequest request = @@ -534,7 +583,7 @@ public final Operation insertInstanceTemplate( .setProject(project) .setInstanceTemplateResource(instanceTemplateResource) .build(); - return insertInstanceTemplate(request); + return insertInstanceTemplateAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -554,16 +603,47 @@ public final Operation insertInstanceTemplate( * .setProject(project.toString()) * .setInstanceTemplateResource(instanceTemplateResource) * .build(); - * Operation response = instanceTemplateClient.insertInstanceTemplate(request); + * instanceTemplateClient.insertInstanceTemplateAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertInstanceTemplate(InsertInstanceTemplateHttpRequest request) { - return insertInstanceTemplateCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertInstanceTemplateAsync( + InsertInstanceTemplateHttpRequest request) { + return insertInstanceTemplateOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates an instance template in the specified project using the data that is included in the + * request. If you are creating a new template to update an existing instance group, your new + * instance template must use the same network or, if applicable, the same subnetwork as the + * original template. + * + *

Sample code: + * + *


+   * try (InstanceTemplateClient instanceTemplateClient = InstanceTemplateClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   InstanceTemplate instanceTemplateResource = InstanceTemplate.newBuilder().build();
+   *   InsertInstanceTemplateHttpRequest request = InsertInstanceTemplateHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setInstanceTemplateResource(instanceTemplateResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = instanceTemplateClient.insertInstanceTemplateOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertInstanceTemplateOperationCallable() { + return stub.insertInstanceTemplateOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -585,7 +665,7 @@ public final Operation insertInstanceTemplate(InsertInstanceTemplateHttpRequest * .build(); * ApiFuture<Operation> future = instanceTemplateClient.insertInstanceTemplateCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateSettings.java index c0d0c456d451..c9d40c3ae7f4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateSettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteInstanceTemplate to 30 seconds: + * example, to set the total timeout of getInstanceTemplate to 30 seconds: * *

  * 
  * InstanceTemplateSettings.Builder instanceTemplateSettingsBuilder =
  *     InstanceTemplateSettings.newBuilder();
- * instanceTemplateSettingsBuilder.deleteInstanceTemplateSettings().getRetrySettings().toBuilder()
+ * instanceTemplateSettingsBuilder.getInstanceTemplateSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * InstanceTemplateSettings instanceTemplateSettings = instanceTemplateSettingsBuilder.build();
  * 
@@ -69,6 +71,15 @@ public class InstanceTemplateSettings extends ClientSettings
+      deleteInstanceTemplateOperationSettings() {
+    return ((InstanceTemplateStubSettings) getStubSettings())
+        .deleteInstanceTemplateOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getInstanceTemplate. */
   public UnaryCallSettings
       getInstanceTemplateSettings() {
@@ -88,6 +99,15 @@ public class InstanceTemplateSettings extends ClientSettings
+      insertInstanceTemplateOperationSettings() {
+    return ((InstanceTemplateStubSettings) getStubSettings())
+        .insertInstanceTemplateOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listInstanceTemplates. */
   public PagedCallSettings<
           ListInstanceTemplatesHttpRequest,
@@ -219,6 +239,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteInstanceTemplateSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteInstanceTemplate. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteInstanceTemplateHttpRequest, EmptyMessage, EmptyMessage>
+        deleteInstanceTemplateOperationSettings() {
+      return getStubSettingsBuilder().deleteInstanceTemplateOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getInstanceTemplate. */
     public UnaryCallSettings.Builder
         getInstanceTemplateSettings() {
@@ -237,6 +266,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertInstanceTemplateSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertInstanceTemplate. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertInstanceTemplateHttpRequest, EmptyMessage, EmptyMessage>
+        insertInstanceTemplateOperationSettings() {
+      return getStubSettingsBuilder().insertInstanceTemplateOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listInstanceTemplates. */
     public PagedCallSettings.Builder<
             ListInstanceTemplatesHttpRequest,
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentClient.java
index d5db6755193c..e9878317627f 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.InterconnectAttachmentStub;
@@ -43,7 +46,7 @@
  * 
  * try (InterconnectAttachmentClient interconnectAttachmentClient = InterconnectAttachmentClient.create()) {
  *   ProjectRegionInterconnectAttachmentName interconnectAttachment = ProjectRegionInterconnectAttachmentName.of("[PROJECT]", "[REGION]", "[INTERCONNECT_ATTACHMENT]");
- *   Operation response = interconnectAttachmentClient.deleteInterconnectAttachment(interconnectAttachment);
+ *   InterconnectAttachment response = interconnectAttachmentClient.getInterconnectAttachment(interconnectAttachment);
  * }
  * 
  * 
@@ -104,6 +107,7 @@ public class InterconnectAttachmentClient implements BackgroundResource { private final InterconnectAttachmentSettings settings; private final InterconnectAttachmentStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of InterconnectAttachmentClient with default settings. */ public static final InterconnectAttachmentClient create() throws IOException { @@ -137,12 +141,14 @@ protected InterconnectAttachmentClient(InterconnectAttachmentSettings settings) throws IOException { this.settings = settings; this.stub = ((InterconnectAttachmentStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected InterconnectAttachmentClient(InterconnectAttachmentStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final InterconnectAttachmentSettings getSettings() { @@ -154,6 +160,16 @@ public InterconnectAttachmentStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Retrieves an aggregated list of interconnect attachments. @@ -307,15 +323,16 @@ public InterconnectAttachmentStub getStub() { *

    * try (InterconnectAttachmentClient interconnectAttachmentClient = InterconnectAttachmentClient.create()) {
    *   ProjectRegionInterconnectAttachmentName interconnectAttachment = ProjectRegionInterconnectAttachmentName.of("[PROJECT]", "[REGION]", "[INTERCONNECT_ATTACHMENT]");
-   *   Operation response = interconnectAttachmentClient.deleteInterconnectAttachment(interconnectAttachment);
+   *   interconnectAttachmentClient.deleteInterconnectAttachmentAsync(interconnectAttachment).get();
    * }
    * 
* * @param interconnectAttachment Name of the interconnect attachment to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInterconnectAttachment( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInterconnectAttachmentAsync( ProjectRegionInterconnectAttachmentName interconnectAttachment) { DeleteInterconnectAttachmentHttpRequest request = @@ -323,7 +340,7 @@ public final Operation deleteInterconnectAttachment( .setInterconnectAttachment( interconnectAttachment == null ? null : interconnectAttachment.toString()) .build(); - return deleteInterconnectAttachment(request); + return deleteInterconnectAttachmentAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -335,21 +352,23 @@ public final Operation deleteInterconnectAttachment( *

    * try (InterconnectAttachmentClient interconnectAttachmentClient = InterconnectAttachmentClient.create()) {
    *   ProjectRegionInterconnectAttachmentName interconnectAttachment = ProjectRegionInterconnectAttachmentName.of("[PROJECT]", "[REGION]", "[INTERCONNECT_ATTACHMENT]");
-   *   Operation response = interconnectAttachmentClient.deleteInterconnectAttachment(interconnectAttachment.toString());
+   *   interconnectAttachmentClient.deleteInterconnectAttachmentAsync(interconnectAttachment.toString()).get();
    * }
    * 
* * @param interconnectAttachment Name of the interconnect attachment to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInterconnectAttachment(String interconnectAttachment) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInterconnectAttachmentAsync( + String interconnectAttachment) { DeleteInterconnectAttachmentHttpRequest request = DeleteInterconnectAttachmentHttpRequest.newBuilder() .setInterconnectAttachment(interconnectAttachment) .build(); - return deleteInterconnectAttachment(request); + return deleteInterconnectAttachmentAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -364,17 +383,43 @@ public final Operation deleteInterconnectAttachment(String interconnectAttachmen * DeleteInterconnectAttachmentHttpRequest request = DeleteInterconnectAttachmentHttpRequest.newBuilder() * .setInterconnectAttachment(interconnectAttachment.toString()) * .build(); - * Operation response = interconnectAttachmentClient.deleteInterconnectAttachment(request); + * interconnectAttachmentClient.deleteInterconnectAttachmentAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInterconnectAttachment( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInterconnectAttachmentAsync( DeleteInterconnectAttachmentHttpRequest request) { - return deleteInterconnectAttachmentCallable().call(request); + return deleteInterconnectAttachmentOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified interconnect attachment. + * + *

Sample code: + * + *


+   * try (InterconnectAttachmentClient interconnectAttachmentClient = InterconnectAttachmentClient.create()) {
+   *   ProjectRegionInterconnectAttachmentName interconnectAttachment = ProjectRegionInterconnectAttachmentName.of("[PROJECT]", "[REGION]", "[INTERCONNECT_ATTACHMENT]");
+   *   DeleteInterconnectAttachmentHttpRequest request = DeleteInterconnectAttachmentHttpRequest.newBuilder()
+   *     .setInterconnectAttachment(interconnectAttachment.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = interconnectAttachmentClient.deleteInterconnectAttachmentOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + DeleteInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage> + deleteInterconnectAttachmentOperationCallable() { + return stub.deleteInterconnectAttachmentOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -391,7 +436,7 @@ public final Operation deleteInterconnectAttachment( * .build(); * ApiFuture<Operation> future = interconnectAttachmentClient.deleteInterconnectAttachmentCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -515,7 +560,7 @@ public final InterconnectAttachment getInterconnectAttachment( * try (InterconnectAttachmentClient interconnectAttachmentClient = InterconnectAttachmentClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * InterconnectAttachment interconnectAttachmentResource = InterconnectAttachment.newBuilder().build(); - * Operation response = interconnectAttachmentClient.insertInterconnectAttachment(region, interconnectAttachmentResource); + * interconnectAttachmentClient.insertInterconnectAttachmentAsync(region, interconnectAttachmentResource).get(); * } * * @@ -525,8 +570,9 @@ public final InterconnectAttachment getInterconnectAttachment( * beta.interconnectAttachments ==) (== resource_for v1.interconnectAttachments ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertInterconnectAttachment( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertInterconnectAttachmentAsync( ProjectRegionName region, InterconnectAttachment interconnectAttachmentResource) { InsertInterconnectAttachmentHttpRequest request = @@ -534,7 +580,7 @@ public final Operation insertInterconnectAttachment( .setRegion(region == null ? null : region.toString()) .setInterconnectAttachmentResource(interconnectAttachmentResource) .build(); - return insertInterconnectAttachment(request); + return insertInterconnectAttachmentAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -548,7 +594,7 @@ public final Operation insertInterconnectAttachment( * try (InterconnectAttachmentClient interconnectAttachmentClient = InterconnectAttachmentClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * InterconnectAttachment interconnectAttachmentResource = InterconnectAttachment.newBuilder().build(); - * Operation response = interconnectAttachmentClient.insertInterconnectAttachment(region.toString(), interconnectAttachmentResource); + * interconnectAttachmentClient.insertInterconnectAttachmentAsync(region.toString(), interconnectAttachmentResource).get(); * } * * @@ -558,8 +604,9 @@ public final Operation insertInterconnectAttachment( * beta.interconnectAttachments ==) (== resource_for v1.interconnectAttachments ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertInterconnectAttachment( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertInterconnectAttachmentAsync( String region, InterconnectAttachment interconnectAttachmentResource) { InsertInterconnectAttachmentHttpRequest request = @@ -567,7 +614,7 @@ public final Operation insertInterconnectAttachment( .setRegion(region) .setInterconnectAttachmentResource(interconnectAttachmentResource) .build(); - return insertInterconnectAttachment(request); + return insertInterconnectAttachmentAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -585,17 +632,46 @@ public final Operation insertInterconnectAttachment( * .setRegion(region.toString()) * .setInterconnectAttachmentResource(interconnectAttachmentResource) * .build(); - * Operation response = interconnectAttachmentClient.insertInterconnectAttachment(request); + * interconnectAttachmentClient.insertInterconnectAttachmentAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertInterconnectAttachment( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertInterconnectAttachmentAsync( InsertInterconnectAttachmentHttpRequest request) { - return insertInterconnectAttachmentCallable().call(request); + return insertInterconnectAttachmentOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates an InterconnectAttachment in the specified project using the data included in the + * request. + * + *

Sample code: + * + *


+   * try (InterconnectAttachmentClient interconnectAttachmentClient = InterconnectAttachmentClient.create()) {
+   *   ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
+   *   InterconnectAttachment interconnectAttachmentResource = InterconnectAttachment.newBuilder().build();
+   *   InsertInterconnectAttachmentHttpRequest request = InsertInterconnectAttachmentHttpRequest.newBuilder()
+   *     .setRegion(region.toString())
+   *     .setInterconnectAttachmentResource(interconnectAttachmentResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = interconnectAttachmentClient.insertInterconnectAttachmentOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + InsertInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage> + insertInterconnectAttachmentOperationCallable() { + return stub.insertInterconnectAttachmentOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -615,7 +691,7 @@ public final Operation insertInterconnectAttachment( * .build(); * ApiFuture<Operation> future = interconnectAttachmentClient.insertInterconnectAttachmentCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -777,7 +853,7 @@ public final ListInterconnectAttachmentsPagedResponse listInterconnectAttachment * ProjectRegionInterconnectAttachmentName interconnectAttachment = ProjectRegionInterconnectAttachmentName.of("[PROJECT]", "[REGION]", "[INTERCONNECT_ATTACHMENT]"); * InterconnectAttachment interconnectAttachmentResource = InterconnectAttachment.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = interconnectAttachmentClient.patchInterconnectAttachment(interconnectAttachment, interconnectAttachmentResource, fieldMask); + * interconnectAttachmentClient.patchInterconnectAttachmentAsync(interconnectAttachment, interconnectAttachmentResource, fieldMask).get(); * } * * @@ -791,8 +867,9 @@ public final ListInterconnectAttachmentsPagedResponse listInterconnectAttachment * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchInterconnectAttachment( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchInterconnectAttachmentAsync( ProjectRegionInterconnectAttachmentName interconnectAttachment, InterconnectAttachment interconnectAttachmentResource, List fieldMask) { @@ -804,7 +881,7 @@ public final Operation patchInterconnectAttachment( .setInterconnectAttachmentResource(interconnectAttachmentResource) .addAllFieldMask(fieldMask) .build(); - return patchInterconnectAttachment(request); + return patchInterconnectAttachmentAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -819,7 +896,7 @@ public final Operation patchInterconnectAttachment( * ProjectRegionInterconnectAttachmentName interconnectAttachment = ProjectRegionInterconnectAttachmentName.of("[PROJECT]", "[REGION]", "[INTERCONNECT_ATTACHMENT]"); * InterconnectAttachment interconnectAttachmentResource = InterconnectAttachment.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = interconnectAttachmentClient.patchInterconnectAttachment(interconnectAttachment.toString(), interconnectAttachmentResource, fieldMask); + * interconnectAttachmentClient.patchInterconnectAttachmentAsync(interconnectAttachment.toString(), interconnectAttachmentResource, fieldMask).get(); * } * * @@ -833,8 +910,9 @@ public final Operation patchInterconnectAttachment( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchInterconnectAttachment( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchInterconnectAttachmentAsync( String interconnectAttachment, InterconnectAttachment interconnectAttachmentResource, List fieldMask) { @@ -845,7 +923,7 @@ public final Operation patchInterconnectAttachment( .setInterconnectAttachmentResource(interconnectAttachmentResource) .addAllFieldMask(fieldMask) .build(); - return patchInterconnectAttachment(request); + return patchInterconnectAttachmentAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -865,17 +943,47 @@ public final Operation patchInterconnectAttachment( * .setInterconnectAttachmentResource(interconnectAttachmentResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = interconnectAttachmentClient.patchInterconnectAttachment(request); + * interconnectAttachmentClient.patchInterconnectAttachmentAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchInterconnectAttachment( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchInterconnectAttachmentAsync( PatchInterconnectAttachmentHttpRequest request) { - return patchInterconnectAttachmentCallable().call(request); + return patchInterconnectAttachmentOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the specified interconnect attachment with the data included in the request. This + * method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * + *

Sample code: + * + *


+   * try (InterconnectAttachmentClient interconnectAttachmentClient = InterconnectAttachmentClient.create()) {
+   *   ProjectRegionInterconnectAttachmentName interconnectAttachment = ProjectRegionInterconnectAttachmentName.of("[PROJECT]", "[REGION]", "[INTERCONNECT_ATTACHMENT]");
+   *   InterconnectAttachment interconnectAttachmentResource = InterconnectAttachment.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   PatchInterconnectAttachmentHttpRequest request = PatchInterconnectAttachmentHttpRequest.newBuilder()
+   *     .setInterconnectAttachment(interconnectAttachment.toString())
+   *     .setInterconnectAttachmentResource(interconnectAttachmentResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = interconnectAttachmentClient.patchInterconnectAttachmentOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + patchInterconnectAttachmentOperationCallable() { + return stub.patchInterconnectAttachmentOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -897,7 +1005,7 @@ public final Operation patchInterconnectAttachment( * .build(); * ApiFuture<Operation> future = interconnectAttachmentClient.patchInterconnectAttachmentCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentSettings.java index 4fc5132765f2..eb6e5b80b774 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentSettings.java @@ -22,10 +22,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -49,13 +51,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteInterconnectAttachment to 30 seconds: + * example, to set the total timeout of getInterconnectAttachment to 30 seconds: * *

  * 
  * InterconnectAttachmentSettings.Builder interconnectAttachmentSettingsBuilder =
  *     InterconnectAttachmentSettings.newBuilder();
- * interconnectAttachmentSettingsBuilder.deleteInterconnectAttachmentSettings().getRetrySettings().toBuilder()
+ * interconnectAttachmentSettingsBuilder.getInterconnectAttachmentSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * InterconnectAttachmentSettings interconnectAttachmentSettings = interconnectAttachmentSettingsBuilder.build();
  * 
@@ -83,6 +85,15 @@ public class InterconnectAttachmentSettings extends ClientSettings
+      deleteInterconnectAttachmentOperationSettings() {
+    return ((InterconnectAttachmentStubSettings) getStubSettings())
+        .deleteInterconnectAttachmentOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getInterconnectAttachment. */
   public UnaryCallSettings
       getInterconnectAttachmentSettings() {
@@ -97,6 +108,15 @@ public class InterconnectAttachmentSettings extends ClientSettings
+      insertInterconnectAttachmentOperationSettings() {
+    return ((InterconnectAttachmentStubSettings) getStubSettings())
+        .insertInterconnectAttachmentOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listInterconnectAttachments. */
   public PagedCallSettings<
           ListInterconnectAttachmentsHttpRequest,
@@ -114,6 +134,15 @@ public class InterconnectAttachmentSettings extends ClientSettings
+      patchInterconnectAttachmentOperationSettings() {
+    return ((InterconnectAttachmentStubSettings) getStubSettings())
+        .patchInterconnectAttachmentOperationSettings();
+  }
+
   public static final InterconnectAttachmentSettings create(InterconnectAttachmentStubSettings stub)
       throws IOException {
     return new InterconnectAttachmentSettings.Builder(stub.toBuilder()).build();
@@ -234,6 +263,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteInterconnectAttachmentSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteInterconnectAttachment. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage>
+        deleteInterconnectAttachmentOperationSettings() {
+      return getStubSettingsBuilder().deleteInterconnectAttachmentOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getInterconnectAttachment. */
     public UnaryCallSettings.Builder
         getInterconnectAttachmentSettings() {
@@ -246,6 +284,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertInterconnectAttachmentSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertInterconnectAttachment. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage>
+        insertInterconnectAttachmentOperationSettings() {
+      return getStubSettingsBuilder().insertInterconnectAttachmentOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listInterconnectAttachments. */
     public PagedCallSettings.Builder<
             ListInterconnectAttachmentsHttpRequest,
@@ -261,6 +308,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().patchInterconnectAttachmentSettings();
     }
 
+    /** Returns the builder for the settings used for calls to patchInterconnectAttachment. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            PatchInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage>
+        patchInterconnectAttachmentOperationSettings() {
+      return getStubSettingsBuilder().patchInterconnectAttachmentOperationSettings();
+    }
+
     @Override
     public InterconnectAttachmentSettings build() throws IOException {
       return new InterconnectAttachmentSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectClient.java
index f9063400e48e..c91305c937e7 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.InterconnectStub;
@@ -43,7 +46,7 @@
  * 
  * try (InterconnectClient interconnectClient = InterconnectClient.create()) {
  *   ProjectGlobalInterconnectName interconnect = ProjectGlobalInterconnectName.of("[PROJECT]", "[INTERCONNECT]");
- *   Operation response = interconnectClient.deleteInterconnect(interconnect);
+ *   Interconnect response = interconnectClient.getInterconnect(interconnect);
  * }
  * 
  * 
@@ -103,6 +106,7 @@ public class InterconnectClient implements BackgroundResource { private final InterconnectSettings settings; private final InterconnectStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of InterconnectClient with default settings. */ public static final InterconnectClient create() throws IOException { @@ -134,12 +138,14 @@ public static final InterconnectClient create(InterconnectStub stub) { protected InterconnectClient(InterconnectSettings settings) throws IOException { this.settings = settings; this.stub = ((InterconnectStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected InterconnectClient(InterconnectStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final InterconnectSettings getSettings() { @@ -151,6 +157,16 @@ public InterconnectStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Deletes the specified interconnect. @@ -160,21 +176,23 @@ public InterconnectStub getStub() { *

    * try (InterconnectClient interconnectClient = InterconnectClient.create()) {
    *   ProjectGlobalInterconnectName interconnect = ProjectGlobalInterconnectName.of("[PROJECT]", "[INTERCONNECT]");
-   *   Operation response = interconnectClient.deleteInterconnect(interconnect);
+   *   interconnectClient.deleteInterconnectAsync(interconnect).get();
    * }
    * 
* * @param interconnect Name of the interconnect to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInterconnect(ProjectGlobalInterconnectName interconnect) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInterconnectAsync( + ProjectGlobalInterconnectName interconnect) { DeleteInterconnectHttpRequest request = DeleteInterconnectHttpRequest.newBuilder() .setInterconnect(interconnect == null ? null : interconnect.toString()) .build(); - return deleteInterconnect(request); + return deleteInterconnectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -186,19 +204,21 @@ public final Operation deleteInterconnect(ProjectGlobalInterconnectName intercon *

    * try (InterconnectClient interconnectClient = InterconnectClient.create()) {
    *   ProjectGlobalInterconnectName interconnect = ProjectGlobalInterconnectName.of("[PROJECT]", "[INTERCONNECT]");
-   *   Operation response = interconnectClient.deleteInterconnect(interconnect.toString());
+   *   interconnectClient.deleteInterconnectAsync(interconnect.toString()).get();
    * }
    * 
* * @param interconnect Name of the interconnect to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInterconnect(String interconnect) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInterconnectAsync( + String interconnect) { DeleteInterconnectHttpRequest request = DeleteInterconnectHttpRequest.newBuilder().setInterconnect(interconnect).build(); - return deleteInterconnect(request); + return deleteInterconnectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -213,16 +233,42 @@ public final Operation deleteInterconnect(String interconnect) { * DeleteInterconnectHttpRequest request = DeleteInterconnectHttpRequest.newBuilder() * .setInterconnect(interconnect.toString()) * .build(); - * Operation response = interconnectClient.deleteInterconnect(request); + * interconnectClient.deleteInterconnectAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInterconnect(DeleteInterconnectHttpRequest request) { - return deleteInterconnectCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteInterconnectAsync( + DeleteInterconnectHttpRequest request) { + return deleteInterconnectOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified interconnect. + * + *

Sample code: + * + *


+   * try (InterconnectClient interconnectClient = InterconnectClient.create()) {
+   *   ProjectGlobalInterconnectName interconnect = ProjectGlobalInterconnectName.of("[PROJECT]", "[INTERCONNECT]");
+   *   DeleteInterconnectHttpRequest request = DeleteInterconnectHttpRequest.newBuilder()
+   *     .setInterconnect(interconnect.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = interconnectClient.deleteInterconnectOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteInterconnectOperationCallable() { + return stub.deleteInterconnectOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -239,7 +285,7 @@ public final Operation deleteInterconnect(DeleteInterconnectHttpRequest request) * .build(); * ApiFuture<Operation> future = interconnectClient.deleteInterconnectCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -461,7 +507,7 @@ public final InterconnectsGetDiagnosticsResponse getDiagnosticsInterconnect( * try (InterconnectClient interconnectClient = InterconnectClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * Interconnect interconnectResource = Interconnect.newBuilder().build(); - * Operation response = interconnectClient.insertInterconnect(project, interconnectResource); + * interconnectClient.insertInterconnectAsync(project, interconnectResource).get(); * } * * @@ -472,8 +518,9 @@ public final InterconnectsGetDiagnosticsResponse getDiagnosticsInterconnect( * resource_for beta.interconnects ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertInterconnect( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertInterconnectAsync( ProjectName project, Interconnect interconnectResource) { InsertInterconnectHttpRequest request = @@ -481,7 +528,7 @@ public final Operation insertInterconnect( .setProject(project == null ? null : project.toString()) .setInterconnectResource(interconnectResource) .build(); - return insertInterconnect(request); + return insertInterconnectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -494,7 +541,7 @@ public final Operation insertInterconnect( * try (InterconnectClient interconnectClient = InterconnectClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * Interconnect interconnectResource = Interconnect.newBuilder().build(); - * Operation response = interconnectClient.insertInterconnect(project.toString(), interconnectResource); + * interconnectClient.insertInterconnectAsync(project.toString(), interconnectResource).get(); * } * * @@ -505,15 +552,17 @@ public final Operation insertInterconnect( * resource_for beta.interconnects ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertInterconnect(String project, Interconnect interconnectResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertInterconnectAsync( + String project, Interconnect interconnectResource) { InsertInterconnectHttpRequest request = InsertInterconnectHttpRequest.newBuilder() .setProject(project) .setInterconnectResource(interconnectResource) .build(); - return insertInterconnect(request); + return insertInterconnectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -530,16 +579,44 @@ public final Operation insertInterconnect(String project, Interconnect interconn * .setProject(project.toString()) * .setInterconnectResource(interconnectResource) * .build(); - * Operation response = interconnectClient.insertInterconnect(request); + * interconnectClient.insertInterconnectAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertInterconnect(InsertInterconnectHttpRequest request) { - return insertInterconnectCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertInterconnectAsync( + InsertInterconnectHttpRequest request) { + return insertInterconnectOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a Interconnect in the specified project using the data included in the request. + * + *

Sample code: + * + *


+   * try (InterconnectClient interconnectClient = InterconnectClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   Interconnect interconnectResource = Interconnect.newBuilder().build();
+   *   InsertInterconnectHttpRequest request = InsertInterconnectHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setInterconnectResource(interconnectResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = interconnectClient.insertInterconnectOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertInterconnectOperationCallable() { + return stub.insertInterconnectOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -558,7 +635,7 @@ public final Operation insertInterconnect(InsertInterconnectHttpRequest request) * .build(); * ApiFuture<Operation> future = interconnectClient.insertInterconnectCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -718,7 +795,7 @@ public final ListInterconnectsPagedResponse listInterconnects( * ProjectGlobalInterconnectName interconnect = ProjectGlobalInterconnectName.of("[PROJECT]", "[INTERCONNECT]"); * Interconnect interconnectResource = Interconnect.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = interconnectClient.patchInterconnect(interconnect, interconnectResource, fieldMask); + * interconnectClient.patchInterconnectAsync(interconnect, interconnectResource, fieldMask).get(); * } * * @@ -733,8 +810,9 @@ public final ListInterconnectsPagedResponse listInterconnects( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchInterconnect( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchInterconnectAsync( ProjectGlobalInterconnectName interconnect, Interconnect interconnectResource, List fieldMask) { @@ -745,7 +823,7 @@ public final Operation patchInterconnect( .setInterconnectResource(interconnectResource) .addAllFieldMask(fieldMask) .build(); - return patchInterconnect(request); + return patchInterconnectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -760,7 +838,7 @@ public final Operation patchInterconnect( * ProjectGlobalInterconnectName interconnect = ProjectGlobalInterconnectName.of("[PROJECT]", "[INTERCONNECT]"); * Interconnect interconnectResource = Interconnect.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = interconnectClient.patchInterconnect(interconnect.toString(), interconnectResource, fieldMask); + * interconnectClient.patchInterconnectAsync(interconnect.toString(), interconnectResource, fieldMask).get(); * } * * @@ -775,8 +853,9 @@ public final Operation patchInterconnect( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchInterconnect( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchInterconnectAsync( String interconnect, Interconnect interconnectResource, List fieldMask) { PatchInterconnectHttpRequest request = @@ -785,7 +864,7 @@ public final Operation patchInterconnect( .setInterconnectResource(interconnectResource) .addAllFieldMask(fieldMask) .build(); - return patchInterconnect(request); + return patchInterconnectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -805,16 +884,47 @@ public final Operation patchInterconnect( * .setInterconnectResource(interconnectResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = interconnectClient.patchInterconnect(request); + * interconnectClient.patchInterconnectAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchInterconnect(PatchInterconnectHttpRequest request) { - return patchInterconnectCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchInterconnectAsync( + PatchInterconnectHttpRequest request) { + return patchInterconnectOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the specified interconnect with the data included in the request. This method supports + * PATCH semantics and uses the JSON merge patch format and processing rules. + * + *

Sample code: + * + *


+   * try (InterconnectClient interconnectClient = InterconnectClient.create()) {
+   *   ProjectGlobalInterconnectName interconnect = ProjectGlobalInterconnectName.of("[PROJECT]", "[INTERCONNECT]");
+   *   Interconnect interconnectResource = Interconnect.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   PatchInterconnectHttpRequest request = PatchInterconnectHttpRequest.newBuilder()
+   *     .setInterconnect(interconnect.toString())
+   *     .setInterconnectResource(interconnectResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = interconnectClient.patchInterconnectOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + patchInterconnectOperationCallable() { + return stub.patchInterconnectOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -836,7 +946,7 @@ public final Operation patchInterconnect(PatchInterconnectHttpRequest request) { * .build(); * ApiFuture<Operation> future = interconnectClient.patchInterconnectCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectSettings.java index a7462f64f32b..8c580d23a256 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectSettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteInterconnect to 30 seconds: + * example, to set the total timeout of getInterconnect to 30 seconds: * *

  * 
  * InterconnectSettings.Builder interconnectSettingsBuilder =
  *     InterconnectSettings.newBuilder();
- * interconnectSettingsBuilder.deleteInterconnectSettings().getRetrySettings().toBuilder()
+ * interconnectSettingsBuilder.getInterconnectSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * InterconnectSettings interconnectSettings = interconnectSettingsBuilder.build();
  * 
@@ -68,6 +70,14 @@ public UnaryCallSettings deleteInterco
     return ((InterconnectStubSettings) getStubSettings()).deleteInterconnectSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteInterconnect. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteInterconnectOperationSettings() {
+    return ((InterconnectStubSettings) getStubSettings()).deleteInterconnectOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getInterconnect. */
   public UnaryCallSettings getInterconnectSettings() {
     return ((InterconnectStubSettings) getStubSettings()).getInterconnectSettings();
@@ -85,6 +95,14 @@ public UnaryCallSettings insertInterco
     return ((InterconnectStubSettings) getStubSettings()).insertInterconnectSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertInterconnect. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertInterconnectOperationSettings() {
+    return ((InterconnectStubSettings) getStubSettings()).insertInterconnectOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listInterconnects. */
   public PagedCallSettings<
           ListInterconnectsHttpRequest, InterconnectList, ListInterconnectsPagedResponse>
@@ -97,6 +115,14 @@ public UnaryCallSettings patchInterconn
     return ((InterconnectStubSettings) getStubSettings()).patchInterconnectSettings();
   }
 
+  /** Returns the object with the settings used for calls to patchInterconnect. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchInterconnectOperationSettings() {
+    return ((InterconnectStubSettings) getStubSettings()).patchInterconnectOperationSettings();
+  }
+
   public static final InterconnectSettings create(InterconnectStubSettings stub)
       throws IOException {
     return new InterconnectSettings.Builder(stub.toBuilder()).build();
@@ -205,6 +231,14 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteInterconnectSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteInterconnect. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteInterconnectOperationSettings() {
+      return getStubSettingsBuilder().deleteInterconnectOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getInterconnect. */
     public UnaryCallSettings.Builder
         getInterconnectSettings() {
@@ -224,6 +258,14 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertInterconnectSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertInterconnect. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertInterconnectOperationSettings() {
+      return getStubSettingsBuilder().insertInterconnectOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listInterconnects. */
     public PagedCallSettings.Builder<
             ListInterconnectsHttpRequest, InterconnectList, ListInterconnectsPagedResponse>
@@ -237,6 +279,14 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().patchInterconnectSettings();
     }
 
+    /** Returns the builder for the settings used for calls to patchInterconnect. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchInterconnectOperationSettings() {
+      return getStubSettingsBuilder().patchInterconnectOperationSettings();
+    }
+
     @Override
     public InterconnectSettings build() throws IOException {
       return new InterconnectSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseClient.java
index 9ee3ecb5639e..1dd9a39fac1c 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.LicenseStub;
@@ -43,7 +46,7 @@
  * 
  * try (LicenseClient licenseClient = LicenseClient.create()) {
  *   ProjectGlobalLicenseName license = ProjectGlobalLicenseName.of("[PROJECT]", "[LICENSE]");
- *   Operation response = licenseClient.deleteLicense(license);
+ *   License response = licenseClient.getLicense(license);
  * }
  * 
  * 
@@ -103,6 +106,7 @@ public class LicenseClient implements BackgroundResource { private final LicenseSettings settings; private final LicenseStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of LicenseClient with default settings. */ public static final LicenseClient create() throws IOException { @@ -133,12 +137,14 @@ public static final LicenseClient create(LicenseStub stub) { protected LicenseClient(LicenseSettings settings) throws IOException { this.settings = settings; this.stub = ((LicenseStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected LicenseClient(LicenseStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final LicenseSettings getSettings() { @@ -150,6 +156,16 @@ public LicenseStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Deletes the specified license. @@ -159,21 +175,23 @@ public LicenseStub getStub() { *

    * try (LicenseClient licenseClient = LicenseClient.create()) {
    *   ProjectGlobalLicenseName license = ProjectGlobalLicenseName.of("[PROJECT]", "[LICENSE]");
-   *   Operation response = licenseClient.deleteLicense(license);
+   *   licenseClient.deleteLicenseAsync(license).get();
    * }
    * 
* * @param license Name of the license resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteLicense(ProjectGlobalLicenseName license) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteLicenseAsync( + ProjectGlobalLicenseName license) { DeleteLicenseHttpRequest request = DeleteLicenseHttpRequest.newBuilder() .setLicense(license == null ? null : license.toString()) .build(); - return deleteLicense(request); + return deleteLicenseAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -185,19 +203,20 @@ public final Operation deleteLicense(ProjectGlobalLicenseName license) { *

    * try (LicenseClient licenseClient = LicenseClient.create()) {
    *   ProjectGlobalLicenseName license = ProjectGlobalLicenseName.of("[PROJECT]", "[LICENSE]");
-   *   Operation response = licenseClient.deleteLicense(license.toString());
+   *   licenseClient.deleteLicenseAsync(license.toString()).get();
    * }
    * 
* * @param license Name of the license resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteLicense(String license) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteLicenseAsync(String license) { DeleteLicenseHttpRequest request = DeleteLicenseHttpRequest.newBuilder().setLicense(license).build(); - return deleteLicense(request); + return deleteLicenseAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -212,16 +231,42 @@ public final Operation deleteLicense(String license) { * DeleteLicenseHttpRequest request = DeleteLicenseHttpRequest.newBuilder() * .setLicense(license.toString()) * .build(); - * Operation response = licenseClient.deleteLicense(request); + * licenseClient.deleteLicenseAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteLicense(DeleteLicenseHttpRequest request) { - return deleteLicenseCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteLicenseAsync( + DeleteLicenseHttpRequest request) { + return deleteLicenseOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified license. + * + *

Sample code: + * + *


+   * try (LicenseClient licenseClient = LicenseClient.create()) {
+   *   ProjectGlobalLicenseName license = ProjectGlobalLicenseName.of("[PROJECT]", "[LICENSE]");
+   *   DeleteLicenseHttpRequest request = DeleteLicenseHttpRequest.newBuilder()
+   *     .setLicense(license.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = licenseClient.deleteLicenseOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteLicenseOperationCallable() { + return stub.deleteLicenseOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -238,7 +283,7 @@ public final Operation deleteLicense(DeleteLicenseHttpRequest request) { * .build(); * ApiFuture<Operation> future = licenseClient.deleteLicenseCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -454,7 +499,7 @@ public final UnaryCallable getIamPolicyL * try (LicenseClient licenseClient = LicenseClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * License licenseResource = License.newBuilder().build(); - * Operation response = licenseClient.insertLicense(project, licenseResource); + * licenseClient.insertLicenseAsync(project, licenseResource).get(); * } * * @@ -462,15 +507,17 @@ public final UnaryCallable getIamPolicyL * @param licenseResource A license resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertLicense(ProjectName project, License licenseResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertLicenseAsync( + ProjectName project, License licenseResource) { InsertLicenseHttpRequest request = InsertLicenseHttpRequest.newBuilder() .setProject(project == null ? null : project.toString()) .setLicenseResource(licenseResource) .build(); - return insertLicense(request); + return insertLicenseAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -483,7 +530,7 @@ public final Operation insertLicense(ProjectName project, License licenseResourc * try (LicenseClient licenseClient = LicenseClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * License licenseResource = License.newBuilder().build(); - * Operation response = licenseClient.insertLicense(project.toString(), licenseResource); + * licenseClient.insertLicenseAsync(project.toString(), licenseResource).get(); * } * * @@ -491,15 +538,17 @@ public final Operation insertLicense(ProjectName project, License licenseResourc * @param licenseResource A license resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertLicense(String project, License licenseResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertLicenseAsync( + String project, License licenseResource) { InsertLicenseHttpRequest request = InsertLicenseHttpRequest.newBuilder() .setProject(project) .setLicenseResource(licenseResource) .build(); - return insertLicense(request); + return insertLicenseAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -516,16 +565,44 @@ public final Operation insertLicense(String project, License licenseResource) { * .setProject(project.toString()) * .setLicenseResource(licenseResource) * .build(); - * Operation response = licenseClient.insertLicense(request); + * licenseClient.insertLicenseAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertLicense(InsertLicenseHttpRequest request) { - return insertLicenseCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertLicenseAsync( + InsertLicenseHttpRequest request) { + return insertLicenseOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Create a License resource in the specified project. + * + *

Sample code: + * + *


+   * try (LicenseClient licenseClient = LicenseClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   License licenseResource = License.newBuilder().build();
+   *   InsertLicenseHttpRequest request = InsertLicenseHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setLicenseResource(licenseResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = licenseClient.insertLicenseOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertLicenseOperationCallable() { + return stub.insertLicenseOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -544,7 +621,7 @@ public final Operation insertLicense(InsertLicenseHttpRequest request) { * .build(); * ApiFuture<Operation> future = licenseClient.insertLicenseCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseSettings.java index 49f0e1a0fac6..7adcdb5266f7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseSettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteLicense to 30 seconds: + * example, to set the total timeout of getLicense to 30 seconds: * *

  * 
  * LicenseSettings.Builder licenseSettingsBuilder =
  *     LicenseSettings.newBuilder();
- * licenseSettingsBuilder.deleteLicenseSettings().getRetrySettings().toBuilder()
+ * licenseSettingsBuilder.getLicenseSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * LicenseSettings licenseSettings = licenseSettingsBuilder.build();
  * 
@@ -68,6 +70,14 @@ public UnaryCallSettings deleteLicenseSetti
     return ((LicenseStubSettings) getStubSettings()).deleteLicenseSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteLicense. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteLicenseOperationSettings() {
+    return ((LicenseStubSettings) getStubSettings()).deleteLicenseOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getLicense. */
   public UnaryCallSettings getLicenseSettings() {
     return ((LicenseStubSettings) getStubSettings()).getLicenseSettings();
@@ -83,6 +93,14 @@ public UnaryCallSettings insertLicenseSetti
     return ((LicenseStubSettings) getStubSettings()).insertLicenseSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertLicense. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertLicenseOperationSettings() {
+    return ((LicenseStubSettings) getStubSettings()).insertLicenseOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listLicenses. */
   public PagedCallSettings
       listLicensesSettings() {
@@ -206,6 +224,14 @@ public UnaryCallSettings.Builder deleteLice
       return getStubSettingsBuilder().deleteLicenseSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteLicense. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteLicenseOperationSettings() {
+      return getStubSettingsBuilder().deleteLicenseOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getLicense. */
     public UnaryCallSettings.Builder getLicenseSettings() {
       return getStubSettingsBuilder().getLicenseSettings();
@@ -222,6 +248,14 @@ public UnaryCallSettings.Builder insertLice
       return getStubSettingsBuilder().insertLicenseSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertLicense. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertLicenseOperationSettings() {
+      return getStubSettingsBuilder().insertLicenseOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listLicenses. */
     public PagedCallSettings.Builder<
             ListLicensesHttpRequest, LicensesListResponse, ListLicensesPagedResponse>
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkClient.java
index ff33058b68e4..09449dac5775 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.NetworkStub;
@@ -43,8 +46,7 @@
  * 
  * try (NetworkClient networkClient = NetworkClient.create()) {
  *   ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]");
- *   NetworksAddPeeringRequest networksAddPeeringRequestResource = NetworksAddPeeringRequest.newBuilder().build();
- *   Operation response = networkClient.addPeeringNetwork(network, networksAddPeeringRequestResource);
+ *   Network response = networkClient.getNetwork(network);
  * }
  * 
  * 
@@ -104,6 +106,7 @@ public class NetworkClient implements BackgroundResource { private final NetworkSettings settings; private final NetworkStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of NetworkClient with default settings. */ public static final NetworkClient create() throws IOException { @@ -134,12 +137,14 @@ public static final NetworkClient create(NetworkStub stub) { protected NetworkClient(NetworkSettings settings) throws IOException { this.settings = settings; this.stub = ((NetworkStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected NetworkClient(NetworkStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final NetworkSettings getSettings() { @@ -151,6 +156,16 @@ public NetworkStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Adds a peering to the specified network. @@ -161,7 +176,7 @@ public NetworkStub getStub() { * try (NetworkClient networkClient = NetworkClient.create()) { * ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]"); * NetworksAddPeeringRequest networksAddPeeringRequestResource = NetworksAddPeeringRequest.newBuilder().build(); - * Operation response = networkClient.addPeeringNetwork(network, networksAddPeeringRequestResource); + * networkClient.addPeeringNetworkAsync(network, networksAddPeeringRequestResource).get(); * } * * @@ -169,8 +184,9 @@ public NetworkStub getStub() { * @param networksAddPeeringRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addPeeringNetwork( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addPeeringNetworkAsync( ProjectGlobalNetworkName network, NetworksAddPeeringRequest networksAddPeeringRequestResource) { @@ -179,7 +195,7 @@ public final Operation addPeeringNetwork( .setNetwork(network == null ? null : network.toString()) .setNetworksAddPeeringRequestResource(networksAddPeeringRequestResource) .build(); - return addPeeringNetwork(request); + return addPeeringNetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -192,7 +208,7 @@ public final Operation addPeeringNetwork( * try (NetworkClient networkClient = NetworkClient.create()) { * ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]"); * NetworksAddPeeringRequest networksAddPeeringRequestResource = NetworksAddPeeringRequest.newBuilder().build(); - * Operation response = networkClient.addPeeringNetwork(network.toString(), networksAddPeeringRequestResource); + * networkClient.addPeeringNetworkAsync(network.toString(), networksAddPeeringRequestResource).get(); * } * * @@ -200,8 +216,9 @@ public final Operation addPeeringNetwork( * @param networksAddPeeringRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addPeeringNetwork( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addPeeringNetworkAsync( String network, NetworksAddPeeringRequest networksAddPeeringRequestResource) { AddPeeringNetworkHttpRequest request = @@ -209,7 +226,7 @@ public final Operation addPeeringNetwork( .setNetwork(network) .setNetworksAddPeeringRequestResource(networksAddPeeringRequestResource) .build(); - return addPeeringNetwork(request); + return addPeeringNetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -226,16 +243,44 @@ public final Operation addPeeringNetwork( * .setNetwork(network.toString()) * .setNetworksAddPeeringRequestResource(networksAddPeeringRequestResource) * .build(); - * Operation response = networkClient.addPeeringNetwork(request); + * networkClient.addPeeringNetworkAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addPeeringNetwork(AddPeeringNetworkHttpRequest request) { - return addPeeringNetworkCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addPeeringNetworkAsync( + AddPeeringNetworkHttpRequest request) { + return addPeeringNetworkOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Adds a peering to the specified network. + * + *

Sample code: + * + *


+   * try (NetworkClient networkClient = NetworkClient.create()) {
+   *   ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]");
+   *   NetworksAddPeeringRequest networksAddPeeringRequestResource = NetworksAddPeeringRequest.newBuilder().build();
+   *   AddPeeringNetworkHttpRequest request = AddPeeringNetworkHttpRequest.newBuilder()
+   *     .setNetwork(network.toString())
+   *     .setNetworksAddPeeringRequestResource(networksAddPeeringRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = networkClient.addPeeringNetworkOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + addPeeringNetworkOperationCallable() { + return stub.addPeeringNetworkOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -254,7 +299,7 @@ public final Operation addPeeringNetwork(AddPeeringNetworkHttpRequest request) { * .build(); * ApiFuture<Operation> future = networkClient.addPeeringNetworkCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -272,21 +317,23 @@ public final UnaryCallable addPeeringNe *

    * try (NetworkClient networkClient = NetworkClient.create()) {
    *   ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]");
-   *   Operation response = networkClient.deleteNetwork(network);
+   *   networkClient.deleteNetworkAsync(network).get();
    * }
    * 
* * @param network Name of the network to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteNetwork(ProjectGlobalNetworkName network) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteNetworkAsync( + ProjectGlobalNetworkName network) { DeleteNetworkHttpRequest request = DeleteNetworkHttpRequest.newBuilder() .setNetwork(network == null ? null : network.toString()) .build(); - return deleteNetwork(request); + return deleteNetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -298,19 +345,20 @@ public final Operation deleteNetwork(ProjectGlobalNetworkName network) { *

    * try (NetworkClient networkClient = NetworkClient.create()) {
    *   ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]");
-   *   Operation response = networkClient.deleteNetwork(network.toString());
+   *   networkClient.deleteNetworkAsync(network.toString()).get();
    * }
    * 
* * @param network Name of the network to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteNetwork(String network) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteNetworkAsync(String network) { DeleteNetworkHttpRequest request = DeleteNetworkHttpRequest.newBuilder().setNetwork(network).build(); - return deleteNetwork(request); + return deleteNetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -325,16 +373,42 @@ public final Operation deleteNetwork(String network) { * DeleteNetworkHttpRequest request = DeleteNetworkHttpRequest.newBuilder() * .setNetwork(network.toString()) * .build(); - * Operation response = networkClient.deleteNetwork(request); + * networkClient.deleteNetworkAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteNetwork(DeleteNetworkHttpRequest request) { - return deleteNetworkCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteNetworkAsync( + DeleteNetworkHttpRequest request) { + return deleteNetworkOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified network. + * + *

Sample code: + * + *


+   * try (NetworkClient networkClient = NetworkClient.create()) {
+   *   ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]");
+   *   DeleteNetworkHttpRequest request = DeleteNetworkHttpRequest.newBuilder()
+   *     .setNetwork(network.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = networkClient.deleteNetworkOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteNetworkOperationCallable() { + return stub.deleteNetworkOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -351,7 +425,7 @@ public final Operation deleteNetwork(DeleteNetworkHttpRequest request) { * .build(); * ApiFuture<Operation> future = networkClient.deleteNetworkCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -466,7 +540,7 @@ public final UnaryCallable getNetworkCallable() * try (NetworkClient networkClient = NetworkClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * Network networkResource = Network.newBuilder().build(); - * Operation response = networkClient.insertNetwork(project, networkResource); + * networkClient.insertNetworkAsync(project, networkResource).get(); * } * * @@ -476,15 +550,17 @@ public final UnaryCallable getNetworkCallable() * beta.networks ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertNetwork(ProjectName project, Network networkResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertNetworkAsync( + ProjectName project, Network networkResource) { InsertNetworkHttpRequest request = InsertNetworkHttpRequest.newBuilder() .setProject(project == null ? null : project.toString()) .setNetworkResource(networkResource) .build(); - return insertNetwork(request); + return insertNetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -497,7 +573,7 @@ public final Operation insertNetwork(ProjectName project, Network networkResourc * try (NetworkClient networkClient = NetworkClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * Network networkResource = Network.newBuilder().build(); - * Operation response = networkClient.insertNetwork(project.toString(), networkResource); + * networkClient.insertNetworkAsync(project.toString(), networkResource).get(); * } * * @@ -507,15 +583,17 @@ public final Operation insertNetwork(ProjectName project, Network networkResourc * beta.networks ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertNetwork(String project, Network networkResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertNetworkAsync( + String project, Network networkResource) { InsertNetworkHttpRequest request = InsertNetworkHttpRequest.newBuilder() .setProject(project) .setNetworkResource(networkResource) .build(); - return insertNetwork(request); + return insertNetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -532,16 +610,44 @@ public final Operation insertNetwork(String project, Network networkResource) { * .setProject(project.toString()) * .setNetworkResource(networkResource) * .build(); - * Operation response = networkClient.insertNetwork(request); + * networkClient.insertNetworkAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertNetwork(InsertNetworkHttpRequest request) { - return insertNetworkCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertNetworkAsync( + InsertNetworkHttpRequest request) { + return insertNetworkOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a network in the specified project using the data included in the request. + * + *

Sample code: + * + *


+   * try (NetworkClient networkClient = NetworkClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   Network networkResource = Network.newBuilder().build();
+   *   InsertNetworkHttpRequest request = InsertNetworkHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setNetworkResource(networkResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = networkClient.insertNetworkOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertNetworkOperationCallable() { + return stub.insertNetworkOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -560,7 +666,7 @@ public final Operation insertNetwork(InsertNetworkHttpRequest request) { * .build(); * ApiFuture<Operation> future = networkClient.insertNetworkCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -717,7 +823,7 @@ public final UnaryCallable listNetworksCal * ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]"); * Network networkResource = Network.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = networkClient.patchNetwork(network, networkResource, fieldMask); + * networkClient.patchNetworkAsync(network, networkResource, fieldMask).get(); * } * * @@ -731,8 +837,9 @@ public final UnaryCallable listNetworksCal * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchNetwork( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchNetworkAsync( ProjectGlobalNetworkName network, Network networkResource, List fieldMask) { PatchNetworkHttpRequest request = @@ -741,7 +848,7 @@ public final Operation patchNetwork( .setNetworkResource(networkResource) .addAllFieldMask(fieldMask) .build(); - return patchNetwork(request); + return patchNetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -756,7 +863,7 @@ public final Operation patchNetwork( * ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]"); * Network networkResource = Network.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = networkClient.patchNetwork(network.toString(), networkResource, fieldMask); + * networkClient.patchNetworkAsync(network.toString(), networkResource, fieldMask).get(); * } * * @@ -770,8 +877,9 @@ public final Operation patchNetwork( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchNetwork( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchNetworkAsync( String network, Network networkResource, List fieldMask) { PatchNetworkHttpRequest request = @@ -780,7 +888,7 @@ public final Operation patchNetwork( .setNetworkResource(networkResource) .addAllFieldMask(fieldMask) .build(); - return patchNetwork(request); + return patchNetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -800,16 +908,47 @@ public final Operation patchNetwork( * .setNetworkResource(networkResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = networkClient.patchNetwork(request); + * networkClient.patchNetworkAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchNetwork(PatchNetworkHttpRequest request) { - return patchNetworkCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchNetworkAsync( + PatchNetworkHttpRequest request) { + return patchNetworkOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Patches the specified network with the data included in the request. Only the following fields + * can be modified: routingConfig.routingMode. + * + *

Sample code: + * + *


+   * try (NetworkClient networkClient = NetworkClient.create()) {
+   *   ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]");
+   *   Network networkResource = Network.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   PatchNetworkHttpRequest request = PatchNetworkHttpRequest.newBuilder()
+   *     .setNetwork(network.toString())
+   *     .setNetworkResource(networkResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = networkClient.patchNetworkOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + patchNetworkOperationCallable() { + return stub.patchNetworkOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -831,7 +970,7 @@ public final Operation patchNetwork(PatchNetworkHttpRequest request) { * .build(); * ApiFuture<Operation> future = networkClient.patchNetworkCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -850,7 +989,7 @@ public final UnaryCallable patchNetworkCalla * try (NetworkClient networkClient = NetworkClient.create()) { * ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]"); * NetworksRemovePeeringRequest networksRemovePeeringRequestResource = NetworksRemovePeeringRequest.newBuilder().build(); - * Operation response = networkClient.removePeeringNetwork(network, networksRemovePeeringRequestResource); + * networkClient.removePeeringNetworkAsync(network, networksRemovePeeringRequestResource).get(); * } * * @@ -858,8 +997,9 @@ public final UnaryCallable patchNetworkCalla * @param networksRemovePeeringRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation removePeeringNetwork( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture removePeeringNetworkAsync( ProjectGlobalNetworkName network, NetworksRemovePeeringRequest networksRemovePeeringRequestResource) { @@ -868,7 +1008,7 @@ public final Operation removePeeringNetwork( .setNetwork(network == null ? null : network.toString()) .setNetworksRemovePeeringRequestResource(networksRemovePeeringRequestResource) .build(); - return removePeeringNetwork(request); + return removePeeringNetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -881,7 +1021,7 @@ public final Operation removePeeringNetwork( * try (NetworkClient networkClient = NetworkClient.create()) { * ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]"); * NetworksRemovePeeringRequest networksRemovePeeringRequestResource = NetworksRemovePeeringRequest.newBuilder().build(); - * Operation response = networkClient.removePeeringNetwork(network.toString(), networksRemovePeeringRequestResource); + * networkClient.removePeeringNetworkAsync(network.toString(), networksRemovePeeringRequestResource).get(); * } * * @@ -889,8 +1029,9 @@ public final Operation removePeeringNetwork( * @param networksRemovePeeringRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation removePeeringNetwork( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture removePeeringNetworkAsync( String network, NetworksRemovePeeringRequest networksRemovePeeringRequestResource) { RemovePeeringNetworkHttpRequest request = @@ -898,7 +1039,7 @@ public final Operation removePeeringNetwork( .setNetwork(network) .setNetworksRemovePeeringRequestResource(networksRemovePeeringRequestResource) .build(); - return removePeeringNetwork(request); + return removePeeringNetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -915,16 +1056,44 @@ public final Operation removePeeringNetwork( * .setNetwork(network.toString()) * .setNetworksRemovePeeringRequestResource(networksRemovePeeringRequestResource) * .build(); - * Operation response = networkClient.removePeeringNetwork(request); + * networkClient.removePeeringNetworkAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation removePeeringNetwork(RemovePeeringNetworkHttpRequest request) { - return removePeeringNetworkCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture removePeeringNetworkAsync( + RemovePeeringNetworkHttpRequest request) { + return removePeeringNetworkOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Removes a peering from the specified network. + * + *

Sample code: + * + *


+   * try (NetworkClient networkClient = NetworkClient.create()) {
+   *   ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]");
+   *   NetworksRemovePeeringRequest networksRemovePeeringRequestResource = NetworksRemovePeeringRequest.newBuilder().build();
+   *   RemovePeeringNetworkHttpRequest request = RemovePeeringNetworkHttpRequest.newBuilder()
+   *     .setNetwork(network.toString())
+   *     .setNetworksRemovePeeringRequestResource(networksRemovePeeringRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = networkClient.removePeeringNetworkOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + removePeeringNetworkOperationCallable() { + return stub.removePeeringNetworkOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -943,7 +1112,7 @@ public final Operation removePeeringNetwork(RemovePeeringNetworkHttpRequest requ * .build(); * ApiFuture<Operation> future = networkClient.removePeeringNetworkCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -962,21 +1131,23 @@ public final Operation removePeeringNetwork(RemovePeeringNetworkHttpRequest requ *

    * try (NetworkClient networkClient = NetworkClient.create()) {
    *   ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]");
-   *   Operation response = networkClient.switchToCustomModeNetwork(network);
+   *   networkClient.switchToCustomModeNetworkAsync(network).get();
    * }
    * 
* * @param network Name of the network to be updated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation switchToCustomModeNetwork(ProjectGlobalNetworkName network) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture switchToCustomModeNetworkAsync( + ProjectGlobalNetworkName network) { SwitchToCustomModeNetworkHttpRequest request = SwitchToCustomModeNetworkHttpRequest.newBuilder() .setNetwork(network == null ? null : network.toString()) .build(); - return switchToCustomModeNetwork(request); + return switchToCustomModeNetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -988,19 +1159,21 @@ public final Operation switchToCustomModeNetwork(ProjectGlobalNetworkName networ *

    * try (NetworkClient networkClient = NetworkClient.create()) {
    *   ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]");
-   *   Operation response = networkClient.switchToCustomModeNetwork(network.toString());
+   *   networkClient.switchToCustomModeNetworkAsync(network.toString()).get();
    * }
    * 
* * @param network Name of the network to be updated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation switchToCustomModeNetwork(String network) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture switchToCustomModeNetworkAsync( + String network) { SwitchToCustomModeNetworkHttpRequest request = SwitchToCustomModeNetworkHttpRequest.newBuilder().setNetwork(network).build(); - return switchToCustomModeNetwork(request); + return switchToCustomModeNetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1015,16 +1188,42 @@ public final Operation switchToCustomModeNetwork(String network) { * SwitchToCustomModeNetworkHttpRequest request = SwitchToCustomModeNetworkHttpRequest.newBuilder() * .setNetwork(network.toString()) * .build(); - * Operation response = networkClient.switchToCustomModeNetwork(request); + * networkClient.switchToCustomModeNetworkAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation switchToCustomModeNetwork(SwitchToCustomModeNetworkHttpRequest request) { - return switchToCustomModeNetworkCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture switchToCustomModeNetworkAsync( + SwitchToCustomModeNetworkHttpRequest request) { + return switchToCustomModeNetworkOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Switches the network mode from auto subnet mode to custom subnet mode. + * + *

Sample code: + * + *


+   * try (NetworkClient networkClient = NetworkClient.create()) {
+   *   ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]");
+   *   SwitchToCustomModeNetworkHttpRequest request = SwitchToCustomModeNetworkHttpRequest.newBuilder()
+   *     .setNetwork(network.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = networkClient.switchToCustomModeNetworkOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + switchToCustomModeNetworkOperationCallable() { + return stub.switchToCustomModeNetworkOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1041,7 +1240,7 @@ public final Operation switchToCustomModeNetwork(SwitchToCustomModeNetworkHttpRe * .build(); * ApiFuture<Operation> future = networkClient.switchToCustomModeNetworkCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkSettings.java index 8dc4a8f0a96e..79eca2d6e8eb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkSettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of addPeeringNetwork to 30 seconds: + * example, to set the total timeout of getNetwork to 30 seconds: * *

  * 
  * NetworkSettings.Builder networkSettingsBuilder =
  *     NetworkSettings.newBuilder();
- * networkSettingsBuilder.addPeeringNetworkSettings().getRetrySettings().toBuilder()
+ * networkSettingsBuilder.getNetworkSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * NetworkSettings networkSettings = networkSettingsBuilder.build();
  * 
@@ -68,11 +70,27 @@ public UnaryCallSettings addPeeringNetw
     return ((NetworkStubSettings) getStubSettings()).addPeeringNetworkSettings();
   }
 
+  /** Returns the object with the settings used for calls to addPeeringNetwork. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      addPeeringNetworkOperationSettings() {
+    return ((NetworkStubSettings) getStubSettings()).addPeeringNetworkOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to deleteNetwork. */
   public UnaryCallSettings deleteNetworkSettings() {
     return ((NetworkStubSettings) getStubSettings()).deleteNetworkSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteNetwork. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteNetworkOperationSettings() {
+    return ((NetworkStubSettings) getStubSettings()).deleteNetworkOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getNetwork. */
   public UnaryCallSettings getNetworkSettings() {
     return ((NetworkStubSettings) getStubSettings()).getNetworkSettings();
@@ -83,6 +101,14 @@ public UnaryCallSettings insertNetworkSetti
     return ((NetworkStubSettings) getStubSettings()).insertNetworkSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertNetwork. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertNetworkOperationSettings() {
+    return ((NetworkStubSettings) getStubSettings()).insertNetworkOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listNetworks. */
   public PagedCallSettings
       listNetworksSettings() {
@@ -94,18 +120,42 @@ public UnaryCallSettings patchNetworkSetting
     return ((NetworkStubSettings) getStubSettings()).patchNetworkSettings();
   }
 
+  /** Returns the object with the settings used for calls to patchNetwork. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchNetworkOperationSettings() {
+    return ((NetworkStubSettings) getStubSettings()).patchNetworkOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to removePeeringNetwork. */
   public UnaryCallSettings
       removePeeringNetworkSettings() {
     return ((NetworkStubSettings) getStubSettings()).removePeeringNetworkSettings();
   }
 
+  /** Returns the object with the settings used for calls to removePeeringNetwork. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      removePeeringNetworkOperationSettings() {
+    return ((NetworkStubSettings) getStubSettings()).removePeeringNetworkOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to switchToCustomModeNetwork. */
   public UnaryCallSettings
       switchToCustomModeNetworkSettings() {
     return ((NetworkStubSettings) getStubSettings()).switchToCustomModeNetworkSettings();
   }
 
+  /** Returns the object with the settings used for calls to switchToCustomModeNetwork. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      switchToCustomModeNetworkOperationSettings() {
+    return ((NetworkStubSettings) getStubSettings()).switchToCustomModeNetworkOperationSettings();
+  }
+
   public static final NetworkSettings create(NetworkStubSettings stub) throws IOException {
     return new NetworkSettings.Builder(stub.toBuilder()).build();
   }
@@ -213,11 +263,27 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().addPeeringNetworkSettings();
     }
 
+    /** Returns the builder for the settings used for calls to addPeeringNetwork. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        addPeeringNetworkOperationSettings() {
+      return getStubSettingsBuilder().addPeeringNetworkOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to deleteNetwork. */
     public UnaryCallSettings.Builder deleteNetworkSettings() {
       return getStubSettingsBuilder().deleteNetworkSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteNetwork. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteNetworkOperationSettings() {
+      return getStubSettingsBuilder().deleteNetworkOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getNetwork. */
     public UnaryCallSettings.Builder getNetworkSettings() {
       return getStubSettingsBuilder().getNetworkSettings();
@@ -228,6 +294,14 @@ public UnaryCallSettings.Builder insertNetw
       return getStubSettingsBuilder().insertNetworkSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertNetwork. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertNetworkOperationSettings() {
+      return getStubSettingsBuilder().insertNetworkOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listNetworks. */
     public PagedCallSettings.Builder<
             ListNetworksHttpRequest, NetworkList, ListNetworksPagedResponse>
@@ -240,18 +314,44 @@ public UnaryCallSettings.Builder patchNetwor
       return getStubSettingsBuilder().patchNetworkSettings();
     }
 
+    /** Returns the builder for the settings used for calls to patchNetwork. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchNetworkOperationSettings() {
+      return getStubSettingsBuilder().patchNetworkOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to removePeeringNetwork. */
     public UnaryCallSettings.Builder
         removePeeringNetworkSettings() {
       return getStubSettingsBuilder().removePeeringNetworkSettings();
     }
 
+    /** Returns the builder for the settings used for calls to removePeeringNetwork. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            RemovePeeringNetworkHttpRequest, EmptyMessage, EmptyMessage>
+        removePeeringNetworkOperationSettings() {
+      return getStubSettingsBuilder().removePeeringNetworkOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to switchToCustomModeNetwork. */
     public UnaryCallSettings.Builder
         switchToCustomModeNetworkSettings() {
       return getStubSettingsBuilder().switchToCustomModeNetworkSettings();
     }
 
+    /** Returns the builder for the settings used for calls to switchToCustomModeNetwork. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SwitchToCustomModeNetworkHttpRequest, EmptyMessage, EmptyMessage>
+        switchToCustomModeNetworkOperationSettings() {
+      return getStubSettingsBuilder().switchToCustomModeNetworkOperationSettings();
+    }
+
     @Override
     public NetworkSettings build() throws IOException {
       return new NetworkSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupClient.java
index 706aaaebb4ac..076ed5fa681b 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.NodeGroupStub;
@@ -43,8 +46,7 @@
  * 
  * try (NodeGroupClient nodeGroupClient = NodeGroupClient.create()) {
  *   ProjectZoneNodeGroupName nodeGroup = ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]");
- *   NodeGroupsAddNodesRequest nodeGroupsAddNodesRequestResource = NodeGroupsAddNodesRequest.newBuilder().build();
- *   Operation response = nodeGroupClient.addNodesNodeGroup(nodeGroup, nodeGroupsAddNodesRequestResource);
+ *   NodeGroup response = nodeGroupClient.getNodeGroup(nodeGroup);
  * }
  * 
  * 
@@ -104,6 +106,7 @@ public class NodeGroupClient implements BackgroundResource { private final NodeGroupSettings settings; private final NodeGroupStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of NodeGroupClient with default settings. */ public static final NodeGroupClient create() throws IOException { @@ -134,12 +137,14 @@ public static final NodeGroupClient create(NodeGroupStub stub) { protected NodeGroupClient(NodeGroupSettings settings) throws IOException { this.settings = settings; this.stub = ((NodeGroupStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected NodeGroupClient(NodeGroupStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final NodeGroupSettings getSettings() { @@ -151,6 +156,16 @@ public NodeGroupStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Adds specified number of nodes to the node group. @@ -161,7 +176,7 @@ public NodeGroupStub getStub() { * try (NodeGroupClient nodeGroupClient = NodeGroupClient.create()) { * ProjectZoneNodeGroupName nodeGroup = ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]"); * NodeGroupsAddNodesRequest nodeGroupsAddNodesRequestResource = NodeGroupsAddNodesRequest.newBuilder().build(); - * Operation response = nodeGroupClient.addNodesNodeGroup(nodeGroup, nodeGroupsAddNodesRequestResource); + * nodeGroupClient.addNodesNodeGroupAsync(nodeGroup, nodeGroupsAddNodesRequestResource).get(); * } * * @@ -169,8 +184,9 @@ public NodeGroupStub getStub() { * @param nodeGroupsAddNodesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addNodesNodeGroup( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addNodesNodeGroupAsync( ProjectZoneNodeGroupName nodeGroup, NodeGroupsAddNodesRequest nodeGroupsAddNodesRequestResource) { @@ -179,7 +195,7 @@ public final Operation addNodesNodeGroup( .setNodeGroup(nodeGroup == null ? null : nodeGroup.toString()) .setNodeGroupsAddNodesRequestResource(nodeGroupsAddNodesRequestResource) .build(); - return addNodesNodeGroup(request); + return addNodesNodeGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -192,7 +208,7 @@ public final Operation addNodesNodeGroup( * try (NodeGroupClient nodeGroupClient = NodeGroupClient.create()) { * ProjectZoneNodeGroupName nodeGroup = ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]"); * NodeGroupsAddNodesRequest nodeGroupsAddNodesRequestResource = NodeGroupsAddNodesRequest.newBuilder().build(); - * Operation response = nodeGroupClient.addNodesNodeGroup(nodeGroup.toString(), nodeGroupsAddNodesRequestResource); + * nodeGroupClient.addNodesNodeGroupAsync(nodeGroup.toString(), nodeGroupsAddNodesRequestResource).get(); * } * * @@ -200,8 +216,9 @@ public final Operation addNodesNodeGroup( * @param nodeGroupsAddNodesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addNodesNodeGroup( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addNodesNodeGroupAsync( String nodeGroup, NodeGroupsAddNodesRequest nodeGroupsAddNodesRequestResource) { AddNodesNodeGroupHttpRequest request = @@ -209,7 +226,7 @@ public final Operation addNodesNodeGroup( .setNodeGroup(nodeGroup) .setNodeGroupsAddNodesRequestResource(nodeGroupsAddNodesRequestResource) .build(); - return addNodesNodeGroup(request); + return addNodesNodeGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -226,16 +243,44 @@ public final Operation addNodesNodeGroup( * .setNodeGroup(nodeGroup.toString()) * .setNodeGroupsAddNodesRequestResource(nodeGroupsAddNodesRequestResource) * .build(); - * Operation response = nodeGroupClient.addNodesNodeGroup(request); + * nodeGroupClient.addNodesNodeGroupAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addNodesNodeGroup(AddNodesNodeGroupHttpRequest request) { - return addNodesNodeGroupCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addNodesNodeGroupAsync( + AddNodesNodeGroupHttpRequest request) { + return addNodesNodeGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Adds specified number of nodes to the node group. + * + *

Sample code: + * + *


+   * try (NodeGroupClient nodeGroupClient = NodeGroupClient.create()) {
+   *   ProjectZoneNodeGroupName nodeGroup = ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]");
+   *   NodeGroupsAddNodesRequest nodeGroupsAddNodesRequestResource = NodeGroupsAddNodesRequest.newBuilder().build();
+   *   AddNodesNodeGroupHttpRequest request = AddNodesNodeGroupHttpRequest.newBuilder()
+   *     .setNodeGroup(nodeGroup.toString())
+   *     .setNodeGroupsAddNodesRequestResource(nodeGroupsAddNodesRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = nodeGroupClient.addNodesNodeGroupOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + addNodesNodeGroupOperationCallable() { + return stub.addNodesNodeGroupOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -254,7 +299,7 @@ public final Operation addNodesNodeGroup(AddNodesNodeGroupHttpRequest request) { * .build(); * ApiFuture<Operation> future = nodeGroupClient.addNodesNodeGroupCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -416,21 +461,23 @@ public final AggregatedListNodeGroupsPagedResponse aggregatedListNodeGroups( *

    * try (NodeGroupClient nodeGroupClient = NodeGroupClient.create()) {
    *   ProjectZoneNodeGroupName nodeGroup = ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]");
-   *   Operation response = nodeGroupClient.deleteNodeGroup(nodeGroup);
+   *   nodeGroupClient.deleteNodeGroupAsync(nodeGroup).get();
    * }
    * 
* * @param nodeGroup Name of the NodeGroup resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteNodeGroup(ProjectZoneNodeGroupName nodeGroup) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteNodeGroupAsync( + ProjectZoneNodeGroupName nodeGroup) { DeleteNodeGroupHttpRequest request = DeleteNodeGroupHttpRequest.newBuilder() .setNodeGroup(nodeGroup == null ? null : nodeGroup.toString()) .build(); - return deleteNodeGroup(request); + return deleteNodeGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -442,19 +489,20 @@ public final Operation deleteNodeGroup(ProjectZoneNodeGroupName nodeGroup) { *

    * try (NodeGroupClient nodeGroupClient = NodeGroupClient.create()) {
    *   ProjectZoneNodeGroupName nodeGroup = ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]");
-   *   Operation response = nodeGroupClient.deleteNodeGroup(nodeGroup.toString());
+   *   nodeGroupClient.deleteNodeGroupAsync(nodeGroup.toString()).get();
    * }
    * 
* * @param nodeGroup Name of the NodeGroup resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteNodeGroup(String nodeGroup) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteNodeGroupAsync(String nodeGroup) { DeleteNodeGroupHttpRequest request = DeleteNodeGroupHttpRequest.newBuilder().setNodeGroup(nodeGroup).build(); - return deleteNodeGroup(request); + return deleteNodeGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -469,16 +517,42 @@ public final Operation deleteNodeGroup(String nodeGroup) { * DeleteNodeGroupHttpRequest request = DeleteNodeGroupHttpRequest.newBuilder() * .setNodeGroup(nodeGroup.toString()) * .build(); - * Operation response = nodeGroupClient.deleteNodeGroup(request); + * nodeGroupClient.deleteNodeGroupAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteNodeGroup(DeleteNodeGroupHttpRequest request) { - return deleteNodeGroupCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteNodeGroupAsync( + DeleteNodeGroupHttpRequest request) { + return deleteNodeGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified NodeGroup resource. + * + *

Sample code: + * + *


+   * try (NodeGroupClient nodeGroupClient = NodeGroupClient.create()) {
+   *   ProjectZoneNodeGroupName nodeGroup = ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]");
+   *   DeleteNodeGroupHttpRequest request = DeleteNodeGroupHttpRequest.newBuilder()
+   *     .setNodeGroup(nodeGroup.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = nodeGroupClient.deleteNodeGroupOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteNodeGroupOperationCallable() { + return stub.deleteNodeGroupOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -495,7 +569,7 @@ public final Operation deleteNodeGroup(DeleteNodeGroupHttpRequest request) { * .build(); * ApiFuture<Operation> future = nodeGroupClient.deleteNodeGroupCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -514,7 +588,7 @@ public final UnaryCallable deleteNodeGrou * try (NodeGroupClient nodeGroupClient = NodeGroupClient.create()) { * ProjectZoneNodeGroupName nodeGroup = ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]"); * NodeGroupsDeleteNodesRequest nodeGroupsDeleteNodesRequestResource = NodeGroupsDeleteNodesRequest.newBuilder().build(); - * Operation response = nodeGroupClient.deleteNodesNodeGroup(nodeGroup, nodeGroupsDeleteNodesRequestResource); + * nodeGroupClient.deleteNodesNodeGroupAsync(nodeGroup, nodeGroupsDeleteNodesRequestResource).get(); * } * * @@ -522,8 +596,9 @@ public final UnaryCallable deleteNodeGrou * @param nodeGroupsDeleteNodesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteNodesNodeGroup( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteNodesNodeGroupAsync( ProjectZoneNodeGroupName nodeGroup, NodeGroupsDeleteNodesRequest nodeGroupsDeleteNodesRequestResource) { @@ -532,7 +607,7 @@ public final Operation deleteNodesNodeGroup( .setNodeGroup(nodeGroup == null ? null : nodeGroup.toString()) .setNodeGroupsDeleteNodesRequestResource(nodeGroupsDeleteNodesRequestResource) .build(); - return deleteNodesNodeGroup(request); + return deleteNodesNodeGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -545,7 +620,7 @@ public final Operation deleteNodesNodeGroup( * try (NodeGroupClient nodeGroupClient = NodeGroupClient.create()) { * ProjectZoneNodeGroupName nodeGroup = ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]"); * NodeGroupsDeleteNodesRequest nodeGroupsDeleteNodesRequestResource = NodeGroupsDeleteNodesRequest.newBuilder().build(); - * Operation response = nodeGroupClient.deleteNodesNodeGroup(nodeGroup.toString(), nodeGroupsDeleteNodesRequestResource); + * nodeGroupClient.deleteNodesNodeGroupAsync(nodeGroup.toString(), nodeGroupsDeleteNodesRequestResource).get(); * } * * @@ -553,8 +628,9 @@ public final Operation deleteNodesNodeGroup( * @param nodeGroupsDeleteNodesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteNodesNodeGroup( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteNodesNodeGroupAsync( String nodeGroup, NodeGroupsDeleteNodesRequest nodeGroupsDeleteNodesRequestResource) { DeleteNodesNodeGroupHttpRequest request = @@ -562,7 +638,7 @@ public final Operation deleteNodesNodeGroup( .setNodeGroup(nodeGroup) .setNodeGroupsDeleteNodesRequestResource(nodeGroupsDeleteNodesRequestResource) .build(); - return deleteNodesNodeGroup(request); + return deleteNodesNodeGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -579,16 +655,44 @@ public final Operation deleteNodesNodeGroup( * .setNodeGroup(nodeGroup.toString()) * .setNodeGroupsDeleteNodesRequestResource(nodeGroupsDeleteNodesRequestResource) * .build(); - * Operation response = nodeGroupClient.deleteNodesNodeGroup(request); + * nodeGroupClient.deleteNodesNodeGroupAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteNodesNodeGroup(DeleteNodesNodeGroupHttpRequest request) { - return deleteNodesNodeGroupCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteNodesNodeGroupAsync( + DeleteNodesNodeGroupHttpRequest request) { + return deleteNodesNodeGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes specified nodes from the node group. + * + *

Sample code: + * + *


+   * try (NodeGroupClient nodeGroupClient = NodeGroupClient.create()) {
+   *   ProjectZoneNodeGroupName nodeGroup = ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]");
+   *   NodeGroupsDeleteNodesRequest nodeGroupsDeleteNodesRequestResource = NodeGroupsDeleteNodesRequest.newBuilder().build();
+   *   DeleteNodesNodeGroupHttpRequest request = DeleteNodesNodeGroupHttpRequest.newBuilder()
+   *     .setNodeGroup(nodeGroup.toString())
+   *     .setNodeGroupsDeleteNodesRequestResource(nodeGroupsDeleteNodesRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = nodeGroupClient.deleteNodesNodeGroupOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteNodesNodeGroupOperationCallable() { + return stub.deleteNodesNodeGroupOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -607,7 +711,7 @@ public final Operation deleteNodesNodeGroup(DeleteNodesNodeGroupHttpRequest requ * .build(); * ApiFuture<Operation> future = nodeGroupClient.deleteNodesNodeGroupCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -831,7 +935,7 @@ public final Policy getIamPolicyNodeGroup(GetIamPolicyNodeGroupHttpRequest reque * Integer initialNodeCount = 0; * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); * NodeGroup nodeGroupResource = NodeGroup.newBuilder().build(); - * Operation response = nodeGroupClient.insertNodeGroup(initialNodeCount, zone, nodeGroupResource); + * nodeGroupClient.insertNodeGroupAsync(initialNodeCount, zone, nodeGroupResource).get(); * } * * @@ -840,8 +944,9 @@ public final Policy getIamPolicyNodeGroup(GetIamPolicyNodeGroupHttpRequest reque * @param nodeGroupResource A NodeGroup resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertNodeGroup( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertNodeGroupAsync( Integer initialNodeCount, ProjectZoneName zone, NodeGroup nodeGroupResource) { InsertNodeGroupHttpRequest request = @@ -850,7 +955,7 @@ public final Operation insertNodeGroup( .setZone(zone == null ? null : zone.toString()) .setNodeGroupResource(nodeGroupResource) .build(); - return insertNodeGroup(request); + return insertNodeGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -864,7 +969,7 @@ public final Operation insertNodeGroup( * Integer initialNodeCount = 0; * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); * NodeGroup nodeGroupResource = NodeGroup.newBuilder().build(); - * Operation response = nodeGroupClient.insertNodeGroup(initialNodeCount, zone.toString(), nodeGroupResource); + * nodeGroupClient.insertNodeGroupAsync(initialNodeCount, zone.toString(), nodeGroupResource).get(); * } * * @@ -873,8 +978,9 @@ public final Operation insertNodeGroup( * @param nodeGroupResource A NodeGroup resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertNodeGroup( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertNodeGroupAsync( Integer initialNodeCount, String zone, NodeGroup nodeGroupResource) { InsertNodeGroupHttpRequest request = @@ -883,7 +989,7 @@ public final Operation insertNodeGroup( .setZone(zone) .setNodeGroupResource(nodeGroupResource) .build(); - return insertNodeGroup(request); + return insertNodeGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -902,16 +1008,46 @@ public final Operation insertNodeGroup( * .setZone(zone.toString()) * .setNodeGroupResource(nodeGroupResource) * .build(); - * Operation response = nodeGroupClient.insertNodeGroup(request); + * nodeGroupClient.insertNodeGroupAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertNodeGroup(InsertNodeGroupHttpRequest request) { - return insertNodeGroupCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertNodeGroupAsync( + InsertNodeGroupHttpRequest request) { + return insertNodeGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a NodeGroup resource in the specified project using the data included in the request. + * + *

Sample code: + * + *


+   * try (NodeGroupClient nodeGroupClient = NodeGroupClient.create()) {
+   *   Integer initialNodeCount = 0;
+   *   ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+   *   NodeGroup nodeGroupResource = NodeGroup.newBuilder().build();
+   *   InsertNodeGroupHttpRequest request = InsertNodeGroupHttpRequest.newBuilder()
+   *     .setInitialNodeCount(initialNodeCount)
+   *     .setZone(zone.toString())
+   *     .setNodeGroupResource(nodeGroupResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = nodeGroupClient.insertNodeGroupOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertNodeGroupOperationCallable() { + return stub.insertNodeGroupOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -932,7 +1068,7 @@ public final Operation insertNodeGroup(InsertNodeGroupHttpRequest request) { * .build(); * ApiFuture<Operation> future = nodeGroupClient.insertNodeGroupCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1344,7 +1480,7 @@ public final Policy setIamPolicyNodeGroup(SetIamPolicyNodeGroupHttpRequest reque * try (NodeGroupClient nodeGroupClient = NodeGroupClient.create()) { * ProjectZoneNodeGroupName nodeGroup = ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]"); * NodeGroupsSetNodeTemplateRequest nodeGroupsSetNodeTemplateRequestResource = NodeGroupsSetNodeTemplateRequest.newBuilder().build(); - * Operation response = nodeGroupClient.setNodeTemplateNodeGroup(nodeGroup, nodeGroupsSetNodeTemplateRequestResource); + * nodeGroupClient.setNodeTemplateNodeGroupAsync(nodeGroup, nodeGroupsSetNodeTemplateRequestResource).get(); * } * * @@ -1352,8 +1488,9 @@ public final Policy setIamPolicyNodeGroup(SetIamPolicyNodeGroupHttpRequest reque * @param nodeGroupsSetNodeTemplateRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setNodeTemplateNodeGroup( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setNodeTemplateNodeGroupAsync( ProjectZoneNodeGroupName nodeGroup, NodeGroupsSetNodeTemplateRequest nodeGroupsSetNodeTemplateRequestResource) { @@ -1362,7 +1499,7 @@ public final Operation setNodeTemplateNodeGroup( .setNodeGroup(nodeGroup == null ? null : nodeGroup.toString()) .setNodeGroupsSetNodeTemplateRequestResource(nodeGroupsSetNodeTemplateRequestResource) .build(); - return setNodeTemplateNodeGroup(request); + return setNodeTemplateNodeGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1375,7 +1512,7 @@ public final Operation setNodeTemplateNodeGroup( * try (NodeGroupClient nodeGroupClient = NodeGroupClient.create()) { * ProjectZoneNodeGroupName nodeGroup = ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]"); * NodeGroupsSetNodeTemplateRequest nodeGroupsSetNodeTemplateRequestResource = NodeGroupsSetNodeTemplateRequest.newBuilder().build(); - * Operation response = nodeGroupClient.setNodeTemplateNodeGroup(nodeGroup.toString(), nodeGroupsSetNodeTemplateRequestResource); + * nodeGroupClient.setNodeTemplateNodeGroupAsync(nodeGroup.toString(), nodeGroupsSetNodeTemplateRequestResource).get(); * } * * @@ -1383,8 +1520,9 @@ public final Operation setNodeTemplateNodeGroup( * @param nodeGroupsSetNodeTemplateRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setNodeTemplateNodeGroup( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setNodeTemplateNodeGroupAsync( String nodeGroup, NodeGroupsSetNodeTemplateRequest nodeGroupsSetNodeTemplateRequestResource) { SetNodeTemplateNodeGroupHttpRequest request = @@ -1392,7 +1530,7 @@ public final Operation setNodeTemplateNodeGroup( .setNodeGroup(nodeGroup) .setNodeGroupsSetNodeTemplateRequestResource(nodeGroupsSetNodeTemplateRequestResource) .build(); - return setNodeTemplateNodeGroup(request); + return setNodeTemplateNodeGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1409,16 +1547,44 @@ public final Operation setNodeTemplateNodeGroup( * .setNodeGroup(nodeGroup.toString()) * .setNodeGroupsSetNodeTemplateRequestResource(nodeGroupsSetNodeTemplateRequestResource) * .build(); - * Operation response = nodeGroupClient.setNodeTemplateNodeGroup(request); + * nodeGroupClient.setNodeTemplateNodeGroupAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setNodeTemplateNodeGroup(SetNodeTemplateNodeGroupHttpRequest request) { - return setNodeTemplateNodeGroupCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setNodeTemplateNodeGroupAsync( + SetNodeTemplateNodeGroupHttpRequest request) { + return setNodeTemplateNodeGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the node template of the node group. + * + *

Sample code: + * + *


+   * try (NodeGroupClient nodeGroupClient = NodeGroupClient.create()) {
+   *   ProjectZoneNodeGroupName nodeGroup = ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]");
+   *   NodeGroupsSetNodeTemplateRequest nodeGroupsSetNodeTemplateRequestResource = NodeGroupsSetNodeTemplateRequest.newBuilder().build();
+   *   SetNodeTemplateNodeGroupHttpRequest request = SetNodeTemplateNodeGroupHttpRequest.newBuilder()
+   *     .setNodeGroup(nodeGroup.toString())
+   *     .setNodeGroupsSetNodeTemplateRequestResource(nodeGroupsSetNodeTemplateRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = nodeGroupClient.setNodeTemplateNodeGroupOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + setNodeTemplateNodeGroupOperationCallable() { + return stub.setNodeTemplateNodeGroupOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1437,7 +1603,7 @@ public final Operation setNodeTemplateNodeGroup(SetNodeTemplateNodeGroupHttpRequ * .build(); * ApiFuture<Operation> future = nodeGroupClient.setNodeTemplateNodeGroupCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupSettings.java index e613c3c34d9e..aaa4defd940f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupSettings.java @@ -23,10 +23,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -50,13 +52,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of addNodesNodeGroup to 30 seconds: + * example, to set the total timeout of getNodeGroup to 30 seconds: * *

  * 
  * NodeGroupSettings.Builder nodeGroupSettingsBuilder =
  *     NodeGroupSettings.newBuilder();
- * nodeGroupSettingsBuilder.addNodesNodeGroupSettings().getRetrySettings().toBuilder()
+ * nodeGroupSettingsBuilder.getNodeGroupSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * NodeGroupSettings nodeGroupSettings = nodeGroupSettingsBuilder.build();
  * 
@@ -70,6 +72,14 @@ public UnaryCallSettings addNodesNodeGr
     return ((NodeGroupStubSettings) getStubSettings()).addNodesNodeGroupSettings();
   }
 
+  /** Returns the object with the settings used for calls to addNodesNodeGroup. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      addNodesNodeGroupOperationSettings() {
+    return ((NodeGroupStubSettings) getStubSettings()).addNodesNodeGroupOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to aggregatedListNodeGroups. */
   public PagedCallSettings<
           AggregatedListNodeGroupsHttpRequest,
@@ -84,12 +94,28 @@ public UnaryCallSettings deleteNodeGroupS
     return ((NodeGroupStubSettings) getStubSettings()).deleteNodeGroupSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteNodeGroup. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteNodeGroupOperationSettings() {
+    return ((NodeGroupStubSettings) getStubSettings()).deleteNodeGroupOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to deleteNodesNodeGroup. */
   public UnaryCallSettings
       deleteNodesNodeGroupSettings() {
     return ((NodeGroupStubSettings) getStubSettings()).deleteNodesNodeGroupSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteNodesNodeGroup. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteNodesNodeGroupOperationSettings() {
+    return ((NodeGroupStubSettings) getStubSettings()).deleteNodesNodeGroupOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getNodeGroup. */
   public UnaryCallSettings getNodeGroupSettings() {
     return ((NodeGroupStubSettings) getStubSettings()).getNodeGroupSettings();
@@ -106,6 +132,14 @@ public UnaryCallSettings insertNodeGroupS
     return ((NodeGroupStubSettings) getStubSettings()).insertNodeGroupSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertNodeGroup. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertNodeGroupOperationSettings() {
+    return ((NodeGroupStubSettings) getStubSettings()).insertNodeGroupOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listNodeGroups. */
   public PagedCallSettings
       listNodeGroupsSettings() {
@@ -131,6 +165,14 @@ public UnaryCallSettings insertNodeGroupS
     return ((NodeGroupStubSettings) getStubSettings()).setNodeTemplateNodeGroupSettings();
   }
 
+  /** Returns the object with the settings used for calls to setNodeTemplateNodeGroup. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setNodeTemplateNodeGroupOperationSettings() {
+    return ((NodeGroupStubSettings) getStubSettings()).setNodeTemplateNodeGroupOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to testIamPermissionsNodeGroup. */
   public UnaryCallSettings
       testIamPermissionsNodeGroupSettings() {
@@ -244,6 +286,14 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().addNodesNodeGroupSettings();
     }
 
+    /** Returns the builder for the settings used for calls to addNodesNodeGroup. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        addNodesNodeGroupOperationSettings() {
+      return getStubSettingsBuilder().addNodesNodeGroupOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to aggregatedListNodeGroups. */
     public PagedCallSettings.Builder<
             AggregatedListNodeGroupsHttpRequest,
@@ -259,12 +309,29 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteNodeGroupSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteNodeGroup. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteNodeGroupOperationSettings() {
+      return getStubSettingsBuilder().deleteNodeGroupOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to deleteNodesNodeGroup. */
     public UnaryCallSettings.Builder
         deleteNodesNodeGroupSettings() {
       return getStubSettingsBuilder().deleteNodesNodeGroupSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteNodesNodeGroup. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteNodesNodeGroupHttpRequest, EmptyMessage, EmptyMessage>
+        deleteNodesNodeGroupOperationSettings() {
+      return getStubSettingsBuilder().deleteNodesNodeGroupOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getNodeGroup. */
     public UnaryCallSettings.Builder getNodeGroupSettings() {
       return getStubSettingsBuilder().getNodeGroupSettings();
@@ -282,6 +349,14 @@ public UnaryCallSettings.Builder getNodeGrou
       return getStubSettingsBuilder().insertNodeGroupSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertNodeGroup. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertNodeGroupOperationSettings() {
+      return getStubSettingsBuilder().insertNodeGroupOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listNodeGroups. */
     public PagedCallSettings.Builder<
             ListNodeGroupsHttpRequest, NodeGroupList, ListNodeGroupsPagedResponse>
@@ -308,6 +383,15 @@ public UnaryCallSettings.Builder getNodeGrou
       return getStubSettingsBuilder().setNodeTemplateNodeGroupSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setNodeTemplateNodeGroup. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetNodeTemplateNodeGroupHttpRequest, EmptyMessage, EmptyMessage>
+        setNodeTemplateNodeGroupOperationSettings() {
+      return getStubSettingsBuilder().setNodeTemplateNodeGroupOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to testIamPermissionsNodeGroup. */
     public UnaryCallSettings.Builder<
             TestIamPermissionsNodeGroupHttpRequest, TestPermissionsResponse>
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateClient.java
index 698632e89990..4854859e386d 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.NodeTemplateStub;
@@ -43,7 +46,7 @@
  * 
  * try (NodeTemplateClient nodeTemplateClient = NodeTemplateClient.create()) {
  *   ProjectRegionNodeTemplateName nodeTemplate = ProjectRegionNodeTemplateName.of("[PROJECT]", "[REGION]", "[NODE_TEMPLATE]");
- *   Operation response = nodeTemplateClient.deleteNodeTemplate(nodeTemplate);
+ *   NodeTemplate response = nodeTemplateClient.getNodeTemplate(nodeTemplate);
  * }
  * 
  * 
@@ -103,6 +106,7 @@ public class NodeTemplateClient implements BackgroundResource { private final NodeTemplateSettings settings; private final NodeTemplateStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of NodeTemplateClient with default settings. */ public static final NodeTemplateClient create() throws IOException { @@ -134,12 +138,14 @@ public static final NodeTemplateClient create(NodeTemplateStub stub) { protected NodeTemplateClient(NodeTemplateSettings settings) throws IOException { this.settings = settings; this.stub = ((NodeTemplateStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected NodeTemplateClient(NodeTemplateStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final NodeTemplateSettings getSettings() { @@ -151,6 +157,16 @@ public NodeTemplateStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Retrieves an aggregated list of node templates. @@ -301,21 +317,23 @@ public final AggregatedListNodeTemplatesPagedResponse aggregatedListNodeTemplate *

    * try (NodeTemplateClient nodeTemplateClient = NodeTemplateClient.create()) {
    *   ProjectRegionNodeTemplateName nodeTemplate = ProjectRegionNodeTemplateName.of("[PROJECT]", "[REGION]", "[NODE_TEMPLATE]");
-   *   Operation response = nodeTemplateClient.deleteNodeTemplate(nodeTemplate);
+   *   nodeTemplateClient.deleteNodeTemplateAsync(nodeTemplate).get();
    * }
    * 
* * @param nodeTemplate Name of the NodeTemplate resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteNodeTemplate(ProjectRegionNodeTemplateName nodeTemplate) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteNodeTemplateAsync( + ProjectRegionNodeTemplateName nodeTemplate) { DeleteNodeTemplateHttpRequest request = DeleteNodeTemplateHttpRequest.newBuilder() .setNodeTemplate(nodeTemplate == null ? null : nodeTemplate.toString()) .build(); - return deleteNodeTemplate(request); + return deleteNodeTemplateAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -327,19 +345,21 @@ public final Operation deleteNodeTemplate(ProjectRegionNodeTemplateName nodeTemp *

    * try (NodeTemplateClient nodeTemplateClient = NodeTemplateClient.create()) {
    *   ProjectRegionNodeTemplateName nodeTemplate = ProjectRegionNodeTemplateName.of("[PROJECT]", "[REGION]", "[NODE_TEMPLATE]");
-   *   Operation response = nodeTemplateClient.deleteNodeTemplate(nodeTemplate.toString());
+   *   nodeTemplateClient.deleteNodeTemplateAsync(nodeTemplate.toString()).get();
    * }
    * 
* * @param nodeTemplate Name of the NodeTemplate resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteNodeTemplate(String nodeTemplate) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteNodeTemplateAsync( + String nodeTemplate) { DeleteNodeTemplateHttpRequest request = DeleteNodeTemplateHttpRequest.newBuilder().setNodeTemplate(nodeTemplate).build(); - return deleteNodeTemplate(request); + return deleteNodeTemplateAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -354,16 +374,42 @@ public final Operation deleteNodeTemplate(String nodeTemplate) { * DeleteNodeTemplateHttpRequest request = DeleteNodeTemplateHttpRequest.newBuilder() * .setNodeTemplate(nodeTemplate.toString()) * .build(); - * Operation response = nodeTemplateClient.deleteNodeTemplate(request); + * nodeTemplateClient.deleteNodeTemplateAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteNodeTemplate(DeleteNodeTemplateHttpRequest request) { - return deleteNodeTemplateCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteNodeTemplateAsync( + DeleteNodeTemplateHttpRequest request) { + return deleteNodeTemplateOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified NodeTemplate resource. + * + *

Sample code: + * + *


+   * try (NodeTemplateClient nodeTemplateClient = NodeTemplateClient.create()) {
+   *   ProjectRegionNodeTemplateName nodeTemplate = ProjectRegionNodeTemplateName.of("[PROJECT]", "[REGION]", "[NODE_TEMPLATE]");
+   *   DeleteNodeTemplateHttpRequest request = DeleteNodeTemplateHttpRequest.newBuilder()
+   *     .setNodeTemplate(nodeTemplate.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = nodeTemplateClient.deleteNodeTemplateOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteNodeTemplateOperationCallable() { + return stub.deleteNodeTemplateOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -380,7 +426,7 @@ public final Operation deleteNodeTemplate(DeleteNodeTemplateHttpRequest request) * .build(); * ApiFuture<Operation> future = nodeTemplateClient.deleteNodeTemplateCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -604,7 +650,7 @@ public final Policy getIamPolicyNodeTemplate(GetIamPolicyNodeTemplateHttpRequest * try (NodeTemplateClient nodeTemplateClient = NodeTemplateClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * NodeTemplate nodeTemplateResource = NodeTemplate.newBuilder().build(); - * Operation response = nodeTemplateClient.insertNodeTemplate(region, nodeTemplateResource); + * nodeTemplateClient.insertNodeTemplateAsync(region, nodeTemplateResource).get(); * } * * @@ -612,8 +658,9 @@ public final Policy getIamPolicyNodeTemplate(GetIamPolicyNodeTemplateHttpRequest * @param nodeTemplateResource A Node Template resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertNodeTemplate( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertNodeTemplateAsync( ProjectRegionName region, NodeTemplate nodeTemplateResource) { InsertNodeTemplateHttpRequest request = @@ -621,7 +668,7 @@ public final Operation insertNodeTemplate( .setRegion(region == null ? null : region.toString()) .setNodeTemplateResource(nodeTemplateResource) .build(); - return insertNodeTemplate(request); + return insertNodeTemplateAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -635,7 +682,7 @@ public final Operation insertNodeTemplate( * try (NodeTemplateClient nodeTemplateClient = NodeTemplateClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * NodeTemplate nodeTemplateResource = NodeTemplate.newBuilder().build(); - * Operation response = nodeTemplateClient.insertNodeTemplate(region.toString(), nodeTemplateResource); + * nodeTemplateClient.insertNodeTemplateAsync(region.toString(), nodeTemplateResource).get(); * } * * @@ -643,15 +690,17 @@ public final Operation insertNodeTemplate( * @param nodeTemplateResource A Node Template resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertNodeTemplate(String region, NodeTemplate nodeTemplateResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertNodeTemplateAsync( + String region, NodeTemplate nodeTemplateResource) { InsertNodeTemplateHttpRequest request = InsertNodeTemplateHttpRequest.newBuilder() .setRegion(region) .setNodeTemplateResource(nodeTemplateResource) .build(); - return insertNodeTemplate(request); + return insertNodeTemplateAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -669,16 +718,45 @@ public final Operation insertNodeTemplate(String region, NodeTemplate nodeTempla * .setRegion(region.toString()) * .setNodeTemplateResource(nodeTemplateResource) * .build(); - * Operation response = nodeTemplateClient.insertNodeTemplate(request); + * nodeTemplateClient.insertNodeTemplateAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertNodeTemplate(InsertNodeTemplateHttpRequest request) { - return insertNodeTemplateCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertNodeTemplateAsync( + InsertNodeTemplateHttpRequest request) { + return insertNodeTemplateOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a NodeTemplate resource in the specified project using the data included in the + * request. + * + *

Sample code: + * + *


+   * try (NodeTemplateClient nodeTemplateClient = NodeTemplateClient.create()) {
+   *   ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
+   *   NodeTemplate nodeTemplateResource = NodeTemplate.newBuilder().build();
+   *   InsertNodeTemplateHttpRequest request = InsertNodeTemplateHttpRequest.newBuilder()
+   *     .setRegion(region.toString())
+   *     .setNodeTemplateResource(nodeTemplateResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = nodeTemplateClient.insertNodeTemplateOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertNodeTemplateOperationCallable() { + return stub.insertNodeTemplateOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -698,7 +776,7 @@ public final Operation insertNodeTemplate(InsertNodeTemplateHttpRequest request) * .build(); * ApiFuture<Operation> future = nodeTemplateClient.insertNodeTemplateCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateSettings.java index ee9fe5d8b719..6ff6e5947079 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateSettings.java @@ -22,10 +22,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -49,13 +51,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteNodeTemplate to 30 seconds: + * example, to set the total timeout of getNodeTemplate to 30 seconds: * *

  * 
  * NodeTemplateSettings.Builder nodeTemplateSettingsBuilder =
  *     NodeTemplateSettings.newBuilder();
- * nodeTemplateSettingsBuilder.deleteNodeTemplateSettings().getRetrySettings().toBuilder()
+ * nodeTemplateSettingsBuilder.getNodeTemplateSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * NodeTemplateSettings nodeTemplateSettings = nodeTemplateSettingsBuilder.build();
  * 
@@ -78,6 +80,14 @@ public UnaryCallSettings deleteNodeTem
     return ((NodeTemplateStubSettings) getStubSettings()).deleteNodeTemplateSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteNodeTemplate. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteNodeTemplateOperationSettings() {
+    return ((NodeTemplateStubSettings) getStubSettings()).deleteNodeTemplateOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getNodeTemplate. */
   public UnaryCallSettings getNodeTemplateSettings() {
     return ((NodeTemplateStubSettings) getStubSettings()).getNodeTemplateSettings();
@@ -94,6 +104,14 @@ public UnaryCallSettings insertNodeTem
     return ((NodeTemplateStubSettings) getStubSettings()).insertNodeTemplateSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertNodeTemplate. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertNodeTemplateOperationSettings() {
+    return ((NodeTemplateStubSettings) getStubSettings()).insertNodeTemplateOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listNodeTemplates. */
   public PagedCallSettings<
           ListNodeTemplatesHttpRequest, NodeTemplateList, ListNodeTemplatesPagedResponse>
@@ -230,6 +248,14 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteNodeTemplateSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteNodeTemplate. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteNodeTemplateOperationSettings() {
+      return getStubSettingsBuilder().deleteNodeTemplateOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getNodeTemplate. */
     public UnaryCallSettings.Builder
         getNodeTemplateSettings() {
@@ -248,6 +274,14 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertNodeTemplateSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertNodeTemplate. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertNodeTemplateOperationSettings() {
+      return getStubSettingsBuilder().insertNodeTemplateOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listNodeTemplates. */
     public PagedCallSettings.Builder<
             ListNodeTemplatesHttpRequest, NodeTemplateList, ListNodeTemplatesPagedResponse>
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Operation.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Operation.java
index c034307934ff..68391b0261de 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Operation.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Operation.java
@@ -15,14 +15,8 @@
  */
 package com.google.cloud.compute.v1;
 
-import static com.google.cloud.compute.v1.Operation.Status.DONE;
-
 import com.google.api.core.BetaApi;
 import com.google.api.gax.httpjson.ApiMessage;
-import com.google.api.gax.httpjson.HttpJsonStatusCode;
-import com.google.api.gax.longrunning.OperationSnapshot;
-import com.google.api.gax.rpc.StatusCode;
-import com.google.api.gax.rpc.StatusCode.Code;
 import java.util.LinkedList;
 import java.util.List;
 import java.util.Objects;
@@ -37,7 +31,7 @@
  * v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for
  * v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
  */
-public final class Operation implements ApiMessage, OperationSnapshot {
+public final class Operation implements ApiMessage {
   private final String clientOperationId;
   private final String creationTimestamp;
   private final String description;
@@ -1106,44 +1100,4 @@ public int hashCode() {
         warnings,
         zone);
   }
-
-  @Override
-  public Object getMetadata() {
-    return null;
-  }
-
-  @Override
-  public boolean isDone() {
-    return DONE.equals(getOperationStatus());
-  }
-
-  @Override
-  public Object getResponse() {
-    return null;
-  }
-
-  @Override
-  public StatusCode getErrorCode() {
-    if (getError().getErrorsList().isEmpty()) {
-      return null;
-    }
-
-    // Return the first Error code.
-    return HttpJsonStatusCode.of(Integer.valueOf(error.getErrorsList().get(0).getCode()), error.getErrorsList().get(0).getMessage());
-  }
-
-  @Override
-  public String getErrorMessage() {
-    return error.getErrorsList().toString();
-  }
-
-  public enum Status {
-    PENDING,
-    RUNNING,
-    DONE
-  }
-
-  public Status getOperationStatus() {
-    return Status.valueOf(getStatus());
-  }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectClient.java
index 033c79113007..6c6f0d7a020d 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.ProjectStub;
@@ -43,7 +46,7 @@
  * 
  * try (ProjectClient projectClient = ProjectClient.create()) {
  *   ProjectName project = ProjectName.of("[PROJECT]");
- *   Operation response = projectClient.disableXpnHostProject(project);
+ *   Project response = projectClient.getProject(project);
  * }
  * 
  * 
@@ -103,6 +106,7 @@ public class ProjectClient implements BackgroundResource { private final ProjectSettings settings; private final ProjectStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of ProjectClient with default settings. */ public static final ProjectClient create() throws IOException { @@ -133,12 +137,14 @@ public static final ProjectClient create(ProjectStub stub) { protected ProjectClient(ProjectSettings settings) throws IOException { this.settings = settings; this.stub = ((ProjectStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected ProjectClient(ProjectStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final ProjectSettings getSettings() { @@ -150,6 +156,16 @@ public ProjectStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Disable this project as a shared VPC host project. @@ -159,21 +175,23 @@ public ProjectStub getStub() { *

    * try (ProjectClient projectClient = ProjectClient.create()) {
    *   ProjectName project = ProjectName.of("[PROJECT]");
-   *   Operation response = projectClient.disableXpnHostProject(project);
+   *   projectClient.disableXpnHostProjectAsync(project).get();
    * }
    * 
* * @param project Project ID for this request. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation disableXpnHostProject(ProjectName project) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture disableXpnHostProjectAsync( + ProjectName project) { DisableXpnHostProjectHttpRequest request = DisableXpnHostProjectHttpRequest.newBuilder() .setProject(project == null ? null : project.toString()) .build(); - return disableXpnHostProject(request); + return disableXpnHostProjectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -185,19 +203,21 @@ public final Operation disableXpnHostProject(ProjectName project) { *

    * try (ProjectClient projectClient = ProjectClient.create()) {
    *   ProjectName project = ProjectName.of("[PROJECT]");
-   *   Operation response = projectClient.disableXpnHostProject(project.toString());
+   *   projectClient.disableXpnHostProjectAsync(project.toString()).get();
    * }
    * 
* * @param project Project ID for this request. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation disableXpnHostProject(String project) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture disableXpnHostProjectAsync( + String project) { DisableXpnHostProjectHttpRequest request = DisableXpnHostProjectHttpRequest.newBuilder().setProject(project).build(); - return disableXpnHostProject(request); + return disableXpnHostProjectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -212,16 +232,42 @@ public final Operation disableXpnHostProject(String project) { * DisableXpnHostProjectHttpRequest request = DisableXpnHostProjectHttpRequest.newBuilder() * .setProject(project.toString()) * .build(); - * Operation response = projectClient.disableXpnHostProject(request); + * projectClient.disableXpnHostProjectAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation disableXpnHostProject(DisableXpnHostProjectHttpRequest request) { - return disableXpnHostProjectCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture disableXpnHostProjectAsync( + DisableXpnHostProjectHttpRequest request) { + return disableXpnHostProjectOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Disable this project as a shared VPC host project. + * + *

Sample code: + * + *


+   * try (ProjectClient projectClient = ProjectClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   DisableXpnHostProjectHttpRequest request = DisableXpnHostProjectHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = projectClient.disableXpnHostProjectOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + disableXpnHostProjectOperationCallable() { + return stub.disableXpnHostProjectOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -238,7 +284,7 @@ public final Operation disableXpnHostProject(DisableXpnHostProjectHttpRequest re * .build(); * ApiFuture<Operation> future = projectClient.disableXpnHostProjectCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -258,7 +304,7 @@ public final Operation disableXpnHostProject(DisableXpnHostProjectHttpRequest re * try (ProjectClient projectClient = ProjectClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * ProjectsDisableXpnResourceRequest projectsDisableXpnResourceRequestResource = ProjectsDisableXpnResourceRequest.newBuilder().build(); - * Operation response = projectClient.disableXpnResourceProject(project, projectsDisableXpnResourceRequestResource); + * projectClient.disableXpnResourceProjectAsync(project, projectsDisableXpnResourceRequestResource).get(); * } * * @@ -266,8 +312,9 @@ public final Operation disableXpnHostProject(DisableXpnHostProjectHttpRequest re * @param projectsDisableXpnResourceRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation disableXpnResourceProject( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture disableXpnResourceProjectAsync( ProjectName project, ProjectsDisableXpnResourceRequest projectsDisableXpnResourceRequestResource) { @@ -276,7 +323,7 @@ public final Operation disableXpnResourceProject( .setProject(project == null ? null : project.toString()) .setProjectsDisableXpnResourceRequestResource(projectsDisableXpnResourceRequestResource) .build(); - return disableXpnResourceProject(request); + return disableXpnResourceProjectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -289,7 +336,7 @@ public final Operation disableXpnResourceProject( * try (ProjectClient projectClient = ProjectClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * ProjectsDisableXpnResourceRequest projectsDisableXpnResourceRequestResource = ProjectsDisableXpnResourceRequest.newBuilder().build(); - * Operation response = projectClient.disableXpnResourceProject(project.toString(), projectsDisableXpnResourceRequestResource); + * projectClient.disableXpnResourceProjectAsync(project.toString(), projectsDisableXpnResourceRequestResource).get(); * } * * @@ -297,8 +344,9 @@ public final Operation disableXpnResourceProject( * @param projectsDisableXpnResourceRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation disableXpnResourceProject( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture disableXpnResourceProjectAsync( String project, ProjectsDisableXpnResourceRequest projectsDisableXpnResourceRequestResource) { DisableXpnResourceProjectHttpRequest request = @@ -306,7 +354,7 @@ public final Operation disableXpnResourceProject( .setProject(project) .setProjectsDisableXpnResourceRequestResource(projectsDisableXpnResourceRequestResource) .build(); - return disableXpnResourceProject(request); + return disableXpnResourceProjectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -323,16 +371,44 @@ public final Operation disableXpnResourceProject( * .setProject(project.toString()) * .setProjectsDisableXpnResourceRequestResource(projectsDisableXpnResourceRequestResource) * .build(); - * Operation response = projectClient.disableXpnResourceProject(request); + * projectClient.disableXpnResourceProjectAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation disableXpnResourceProject(DisableXpnResourceProjectHttpRequest request) { - return disableXpnResourceProjectCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture disableXpnResourceProjectAsync( + DisableXpnResourceProjectHttpRequest request) { + return disableXpnResourceProjectOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Disable a serivce resource (a.k.a service project) associated with this host project. + * + *

Sample code: + * + *


+   * try (ProjectClient projectClient = ProjectClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   ProjectsDisableXpnResourceRequest projectsDisableXpnResourceRequestResource = ProjectsDisableXpnResourceRequest.newBuilder().build();
+   *   DisableXpnResourceProjectHttpRequest request = DisableXpnResourceProjectHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setProjectsDisableXpnResourceRequestResource(projectsDisableXpnResourceRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = projectClient.disableXpnResourceProjectOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + disableXpnResourceProjectOperationCallable() { + return stub.disableXpnResourceProjectOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -351,7 +427,7 @@ public final Operation disableXpnResourceProject(DisableXpnResourceProjectHttpRe * .build(); * ApiFuture<Operation> future = projectClient.disableXpnResourceProjectCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -370,21 +446,23 @@ public final Operation disableXpnResourceProject(DisableXpnResourceProjectHttpRe *

    * try (ProjectClient projectClient = ProjectClient.create()) {
    *   ProjectName project = ProjectName.of("[PROJECT]");
-   *   Operation response = projectClient.enableXpnHostProject(project);
+   *   projectClient.enableXpnHostProjectAsync(project).get();
    * }
    * 
* * @param project Project ID for this request. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation enableXpnHostProject(ProjectName project) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture enableXpnHostProjectAsync( + ProjectName project) { EnableXpnHostProjectHttpRequest request = EnableXpnHostProjectHttpRequest.newBuilder() .setProject(project == null ? null : project.toString()) .build(); - return enableXpnHostProject(request); + return enableXpnHostProjectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -396,19 +474,21 @@ public final Operation enableXpnHostProject(ProjectName project) { *

    * try (ProjectClient projectClient = ProjectClient.create()) {
    *   ProjectName project = ProjectName.of("[PROJECT]");
-   *   Operation response = projectClient.enableXpnHostProject(project.toString());
+   *   projectClient.enableXpnHostProjectAsync(project.toString()).get();
    * }
    * 
* * @param project Project ID for this request. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation enableXpnHostProject(String project) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture enableXpnHostProjectAsync( + String project) { EnableXpnHostProjectHttpRequest request = EnableXpnHostProjectHttpRequest.newBuilder().setProject(project).build(); - return enableXpnHostProject(request); + return enableXpnHostProjectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -423,16 +503,42 @@ public final Operation enableXpnHostProject(String project) { * EnableXpnHostProjectHttpRequest request = EnableXpnHostProjectHttpRequest.newBuilder() * .setProject(project.toString()) * .build(); - * Operation response = projectClient.enableXpnHostProject(request); + * projectClient.enableXpnHostProjectAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation enableXpnHostProject(EnableXpnHostProjectHttpRequest request) { - return enableXpnHostProjectCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture enableXpnHostProjectAsync( + EnableXpnHostProjectHttpRequest request) { + return enableXpnHostProjectOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Enable this project as a shared VPC host project. + * + *

Sample code: + * + *


+   * try (ProjectClient projectClient = ProjectClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   EnableXpnHostProjectHttpRequest request = EnableXpnHostProjectHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = projectClient.enableXpnHostProjectOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + enableXpnHostProjectOperationCallable() { + return stub.enableXpnHostProjectOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -449,7 +555,7 @@ public final Operation enableXpnHostProject(EnableXpnHostProjectHttpRequest requ * .build(); * ApiFuture<Operation> future = projectClient.enableXpnHostProjectCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -470,7 +576,7 @@ public final Operation enableXpnHostProject(EnableXpnHostProjectHttpRequest requ * try (ProjectClient projectClient = ProjectClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * ProjectsEnableXpnResourceRequest projectsEnableXpnResourceRequestResource = ProjectsEnableXpnResourceRequest.newBuilder().build(); - * Operation response = projectClient.enableXpnResourceProject(project, projectsEnableXpnResourceRequestResource); + * projectClient.enableXpnResourceProjectAsync(project, projectsEnableXpnResourceRequestResource).get(); * } * * @@ -478,8 +584,9 @@ public final Operation enableXpnHostProject(EnableXpnHostProjectHttpRequest requ * @param projectsEnableXpnResourceRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation enableXpnResourceProject( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture enableXpnResourceProjectAsync( ProjectName project, ProjectsEnableXpnResourceRequest projectsEnableXpnResourceRequestResource) { @@ -488,7 +595,7 @@ public final Operation enableXpnResourceProject( .setProject(project == null ? null : project.toString()) .setProjectsEnableXpnResourceRequestResource(projectsEnableXpnResourceRequestResource) .build(); - return enableXpnResourceProject(request); + return enableXpnResourceProjectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -502,7 +609,7 @@ public final Operation enableXpnResourceProject( * try (ProjectClient projectClient = ProjectClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * ProjectsEnableXpnResourceRequest projectsEnableXpnResourceRequestResource = ProjectsEnableXpnResourceRequest.newBuilder().build(); - * Operation response = projectClient.enableXpnResourceProject(project.toString(), projectsEnableXpnResourceRequestResource); + * projectClient.enableXpnResourceProjectAsync(project.toString(), projectsEnableXpnResourceRequestResource).get(); * } * * @@ -510,8 +617,9 @@ public final Operation enableXpnResourceProject( * @param projectsEnableXpnResourceRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation enableXpnResourceProject( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture enableXpnResourceProjectAsync( String project, ProjectsEnableXpnResourceRequest projectsEnableXpnResourceRequestResource) { EnableXpnResourceProjectHttpRequest request = @@ -519,7 +627,7 @@ public final Operation enableXpnResourceProject( .setProject(project) .setProjectsEnableXpnResourceRequestResource(projectsEnableXpnResourceRequestResource) .build(); - return enableXpnResourceProject(request); + return enableXpnResourceProjectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -537,16 +645,45 @@ public final Operation enableXpnResourceProject( * .setProject(project.toString()) * .setProjectsEnableXpnResourceRequestResource(projectsEnableXpnResourceRequestResource) * .build(); - * Operation response = projectClient.enableXpnResourceProject(request); + * projectClient.enableXpnResourceProjectAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation enableXpnResourceProject(EnableXpnResourceProjectHttpRequest request) { - return enableXpnResourceProjectCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture enableXpnResourceProjectAsync( + EnableXpnResourceProjectHttpRequest request) { + return enableXpnResourceProjectOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Enable service resource (a.k.a service project) for a host project, so that subnets in the host + * project can be used by instances in the service project. + * + *

Sample code: + * + *


+   * try (ProjectClient projectClient = ProjectClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   ProjectsEnableXpnResourceRequest projectsEnableXpnResourceRequestResource = ProjectsEnableXpnResourceRequest.newBuilder().build();
+   *   EnableXpnResourceProjectHttpRequest request = EnableXpnResourceProjectHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setProjectsEnableXpnResourceRequestResource(projectsEnableXpnResourceRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = projectClient.enableXpnResourceProjectOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + enableXpnResourceProjectOperationCallable() { + return stub.enableXpnResourceProjectOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -566,7 +703,7 @@ public final Operation enableXpnResourceProject(EnableXpnResourceProjectHttpRequ * .build(); * ApiFuture<Operation> future = projectClient.enableXpnResourceProjectCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1072,7 +1209,7 @@ public final ListXpnHostsProjectsPagedResponse listXpnHostsProjects( * try (ProjectClient projectClient = ProjectClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * DiskMoveRequest diskMoveRequestResource = DiskMoveRequest.newBuilder().build(); - * Operation response = projectClient.moveDiskProject(project, diskMoveRequestResource); + * projectClient.moveDiskProjectAsync(project, diskMoveRequestResource).get(); * } * * @@ -1080,8 +1217,9 @@ public final ListXpnHostsProjectsPagedResponse listXpnHostsProjects( * @param diskMoveRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation moveDiskProject( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture moveDiskProjectAsync( ProjectName project, DiskMoveRequest diskMoveRequestResource) { MoveDiskProjectHttpRequest request = @@ -1089,7 +1227,7 @@ public final Operation moveDiskProject( .setProject(project == null ? null : project.toString()) .setDiskMoveRequestResource(diskMoveRequestResource) .build(); - return moveDiskProject(request); + return moveDiskProjectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1102,7 +1240,7 @@ public final Operation moveDiskProject( * try (ProjectClient projectClient = ProjectClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * DiskMoveRequest diskMoveRequestResource = DiskMoveRequest.newBuilder().build(); - * Operation response = projectClient.moveDiskProject(project.toString(), diskMoveRequestResource); + * projectClient.moveDiskProjectAsync(project.toString(), diskMoveRequestResource).get(); * } * * @@ -1110,15 +1248,17 @@ public final Operation moveDiskProject( * @param diskMoveRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation moveDiskProject(String project, DiskMoveRequest diskMoveRequestResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture moveDiskProjectAsync( + String project, DiskMoveRequest diskMoveRequestResource) { MoveDiskProjectHttpRequest request = MoveDiskProjectHttpRequest.newBuilder() .setProject(project) .setDiskMoveRequestResource(diskMoveRequestResource) .build(); - return moveDiskProject(request); + return moveDiskProjectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1135,16 +1275,44 @@ public final Operation moveDiskProject(String project, DiskMoveRequest diskMoveR * .setProject(project.toString()) * .setDiskMoveRequestResource(diskMoveRequestResource) * .build(); - * Operation response = projectClient.moveDiskProject(request); + * projectClient.moveDiskProjectAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation moveDiskProject(MoveDiskProjectHttpRequest request) { - return moveDiskProjectCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture moveDiskProjectAsync( + MoveDiskProjectHttpRequest request) { + return moveDiskProjectOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Moves a persistent disk from one zone to another. + * + *

Sample code: + * + *


+   * try (ProjectClient projectClient = ProjectClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   DiskMoveRequest diskMoveRequestResource = DiskMoveRequest.newBuilder().build();
+   *   MoveDiskProjectHttpRequest request = MoveDiskProjectHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setDiskMoveRequestResource(diskMoveRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = projectClient.moveDiskProjectOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + moveDiskProjectOperationCallable() { + return stub.moveDiskProjectOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1163,7 +1331,7 @@ public final Operation moveDiskProject(MoveDiskProjectHttpRequest request) { * .build(); * ApiFuture<Operation> future = projectClient.moveDiskProjectCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1182,7 +1350,7 @@ public final UnaryCallable moveDiskProjec * try (ProjectClient projectClient = ProjectClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * InstanceMoveRequest instanceMoveRequestResource = InstanceMoveRequest.newBuilder().build(); - * Operation response = projectClient.moveInstanceProject(project, instanceMoveRequestResource); + * projectClient.moveInstanceProjectAsync(project, instanceMoveRequestResource).get(); * } * * @@ -1190,8 +1358,9 @@ public final UnaryCallable moveDiskProjec * @param instanceMoveRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation moveInstanceProject( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture moveInstanceProjectAsync( ProjectName project, InstanceMoveRequest instanceMoveRequestResource) { MoveInstanceProjectHttpRequest request = @@ -1199,7 +1368,7 @@ public final Operation moveInstanceProject( .setProject(project == null ? null : project.toString()) .setInstanceMoveRequestResource(instanceMoveRequestResource) .build(); - return moveInstanceProject(request); + return moveInstanceProjectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1212,7 +1381,7 @@ public final Operation moveInstanceProject( * try (ProjectClient projectClient = ProjectClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * InstanceMoveRequest instanceMoveRequestResource = InstanceMoveRequest.newBuilder().build(); - * Operation response = projectClient.moveInstanceProject(project.toString(), instanceMoveRequestResource); + * projectClient.moveInstanceProjectAsync(project.toString(), instanceMoveRequestResource).get(); * } * * @@ -1220,8 +1389,9 @@ public final Operation moveInstanceProject( * @param instanceMoveRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation moveInstanceProject( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture moveInstanceProjectAsync( String project, InstanceMoveRequest instanceMoveRequestResource) { MoveInstanceProjectHttpRequest request = @@ -1229,7 +1399,7 @@ public final Operation moveInstanceProject( .setProject(project) .setInstanceMoveRequestResource(instanceMoveRequestResource) .build(); - return moveInstanceProject(request); + return moveInstanceProjectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1246,16 +1416,44 @@ public final Operation moveInstanceProject( * .setProject(project.toString()) * .setInstanceMoveRequestResource(instanceMoveRequestResource) * .build(); - * Operation response = projectClient.moveInstanceProject(request); + * projectClient.moveInstanceProjectAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation moveInstanceProject(MoveInstanceProjectHttpRequest request) { - return moveInstanceProjectCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture moveInstanceProjectAsync( + MoveInstanceProjectHttpRequest request) { + return moveInstanceProjectOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Moves an instance and its attached persistent disks from one zone to another. + * + *

Sample code: + * + *


+   * try (ProjectClient projectClient = ProjectClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   InstanceMoveRequest instanceMoveRequestResource = InstanceMoveRequest.newBuilder().build();
+   *   MoveInstanceProjectHttpRequest request = MoveInstanceProjectHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setInstanceMoveRequestResource(instanceMoveRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = projectClient.moveInstanceProjectOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + moveInstanceProjectOperationCallable() { + return stub.moveInstanceProjectOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1274,7 +1472,7 @@ public final Operation moveInstanceProject(MoveInstanceProjectHttpRequest reques * .build(); * ApiFuture<Operation> future = projectClient.moveInstanceProjectCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1295,7 +1493,7 @@ public final Operation moveInstanceProject(MoveInstanceProjectHttpRequest reques * try (ProjectClient projectClient = ProjectClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * Metadata metadataResource = Metadata.newBuilder().build(); - * Operation response = projectClient.setCommonInstanceMetadataProject(project, metadataResource); + * projectClient.setCommonInstanceMetadataProjectAsync(project, metadataResource).get(); * } * * @@ -1303,8 +1501,9 @@ public final Operation moveInstanceProject(MoveInstanceProjectHttpRequest reques * @param metadataResource A metadata key/value entry. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setCommonInstanceMetadataProject( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setCommonInstanceMetadataProjectAsync( ProjectName project, Metadata metadataResource) { SetCommonInstanceMetadataProjectHttpRequest request = @@ -1312,7 +1511,7 @@ public final Operation setCommonInstanceMetadataProject( .setProject(project == null ? null : project.toString()) .setMetadataResource(metadataResource) .build(); - return setCommonInstanceMetadataProject(request); + return setCommonInstanceMetadataProjectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1326,7 +1525,7 @@ public final Operation setCommonInstanceMetadataProject( * try (ProjectClient projectClient = ProjectClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * Metadata metadataResource = Metadata.newBuilder().build(); - * Operation response = projectClient.setCommonInstanceMetadataProject(project.toString(), metadataResource); + * projectClient.setCommonInstanceMetadataProjectAsync(project.toString(), metadataResource).get(); * } * * @@ -1334,8 +1533,9 @@ public final Operation setCommonInstanceMetadataProject( * @param metadataResource A metadata key/value entry. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setCommonInstanceMetadataProject( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setCommonInstanceMetadataProjectAsync( String project, Metadata metadataResource) { SetCommonInstanceMetadataProjectHttpRequest request = @@ -1343,7 +1543,7 @@ public final Operation setCommonInstanceMetadataProject( .setProject(project) .setMetadataResource(metadataResource) .build(); - return setCommonInstanceMetadataProject(request); + return setCommonInstanceMetadataProjectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1361,17 +1561,46 @@ public final Operation setCommonInstanceMetadataProject( * .setProject(project.toString()) * .setMetadataResource(metadataResource) * .build(); - * Operation response = projectClient.setCommonInstanceMetadataProject(request); + * projectClient.setCommonInstanceMetadataProjectAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setCommonInstanceMetadataProject( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setCommonInstanceMetadataProjectAsync( SetCommonInstanceMetadataProjectHttpRequest request) { - return setCommonInstanceMetadataProjectCallable().call(request); + return setCommonInstanceMetadataProjectOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets metadata common to all instances within the specified project using the data included in + * the request. + * + *

Sample code: + * + *


+   * try (ProjectClient projectClient = ProjectClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   Metadata metadataResource = Metadata.newBuilder().build();
+   *   SetCommonInstanceMetadataProjectHttpRequest request = SetCommonInstanceMetadataProjectHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setMetadataResource(metadataResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = projectClient.setCommonInstanceMetadataProjectOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + SetCommonInstanceMetadataProjectHttpRequest, EmptyMessage, EmptyMessage> + setCommonInstanceMetadataProjectOperationCallable() { + return stub.setCommonInstanceMetadataProjectOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1391,7 +1620,7 @@ public final Operation setCommonInstanceMetadataProject( * .build(); * ApiFuture<Operation> future = projectClient.setCommonInstanceMetadataProjectCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1412,7 +1641,7 @@ public final Operation setCommonInstanceMetadataProject( * try (ProjectClient projectClient = ProjectClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * ProjectsSetDefaultNetworkTierRequest projectsSetDefaultNetworkTierRequestResource = ProjectsSetDefaultNetworkTierRequest.newBuilder().build(); - * Operation response = projectClient.setDefaultNetworkTierProject(project, projectsSetDefaultNetworkTierRequestResource); + * projectClient.setDefaultNetworkTierProjectAsync(project, projectsSetDefaultNetworkTierRequestResource).get(); * } * * @@ -1420,8 +1649,9 @@ public final Operation setCommonInstanceMetadataProject( * @param projectsSetDefaultNetworkTierRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setDefaultNetworkTierProject( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setDefaultNetworkTierProjectAsync( ProjectName project, ProjectsSetDefaultNetworkTierRequest projectsSetDefaultNetworkTierRequestResource) { @@ -1431,7 +1661,7 @@ public final Operation setDefaultNetworkTierProject( .setProjectsSetDefaultNetworkTierRequestResource( projectsSetDefaultNetworkTierRequestResource) .build(); - return setDefaultNetworkTierProject(request); + return setDefaultNetworkTierProjectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1445,7 +1675,7 @@ public final Operation setDefaultNetworkTierProject( * try (ProjectClient projectClient = ProjectClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * ProjectsSetDefaultNetworkTierRequest projectsSetDefaultNetworkTierRequestResource = ProjectsSetDefaultNetworkTierRequest.newBuilder().build(); - * Operation response = projectClient.setDefaultNetworkTierProject(project.toString(), projectsSetDefaultNetworkTierRequestResource); + * projectClient.setDefaultNetworkTierProjectAsync(project.toString(), projectsSetDefaultNetworkTierRequestResource).get(); * } * * @@ -1453,8 +1683,9 @@ public final Operation setDefaultNetworkTierProject( * @param projectsSetDefaultNetworkTierRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setDefaultNetworkTierProject( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setDefaultNetworkTierProjectAsync( String project, ProjectsSetDefaultNetworkTierRequest projectsSetDefaultNetworkTierRequestResource) { @@ -1464,7 +1695,7 @@ public final Operation setDefaultNetworkTierProject( .setProjectsSetDefaultNetworkTierRequestResource( projectsSetDefaultNetworkTierRequestResource) .build(); - return setDefaultNetworkTierProject(request); + return setDefaultNetworkTierProjectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1482,17 +1713,46 @@ public final Operation setDefaultNetworkTierProject( * .setProject(project.toString()) * .setProjectsSetDefaultNetworkTierRequestResource(projectsSetDefaultNetworkTierRequestResource) * .build(); - * Operation response = projectClient.setDefaultNetworkTierProject(request); + * projectClient.setDefaultNetworkTierProjectAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setDefaultNetworkTierProject( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setDefaultNetworkTierProjectAsync( SetDefaultNetworkTierProjectHttpRequest request) { - return setDefaultNetworkTierProjectCallable().call(request); + return setDefaultNetworkTierProjectOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the default network tier of the project. The default network tier is used when an + * address/forwardingRule/instance is created without specifying the network tier field. + * + *

Sample code: + * + *


+   * try (ProjectClient projectClient = ProjectClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   ProjectsSetDefaultNetworkTierRequest projectsSetDefaultNetworkTierRequestResource = ProjectsSetDefaultNetworkTierRequest.newBuilder().build();
+   *   SetDefaultNetworkTierProjectHttpRequest request = SetDefaultNetworkTierProjectHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setProjectsSetDefaultNetworkTierRequestResource(projectsSetDefaultNetworkTierRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = projectClient.setDefaultNetworkTierProjectOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + SetDefaultNetworkTierProjectHttpRequest, EmptyMessage, EmptyMessage> + setDefaultNetworkTierProjectOperationCallable() { + return stub.setDefaultNetworkTierProjectOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1512,7 +1772,7 @@ public final Operation setDefaultNetworkTierProject( * .build(); * ApiFuture<Operation> future = projectClient.setDefaultNetworkTierProjectCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1533,7 +1793,7 @@ public final Operation setDefaultNetworkTierProject( * try (ProjectClient projectClient = ProjectClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * UsageExportLocation usageExportLocationResource = UsageExportLocation.newBuilder().build(); - * Operation response = projectClient.setUsageExportBucketProject(project, usageExportLocationResource); + * projectClient.setUsageExportBucketProjectAsync(project, usageExportLocationResource).get(); * } * * @@ -1542,8 +1802,9 @@ public final Operation setDefaultNetworkTierProject( * usage report. Contains bucket_name and report_name prefix. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setUsageExportBucketProject( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setUsageExportBucketProjectAsync( ProjectName project, UsageExportLocation usageExportLocationResource) { SetUsageExportBucketProjectHttpRequest request = @@ -1551,7 +1812,7 @@ public final Operation setUsageExportBucketProject( .setProject(project == null ? null : project.toString()) .setUsageExportLocationResource(usageExportLocationResource) .build(); - return setUsageExportBucketProject(request); + return setUsageExportBucketProjectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1565,7 +1826,7 @@ public final Operation setUsageExportBucketProject( * try (ProjectClient projectClient = ProjectClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * UsageExportLocation usageExportLocationResource = UsageExportLocation.newBuilder().build(); - * Operation response = projectClient.setUsageExportBucketProject(project.toString(), usageExportLocationResource); + * projectClient.setUsageExportBucketProjectAsync(project.toString(), usageExportLocationResource).get(); * } * * @@ -1574,8 +1835,9 @@ public final Operation setUsageExportBucketProject( * usage report. Contains bucket_name and report_name prefix. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setUsageExportBucketProject( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setUsageExportBucketProjectAsync( String project, UsageExportLocation usageExportLocationResource) { SetUsageExportBucketProjectHttpRequest request = @@ -1583,7 +1845,7 @@ public final Operation setUsageExportBucketProject( .setProject(project) .setUsageExportLocationResource(usageExportLocationResource) .build(); - return setUsageExportBucketProject(request); + return setUsageExportBucketProjectAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1601,17 +1863,45 @@ public final Operation setUsageExportBucketProject( * .setProject(project.toString()) * .setUsageExportLocationResource(usageExportLocationResource) * .build(); - * Operation response = projectClient.setUsageExportBucketProject(request); + * projectClient.setUsageExportBucketProjectAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setUsageExportBucketProject( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setUsageExportBucketProjectAsync( SetUsageExportBucketProjectHttpRequest request) { - return setUsageExportBucketProjectCallable().call(request); + return setUsageExportBucketProjectOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Enables the usage export feature and sets the usage export bucket where reports are stored. If + * you provide an empty request body using this method, the usage export feature will be disabled. + * + *

Sample code: + * + *


+   * try (ProjectClient projectClient = ProjectClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   UsageExportLocation usageExportLocationResource = UsageExportLocation.newBuilder().build();
+   *   SetUsageExportBucketProjectHttpRequest request = SetUsageExportBucketProjectHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setUsageExportLocationResource(usageExportLocationResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = projectClient.setUsageExportBucketProjectOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + setUsageExportBucketProjectOperationCallable() { + return stub.setUsageExportBucketProjectOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1631,7 +1921,7 @@ public final Operation setUsageExportBucketProject( * .build(); * ApiFuture<Operation> future = projectClient.setUsageExportBucketProjectCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectSettings.java index 6d5697075604..8f22df397b81 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectSettings.java @@ -22,10 +22,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -49,13 +51,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of disableXpnHostProject to 30 seconds: + * example, to set the total timeout of getProject to 30 seconds: * *

  * 
  * ProjectSettings.Builder projectSettingsBuilder =
  *     ProjectSettings.newBuilder();
- * projectSettingsBuilder.disableXpnHostProjectSettings().getRetrySettings().toBuilder()
+ * projectSettingsBuilder.getProjectSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * ProjectSettings projectSettings = projectSettingsBuilder.build();
  * 
@@ -70,24 +72,56 @@ public class ProjectSettings extends ClientSettings {
     return ((ProjectStubSettings) getStubSettings()).disableXpnHostProjectSettings();
   }
 
+  /** Returns the object with the settings used for calls to disableXpnHostProject. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      disableXpnHostProjectOperationSettings() {
+    return ((ProjectStubSettings) getStubSettings()).disableXpnHostProjectOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to disableXpnResourceProject. */
   public UnaryCallSettings
       disableXpnResourceProjectSettings() {
     return ((ProjectStubSettings) getStubSettings()).disableXpnResourceProjectSettings();
   }
 
+  /** Returns the object with the settings used for calls to disableXpnResourceProject. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      disableXpnResourceProjectOperationSettings() {
+    return ((ProjectStubSettings) getStubSettings()).disableXpnResourceProjectOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to enableXpnHostProject. */
   public UnaryCallSettings
       enableXpnHostProjectSettings() {
     return ((ProjectStubSettings) getStubSettings()).enableXpnHostProjectSettings();
   }
 
+  /** Returns the object with the settings used for calls to enableXpnHostProject. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      enableXpnHostProjectOperationSettings() {
+    return ((ProjectStubSettings) getStubSettings()).enableXpnHostProjectOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to enableXpnResourceProject. */
   public UnaryCallSettings
       enableXpnResourceProjectSettings() {
     return ((ProjectStubSettings) getStubSettings()).enableXpnResourceProjectSettings();
   }
 
+  /** Returns the object with the settings used for calls to enableXpnResourceProject. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      enableXpnResourceProjectOperationSettings() {
+    return ((ProjectStubSettings) getStubSettings()).enableXpnResourceProjectOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getProject. */
   public UnaryCallSettings getProjectSettings() {
     return ((ProjectStubSettings) getStubSettings()).getProjectSettings();
@@ -119,30 +153,73 @@ public UnaryCallSettings moveDiskProjectS
     return ((ProjectStubSettings) getStubSettings()).moveDiskProjectSettings();
   }
 
+  /** Returns the object with the settings used for calls to moveDiskProject. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      moveDiskProjectOperationSettings() {
+    return ((ProjectStubSettings) getStubSettings()).moveDiskProjectOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to moveInstanceProject. */
   public UnaryCallSettings
       moveInstanceProjectSettings() {
     return ((ProjectStubSettings) getStubSettings()).moveInstanceProjectSettings();
   }
 
+  /** Returns the object with the settings used for calls to moveInstanceProject. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      moveInstanceProjectOperationSettings() {
+    return ((ProjectStubSettings) getStubSettings()).moveInstanceProjectOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setCommonInstanceMetadataProject. */
   public UnaryCallSettings
       setCommonInstanceMetadataProjectSettings() {
     return ((ProjectStubSettings) getStubSettings()).setCommonInstanceMetadataProjectSettings();
   }
 
+  /** Returns the object with the settings used for calls to setCommonInstanceMetadataProject. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          SetCommonInstanceMetadataProjectHttpRequest, EmptyMessage, EmptyMessage>
+      setCommonInstanceMetadataProjectOperationSettings() {
+    return ((ProjectStubSettings) getStubSettings())
+        .setCommonInstanceMetadataProjectOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setDefaultNetworkTierProject. */
   public UnaryCallSettings
       setDefaultNetworkTierProjectSettings() {
     return ((ProjectStubSettings) getStubSettings()).setDefaultNetworkTierProjectSettings();
   }
 
+  /** Returns the object with the settings used for calls to setDefaultNetworkTierProject. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setDefaultNetworkTierProjectOperationSettings() {
+    return ((ProjectStubSettings) getStubSettings())
+        .setDefaultNetworkTierProjectOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setUsageExportBucketProject. */
   public UnaryCallSettings
       setUsageExportBucketProjectSettings() {
     return ((ProjectStubSettings) getStubSettings()).setUsageExportBucketProjectSettings();
   }
 
+  /** Returns the object with the settings used for calls to setUsageExportBucketProject. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setUsageExportBucketProjectOperationSettings() {
+    return ((ProjectStubSettings) getStubSettings()).setUsageExportBucketProjectOperationSettings();
+  }
+
   public static final ProjectSettings create(ProjectStubSettings stub) throws IOException {
     return new ProjectSettings.Builder(stub.toBuilder()).build();
   }
@@ -250,24 +327,60 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().disableXpnHostProjectSettings();
     }
 
+    /** Returns the builder for the settings used for calls to disableXpnHostProject. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DisableXpnHostProjectHttpRequest, EmptyMessage, EmptyMessage>
+        disableXpnHostProjectOperationSettings() {
+      return getStubSettingsBuilder().disableXpnHostProjectOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to disableXpnResourceProject. */
     public UnaryCallSettings.Builder
         disableXpnResourceProjectSettings() {
       return getStubSettingsBuilder().disableXpnResourceProjectSettings();
     }
 
+    /** Returns the builder for the settings used for calls to disableXpnResourceProject. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DisableXpnResourceProjectHttpRequest, EmptyMessage, EmptyMessage>
+        disableXpnResourceProjectOperationSettings() {
+      return getStubSettingsBuilder().disableXpnResourceProjectOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to enableXpnHostProject. */
     public UnaryCallSettings.Builder
         enableXpnHostProjectSettings() {
       return getStubSettingsBuilder().enableXpnHostProjectSettings();
     }
 
+    /** Returns the builder for the settings used for calls to enableXpnHostProject. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            EnableXpnHostProjectHttpRequest, EmptyMessage, EmptyMessage>
+        enableXpnHostProjectOperationSettings() {
+      return getStubSettingsBuilder().enableXpnHostProjectOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to enableXpnResourceProject. */
     public UnaryCallSettings.Builder
         enableXpnResourceProjectSettings() {
       return getStubSettingsBuilder().enableXpnResourceProjectSettings();
     }
 
+    /** Returns the builder for the settings used for calls to enableXpnResourceProject. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            EnableXpnResourceProjectHttpRequest, EmptyMessage, EmptyMessage>
+        enableXpnResourceProjectOperationSettings() {
+      return getStubSettingsBuilder().enableXpnResourceProjectOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getProject. */
     public UnaryCallSettings.Builder getProjectSettings() {
       return getStubSettingsBuilder().getProjectSettings();
@@ -301,30 +414,73 @@ public UnaryCallSettings.Builder getProjectSetti
       return getStubSettingsBuilder().moveDiskProjectSettings();
     }
 
+    /** Returns the builder for the settings used for calls to moveDiskProject. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        moveDiskProjectOperationSettings() {
+      return getStubSettingsBuilder().moveDiskProjectOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to moveInstanceProject. */
     public UnaryCallSettings.Builder
         moveInstanceProjectSettings() {
       return getStubSettingsBuilder().moveInstanceProjectSettings();
     }
 
+    /** Returns the builder for the settings used for calls to moveInstanceProject. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        moveInstanceProjectOperationSettings() {
+      return getStubSettingsBuilder().moveInstanceProjectOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setCommonInstanceMetadataProject. */
     public UnaryCallSettings.Builder
         setCommonInstanceMetadataProjectSettings() {
       return getStubSettingsBuilder().setCommonInstanceMetadataProjectSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setCommonInstanceMetadataProject. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetCommonInstanceMetadataProjectHttpRequest, EmptyMessage, EmptyMessage>
+        setCommonInstanceMetadataProjectOperationSettings() {
+      return getStubSettingsBuilder().setCommonInstanceMetadataProjectOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setDefaultNetworkTierProject. */
     public UnaryCallSettings.Builder
         setDefaultNetworkTierProjectSettings() {
       return getStubSettingsBuilder().setDefaultNetworkTierProjectSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setDefaultNetworkTierProject. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetDefaultNetworkTierProjectHttpRequest, EmptyMessage, EmptyMessage>
+        setDefaultNetworkTierProjectOperationSettings() {
+      return getStubSettingsBuilder().setDefaultNetworkTierProjectOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setUsageExportBucketProject. */
     public UnaryCallSettings.Builder
         setUsageExportBucketProjectSettings() {
       return getStubSettingsBuilder().setUsageExportBucketProjectSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setUsageExportBucketProject. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetUsageExportBucketProjectHttpRequest, EmptyMessage, EmptyMessage>
+        setUsageExportBucketProjectOperationSettings() {
+      return getStubSettingsBuilder().setUsageExportBucketProjectOperationSettings();
+    }
+
     @Override
     public ProjectSettings build() throws IOException {
       return new ProjectSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java
index 1e91496bc68a..4e19e8553629 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.RegionAutoscalerStub;
@@ -43,7 +46,7 @@
  * 
  * try (RegionAutoscalerClient regionAutoscalerClient = RegionAutoscalerClient.create()) {
  *   ProjectRegionAutoscalerName autoscaler = ProjectRegionAutoscalerName.of("[PROJECT]", "[REGION]", "[AUTOSCALER]");
- *   Operation response = regionAutoscalerClient.deleteRegionAutoscaler(autoscaler);
+ *   Autoscaler response = regionAutoscalerClient.getRegionAutoscaler(autoscaler);
  * }
  * 
  * 
@@ -104,6 +107,7 @@ public class RegionAutoscalerClient implements BackgroundResource { private final RegionAutoscalerSettings settings; private final RegionAutoscalerStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of RegionAutoscalerClient with default settings. */ public static final RegionAutoscalerClient create() throws IOException { @@ -136,12 +140,14 @@ public static final RegionAutoscalerClient create(RegionAutoscalerStub stub) { protected RegionAutoscalerClient(RegionAutoscalerSettings settings) throws IOException { this.settings = settings; this.stub = ((RegionAutoscalerStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected RegionAutoscalerClient(RegionAutoscalerStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final RegionAutoscalerSettings getSettings() { @@ -153,6 +159,16 @@ public RegionAutoscalerStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Deletes the specified autoscaler. @@ -162,21 +178,23 @@ public RegionAutoscalerStub getStub() { *

    * try (RegionAutoscalerClient regionAutoscalerClient = RegionAutoscalerClient.create()) {
    *   ProjectRegionAutoscalerName autoscaler = ProjectRegionAutoscalerName.of("[PROJECT]", "[REGION]", "[AUTOSCALER]");
-   *   Operation response = regionAutoscalerClient.deleteRegionAutoscaler(autoscaler);
+   *   regionAutoscalerClient.deleteRegionAutoscalerAsync(autoscaler).get();
    * }
    * 
* * @param autoscaler Name of the autoscaler to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteRegionAutoscaler(ProjectRegionAutoscalerName autoscaler) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteRegionAutoscalerAsync( + ProjectRegionAutoscalerName autoscaler) { DeleteRegionAutoscalerHttpRequest request = DeleteRegionAutoscalerHttpRequest.newBuilder() .setAutoscaler(autoscaler == null ? null : autoscaler.toString()) .build(); - return deleteRegionAutoscaler(request); + return deleteRegionAutoscalerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -188,19 +206,21 @@ public final Operation deleteRegionAutoscaler(ProjectRegionAutoscalerName autosc *

    * try (RegionAutoscalerClient regionAutoscalerClient = RegionAutoscalerClient.create()) {
    *   ProjectRegionAutoscalerName autoscaler = ProjectRegionAutoscalerName.of("[PROJECT]", "[REGION]", "[AUTOSCALER]");
-   *   Operation response = regionAutoscalerClient.deleteRegionAutoscaler(autoscaler.toString());
+   *   regionAutoscalerClient.deleteRegionAutoscalerAsync(autoscaler.toString()).get();
    * }
    * 
* * @param autoscaler Name of the autoscaler to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteRegionAutoscaler(String autoscaler) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteRegionAutoscalerAsync( + String autoscaler) { DeleteRegionAutoscalerHttpRequest request = DeleteRegionAutoscalerHttpRequest.newBuilder().setAutoscaler(autoscaler).build(); - return deleteRegionAutoscaler(request); + return deleteRegionAutoscalerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -215,16 +235,42 @@ public final Operation deleteRegionAutoscaler(String autoscaler) { * DeleteRegionAutoscalerHttpRequest request = DeleteRegionAutoscalerHttpRequest.newBuilder() * .setAutoscaler(autoscaler.toString()) * .build(); - * Operation response = regionAutoscalerClient.deleteRegionAutoscaler(request); + * regionAutoscalerClient.deleteRegionAutoscalerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteRegionAutoscaler(DeleteRegionAutoscalerHttpRequest request) { - return deleteRegionAutoscalerCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteRegionAutoscalerAsync( + DeleteRegionAutoscalerHttpRequest request) { + return deleteRegionAutoscalerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified autoscaler. + * + *

Sample code: + * + *


+   * try (RegionAutoscalerClient regionAutoscalerClient = RegionAutoscalerClient.create()) {
+   *   ProjectRegionAutoscalerName autoscaler = ProjectRegionAutoscalerName.of("[PROJECT]", "[REGION]", "[AUTOSCALER]");
+   *   DeleteRegionAutoscalerHttpRequest request = DeleteRegionAutoscalerHttpRequest.newBuilder()
+   *     .setAutoscaler(autoscaler.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionAutoscalerClient.deleteRegionAutoscalerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteRegionAutoscalerOperationCallable() { + return stub.deleteRegionAutoscalerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -241,7 +287,7 @@ public final Operation deleteRegionAutoscaler(DeleteRegionAutoscalerHttpRequest * .build(); * ApiFuture<Operation> future = regionAutoscalerClient.deleteRegionAutoscalerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -359,7 +405,7 @@ public final Autoscaler getRegionAutoscaler(GetRegionAutoscalerHttpRequest reque * try (RegionAutoscalerClient regionAutoscalerClient = RegionAutoscalerClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); - * Operation response = regionAutoscalerClient.insertRegionAutoscaler(region, autoscalerResource); + * regionAutoscalerClient.insertRegionAutoscalerAsync(region, autoscalerResource).get(); * } * * @@ -371,8 +417,9 @@ public final Autoscaler getRegionAutoscaler(GetRegionAutoscalerHttpRequest reque * resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertRegionAutoscaler( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertRegionAutoscalerAsync( ProjectRegionName region, Autoscaler autoscalerResource) { InsertRegionAutoscalerHttpRequest request = @@ -380,7 +427,7 @@ public final Operation insertRegionAutoscaler( .setRegion(region == null ? null : region.toString()) .setAutoscalerResource(autoscalerResource) .build(); - return insertRegionAutoscaler(request); + return insertRegionAutoscalerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -393,7 +440,7 @@ public final Operation insertRegionAutoscaler( * try (RegionAutoscalerClient regionAutoscalerClient = RegionAutoscalerClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); - * Operation response = regionAutoscalerClient.insertRegionAutoscaler(region.toString(), autoscalerResource); + * regionAutoscalerClient.insertRegionAutoscalerAsync(region.toString(), autoscalerResource).get(); * } * * @@ -405,15 +452,17 @@ public final Operation insertRegionAutoscaler( * resource_for beta.regionAutoscalers ==) (== resource_for v1.regionAutoscalers ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertRegionAutoscaler(String region, Autoscaler autoscalerResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertRegionAutoscalerAsync( + String region, Autoscaler autoscalerResource) { InsertRegionAutoscalerHttpRequest request = InsertRegionAutoscalerHttpRequest.newBuilder() .setRegion(region) .setAutoscalerResource(autoscalerResource) .build(); - return insertRegionAutoscaler(request); + return insertRegionAutoscalerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -430,16 +479,44 @@ public final Operation insertRegionAutoscaler(String region, Autoscaler autoscal * .setRegion(region.toString()) * .setAutoscalerResource(autoscalerResource) * .build(); - * Operation response = regionAutoscalerClient.insertRegionAutoscaler(request); + * regionAutoscalerClient.insertRegionAutoscalerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertRegionAutoscaler(InsertRegionAutoscalerHttpRequest request) { - return insertRegionAutoscalerCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertRegionAutoscalerAsync( + InsertRegionAutoscalerHttpRequest request) { + return insertRegionAutoscalerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates an autoscaler in the specified project using the data included in the request. + * + *

Sample code: + * + *


+   * try (RegionAutoscalerClient regionAutoscalerClient = RegionAutoscalerClient.create()) {
+   *   ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
+   *   Autoscaler autoscalerResource = Autoscaler.newBuilder().build();
+   *   InsertRegionAutoscalerHttpRequest request = InsertRegionAutoscalerHttpRequest.newBuilder()
+   *     .setRegion(region.toString())
+   *     .setAutoscalerResource(autoscalerResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionAutoscalerClient.insertRegionAutoscalerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertRegionAutoscalerOperationCallable() { + return stub.insertRegionAutoscalerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -458,7 +535,7 @@ public final Operation insertRegionAutoscaler(InsertRegionAutoscalerHttpRequest * .build(); * ApiFuture<Operation> future = regionAutoscalerClient.insertRegionAutoscalerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -619,7 +696,7 @@ public final ListRegionAutoscalersPagedResponse listRegionAutoscalers( * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = regionAutoscalerClient.patchRegionAutoscaler(autoscaler, region, autoscalerResource, fieldMask); + * regionAutoscalerClient.patchRegionAutoscalerAsync(autoscaler, region, autoscalerResource, fieldMask).get(); * } * * @@ -636,8 +713,9 @@ public final ListRegionAutoscalersPagedResponse listRegionAutoscalers( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchRegionAutoscaler( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchRegionAutoscalerAsync( String autoscaler, ProjectRegionName region, Autoscaler autoscalerResource, @@ -650,7 +728,7 @@ public final Operation patchRegionAutoscaler( .setAutoscalerResource(autoscalerResource) .addAllFieldMask(fieldMask) .build(); - return patchRegionAutoscaler(request); + return patchRegionAutoscalerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -666,7 +744,7 @@ public final Operation patchRegionAutoscaler( * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = regionAutoscalerClient.patchRegionAutoscaler(autoscaler, region.toString(), autoscalerResource, fieldMask); + * regionAutoscalerClient.patchRegionAutoscalerAsync(autoscaler, region.toString(), autoscalerResource, fieldMask).get(); * } * * @@ -683,8 +761,9 @@ public final Operation patchRegionAutoscaler( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchRegionAutoscaler( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchRegionAutoscalerAsync( String autoscaler, String region, Autoscaler autoscalerResource, List fieldMask) { PatchRegionAutoscalerHttpRequest request = @@ -694,7 +773,7 @@ public final Operation patchRegionAutoscaler( .setAutoscalerResource(autoscalerResource) .addAllFieldMask(fieldMask) .build(); - return patchRegionAutoscaler(request); + return patchRegionAutoscalerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -716,16 +795,49 @@ public final Operation patchRegionAutoscaler( * .setAutoscalerResource(autoscalerResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = regionAutoscalerClient.patchRegionAutoscaler(request); + * regionAutoscalerClient.patchRegionAutoscalerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchRegionAutoscaler(PatchRegionAutoscalerHttpRequest request) { - return patchRegionAutoscalerCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchRegionAutoscalerAsync( + PatchRegionAutoscalerHttpRequest request) { + return patchRegionAutoscalerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an autoscaler in the specified project using the data included in the request. This + * method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * + *

Sample code: + * + *


+   * try (RegionAutoscalerClient regionAutoscalerClient = RegionAutoscalerClient.create()) {
+   *   String autoscaler = "";
+   *   ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
+   *   Autoscaler autoscalerResource = Autoscaler.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   PatchRegionAutoscalerHttpRequest request = PatchRegionAutoscalerHttpRequest.newBuilder()
+   *     .setAutoscaler(autoscaler)
+   *     .setRegion(region.toString())
+   *     .setAutoscalerResource(autoscalerResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionAutoscalerClient.patchRegionAutoscalerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + patchRegionAutoscalerOperationCallable() { + return stub.patchRegionAutoscalerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -749,7 +861,7 @@ public final Operation patchRegionAutoscaler(PatchRegionAutoscalerHttpRequest re * .build(); * ApiFuture<Operation> future = regionAutoscalerClient.patchRegionAutoscalerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -771,7 +883,7 @@ public final Operation patchRegionAutoscaler(PatchRegionAutoscalerHttpRequest re * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = regionAutoscalerClient.updateRegionAutoscaler(autoscaler, region, autoscalerResource, fieldMask); + * regionAutoscalerClient.updateRegionAutoscalerAsync(autoscaler, region, autoscalerResource, fieldMask).get(); * } * * @@ -788,8 +900,9 @@ public final Operation patchRegionAutoscaler(PatchRegionAutoscalerHttpRequest re * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateRegionAutoscaler( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateRegionAutoscalerAsync( String autoscaler, ProjectRegionName region, Autoscaler autoscalerResource, @@ -802,7 +915,7 @@ public final Operation updateRegionAutoscaler( .setAutoscalerResource(autoscalerResource) .addAllFieldMask(fieldMask) .build(); - return updateRegionAutoscaler(request); + return updateRegionAutoscalerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -817,7 +930,7 @@ public final Operation updateRegionAutoscaler( * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * Autoscaler autoscalerResource = Autoscaler.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = regionAutoscalerClient.updateRegionAutoscaler(autoscaler, region.toString(), autoscalerResource, fieldMask); + * regionAutoscalerClient.updateRegionAutoscalerAsync(autoscaler, region.toString(), autoscalerResource, fieldMask).get(); * } * * @@ -834,8 +947,9 @@ public final Operation updateRegionAutoscaler( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateRegionAutoscaler( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateRegionAutoscalerAsync( String autoscaler, String region, Autoscaler autoscalerResource, List fieldMask) { UpdateRegionAutoscalerHttpRequest request = @@ -845,7 +959,7 @@ public final Operation updateRegionAutoscaler( .setAutoscalerResource(autoscalerResource) .addAllFieldMask(fieldMask) .build(); - return updateRegionAutoscaler(request); + return updateRegionAutoscalerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -866,16 +980,48 @@ public final Operation updateRegionAutoscaler( * .setAutoscalerResource(autoscalerResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = regionAutoscalerClient.updateRegionAutoscaler(request); + * regionAutoscalerClient.updateRegionAutoscalerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateRegionAutoscaler(UpdateRegionAutoscalerHttpRequest request) { - return updateRegionAutoscalerCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateRegionAutoscalerAsync( + UpdateRegionAutoscalerHttpRequest request) { + return updateRegionAutoscalerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an autoscaler in the specified project using the data included in the request. + * + *

Sample code: + * + *


+   * try (RegionAutoscalerClient regionAutoscalerClient = RegionAutoscalerClient.create()) {
+   *   String autoscaler = "";
+   *   ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
+   *   Autoscaler autoscalerResource = Autoscaler.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   UpdateRegionAutoscalerHttpRequest request = UpdateRegionAutoscalerHttpRequest.newBuilder()
+   *     .setAutoscaler(autoscaler)
+   *     .setRegion(region.toString())
+   *     .setAutoscalerResource(autoscalerResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionAutoscalerClient.updateRegionAutoscalerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + updateRegionAutoscalerOperationCallable() { + return stub.updateRegionAutoscalerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -898,7 +1044,7 @@ public final Operation updateRegionAutoscaler(UpdateRegionAutoscalerHttpRequest * .build(); * ApiFuture<Operation> future = regionAutoscalerClient.updateRegionAutoscalerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerSettings.java index 6958d95b20c3..400df460e0e4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerSettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteRegionAutoscaler to 30 seconds: + * example, to set the total timeout of getRegionAutoscaler to 30 seconds: * *

  * 
  * RegionAutoscalerSettings.Builder regionAutoscalerSettingsBuilder =
  *     RegionAutoscalerSettings.newBuilder();
- * regionAutoscalerSettingsBuilder.deleteRegionAutoscalerSettings().getRetrySettings().toBuilder()
+ * regionAutoscalerSettingsBuilder.getRegionAutoscalerSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * RegionAutoscalerSettings regionAutoscalerSettings = regionAutoscalerSettingsBuilder.build();
  * 
@@ -69,6 +71,15 @@ public class RegionAutoscalerSettings extends ClientSettings
+      deleteRegionAutoscalerOperationSettings() {
+    return ((RegionAutoscalerStubSettings) getStubSettings())
+        .deleteRegionAutoscalerOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getRegionAutoscaler. */
   public UnaryCallSettings
       getRegionAutoscalerSettings() {
@@ -81,6 +92,15 @@ public class RegionAutoscalerSettings extends ClientSettings
+      insertRegionAutoscalerOperationSettings() {
+    return ((RegionAutoscalerStubSettings) getStubSettings())
+        .insertRegionAutoscalerOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listRegionAutoscalers. */
   public PagedCallSettings<
           ListRegionAutoscalersHttpRequest,
@@ -96,12 +116,30 @@ public class RegionAutoscalerSettings extends ClientSettings
+      patchRegionAutoscalerOperationSettings() {
+    return ((RegionAutoscalerStubSettings) getStubSettings())
+        .patchRegionAutoscalerOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to updateRegionAutoscaler. */
   public UnaryCallSettings
       updateRegionAutoscalerSettings() {
     return ((RegionAutoscalerStubSettings) getStubSettings()).updateRegionAutoscalerSettings();
   }
 
+  /** Returns the object with the settings used for calls to updateRegionAutoscaler. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateRegionAutoscalerOperationSettings() {
+    return ((RegionAutoscalerStubSettings) getStubSettings())
+        .updateRegionAutoscalerOperationSettings();
+  }
+
   public static final RegionAutoscalerSettings create(RegionAutoscalerStubSettings stub)
       throws IOException {
     return new RegionAutoscalerSettings.Builder(stub.toBuilder()).build();
@@ -210,6 +248,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteRegionAutoscalerSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteRegionAutoscaler. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage>
+        deleteRegionAutoscalerOperationSettings() {
+      return getStubSettingsBuilder().deleteRegionAutoscalerOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getRegionAutoscaler. */
     public UnaryCallSettings.Builder
         getRegionAutoscalerSettings() {
@@ -222,6 +269,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertRegionAutoscalerSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertRegionAutoscaler. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage>
+        insertRegionAutoscalerOperationSettings() {
+      return getStubSettingsBuilder().insertRegionAutoscalerOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listRegionAutoscalers. */
     public PagedCallSettings.Builder<
             ListRegionAutoscalersHttpRequest,
@@ -237,12 +293,30 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().patchRegionAutoscalerSettings();
     }
 
+    /** Returns the builder for the settings used for calls to patchRegionAutoscaler. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            PatchRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage>
+        patchRegionAutoscalerOperationSettings() {
+      return getStubSettingsBuilder().patchRegionAutoscalerOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to updateRegionAutoscaler. */
     public UnaryCallSettings.Builder
         updateRegionAutoscalerSettings() {
       return getStubSettingsBuilder().updateRegionAutoscalerSettings();
     }
 
+    /** Returns the builder for the settings used for calls to updateRegionAutoscaler. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            UpdateRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage>
+        updateRegionAutoscalerOperationSettings() {
+      return getStubSettingsBuilder().updateRegionAutoscalerOperationSettings();
+    }
+
     @Override
     public RegionAutoscalerSettings build() throws IOException {
       return new RegionAutoscalerSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java
index fae1e1a33a1c..2c69946e06c2 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.RegionBackendServiceStub;
@@ -43,7 +46,7 @@
  * 
  * try (RegionBackendServiceClient regionBackendServiceClient = RegionBackendServiceClient.create()) {
  *   ProjectRegionBackendServiceName backendService = ProjectRegionBackendServiceName.of("[PROJECT]", "[REGION]", "[BACKEND_SERVICE]");
- *   Operation response = regionBackendServiceClient.deleteRegionBackendService(backendService);
+ *   BackendService response = regionBackendServiceClient.getRegionBackendService(backendService);
  * }
  * 
  * 
@@ -104,6 +107,7 @@ public class RegionBackendServiceClient implements BackgroundResource { private final RegionBackendServiceSettings settings; private final RegionBackendServiceStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of RegionBackendServiceClient with default settings. */ public static final RegionBackendServiceClient create() throws IOException { @@ -136,12 +140,14 @@ public static final RegionBackendServiceClient create(RegionBackendServiceStub s protected RegionBackendServiceClient(RegionBackendServiceSettings settings) throws IOException { this.settings = settings; this.stub = ((RegionBackendServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected RegionBackendServiceClient(RegionBackendServiceStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final RegionBackendServiceSettings getSettings() { @@ -153,6 +159,16 @@ public RegionBackendServiceStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Deletes the specified regional BackendService resource. @@ -162,22 +178,23 @@ public RegionBackendServiceStub getStub() { *

    * try (RegionBackendServiceClient regionBackendServiceClient = RegionBackendServiceClient.create()) {
    *   ProjectRegionBackendServiceName backendService = ProjectRegionBackendServiceName.of("[PROJECT]", "[REGION]", "[BACKEND_SERVICE]");
-   *   Operation response = regionBackendServiceClient.deleteRegionBackendService(backendService);
+   *   regionBackendServiceClient.deleteRegionBackendServiceAsync(backendService).get();
    * }
    * 
* * @param backendService Name of the BackendService resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteRegionBackendService( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteRegionBackendServiceAsync( ProjectRegionBackendServiceName backendService) { DeleteRegionBackendServiceHttpRequest request = DeleteRegionBackendServiceHttpRequest.newBuilder() .setBackendService(backendService == null ? null : backendService.toString()) .build(); - return deleteRegionBackendService(request); + return deleteRegionBackendServiceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -189,21 +206,23 @@ public final Operation deleteRegionBackendService( *

    * try (RegionBackendServiceClient regionBackendServiceClient = RegionBackendServiceClient.create()) {
    *   ProjectRegionBackendServiceName backendService = ProjectRegionBackendServiceName.of("[PROJECT]", "[REGION]", "[BACKEND_SERVICE]");
-   *   Operation response = regionBackendServiceClient.deleteRegionBackendService(backendService.toString());
+   *   regionBackendServiceClient.deleteRegionBackendServiceAsync(backendService.toString()).get();
    * }
    * 
* * @param backendService Name of the BackendService resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteRegionBackendService(String backendService) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteRegionBackendServiceAsync( + String backendService) { DeleteRegionBackendServiceHttpRequest request = DeleteRegionBackendServiceHttpRequest.newBuilder() .setBackendService(backendService) .build(); - return deleteRegionBackendService(request); + return deleteRegionBackendServiceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -218,16 +237,42 @@ public final Operation deleteRegionBackendService(String backendService) { * DeleteRegionBackendServiceHttpRequest request = DeleteRegionBackendServiceHttpRequest.newBuilder() * .setBackendService(backendService.toString()) * .build(); - * Operation response = regionBackendServiceClient.deleteRegionBackendService(request); + * regionBackendServiceClient.deleteRegionBackendServiceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteRegionBackendService(DeleteRegionBackendServiceHttpRequest request) { - return deleteRegionBackendServiceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteRegionBackendServiceAsync( + DeleteRegionBackendServiceHttpRequest request) { + return deleteRegionBackendServiceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified regional BackendService resource. + * + *

Sample code: + * + *


+   * try (RegionBackendServiceClient regionBackendServiceClient = RegionBackendServiceClient.create()) {
+   *   ProjectRegionBackendServiceName backendService = ProjectRegionBackendServiceName.of("[PROJECT]", "[REGION]", "[BACKEND_SERVICE]");
+   *   DeleteRegionBackendServiceHttpRequest request = DeleteRegionBackendServiceHttpRequest.newBuilder()
+   *     .setBackendService(backendService.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionBackendServiceClient.deleteRegionBackendServiceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteRegionBackendServiceOperationCallable() { + return stub.deleteRegionBackendServiceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -244,7 +289,7 @@ public final Operation deleteRegionBackendService(DeleteRegionBackendServiceHttp * .build(); * ApiFuture<Operation> future = regionBackendServiceClient.deleteRegionBackendServiceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -479,7 +524,7 @@ public final BackendServiceGroupHealth getHealthRegionBackendService( * try (RegionBackendServiceClient regionBackendServiceClient = RegionBackendServiceClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * BackendService backendServiceResource = BackendService.newBuilder().build(); - * Operation response = regionBackendServiceClient.insertRegionBackendService(region, backendServiceResource); + * regionBackendServiceClient.insertRegionBackendServiceAsync(region, backendServiceResource).get(); * } * * @@ -489,8 +534,9 @@ public final BackendServiceGroupHealth getHealthRegionBackendService( * (== resource_for beta.backendService ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertRegionBackendService( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertRegionBackendServiceAsync( ProjectRegionName region, BackendService backendServiceResource) { InsertRegionBackendServiceHttpRequest request = @@ -498,7 +544,7 @@ public final Operation insertRegionBackendService( .setRegion(region == null ? null : region.toString()) .setBackendServiceResource(backendServiceResource) .build(); - return insertRegionBackendService(request); + return insertRegionBackendServiceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -513,7 +559,7 @@ public final Operation insertRegionBackendService( * try (RegionBackendServiceClient regionBackendServiceClient = RegionBackendServiceClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * BackendService backendServiceResource = BackendService.newBuilder().build(); - * Operation response = regionBackendServiceClient.insertRegionBackendService(region.toString(), backendServiceResource); + * regionBackendServiceClient.insertRegionBackendServiceAsync(region.toString(), backendServiceResource).get(); * } * * @@ -523,8 +569,9 @@ public final Operation insertRegionBackendService( * (== resource_for beta.backendService ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertRegionBackendService( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertRegionBackendServiceAsync( String region, BackendService backendServiceResource) { InsertRegionBackendServiceHttpRequest request = @@ -532,7 +579,7 @@ public final Operation insertRegionBackendService( .setRegion(region) .setBackendServiceResource(backendServiceResource) .build(); - return insertRegionBackendService(request); + return insertRegionBackendServiceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -551,16 +598,46 @@ public final Operation insertRegionBackendService( * .setRegion(region.toString()) * .setBackendServiceResource(backendServiceResource) * .build(); - * Operation response = regionBackendServiceClient.insertRegionBackendService(request); + * regionBackendServiceClient.insertRegionBackendServiceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertRegionBackendService(InsertRegionBackendServiceHttpRequest request) { - return insertRegionBackendServiceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertRegionBackendServiceAsync( + InsertRegionBackendServiceHttpRequest request) { + return insertRegionBackendServiceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a regional BackendService resource in the specified project using the data included in + * the request. There are several restrictions and guidelines to keep in mind when creating a + * regional backend service. Read Restrictions and Guidelines for more information. + * + *

Sample code: + * + *


+   * try (RegionBackendServiceClient regionBackendServiceClient = RegionBackendServiceClient.create()) {
+   *   ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
+   *   BackendService backendServiceResource = BackendService.newBuilder().build();
+   *   InsertRegionBackendServiceHttpRequest request = InsertRegionBackendServiceHttpRequest.newBuilder()
+   *     .setRegion(region.toString())
+   *     .setBackendServiceResource(backendServiceResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionBackendServiceClient.insertRegionBackendServiceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertRegionBackendServiceOperationCallable() { + return stub.insertRegionBackendServiceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -581,7 +658,7 @@ public final Operation insertRegionBackendService(InsertRegionBackendServiceHttp * .build(); * ApiFuture<Operation> future = regionBackendServiceClient.insertRegionBackendServiceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -750,7 +827,7 @@ public final ListRegionBackendServicesPagedResponse listRegionBackendServices( * ProjectRegionBackendServiceName backendService = ProjectRegionBackendServiceName.of("[PROJECT]", "[REGION]", "[BACKEND_SERVICE]"); * BackendService backendServiceResource = BackendService.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = regionBackendServiceClient.patchRegionBackendService(backendService, backendServiceResource, fieldMask); + * regionBackendServiceClient.patchRegionBackendServiceAsync(backendService, backendServiceResource, fieldMask).get(); * } * * @@ -764,8 +841,9 @@ public final ListRegionBackendServicesPagedResponse listRegionBackendServices( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchRegionBackendService( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchRegionBackendServiceAsync( ProjectRegionBackendServiceName backendService, BackendService backendServiceResource, List fieldMask) { @@ -776,7 +854,7 @@ public final Operation patchRegionBackendService( .setBackendServiceResource(backendServiceResource) .addAllFieldMask(fieldMask) .build(); - return patchRegionBackendService(request); + return patchRegionBackendServiceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -793,7 +871,7 @@ public final Operation patchRegionBackendService( * ProjectRegionBackendServiceName backendService = ProjectRegionBackendServiceName.of("[PROJECT]", "[REGION]", "[BACKEND_SERVICE]"); * BackendService backendServiceResource = BackendService.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = regionBackendServiceClient.patchRegionBackendService(backendService.toString(), backendServiceResource, fieldMask); + * regionBackendServiceClient.patchRegionBackendServiceAsync(backendService.toString(), backendServiceResource, fieldMask).get(); * } * * @@ -807,8 +885,9 @@ public final Operation patchRegionBackendService( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchRegionBackendService( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchRegionBackendServiceAsync( String backendService, BackendService backendServiceResource, List fieldMask) { PatchRegionBackendServiceHttpRequest request = @@ -817,7 +896,7 @@ public final Operation patchRegionBackendService( .setBackendServiceResource(backendServiceResource) .addAllFieldMask(fieldMask) .build(); - return patchRegionBackendService(request); + return patchRegionBackendServiceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -839,16 +918,49 @@ public final Operation patchRegionBackendService( * .setBackendServiceResource(backendServiceResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = regionBackendServiceClient.patchRegionBackendService(request); + * regionBackendServiceClient.patchRegionBackendServiceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchRegionBackendService(PatchRegionBackendServiceHttpRequest request) { - return patchRegionBackendServiceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchRegionBackendServiceAsync( + PatchRegionBackendServiceHttpRequest request) { + return patchRegionBackendServiceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the specified regional BackendService resource with the data included in the request. + * There are several restrictions and guidelines to keep in mind when updating a backend service. + * Read Restrictions and Guidelines for more information. This method supports PATCH semantics and + * uses the JSON merge patch format and processing rules. + * + *

Sample code: + * + *


+   * try (RegionBackendServiceClient regionBackendServiceClient = RegionBackendServiceClient.create()) {
+   *   ProjectRegionBackendServiceName backendService = ProjectRegionBackendServiceName.of("[PROJECT]", "[REGION]", "[BACKEND_SERVICE]");
+   *   BackendService backendServiceResource = BackendService.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   PatchRegionBackendServiceHttpRequest request = PatchRegionBackendServiceHttpRequest.newBuilder()
+   *     .setBackendService(backendService.toString())
+   *     .setBackendServiceResource(backendServiceResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionBackendServiceClient.patchRegionBackendServiceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + patchRegionBackendServiceOperationCallable() { + return stub.patchRegionBackendServiceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -872,7 +984,7 @@ public final Operation patchRegionBackendService(PatchRegionBackendServiceHttpRe * .build(); * ApiFuture<Operation> future = regionBackendServiceClient.patchRegionBackendServiceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -895,7 +1007,7 @@ public final Operation patchRegionBackendService(PatchRegionBackendServiceHttpRe * ProjectRegionBackendServiceName backendService = ProjectRegionBackendServiceName.of("[PROJECT]", "[REGION]", "[BACKEND_SERVICE]"); * BackendService backendServiceResource = BackendService.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = regionBackendServiceClient.updateRegionBackendService(backendService, backendServiceResource, fieldMask); + * regionBackendServiceClient.updateRegionBackendServiceAsync(backendService, backendServiceResource, fieldMask).get(); * } * * @@ -909,8 +1021,9 @@ public final Operation patchRegionBackendService(PatchRegionBackendServiceHttpRe * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateRegionBackendService( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateRegionBackendServiceAsync( ProjectRegionBackendServiceName backendService, BackendService backendServiceResource, List fieldMask) { @@ -921,7 +1034,7 @@ public final Operation updateRegionBackendService( .setBackendServiceResource(backendServiceResource) .addAllFieldMask(fieldMask) .build(); - return updateRegionBackendService(request); + return updateRegionBackendServiceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -937,7 +1050,7 @@ public final Operation updateRegionBackendService( * ProjectRegionBackendServiceName backendService = ProjectRegionBackendServiceName.of("[PROJECT]", "[REGION]", "[BACKEND_SERVICE]"); * BackendService backendServiceResource = BackendService.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = regionBackendServiceClient.updateRegionBackendService(backendService.toString(), backendServiceResource, fieldMask); + * regionBackendServiceClient.updateRegionBackendServiceAsync(backendService.toString(), backendServiceResource, fieldMask).get(); * } * * @@ -951,8 +1064,9 @@ public final Operation updateRegionBackendService( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateRegionBackendService( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateRegionBackendServiceAsync( String backendService, BackendService backendServiceResource, List fieldMask) { UpdateRegionBackendServiceHttpRequest request = @@ -961,7 +1075,7 @@ public final Operation updateRegionBackendService( .setBackendServiceResource(backendServiceResource) .addAllFieldMask(fieldMask) .build(); - return updateRegionBackendService(request); + return updateRegionBackendServiceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -982,16 +1096,48 @@ public final Operation updateRegionBackendService( * .setBackendServiceResource(backendServiceResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = regionBackendServiceClient.updateRegionBackendService(request); + * regionBackendServiceClient.updateRegionBackendServiceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateRegionBackendService(UpdateRegionBackendServiceHttpRequest request) { - return updateRegionBackendServiceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateRegionBackendServiceAsync( + UpdateRegionBackendServiceHttpRequest request) { + return updateRegionBackendServiceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the specified regional BackendService resource with the data included in the request. + * There are several restrictions and guidelines to keep in mind when updating a backend service. + * Read Restrictions and Guidelines for more information. + * + *

Sample code: + * + *


+   * try (RegionBackendServiceClient regionBackendServiceClient = RegionBackendServiceClient.create()) {
+   *   ProjectRegionBackendServiceName backendService = ProjectRegionBackendServiceName.of("[PROJECT]", "[REGION]", "[BACKEND_SERVICE]");
+   *   BackendService backendServiceResource = BackendService.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   UpdateRegionBackendServiceHttpRequest request = UpdateRegionBackendServiceHttpRequest.newBuilder()
+   *     .setBackendService(backendService.toString())
+   *     .setBackendServiceResource(backendServiceResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionBackendServiceClient.updateRegionBackendServiceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + updateRegionBackendServiceOperationCallable() { + return stub.updateRegionBackendServiceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1014,7 +1160,7 @@ public final Operation updateRegionBackendService(UpdateRegionBackendServiceHttp * .build(); * ApiFuture<Operation> future = regionBackendServiceClient.updateRegionBackendServiceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceSettings.java index 6b8b863f8cb0..0e0cff3b57a9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceSettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteRegionBackendService to 30 seconds: + * example, to set the total timeout of getRegionBackendService to 30 seconds: * *

  * 
  * RegionBackendServiceSettings.Builder regionBackendServiceSettingsBuilder =
  *     RegionBackendServiceSettings.newBuilder();
- * regionBackendServiceSettingsBuilder.deleteRegionBackendServiceSettings().getRetrySettings().toBuilder()
+ * regionBackendServiceSettingsBuilder.getRegionBackendServiceSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * RegionBackendServiceSettings regionBackendServiceSettings = regionBackendServiceSettingsBuilder.build();
  * 
@@ -70,6 +72,15 @@ public class RegionBackendServiceSettings extends ClientSettings
+      deleteRegionBackendServiceOperationSettings() {
+    return ((RegionBackendServiceStubSettings) getStubSettings())
+        .deleteRegionBackendServiceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getRegionBackendService. */
   public UnaryCallSettings
       getRegionBackendServiceSettings() {
@@ -90,6 +101,15 @@ public class RegionBackendServiceSettings extends ClientSettings
+      insertRegionBackendServiceOperationSettings() {
+    return ((RegionBackendServiceStubSettings) getStubSettings())
+        .insertRegionBackendServiceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listRegionBackendServices. */
   public PagedCallSettings<
           ListRegionBackendServicesHttpRequest,
@@ -107,6 +127,15 @@ public class RegionBackendServiceSettings extends ClientSettings
+      patchRegionBackendServiceOperationSettings() {
+    return ((RegionBackendServiceStubSettings) getStubSettings())
+        .patchRegionBackendServiceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to updateRegionBackendService. */
   public UnaryCallSettings
       updateRegionBackendServiceSettings() {
@@ -114,6 +143,15 @@ public class RegionBackendServiceSettings extends ClientSettings
+      updateRegionBackendServiceOperationSettings() {
+    return ((RegionBackendServiceStubSettings) getStubSettings())
+        .updateRegionBackendServiceOperationSettings();
+  }
+
   public static final RegionBackendServiceSettings create(RegionBackendServiceStubSettings stub)
       throws IOException {
     return new RegionBackendServiceSettings.Builder(stub.toBuilder()).build();
@@ -223,6 +261,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteRegionBackendServiceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteRegionBackendService. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        deleteRegionBackendServiceOperationSettings() {
+      return getStubSettingsBuilder().deleteRegionBackendServiceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getRegionBackendService. */
     public UnaryCallSettings.Builder
         getRegionBackendServiceSettings() {
@@ -242,6 +289,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertRegionBackendServiceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertRegionBackendService. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        insertRegionBackendServiceOperationSettings() {
+      return getStubSettingsBuilder().insertRegionBackendServiceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listRegionBackendServices. */
     public PagedCallSettings.Builder<
             ListRegionBackendServicesHttpRequest,
@@ -257,12 +313,30 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().patchRegionBackendServiceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to patchRegionBackendService. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            PatchRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        patchRegionBackendServiceOperationSettings() {
+      return getStubSettingsBuilder().patchRegionBackendServiceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to updateRegionBackendService. */
     public UnaryCallSettings.Builder
         updateRegionBackendServiceSettings() {
       return getStubSettingsBuilder().updateRegionBackendServiceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to updateRegionBackendService. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            UpdateRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        updateRegionBackendServiceOperationSettings() {
+      return getStubSettingsBuilder().updateRegionBackendServiceOperationSettings();
+    }
+
     @Override
     public RegionBackendServiceSettings build() throws IOException {
       return new RegionBackendServiceSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentClient.java
index f9f4b82b5493..8007ba75b313 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.RegionCommitmentStub;
@@ -104,6 +107,7 @@
 public class RegionCommitmentClient implements BackgroundResource {
   private final RegionCommitmentSettings settings;
   private final RegionCommitmentStub stub;
+  private final GlobalOperationClient operationsClient;
 
   /** Constructs an instance of RegionCommitmentClient with default settings. */
   public static final RegionCommitmentClient create() throws IOException {
@@ -136,12 +140,14 @@ public static final RegionCommitmentClient create(RegionCommitmentStub stub) {
   protected RegionCommitmentClient(RegionCommitmentSettings settings) throws IOException {
     this.settings = settings;
     this.stub = ((RegionCommitmentStubSettings) settings.getStubSettings()).createStub();
+    this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub());
   }
 
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected RegionCommitmentClient(RegionCommitmentStub stub) {
     this.settings = null;
     this.stub = stub;
+    this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub());
   }
 
   public final RegionCommitmentSettings getSettings() {
@@ -153,6 +159,16 @@ public RegionCommitmentStub getStub() {
     return stub;
   }
 
+  /**
+   * Returns the GlobalOperationClient that can be used to query the status of a long-running
+   * operation returned by another API method call.
+   */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public final GlobalOperationClient getOperationsClient() {
+    return operationsClient;
+  }
+
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
    * Retrieves an aggregated list of commitments.
@@ -406,7 +422,7 @@ public final Commitment getRegionCommitment(GetRegionCommitmentHttpRequest reque
    * try (RegionCommitmentClient regionCommitmentClient = RegionCommitmentClient.create()) {
    *   ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
    *   Commitment commitmentResource = Commitment.newBuilder().build();
-   *   Operation response = regionCommitmentClient.insertRegionCommitment(region, commitmentResource);
+   *   regionCommitmentClient.insertRegionCommitmentAsync(region, commitmentResource).get();
    * }
    * 
* @@ -421,8 +437,9 @@ public final Commitment getRegionCommitment(GetRegionCommitmentHttpRequest reque * resource_for beta.commitments ==) (== resource_for v1.commitments ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertRegionCommitment( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertRegionCommitmentAsync( ProjectRegionName region, Commitment commitmentResource) { InsertRegionCommitmentHttpRequest request = @@ -430,7 +447,7 @@ public final Operation insertRegionCommitment( .setRegion(region == null ? null : region.toString()) .setCommitmentResource(commitmentResource) .build(); - return insertRegionCommitment(request); + return insertRegionCommitmentAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -443,7 +460,7 @@ public final Operation insertRegionCommitment( * try (RegionCommitmentClient regionCommitmentClient = RegionCommitmentClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * Commitment commitmentResource = Commitment.newBuilder().build(); - * Operation response = regionCommitmentClient.insertRegionCommitment(region.toString(), commitmentResource); + * regionCommitmentClient.insertRegionCommitmentAsync(region.toString(), commitmentResource).get(); * } * * @@ -458,15 +475,17 @@ public final Operation insertRegionCommitment( * resource_for beta.commitments ==) (== resource_for v1.commitments ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertRegionCommitment(String region, Commitment commitmentResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertRegionCommitmentAsync( + String region, Commitment commitmentResource) { InsertRegionCommitmentHttpRequest request = InsertRegionCommitmentHttpRequest.newBuilder() .setRegion(region) .setCommitmentResource(commitmentResource) .build(); - return insertRegionCommitment(request); + return insertRegionCommitmentAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -483,16 +502,44 @@ public final Operation insertRegionCommitment(String region, Commitment commitme * .setRegion(region.toString()) * .setCommitmentResource(commitmentResource) * .build(); - * Operation response = regionCommitmentClient.insertRegionCommitment(request); + * regionCommitmentClient.insertRegionCommitmentAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertRegionCommitment(InsertRegionCommitmentHttpRequest request) { - return insertRegionCommitmentCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertRegionCommitmentAsync( + InsertRegionCommitmentHttpRequest request) { + return insertRegionCommitmentOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a commitment in the specified project using the data included in the request. + * + *

Sample code: + * + *


+   * try (RegionCommitmentClient regionCommitmentClient = RegionCommitmentClient.create()) {
+   *   ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
+   *   Commitment commitmentResource = Commitment.newBuilder().build();
+   *   InsertRegionCommitmentHttpRequest request = InsertRegionCommitmentHttpRequest.newBuilder()
+   *     .setRegion(region.toString())
+   *     .setCommitmentResource(commitmentResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionCommitmentClient.insertRegionCommitmentOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertRegionCommitmentOperationCallable() { + return stub.insertRegionCommitmentOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -511,7 +558,7 @@ public final Operation insertRegionCommitment(InsertRegionCommitmentHttpRequest * .build(); * ApiFuture<Operation> future = regionCommitmentClient.insertRegionCommitmentCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentSettings.java index be9082fe4447..4379ebbcab30 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentSettings.java @@ -22,10 +22,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -86,6 +88,15 @@ public class RegionCommitmentSettings extends ClientSettings + insertRegionCommitmentOperationSettings() { + return ((RegionCommitmentStubSettings) getStubSettings()) + .insertRegionCommitmentOperationSettings(); + } + /** Returns the object with the settings used for calls to listRegionCommitments. */ public PagedCallSettings< ListRegionCommitmentsHttpRequest, CommitmentList, ListRegionCommitmentsPagedResponse> @@ -216,6 +227,15 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().insertRegionCommitmentSettings(); } + /** Returns the builder for the settings used for calls to insertRegionCommitment. */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + InsertRegionCommitmentHttpRequest, EmptyMessage, EmptyMessage> + insertRegionCommitmentOperationSettings() { + return getStubSettingsBuilder().insertRegionCommitmentOperationSettings(); + } + /** Returns the builder for the settings used for calls to listRegionCommitments. */ public PagedCallSettings.Builder< ListRegionCommitmentsHttpRequest, CommitmentList, ListRegionCommitmentsPagedResponse> diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskClient.java index 77c210bf1a6c..7b9f04b6825c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskClient.java @@ -20,9 +20,12 @@ 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.EmptyMessage; +import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.RegionDiskStub; @@ -43,8 +46,7 @@ * * try (RegionDiskClient regionDiskClient = RegionDiskClient.create()) { * ProjectRegionDiskName disk = ProjectRegionDiskName.of("[PROJECT]", "[REGION]", "[DISK]"); - * Snapshot snapshotResource = Snapshot.newBuilder().build(); - * Operation response = regionDiskClient.createSnapshotRegionDisk(disk, snapshotResource); + * Disk response = regionDiskClient.getRegionDisk(disk); * } * * @@ -104,6 +106,7 @@ public class RegionDiskClient implements BackgroundResource { private final RegionDiskSettings settings; private final RegionDiskStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of RegionDiskClient with default settings. */ public static final RegionDiskClient create() throws IOException { @@ -134,12 +137,14 @@ public static final RegionDiskClient create(RegionDiskStub stub) { protected RegionDiskClient(RegionDiskSettings settings) throws IOException { this.settings = settings; this.stub = ((RegionDiskStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected RegionDiskClient(RegionDiskStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final RegionDiskSettings getSettings() { @@ -151,6 +156,16 @@ public RegionDiskStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates a snapshot of this regional disk. @@ -161,7 +176,7 @@ public RegionDiskStub getStub() { * try (RegionDiskClient regionDiskClient = RegionDiskClient.create()) { * ProjectRegionDiskName disk = ProjectRegionDiskName.of("[PROJECT]", "[REGION]", "[DISK]"); * Snapshot snapshotResource = Snapshot.newBuilder().build(); - * Operation response = regionDiskClient.createSnapshotRegionDisk(disk, snapshotResource); + * regionDiskClient.createSnapshotRegionDiskAsync(disk, snapshotResource).get(); * } * * @@ -170,8 +185,9 @@ public RegionDiskStub getStub() { * ==) (== resource_for v1.snapshots ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation createSnapshotRegionDisk( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture createSnapshotRegionDiskAsync( ProjectRegionDiskName disk, Snapshot snapshotResource) { CreateSnapshotRegionDiskHttpRequest request = @@ -179,7 +195,7 @@ public final Operation createSnapshotRegionDisk( .setDisk(disk == null ? null : disk.toString()) .setSnapshotResource(snapshotResource) .build(); - return createSnapshotRegionDisk(request); + return createSnapshotRegionDiskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -192,7 +208,7 @@ public final Operation createSnapshotRegionDisk( * try (RegionDiskClient regionDiskClient = RegionDiskClient.create()) { * ProjectRegionDiskName disk = ProjectRegionDiskName.of("[PROJECT]", "[REGION]", "[DISK]"); * Snapshot snapshotResource = Snapshot.newBuilder().build(); - * Operation response = regionDiskClient.createSnapshotRegionDisk(disk.toString(), snapshotResource); + * regionDiskClient.createSnapshotRegionDiskAsync(disk.toString(), snapshotResource).get(); * } * * @@ -201,15 +217,17 @@ public final Operation createSnapshotRegionDisk( * ==) (== resource_for v1.snapshots ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation createSnapshotRegionDisk(String disk, Snapshot snapshotResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture createSnapshotRegionDiskAsync( + String disk, Snapshot snapshotResource) { CreateSnapshotRegionDiskHttpRequest request = CreateSnapshotRegionDiskHttpRequest.newBuilder() .setDisk(disk) .setSnapshotResource(snapshotResource) .build(); - return createSnapshotRegionDisk(request); + return createSnapshotRegionDiskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -226,16 +244,44 @@ public final Operation createSnapshotRegionDisk(String disk, Snapshot snapshotRe * .setDisk(disk.toString()) * .setSnapshotResource(snapshotResource) * .build(); - * Operation response = regionDiskClient.createSnapshotRegionDisk(request); + * regionDiskClient.createSnapshotRegionDiskAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation createSnapshotRegionDisk(CreateSnapshotRegionDiskHttpRequest request) { - return createSnapshotRegionDiskCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture createSnapshotRegionDiskAsync( + CreateSnapshotRegionDiskHttpRequest request) { + return createSnapshotRegionDiskOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a snapshot of this regional disk. + * + *

Sample code: + * + *


+   * try (RegionDiskClient regionDiskClient = RegionDiskClient.create()) {
+   *   ProjectRegionDiskName disk = ProjectRegionDiskName.of("[PROJECT]", "[REGION]", "[DISK]");
+   *   Snapshot snapshotResource = Snapshot.newBuilder().build();
+   *   CreateSnapshotRegionDiskHttpRequest request = CreateSnapshotRegionDiskHttpRequest.newBuilder()
+   *     .setDisk(disk.toString())
+   *     .setSnapshotResource(snapshotResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionDiskClient.createSnapshotRegionDiskOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + createSnapshotRegionDiskOperationCallable() { + return stub.createSnapshotRegionDiskOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -254,7 +300,7 @@ public final Operation createSnapshotRegionDisk(CreateSnapshotRegionDiskHttpRequ * .build(); * ApiFuture<Operation> future = regionDiskClient.createSnapshotRegionDiskCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -275,21 +321,23 @@ public final Operation createSnapshotRegionDisk(CreateSnapshotRegionDiskHttpRequ *

    * try (RegionDiskClient regionDiskClient = RegionDiskClient.create()) {
    *   ProjectRegionDiskName disk = ProjectRegionDiskName.of("[PROJECT]", "[REGION]", "[DISK]");
-   *   Operation response = regionDiskClient.deleteRegionDisk(disk);
+   *   regionDiskClient.deleteRegionDiskAsync(disk).get();
    * }
    * 
* * @param disk Name of the regional persistent disk to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteRegionDisk(ProjectRegionDiskName disk) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteRegionDiskAsync( + ProjectRegionDiskName disk) { DeleteRegionDiskHttpRequest request = DeleteRegionDiskHttpRequest.newBuilder() .setDisk(disk == null ? null : disk.toString()) .build(); - return deleteRegionDisk(request); + return deleteRegionDiskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -303,19 +351,20 @@ public final Operation deleteRegionDisk(ProjectRegionDiskName disk) { *

    * try (RegionDiskClient regionDiskClient = RegionDiskClient.create()) {
    *   ProjectRegionDiskName disk = ProjectRegionDiskName.of("[PROJECT]", "[REGION]", "[DISK]");
-   *   Operation response = regionDiskClient.deleteRegionDisk(disk.toString());
+   *   regionDiskClient.deleteRegionDiskAsync(disk.toString()).get();
    * }
    * 
* * @param disk Name of the regional persistent disk to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteRegionDisk(String disk) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteRegionDiskAsync(String disk) { DeleteRegionDiskHttpRequest request = DeleteRegionDiskHttpRequest.newBuilder().setDisk(disk).build(); - return deleteRegionDisk(request); + return deleteRegionDiskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -332,16 +381,44 @@ public final Operation deleteRegionDisk(String disk) { * DeleteRegionDiskHttpRequest request = DeleteRegionDiskHttpRequest.newBuilder() * .setDisk(disk.toString()) * .build(); - * Operation response = regionDiskClient.deleteRegionDisk(request); + * regionDiskClient.deleteRegionDiskAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteRegionDisk(DeleteRegionDiskHttpRequest request) { - return deleteRegionDiskCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteRegionDiskAsync( + DeleteRegionDiskHttpRequest request) { + return deleteRegionDiskOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified regional persistent disk. Deleting a regional disk removes all the + * replicas of its data permanently and is irreversible. However, deleting a disk does not delete + * any snapshots previously made from the disk. You must separately delete snapshots. + * + *

Sample code: + * + *


+   * try (RegionDiskClient regionDiskClient = RegionDiskClient.create()) {
+   *   ProjectRegionDiskName disk = ProjectRegionDiskName.of("[PROJECT]", "[REGION]", "[DISK]");
+   *   DeleteRegionDiskHttpRequest request = DeleteRegionDiskHttpRequest.newBuilder()
+   *     .setDisk(disk.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionDiskClient.deleteRegionDiskOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteRegionDiskOperationCallable() { + return stub.deleteRegionDiskOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -360,7 +437,7 @@ public final Operation deleteRegionDisk(DeleteRegionDiskHttpRequest request) { * .build(); * ApiFuture<Operation> future = regionDiskClient.deleteRegionDiskCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -476,7 +553,7 @@ public final UnaryCallable getRegionDiskCallable * try (RegionDiskClient regionDiskClient = RegionDiskClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * Disk diskResource = Disk.newBuilder().build(); - * Operation response = regionDiskClient.insertRegionDisk(region, diskResource); + * regionDiskClient.insertRegionDiskAsync(region, diskResource).get(); * } * * @@ -485,15 +562,17 @@ public final UnaryCallable getRegionDiskCallable * ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertRegionDisk(ProjectRegionName region, Disk diskResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertRegionDiskAsync( + ProjectRegionName region, Disk diskResource) { InsertRegionDiskHttpRequest request = InsertRegionDiskHttpRequest.newBuilder() .setRegion(region == null ? null : region.toString()) .setDiskResource(diskResource) .build(); - return insertRegionDisk(request); + return insertRegionDiskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -507,7 +586,7 @@ public final Operation insertRegionDisk(ProjectRegionName region, Disk diskResou * try (RegionDiskClient regionDiskClient = RegionDiskClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * Disk diskResource = Disk.newBuilder().build(); - * Operation response = regionDiskClient.insertRegionDisk(region.toString(), diskResource); + * regionDiskClient.insertRegionDiskAsync(region.toString(), diskResource).get(); * } * * @@ -516,15 +595,17 @@ public final Operation insertRegionDisk(ProjectRegionName region, Disk diskResou * ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertRegionDisk(String region, Disk diskResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertRegionDiskAsync( + String region, Disk diskResource) { InsertRegionDiskHttpRequest request = InsertRegionDiskHttpRequest.newBuilder() .setRegion(region) .setDiskResource(diskResource) .build(); - return insertRegionDisk(request); + return insertRegionDiskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -542,16 +623,45 @@ public final Operation insertRegionDisk(String region, Disk diskResource) { * .setRegion(region.toString()) * .setDiskResource(diskResource) * .build(); - * Operation response = regionDiskClient.insertRegionDisk(request); + * regionDiskClient.insertRegionDiskAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertRegionDisk(InsertRegionDiskHttpRequest request) { - return insertRegionDiskCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertRegionDiskAsync( + InsertRegionDiskHttpRequest request) { + return insertRegionDiskOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a persistent regional disk in the specified project using the data included in the + * request. + * + *

Sample code: + * + *


+   * try (RegionDiskClient regionDiskClient = RegionDiskClient.create()) {
+   *   ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
+   *   Disk diskResource = Disk.newBuilder().build();
+   *   InsertRegionDiskHttpRequest request = InsertRegionDiskHttpRequest.newBuilder()
+   *     .setRegion(region.toString())
+   *     .setDiskResource(diskResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionDiskClient.insertRegionDiskOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertRegionDiskOperationCallable() { + return stub.insertRegionDiskOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -571,7 +681,7 @@ public final Operation insertRegionDisk(InsertRegionDiskHttpRequest request) { * .build(); * ApiFuture<Operation> future = regionDiskClient.insertRegionDiskCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -726,7 +836,7 @@ public final UnaryCallable listRegionDisks * try (RegionDiskClient regionDiskClient = RegionDiskClient.create()) { * ProjectRegionDiskName disk = ProjectRegionDiskName.of("[PROJECT]", "[REGION]", "[DISK]"); * RegionDisksResizeRequest regionDisksResizeRequestResource = RegionDisksResizeRequest.newBuilder().build(); - * Operation response = regionDiskClient.resizeRegionDisk(disk, regionDisksResizeRequestResource); + * regionDiskClient.resizeRegionDiskAsync(disk, regionDisksResizeRequestResource).get(); * } * * @@ -734,8 +844,9 @@ public final UnaryCallable listRegionDisks * @param regionDisksResizeRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation resizeRegionDisk( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture resizeRegionDiskAsync( ProjectRegionDiskName disk, RegionDisksResizeRequest regionDisksResizeRequestResource) { ResizeRegionDiskHttpRequest request = @@ -743,7 +854,7 @@ public final Operation resizeRegionDisk( .setDisk(disk == null ? null : disk.toString()) .setRegionDisksResizeRequestResource(regionDisksResizeRequestResource) .build(); - return resizeRegionDisk(request); + return resizeRegionDiskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -756,7 +867,7 @@ public final Operation resizeRegionDisk( * try (RegionDiskClient regionDiskClient = RegionDiskClient.create()) { * ProjectRegionDiskName disk = ProjectRegionDiskName.of("[PROJECT]", "[REGION]", "[DISK]"); * RegionDisksResizeRequest regionDisksResizeRequestResource = RegionDisksResizeRequest.newBuilder().build(); - * Operation response = regionDiskClient.resizeRegionDisk(disk.toString(), regionDisksResizeRequestResource); + * regionDiskClient.resizeRegionDiskAsync(disk.toString(), regionDisksResizeRequestResource).get(); * } * * @@ -764,8 +875,9 @@ public final Operation resizeRegionDisk( * @param regionDisksResizeRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation resizeRegionDisk( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture resizeRegionDiskAsync( String disk, RegionDisksResizeRequest regionDisksResizeRequestResource) { ResizeRegionDiskHttpRequest request = @@ -773,7 +885,7 @@ public final Operation resizeRegionDisk( .setDisk(disk) .setRegionDisksResizeRequestResource(regionDisksResizeRequestResource) .build(); - return resizeRegionDisk(request); + return resizeRegionDiskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -790,16 +902,44 @@ public final Operation resizeRegionDisk( * .setDisk(disk.toString()) * .setRegionDisksResizeRequestResource(regionDisksResizeRequestResource) * .build(); - * Operation response = regionDiskClient.resizeRegionDisk(request); + * regionDiskClient.resizeRegionDiskAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation resizeRegionDisk(ResizeRegionDiskHttpRequest request) { - return resizeRegionDiskCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture resizeRegionDiskAsync( + ResizeRegionDiskHttpRequest request) { + return resizeRegionDiskOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Resizes the specified regional persistent disk. + * + *

Sample code: + * + *


+   * try (RegionDiskClient regionDiskClient = RegionDiskClient.create()) {
+   *   ProjectRegionDiskName disk = ProjectRegionDiskName.of("[PROJECT]", "[REGION]", "[DISK]");
+   *   RegionDisksResizeRequest regionDisksResizeRequestResource = RegionDisksResizeRequest.newBuilder().build();
+   *   ResizeRegionDiskHttpRequest request = ResizeRegionDiskHttpRequest.newBuilder()
+   *     .setDisk(disk.toString())
+   *     .setRegionDisksResizeRequestResource(regionDisksResizeRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionDiskClient.resizeRegionDiskOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + resizeRegionDiskOperationCallable() { + return stub.resizeRegionDiskOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -818,7 +958,7 @@ public final Operation resizeRegionDisk(ResizeRegionDiskHttpRequest request) { * .build(); * ApiFuture<Operation> future = regionDiskClient.resizeRegionDiskCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -837,7 +977,7 @@ public final UnaryCallable resizeRegionD * try (RegionDiskClient regionDiskClient = RegionDiskClient.create()) { * ProjectRegionDiskResourceName resource = ProjectRegionDiskResourceName.of("[PROJECT]", "[REGION]", "[RESOURCE]"); * RegionSetLabelsRequest regionSetLabelsRequestResource = RegionSetLabelsRequest.newBuilder().build(); - * Operation response = regionDiskClient.setLabelsRegionDisk(resource, regionSetLabelsRequestResource); + * regionDiskClient.setLabelsRegionDiskAsync(resource, regionSetLabelsRequestResource).get(); * } * * @@ -845,8 +985,9 @@ public final UnaryCallable resizeRegionD * @param regionSetLabelsRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setLabelsRegionDisk( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setLabelsRegionDiskAsync( ProjectRegionDiskResourceName resource, RegionSetLabelsRequest regionSetLabelsRequestResource) { @@ -855,7 +996,7 @@ public final Operation setLabelsRegionDisk( .setResource(resource == null ? null : resource.toString()) .setRegionSetLabelsRequestResource(regionSetLabelsRequestResource) .build(); - return setLabelsRegionDisk(request); + return setLabelsRegionDiskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -868,7 +1009,7 @@ public final Operation setLabelsRegionDisk( * try (RegionDiskClient regionDiskClient = RegionDiskClient.create()) { * ProjectRegionDiskResourceName resource = ProjectRegionDiskResourceName.of("[PROJECT]", "[REGION]", "[RESOURCE]"); * RegionSetLabelsRequest regionSetLabelsRequestResource = RegionSetLabelsRequest.newBuilder().build(); - * Operation response = regionDiskClient.setLabelsRegionDisk(resource.toString(), regionSetLabelsRequestResource); + * regionDiskClient.setLabelsRegionDiskAsync(resource.toString(), regionSetLabelsRequestResource).get(); * } * * @@ -876,8 +1017,9 @@ public final Operation setLabelsRegionDisk( * @param regionSetLabelsRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setLabelsRegionDisk( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setLabelsRegionDiskAsync( String resource, RegionSetLabelsRequest regionSetLabelsRequestResource) { SetLabelsRegionDiskHttpRequest request = @@ -885,7 +1027,7 @@ public final Operation setLabelsRegionDisk( .setResource(resource) .setRegionSetLabelsRequestResource(regionSetLabelsRequestResource) .build(); - return setLabelsRegionDisk(request); + return setLabelsRegionDiskAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -902,16 +1044,44 @@ public final Operation setLabelsRegionDisk( * .setResource(resource.toString()) * .setRegionSetLabelsRequestResource(regionSetLabelsRequestResource) * .build(); - * Operation response = regionDiskClient.setLabelsRegionDisk(request); + * regionDiskClient.setLabelsRegionDiskAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setLabelsRegionDisk(SetLabelsRegionDiskHttpRequest request) { - return setLabelsRegionDiskCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setLabelsRegionDiskAsync( + SetLabelsRegionDiskHttpRequest request) { + return setLabelsRegionDiskOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the labels on the target regional disk. + * + *

Sample code: + * + *


+   * try (RegionDiskClient regionDiskClient = RegionDiskClient.create()) {
+   *   ProjectRegionDiskResourceName resource = ProjectRegionDiskResourceName.of("[PROJECT]", "[REGION]", "[RESOURCE]");
+   *   RegionSetLabelsRequest regionSetLabelsRequestResource = RegionSetLabelsRequest.newBuilder().build();
+   *   SetLabelsRegionDiskHttpRequest request = SetLabelsRegionDiskHttpRequest.newBuilder()
+   *     .setResource(resource.toString())
+   *     .setRegionSetLabelsRequestResource(regionSetLabelsRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionDiskClient.setLabelsRegionDiskOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + setLabelsRegionDiskOperationCallable() { + return stub.setLabelsRegionDiskOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -930,7 +1100,7 @@ public final Operation setLabelsRegionDisk(SetLabelsRegionDiskHttpRequest reques * .build(); * ApiFuture<Operation> future = regionDiskClient.setLabelsRegionDiskCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskSettings.java index 6f74feade14c..bd4f87f9b1cc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskSettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of createSnapshotRegionDisk to 30 seconds: + * example, to set the total timeout of getRegionDisk to 30 seconds: * *

  * 
  * RegionDiskSettings.Builder regionDiskSettingsBuilder =
  *     RegionDiskSettings.newBuilder();
- * regionDiskSettingsBuilder.createSnapshotRegionDiskSettings().getRetrySettings().toBuilder()
+ * regionDiskSettingsBuilder.getRegionDiskSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * RegionDiskSettings regionDiskSettings = regionDiskSettingsBuilder.build();
  * 
@@ -69,11 +71,27 @@ public class RegionDiskSettings extends ClientSettings {
     return ((RegionDiskStubSettings) getStubSettings()).createSnapshotRegionDiskSettings();
   }
 
+  /** Returns the object with the settings used for calls to createSnapshotRegionDisk. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      createSnapshotRegionDiskOperationSettings() {
+    return ((RegionDiskStubSettings) getStubSettings()).createSnapshotRegionDiskOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to deleteRegionDisk. */
   public UnaryCallSettings deleteRegionDiskSettings() {
     return ((RegionDiskStubSettings) getStubSettings()).deleteRegionDiskSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteRegionDisk. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteRegionDiskOperationSettings() {
+    return ((RegionDiskStubSettings) getStubSettings()).deleteRegionDiskOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getRegionDisk. */
   public UnaryCallSettings getRegionDiskSettings() {
     return ((RegionDiskStubSettings) getStubSettings()).getRegionDiskSettings();
@@ -84,6 +102,14 @@ public UnaryCallSettings insertRegionDis
     return ((RegionDiskStubSettings) getStubSettings()).insertRegionDiskSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertRegionDisk. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertRegionDiskOperationSettings() {
+    return ((RegionDiskStubSettings) getStubSettings()).insertRegionDiskOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listRegionDisks. */
   public PagedCallSettings
       listRegionDisksSettings() {
@@ -95,12 +121,28 @@ public UnaryCallSettings resizeRegionDis
     return ((RegionDiskStubSettings) getStubSettings()).resizeRegionDiskSettings();
   }
 
+  /** Returns the object with the settings used for calls to resizeRegionDisk. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      resizeRegionDiskOperationSettings() {
+    return ((RegionDiskStubSettings) getStubSettings()).resizeRegionDiskOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setLabelsRegionDisk. */
   public UnaryCallSettings
       setLabelsRegionDiskSettings() {
     return ((RegionDiskStubSettings) getStubSettings()).setLabelsRegionDiskSettings();
   }
 
+  /** Returns the object with the settings used for calls to setLabelsRegionDisk. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setLabelsRegionDiskOperationSettings() {
+    return ((RegionDiskStubSettings) getStubSettings()).setLabelsRegionDiskOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to testIamPermissionsRegionDisk. */
   public UnaryCallSettings
       testIamPermissionsRegionDiskSettings() {
@@ -214,12 +256,29 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().createSnapshotRegionDiskSettings();
     }
 
+    /** Returns the builder for the settings used for calls to createSnapshotRegionDisk. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            CreateSnapshotRegionDiskHttpRequest, EmptyMessage, EmptyMessage>
+        createSnapshotRegionDiskOperationSettings() {
+      return getStubSettingsBuilder().createSnapshotRegionDiskOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to deleteRegionDisk. */
     public UnaryCallSettings.Builder
         deleteRegionDiskSettings() {
       return getStubSettingsBuilder().deleteRegionDiskSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteRegionDisk. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteRegionDiskOperationSettings() {
+      return getStubSettingsBuilder().deleteRegionDiskOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getRegionDisk. */
     public UnaryCallSettings.Builder getRegionDiskSettings() {
       return getStubSettingsBuilder().getRegionDiskSettings();
@@ -231,6 +290,14 @@ public UnaryCallSettings.Builder getRegionDiskSe
       return getStubSettingsBuilder().insertRegionDiskSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertRegionDisk. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertRegionDiskOperationSettings() {
+      return getStubSettingsBuilder().insertRegionDiskOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listRegionDisks. */
     public PagedCallSettings.Builder<
             ListRegionDisksHttpRequest, DiskList, ListRegionDisksPagedResponse>
@@ -244,12 +311,28 @@ public UnaryCallSettings.Builder getRegionDiskSe
       return getStubSettingsBuilder().resizeRegionDiskSettings();
     }
 
+    /** Returns the builder for the settings used for calls to resizeRegionDisk. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        resizeRegionDiskOperationSettings() {
+      return getStubSettingsBuilder().resizeRegionDiskOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setLabelsRegionDisk. */
     public UnaryCallSettings.Builder
         setLabelsRegionDiskSettings() {
       return getStubSettingsBuilder().setLabelsRegionDiskSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setLabelsRegionDisk. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        setLabelsRegionDiskOperationSettings() {
+      return getStubSettingsBuilder().setLabelsRegionDiskOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to testIamPermissionsRegionDisk. */
     public UnaryCallSettings.Builder<
             TestIamPermissionsRegionDiskHttpRequest, TestPermissionsResponse>
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupClient.java
index 5c4e6526a97b..7b4c45cfc9da 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.RegionInstanceGroupStub;
@@ -104,6 +107,7 @@
 public class RegionInstanceGroupClient implements BackgroundResource {
   private final RegionInstanceGroupSettings settings;
   private final RegionInstanceGroupStub stub;
+  private final GlobalOperationClient operationsClient;
 
   /** Constructs an instance of RegionInstanceGroupClient with default settings. */
   public static final RegionInstanceGroupClient create() throws IOException {
@@ -136,12 +140,14 @@ public static final RegionInstanceGroupClient create(RegionInstanceGroupStub stu
   protected RegionInstanceGroupClient(RegionInstanceGroupSettings settings) throws IOException {
     this.settings = settings;
     this.stub = ((RegionInstanceGroupStubSettings) settings.getStubSettings()).createStub();
+    this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub());
   }
 
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected RegionInstanceGroupClient(RegionInstanceGroupStub stub) {
     this.settings = null;
     this.stub = stub;
+    this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub());
   }
 
   public final RegionInstanceGroupSettings getSettings() {
@@ -153,6 +159,16 @@ public RegionInstanceGroupStub getStub() {
     return stub;
   }
 
+  /**
+   * Returns the GlobalOperationClient that can be used to query the status of a long-running
+   * operation returned by another API method call.
+   */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public final GlobalOperationClient getOperationsClient() {
+    return operationsClient;
+  }
+
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
    * Returns the specified instance group resource.
@@ -574,7 +590,7 @@ public final ListInstancesRegionInstanceGroupsPagedResponse listInstancesRegionI
    * try (RegionInstanceGroupClient regionInstanceGroupClient = RegionInstanceGroupClient.create()) {
    *   ProjectRegionInstanceGroupName instanceGroup = ProjectRegionInstanceGroupName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP]");
    *   RegionInstanceGroupsSetNamedPortsRequest regionInstanceGroupsSetNamedPortsRequestResource = RegionInstanceGroupsSetNamedPortsRequest.newBuilder().build();
-   *   Operation response = regionInstanceGroupClient.setNamedPortsRegionInstanceGroup(instanceGroup, regionInstanceGroupsSetNamedPortsRequestResource);
+   *   regionInstanceGroupClient.setNamedPortsRegionInstanceGroupAsync(instanceGroup, regionInstanceGroupsSetNamedPortsRequestResource).get();
    * }
    * 
* @@ -582,8 +598,9 @@ public final ListInstancesRegionInstanceGroupsPagedResponse listInstancesRegionI * @param regionInstanceGroupsSetNamedPortsRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setNamedPortsRegionInstanceGroup( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setNamedPortsRegionInstanceGroupAsync( ProjectRegionInstanceGroupName instanceGroup, RegionInstanceGroupsSetNamedPortsRequest regionInstanceGroupsSetNamedPortsRequestResource) { @@ -593,7 +610,7 @@ public final Operation setNamedPortsRegionInstanceGroup( .setRegionInstanceGroupsSetNamedPortsRequestResource( regionInstanceGroupsSetNamedPortsRequestResource) .build(); - return setNamedPortsRegionInstanceGroup(request); + return setNamedPortsRegionInstanceGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -606,7 +623,7 @@ public final Operation setNamedPortsRegionInstanceGroup( * try (RegionInstanceGroupClient regionInstanceGroupClient = RegionInstanceGroupClient.create()) { * ProjectRegionInstanceGroupName instanceGroup = ProjectRegionInstanceGroupName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP]"); * RegionInstanceGroupsSetNamedPortsRequest regionInstanceGroupsSetNamedPortsRequestResource = RegionInstanceGroupsSetNamedPortsRequest.newBuilder().build(); - * Operation response = regionInstanceGroupClient.setNamedPortsRegionInstanceGroup(instanceGroup.toString(), regionInstanceGroupsSetNamedPortsRequestResource); + * regionInstanceGroupClient.setNamedPortsRegionInstanceGroupAsync(instanceGroup.toString(), regionInstanceGroupsSetNamedPortsRequestResource).get(); * } * * @@ -614,8 +631,9 @@ public final Operation setNamedPortsRegionInstanceGroup( * @param regionInstanceGroupsSetNamedPortsRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setNamedPortsRegionInstanceGroup( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setNamedPortsRegionInstanceGroupAsync( String instanceGroup, RegionInstanceGroupsSetNamedPortsRequest regionInstanceGroupsSetNamedPortsRequestResource) { @@ -625,7 +643,7 @@ public final Operation setNamedPortsRegionInstanceGroup( .setRegionInstanceGroupsSetNamedPortsRequestResource( regionInstanceGroupsSetNamedPortsRequestResource) .build(); - return setNamedPortsRegionInstanceGroup(request); + return setNamedPortsRegionInstanceGroupAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -642,17 +660,45 @@ public final Operation setNamedPortsRegionInstanceGroup( * .setInstanceGroup(instanceGroup.toString()) * .setRegionInstanceGroupsSetNamedPortsRequestResource(regionInstanceGroupsSetNamedPortsRequestResource) * .build(); - * Operation response = regionInstanceGroupClient.setNamedPortsRegionInstanceGroup(request); + * regionInstanceGroupClient.setNamedPortsRegionInstanceGroupAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setNamedPortsRegionInstanceGroup( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setNamedPortsRegionInstanceGroupAsync( SetNamedPortsRegionInstanceGroupHttpRequest request) { - return setNamedPortsRegionInstanceGroupCallable().call(request); + return setNamedPortsRegionInstanceGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the named ports for the specified regional instance group. + * + *

Sample code: + * + *


+   * try (RegionInstanceGroupClient regionInstanceGroupClient = RegionInstanceGroupClient.create()) {
+   *   ProjectRegionInstanceGroupName instanceGroup = ProjectRegionInstanceGroupName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP]");
+   *   RegionInstanceGroupsSetNamedPortsRequest regionInstanceGroupsSetNamedPortsRequestResource = RegionInstanceGroupsSetNamedPortsRequest.newBuilder().build();
+   *   SetNamedPortsRegionInstanceGroupHttpRequest request = SetNamedPortsRegionInstanceGroupHttpRequest.newBuilder()
+   *     .setInstanceGroup(instanceGroup.toString())
+   *     .setRegionInstanceGroupsSetNamedPortsRequestResource(regionInstanceGroupsSetNamedPortsRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionInstanceGroupClient.setNamedPortsRegionInstanceGroupOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + SetNamedPortsRegionInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + setNamedPortsRegionInstanceGroupOperationCallable() { + return stub.setNamedPortsRegionInstanceGroupOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -671,7 +717,7 @@ public final Operation setNamedPortsRegionInstanceGroup( * .build(); * ApiFuture<Operation> future = regionInstanceGroupClient.setNamedPortsRegionInstanceGroupCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java index 7f328294b74a..f5c7ad2d573e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java @@ -20,9 +20,12 @@ 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.EmptyMessage; +import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.RegionInstanceGroupManagerStub; @@ -43,8 +46,7 @@ * * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) { * ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]"); - * RegionInstanceGroupManagersAbandonInstancesRequest regionInstanceGroupManagersAbandonInstancesRequestResource = RegionInstanceGroupManagersAbandonInstancesRequest.newBuilder().build(); - * Operation response = regionInstanceGroupManagerClient.abandonInstancesRegionInstanceGroupManager(instanceGroupManager, regionInstanceGroupManagersAbandonInstancesRequestResource); + * InstanceGroupManager response = regionInstanceGroupManagerClient.getRegionInstanceGroupManager(instanceGroupManager); * } * * @@ -105,6 +107,7 @@ public class RegionInstanceGroupManagerClient implements BackgroundResource { private final RegionInstanceGroupManagerSettings settings; private final RegionInstanceGroupManagerStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of RegionInstanceGroupManagerClient with default settings. */ public static final RegionInstanceGroupManagerClient create() throws IOException { @@ -139,12 +142,14 @@ protected RegionInstanceGroupManagerClient(RegionInstanceGroupManagerSettings se throws IOException { this.settings = settings; this.stub = ((RegionInstanceGroupManagerStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected RegionInstanceGroupManagerClient(RegionInstanceGroupManagerStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final RegionInstanceGroupManagerSettings getSettings() { @@ -156,6 +161,16 @@ public RegionInstanceGroupManagerStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Flags the specified instances to be immediately removed from the managed instance group. @@ -178,7 +193,7 @@ public RegionInstanceGroupManagerStub getStub() { * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) { * ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]"); * RegionInstanceGroupManagersAbandonInstancesRequest regionInstanceGroupManagersAbandonInstancesRequestResource = RegionInstanceGroupManagersAbandonInstancesRequest.newBuilder().build(); - * Operation response = regionInstanceGroupManagerClient.abandonInstancesRegionInstanceGroupManager(instanceGroupManager, regionInstanceGroupManagersAbandonInstancesRequestResource); + * regionInstanceGroupManagerClient.abandonInstancesRegionInstanceGroupManagerAsync(instanceGroupManager, regionInstanceGroupManagersAbandonInstancesRequestResource).get(); * } * * @@ -186,11 +201,13 @@ public RegionInstanceGroupManagerStub getStub() { * @param regionInstanceGroupManagersAbandonInstancesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation abandonInstancesRegionInstanceGroupManager( - ProjectRegionInstanceGroupManagerName instanceGroupManager, - RegionInstanceGroupManagersAbandonInstancesRequest - regionInstanceGroupManagersAbandonInstancesRequestResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + abandonInstancesRegionInstanceGroupManagerAsync( + ProjectRegionInstanceGroupManagerName instanceGroupManager, + RegionInstanceGroupManagersAbandonInstancesRequest + regionInstanceGroupManagersAbandonInstancesRequestResource) { AbandonInstancesRegionInstanceGroupManagerHttpRequest request = AbandonInstancesRegionInstanceGroupManagerHttpRequest.newBuilder() @@ -199,7 +216,7 @@ public final Operation abandonInstancesRegionInstanceGroupManager( .setRegionInstanceGroupManagersAbandonInstancesRequestResource( regionInstanceGroupManagersAbandonInstancesRequestResource) .build(); - return abandonInstancesRegionInstanceGroupManager(request); + return abandonInstancesRegionInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -224,7 +241,7 @@ public final Operation abandonInstancesRegionInstanceGroupManager( * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) { * ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]"); * RegionInstanceGroupManagersAbandonInstancesRequest regionInstanceGroupManagersAbandonInstancesRequestResource = RegionInstanceGroupManagersAbandonInstancesRequest.newBuilder().build(); - * Operation response = regionInstanceGroupManagerClient.abandonInstancesRegionInstanceGroupManager(instanceGroupManager.toString(), regionInstanceGroupManagersAbandonInstancesRequestResource); + * regionInstanceGroupManagerClient.abandonInstancesRegionInstanceGroupManagerAsync(instanceGroupManager.toString(), regionInstanceGroupManagersAbandonInstancesRequestResource).get(); * } * * @@ -232,11 +249,13 @@ public final Operation abandonInstancesRegionInstanceGroupManager( * @param regionInstanceGroupManagersAbandonInstancesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation abandonInstancesRegionInstanceGroupManager( - String instanceGroupManager, - RegionInstanceGroupManagersAbandonInstancesRequest - regionInstanceGroupManagersAbandonInstancesRequestResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + abandonInstancesRegionInstanceGroupManagerAsync( + String instanceGroupManager, + RegionInstanceGroupManagersAbandonInstancesRequest + regionInstanceGroupManagersAbandonInstancesRequestResource) { AbandonInstancesRegionInstanceGroupManagerHttpRequest request = AbandonInstancesRegionInstanceGroupManagerHttpRequest.newBuilder() @@ -244,7 +263,7 @@ public final Operation abandonInstancesRegionInstanceGroupManager( .setRegionInstanceGroupManagersAbandonInstancesRequestResource( regionInstanceGroupManagersAbandonInstancesRequestResource) .build(); - return abandonInstancesRegionInstanceGroupManager(request); + return abandonInstancesRegionInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -273,17 +292,58 @@ public final Operation abandonInstancesRegionInstanceGroupManager( * .setInstanceGroupManager(instanceGroupManager.toString()) * .setRegionInstanceGroupManagersAbandonInstancesRequestResource(regionInstanceGroupManagersAbandonInstancesRequestResource) * .build(); - * Operation response = regionInstanceGroupManagerClient.abandonInstancesRegionInstanceGroupManager(request); + * regionInstanceGroupManagerClient.abandonInstancesRegionInstanceGroupManagerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation abandonInstancesRegionInstanceGroupManager( - AbandonInstancesRegionInstanceGroupManagerHttpRequest request) { - return abandonInstancesRegionInstanceGroupManagerCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + abandonInstancesRegionInstanceGroupManagerAsync( + AbandonInstancesRegionInstanceGroupManagerHttpRequest request) { + return abandonInstancesRegionInstanceGroupManagerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Flags the specified instances to be immediately removed from the managed instance group. + * Abandoning an instance does not delete the instance, but it does remove the instance from any + * target pools that are applied by the managed instance group. This method reduces the targetSize + * of the managed instance group by the number of instances that you abandon. This operation is + * marked as DONE when the action is scheduled even if the instances have not yet been removed + * from the group. You must separately verify the status of the abandoning action with the + * listmanagedinstances method. + * + *

If the group is part of a backend service that has enabled connection draining, it can take + * up to 60 seconds after the connection draining duration has elapsed before the VM instance is + * removed or deleted. + * + *

You can specify a maximum of 1000 instances with this method per request. + * + *

Sample code: + * + *


+   * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) {
+   *   ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]");
+   *   RegionInstanceGroupManagersAbandonInstancesRequest regionInstanceGroupManagersAbandonInstancesRequestResource = RegionInstanceGroupManagersAbandonInstancesRequest.newBuilder().build();
+   *   AbandonInstancesRegionInstanceGroupManagerHttpRequest request = AbandonInstancesRegionInstanceGroupManagerHttpRequest.newBuilder()
+   *     .setInstanceGroupManager(instanceGroupManager.toString())
+   *     .setRegionInstanceGroupManagersAbandonInstancesRequestResource(regionInstanceGroupManagersAbandonInstancesRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionInstanceGroupManagerClient.abandonInstancesRegionInstanceGroupManagerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + abandonInstancesRegionInstanceGroupManagerOperationCallable() { + return stub.abandonInstancesRegionInstanceGroupManagerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -314,7 +374,7 @@ public final Operation abandonInstancesRegionInstanceGroupManager( * .build(); * ApiFuture<Operation> future = regionInstanceGroupManagerClient.abandonInstancesRegionInstanceGroupManagerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -333,15 +393,16 @@ public final Operation abandonInstancesRegionInstanceGroupManager( *

    * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) {
    *   ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]");
-   *   Operation response = regionInstanceGroupManagerClient.deleteRegionInstanceGroupManager(instanceGroupManager);
+   *   regionInstanceGroupManagerClient.deleteRegionInstanceGroupManagerAsync(instanceGroupManager).get();
    * }
    * 
* * @param instanceGroupManager Name of the managed instance group to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteRegionInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteRegionInstanceGroupManagerAsync( ProjectRegionInstanceGroupManagerName instanceGroupManager) { DeleteRegionInstanceGroupManagerHttpRequest request = @@ -349,7 +410,7 @@ public final Operation deleteRegionInstanceGroupManager( .setInstanceGroupManager( instanceGroupManager == null ? null : instanceGroupManager.toString()) .build(); - return deleteRegionInstanceGroupManager(request); + return deleteRegionInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -361,21 +422,23 @@ public final Operation deleteRegionInstanceGroupManager( *

    * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) {
    *   ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]");
-   *   Operation response = regionInstanceGroupManagerClient.deleteRegionInstanceGroupManager(instanceGroupManager.toString());
+   *   regionInstanceGroupManagerClient.deleteRegionInstanceGroupManagerAsync(instanceGroupManager.toString()).get();
    * }
    * 
* * @param instanceGroupManager Name of the managed instance group to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteRegionInstanceGroupManager(String instanceGroupManager) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteRegionInstanceGroupManagerAsync( + String instanceGroupManager) { DeleteRegionInstanceGroupManagerHttpRequest request = DeleteRegionInstanceGroupManagerHttpRequest.newBuilder() .setInstanceGroupManager(instanceGroupManager) .build(); - return deleteRegionInstanceGroupManager(request); + return deleteRegionInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -390,17 +453,43 @@ public final Operation deleteRegionInstanceGroupManager(String instanceGroupMana * DeleteRegionInstanceGroupManagerHttpRequest request = DeleteRegionInstanceGroupManagerHttpRequest.newBuilder() * .setInstanceGroupManager(instanceGroupManager.toString()) * .build(); - * Operation response = regionInstanceGroupManagerClient.deleteRegionInstanceGroupManager(request); + * regionInstanceGroupManagerClient.deleteRegionInstanceGroupManagerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteRegionInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteRegionInstanceGroupManagerAsync( DeleteRegionInstanceGroupManagerHttpRequest request) { - return deleteRegionInstanceGroupManagerCallable().call(request); + return deleteRegionInstanceGroupManagerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified managed instance group and all of the instances in that group. + * + *

Sample code: + * + *


+   * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) {
+   *   ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]");
+   *   DeleteRegionInstanceGroupManagerHttpRequest request = DeleteRegionInstanceGroupManagerHttpRequest.newBuilder()
+   *     .setInstanceGroupManager(instanceGroupManager.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionInstanceGroupManagerClient.deleteRegionInstanceGroupManagerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + DeleteRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + deleteRegionInstanceGroupManagerOperationCallable() { + return stub.deleteRegionInstanceGroupManagerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -417,7 +506,7 @@ public final Operation deleteRegionInstanceGroupManager( * .build(); * ApiFuture<Operation> future = regionInstanceGroupManagerClient.deleteRegionInstanceGroupManagerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -448,7 +537,7 @@ public final Operation deleteRegionInstanceGroupManager( * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) { * ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]"); * RegionInstanceGroupManagersDeleteInstancesRequest regionInstanceGroupManagersDeleteInstancesRequestResource = RegionInstanceGroupManagersDeleteInstancesRequest.newBuilder().build(); - * Operation response = regionInstanceGroupManagerClient.deleteInstancesRegionInstanceGroupManager(instanceGroupManager, regionInstanceGroupManagersDeleteInstancesRequestResource); + * regionInstanceGroupManagerClient.deleteInstancesRegionInstanceGroupManagerAsync(instanceGroupManager, regionInstanceGroupManagersDeleteInstancesRequestResource).get(); * } * * @@ -456,11 +545,13 @@ public final Operation deleteRegionInstanceGroupManager( * @param regionInstanceGroupManagersDeleteInstancesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInstancesRegionInstanceGroupManager( - ProjectRegionInstanceGroupManagerName instanceGroupManager, - RegionInstanceGroupManagersDeleteInstancesRequest - regionInstanceGroupManagersDeleteInstancesRequestResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + deleteInstancesRegionInstanceGroupManagerAsync( + ProjectRegionInstanceGroupManagerName instanceGroupManager, + RegionInstanceGroupManagersDeleteInstancesRequest + regionInstanceGroupManagersDeleteInstancesRequestResource) { DeleteInstancesRegionInstanceGroupManagerHttpRequest request = DeleteInstancesRegionInstanceGroupManagerHttpRequest.newBuilder() @@ -469,7 +560,7 @@ public final Operation deleteInstancesRegionInstanceGroupManager( .setRegionInstanceGroupManagersDeleteInstancesRequestResource( regionInstanceGroupManagersDeleteInstancesRequestResource) .build(); - return deleteInstancesRegionInstanceGroupManager(request); + return deleteInstancesRegionInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -493,7 +584,7 @@ public final Operation deleteInstancesRegionInstanceGroupManager( * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) { * ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]"); * RegionInstanceGroupManagersDeleteInstancesRequest regionInstanceGroupManagersDeleteInstancesRequestResource = RegionInstanceGroupManagersDeleteInstancesRequest.newBuilder().build(); - * Operation response = regionInstanceGroupManagerClient.deleteInstancesRegionInstanceGroupManager(instanceGroupManager.toString(), regionInstanceGroupManagersDeleteInstancesRequestResource); + * regionInstanceGroupManagerClient.deleteInstancesRegionInstanceGroupManagerAsync(instanceGroupManager.toString(), regionInstanceGroupManagersDeleteInstancesRequestResource).get(); * } * * @@ -501,11 +592,13 @@ public final Operation deleteInstancesRegionInstanceGroupManager( * @param regionInstanceGroupManagersDeleteInstancesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInstancesRegionInstanceGroupManager( - String instanceGroupManager, - RegionInstanceGroupManagersDeleteInstancesRequest - regionInstanceGroupManagersDeleteInstancesRequestResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + deleteInstancesRegionInstanceGroupManagerAsync( + String instanceGroupManager, + RegionInstanceGroupManagersDeleteInstancesRequest + regionInstanceGroupManagersDeleteInstancesRequestResource) { DeleteInstancesRegionInstanceGroupManagerHttpRequest request = DeleteInstancesRegionInstanceGroupManagerHttpRequest.newBuilder() @@ -513,7 +606,7 @@ public final Operation deleteInstancesRegionInstanceGroupManager( .setRegionInstanceGroupManagersDeleteInstancesRequestResource( regionInstanceGroupManagersDeleteInstancesRequestResource) .build(); - return deleteInstancesRegionInstanceGroupManager(request); + return deleteInstancesRegionInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -541,17 +634,57 @@ public final Operation deleteInstancesRegionInstanceGroupManager( * .setInstanceGroupManager(instanceGroupManager.toString()) * .setRegionInstanceGroupManagersDeleteInstancesRequestResource(regionInstanceGroupManagersDeleteInstancesRequestResource) * .build(); - * Operation response = regionInstanceGroupManagerClient.deleteInstancesRegionInstanceGroupManager(request); + * regionInstanceGroupManagerClient.deleteInstancesRegionInstanceGroupManagerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteInstancesRegionInstanceGroupManager( - DeleteInstancesRegionInstanceGroupManagerHttpRequest request) { - return deleteInstancesRegionInstanceGroupManagerCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + deleteInstancesRegionInstanceGroupManagerAsync( + DeleteInstancesRegionInstanceGroupManagerHttpRequest request) { + return deleteInstancesRegionInstanceGroupManagerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Flags the specified instances in the managed instance group to be immediately deleted. The + * instances are also removed from any target pools of which they were a member. This method + * reduces the targetSize of the managed instance group by the number of instances that you + * delete. The deleteInstances operation is marked DONE if the deleteInstances request is + * successful. The underlying actions take additional time. You must separately verify the status + * of the deleting action with the listmanagedinstances method. + * + *

If the group is part of a backend service that has enabled connection draining, it can take + * up to 60 seconds after the connection draining duration has elapsed before the VM instance is + * removed or deleted. + * + *

You can specify a maximum of 1000 instances with this method per request. + * + *

Sample code: + * + *


+   * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) {
+   *   ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]");
+   *   RegionInstanceGroupManagersDeleteInstancesRequest regionInstanceGroupManagersDeleteInstancesRequestResource = RegionInstanceGroupManagersDeleteInstancesRequest.newBuilder().build();
+   *   DeleteInstancesRegionInstanceGroupManagerHttpRequest request = DeleteInstancesRegionInstanceGroupManagerHttpRequest.newBuilder()
+   *     .setInstanceGroupManager(instanceGroupManager.toString())
+   *     .setRegionInstanceGroupManagersDeleteInstancesRequestResource(regionInstanceGroupManagersDeleteInstancesRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionInstanceGroupManagerClient.deleteInstancesRegionInstanceGroupManagerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + deleteInstancesRegionInstanceGroupManagerOperationCallable() { + return stub.deleteInstancesRegionInstanceGroupManagerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -581,7 +714,7 @@ public final Operation deleteInstancesRegionInstanceGroupManager( * .build(); * ApiFuture<Operation> future = regionInstanceGroupManagerClient.deleteInstancesRegionInstanceGroupManagerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -710,7 +843,7 @@ public final InstanceGroupManager getRegionInstanceGroupManager( * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build(); - * Operation response = regionInstanceGroupManagerClient.insertRegionInstanceGroupManager(region, instanceGroupManagerResource); + * regionInstanceGroupManagerClient.insertRegionInstanceGroupManagerAsync(region, instanceGroupManagerResource).get(); * } * * @@ -721,8 +854,9 @@ public final InstanceGroupManager getRegionInstanceGroupManager( * v1.regionInstanceGroupManagers ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertRegionInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertRegionInstanceGroupManagerAsync( ProjectRegionName region, InstanceGroupManager instanceGroupManagerResource) { InsertRegionInstanceGroupManagerHttpRequest request = @@ -730,7 +864,7 @@ public final Operation insertRegionInstanceGroupManager( .setRegion(region == null ? null : region.toString()) .setInstanceGroupManagerResource(instanceGroupManagerResource) .build(); - return insertRegionInstanceGroupManager(request); + return insertRegionInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -749,7 +883,7 @@ public final Operation insertRegionInstanceGroupManager( * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build(); - * Operation response = regionInstanceGroupManagerClient.insertRegionInstanceGroupManager(region.toString(), instanceGroupManagerResource); + * regionInstanceGroupManagerClient.insertRegionInstanceGroupManagerAsync(region.toString(), instanceGroupManagerResource).get(); * } * * @@ -760,8 +894,9 @@ public final Operation insertRegionInstanceGroupManager( * v1.regionInstanceGroupManagers ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertRegionInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertRegionInstanceGroupManagerAsync( String region, InstanceGroupManager instanceGroupManagerResource) { InsertRegionInstanceGroupManagerHttpRequest request = @@ -769,7 +904,7 @@ public final Operation insertRegionInstanceGroupManager( .setRegion(region) .setInstanceGroupManagerResource(instanceGroupManagerResource) .build(); - return insertRegionInstanceGroupManager(request); + return insertRegionInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -792,17 +927,51 @@ public final Operation insertRegionInstanceGroupManager( * .setRegion(region.toString()) * .setInstanceGroupManagerResource(instanceGroupManagerResource) * .build(); - * Operation response = regionInstanceGroupManagerClient.insertRegionInstanceGroupManager(request); + * regionInstanceGroupManagerClient.insertRegionInstanceGroupManagerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertRegionInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertRegionInstanceGroupManagerAsync( InsertRegionInstanceGroupManagerHttpRequest request) { - return insertRegionInstanceGroupManagerCallable().call(request); + return insertRegionInstanceGroupManagerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a managed instance group using the information that you specify in the request. After + * the group is created, instances in the group are created using the specified instance template. + * This operation is marked as DONE when the group is created even if the instances in the group + * have not yet been created. You must separately verify the status of the individual instances + * with the listmanagedinstances method. + * + *

A regional managed instance group can contain up to 2000 instances. + * + *

Sample code: + * + *


+   * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) {
+   *   ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
+   *   InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build();
+   *   InsertRegionInstanceGroupManagerHttpRequest request = InsertRegionInstanceGroupManagerHttpRequest.newBuilder()
+   *     .setRegion(region.toString())
+   *     .setInstanceGroupManagerResource(instanceGroupManagerResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionInstanceGroupManagerClient.insertRegionInstanceGroupManagerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + InsertRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + insertRegionInstanceGroupManagerOperationCallable() { + return stub.insertRegionInstanceGroupManagerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -827,7 +996,7 @@ public final Operation insertRegionInstanceGroupManager( * .build(); * ApiFuture<Operation> future = regionInstanceGroupManagerClient.insertRegionInstanceGroupManagerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1106,7 +1275,7 @@ public final ListRegionInstanceGroupManagersPagedResponse listRegionInstanceGrou * ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]"); * InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = regionInstanceGroupManagerClient.patchRegionInstanceGroupManager(instanceGroupManager, instanceGroupManagerResource, fieldMask); + * regionInstanceGroupManagerClient.patchRegionInstanceGroupManagerAsync(instanceGroupManager, instanceGroupManagerResource, fieldMask).get(); * } * * @@ -1121,8 +1290,9 @@ public final ListRegionInstanceGroupManagersPagedResponse listRegionInstanceGrou * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchRegionInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchRegionInstanceGroupManagerAsync( ProjectRegionInstanceGroupManagerName instanceGroupManager, InstanceGroupManager instanceGroupManagerResource, List fieldMask) { @@ -1134,7 +1304,7 @@ public final Operation patchRegionInstanceGroupManager( .setInstanceGroupManagerResource(instanceGroupManagerResource) .addAllFieldMask(fieldMask) .build(); - return patchRegionInstanceGroupManager(request); + return patchRegionInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1152,7 +1322,7 @@ public final Operation patchRegionInstanceGroupManager( * ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]"); * InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = regionInstanceGroupManagerClient.patchRegionInstanceGroupManager(instanceGroupManager.toString(), instanceGroupManagerResource, fieldMask); + * regionInstanceGroupManagerClient.patchRegionInstanceGroupManagerAsync(instanceGroupManager.toString(), instanceGroupManagerResource, fieldMask).get(); * } * * @@ -1167,8 +1337,9 @@ public final Operation patchRegionInstanceGroupManager( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchRegionInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchRegionInstanceGroupManagerAsync( String instanceGroupManager, InstanceGroupManager instanceGroupManagerResource, List fieldMask) { @@ -1179,7 +1350,7 @@ public final Operation patchRegionInstanceGroupManager( .setInstanceGroupManagerResource(instanceGroupManagerResource) .addAllFieldMask(fieldMask) .build(); - return patchRegionInstanceGroupManager(request); + return patchRegionInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1202,17 +1373,51 @@ public final Operation patchRegionInstanceGroupManager( * .setInstanceGroupManagerResource(instanceGroupManagerResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = regionInstanceGroupManagerClient.patchRegionInstanceGroupManager(request); + * regionInstanceGroupManagerClient.patchRegionInstanceGroupManagerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchRegionInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchRegionInstanceGroupManagerAsync( PatchRegionInstanceGroupManagerHttpRequest request) { - return patchRegionInstanceGroupManagerCallable().call(request); + return patchRegionInstanceGroupManagerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a managed instance group using the information that you specify in the request. This + * operation is marked as DONE when the group is patched even if the instances in the group are + * still in the process of being patched. You must separately verify the status of the individual + * instances with the listmanagedinstances method. This method supports PATCH semantics and uses + * the JSON merge patch format and processing rules. + * + *

Sample code: + * + *


+   * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) {
+   *   ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]");
+   *   InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   PatchRegionInstanceGroupManagerHttpRequest request = PatchRegionInstanceGroupManagerHttpRequest.newBuilder()
+   *     .setInstanceGroupManager(instanceGroupManager.toString())
+   *     .setInstanceGroupManagerResource(instanceGroupManagerResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionInstanceGroupManagerClient.patchRegionInstanceGroupManagerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + PatchRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + patchRegionInstanceGroupManagerOperationCallable() { + return stub.patchRegionInstanceGroupManagerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1237,7 +1442,7 @@ public final Operation patchRegionInstanceGroupManager( * .build(); * ApiFuture<Operation> future = regionInstanceGroupManagerClient.patchRegionInstanceGroupManagerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1267,7 +1472,7 @@ public final Operation patchRegionInstanceGroupManager( * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) { * ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]"); * RegionInstanceGroupManagersRecreateRequest regionInstanceGroupManagersRecreateRequestResource = RegionInstanceGroupManagersRecreateRequest.newBuilder().build(); - * Operation response = regionInstanceGroupManagerClient.recreateInstancesRegionInstanceGroupManager(instanceGroupManager, regionInstanceGroupManagersRecreateRequestResource); + * regionInstanceGroupManagerClient.recreateInstancesRegionInstanceGroupManagerAsync(instanceGroupManager, regionInstanceGroupManagersRecreateRequestResource).get(); * } * * @@ -1275,11 +1480,13 @@ public final Operation patchRegionInstanceGroupManager( * @param regionInstanceGroupManagersRecreateRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation recreateInstancesRegionInstanceGroupManager( - ProjectRegionInstanceGroupManagerName instanceGroupManager, - RegionInstanceGroupManagersRecreateRequest - regionInstanceGroupManagersRecreateRequestResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + recreateInstancesRegionInstanceGroupManagerAsync( + ProjectRegionInstanceGroupManagerName instanceGroupManager, + RegionInstanceGroupManagersRecreateRequest + regionInstanceGroupManagersRecreateRequestResource) { RecreateInstancesRegionInstanceGroupManagerHttpRequest request = RecreateInstancesRegionInstanceGroupManagerHttpRequest.newBuilder() @@ -1288,7 +1495,7 @@ public final Operation recreateInstancesRegionInstanceGroupManager( .setRegionInstanceGroupManagersRecreateRequestResource( regionInstanceGroupManagersRecreateRequestResource) .build(); - return recreateInstancesRegionInstanceGroupManager(request); + return recreateInstancesRegionInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1311,7 +1518,7 @@ public final Operation recreateInstancesRegionInstanceGroupManager( * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) { * ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]"); * RegionInstanceGroupManagersRecreateRequest regionInstanceGroupManagersRecreateRequestResource = RegionInstanceGroupManagersRecreateRequest.newBuilder().build(); - * Operation response = regionInstanceGroupManagerClient.recreateInstancesRegionInstanceGroupManager(instanceGroupManager.toString(), regionInstanceGroupManagersRecreateRequestResource); + * regionInstanceGroupManagerClient.recreateInstancesRegionInstanceGroupManagerAsync(instanceGroupManager.toString(), regionInstanceGroupManagersRecreateRequestResource).get(); * } * * @@ -1319,11 +1526,13 @@ public final Operation recreateInstancesRegionInstanceGroupManager( * @param regionInstanceGroupManagersRecreateRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation recreateInstancesRegionInstanceGroupManager( - String instanceGroupManager, - RegionInstanceGroupManagersRecreateRequest - regionInstanceGroupManagersRecreateRequestResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + recreateInstancesRegionInstanceGroupManagerAsync( + String instanceGroupManager, + RegionInstanceGroupManagersRecreateRequest + regionInstanceGroupManagersRecreateRequestResource) { RecreateInstancesRegionInstanceGroupManagerHttpRequest request = RecreateInstancesRegionInstanceGroupManagerHttpRequest.newBuilder() @@ -1331,7 +1540,7 @@ public final Operation recreateInstancesRegionInstanceGroupManager( .setRegionInstanceGroupManagersRecreateRequestResource( regionInstanceGroupManagersRecreateRequestResource) .build(); - return recreateInstancesRegionInstanceGroupManager(request); + return recreateInstancesRegionInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1358,17 +1567,56 @@ public final Operation recreateInstancesRegionInstanceGroupManager( * .setInstanceGroupManager(instanceGroupManager.toString()) * .setRegionInstanceGroupManagersRecreateRequestResource(regionInstanceGroupManagersRecreateRequestResource) * .build(); - * Operation response = regionInstanceGroupManagerClient.recreateInstancesRegionInstanceGroupManager(request); + * regionInstanceGroupManagerClient.recreateInstancesRegionInstanceGroupManagerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation recreateInstancesRegionInstanceGroupManager( - RecreateInstancesRegionInstanceGroupManagerHttpRequest request) { - return recreateInstancesRegionInstanceGroupManagerCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + recreateInstancesRegionInstanceGroupManagerAsync( + RecreateInstancesRegionInstanceGroupManagerHttpRequest request) { + return recreateInstancesRegionInstanceGroupManagerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Flags the specified instances in the managed instance group to be immediately recreated. The + * instances are deleted and recreated using the current instance template for the managed + * instance group. This operation is marked as DONE when the flag is set even if the instances + * have not yet been recreated. You must separately verify the status of the recreating action + * with the listmanagedinstances method. + * + *

If the group is part of a backend service that has enabled connection draining, it can take + * up to 60 seconds after the connection draining duration has elapsed before the VM instance is + * removed or deleted. + * + *

You can specify a maximum of 1000 instances with this method per request. + * + *

Sample code: + * + *


+   * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) {
+   *   ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]");
+   *   RegionInstanceGroupManagersRecreateRequest regionInstanceGroupManagersRecreateRequestResource = RegionInstanceGroupManagersRecreateRequest.newBuilder().build();
+   *   RecreateInstancesRegionInstanceGroupManagerHttpRequest request = RecreateInstancesRegionInstanceGroupManagerHttpRequest.newBuilder()
+   *     .setInstanceGroupManager(instanceGroupManager.toString())
+   *     .setRegionInstanceGroupManagersRecreateRequestResource(regionInstanceGroupManagersRecreateRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionInstanceGroupManagerClient.recreateInstancesRegionInstanceGroupManagerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + recreateInstancesRegionInstanceGroupManagerOperationCallable() { + return stub.recreateInstancesRegionInstanceGroupManagerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1397,7 +1645,7 @@ public final Operation recreateInstancesRegionInstanceGroupManager( * .build(); * ApiFuture<Operation> future = regionInstanceGroupManagerClient.recreateInstancesRegionInstanceGroupManagerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1427,7 +1675,7 @@ public final Operation recreateInstancesRegionInstanceGroupManager( * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) { * Integer size = 0; * ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]"); - * Operation response = regionInstanceGroupManagerClient.resizeRegionInstanceGroupManager(size, instanceGroupManager); + * regionInstanceGroupManagerClient.resizeRegionInstanceGroupManagerAsync(size, instanceGroupManager).get(); * } * * @@ -1435,8 +1683,9 @@ public final Operation recreateInstancesRegionInstanceGroupManager( * @param instanceGroupManager Name of the managed instance group. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation resizeRegionInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture resizeRegionInstanceGroupManagerAsync( Integer size, ProjectRegionInstanceGroupManagerName instanceGroupManager) { ResizeRegionInstanceGroupManagerHttpRequest request = @@ -1445,7 +1694,7 @@ public final Operation resizeRegionInstanceGroupManager( .setInstanceGroupManager( instanceGroupManager == null ? null : instanceGroupManager.toString()) .build(); - return resizeRegionInstanceGroupManager(request); + return resizeRegionInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1468,7 +1717,7 @@ public final Operation resizeRegionInstanceGroupManager( * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) { * Integer size = 0; * ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]"); - * Operation response = regionInstanceGroupManagerClient.resizeRegionInstanceGroupManager(size, instanceGroupManager.toString()); + * regionInstanceGroupManagerClient.resizeRegionInstanceGroupManagerAsync(size, instanceGroupManager.toString()).get(); * } * * @@ -1476,8 +1725,9 @@ public final Operation resizeRegionInstanceGroupManager( * @param instanceGroupManager Name of the managed instance group. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation resizeRegionInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture resizeRegionInstanceGroupManagerAsync( Integer size, String instanceGroupManager) { ResizeRegionInstanceGroupManagerHttpRequest request = @@ -1485,7 +1735,7 @@ public final Operation resizeRegionInstanceGroupManager( .setSize(size) .setInstanceGroupManager(instanceGroupManager) .build(); - return resizeRegionInstanceGroupManager(request); + return resizeRegionInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1512,17 +1762,55 @@ public final Operation resizeRegionInstanceGroupManager( * .setSize(size) * .setInstanceGroupManager(instanceGroupManager.toString()) * .build(); - * Operation response = regionInstanceGroupManagerClient.resizeRegionInstanceGroupManager(request); + * regionInstanceGroupManagerClient.resizeRegionInstanceGroupManagerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation resizeRegionInstanceGroupManager( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture resizeRegionInstanceGroupManagerAsync( ResizeRegionInstanceGroupManagerHttpRequest request) { - return resizeRegionInstanceGroupManagerCallable().call(request); + return resizeRegionInstanceGroupManagerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Changes the intended size of the managed instance group. If you increase the size, the group + * creates new instances using the current instance template. If you decrease the size, the group + * deletes one or more instances. + * + *

The resize operation is marked DONE if the resize request is successful. The underlying + * actions take additional time. You must separately verify the status of the creating or deleting + * actions with the listmanagedinstances method. + * + *

If the group is part of a backend service that has enabled connection draining, it can take + * up to 60 seconds after the connection draining duration has elapsed before the VM instance is + * removed or deleted. + * + *

Sample code: + * + *


+   * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) {
+   *   Integer size = 0;
+   *   ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]");
+   *   ResizeRegionInstanceGroupManagerHttpRequest request = ResizeRegionInstanceGroupManagerHttpRequest.newBuilder()
+   *     .setSize(size)
+   *     .setInstanceGroupManager(instanceGroupManager.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionInstanceGroupManagerClient.resizeRegionInstanceGroupManagerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + ResizeRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + resizeRegionInstanceGroupManagerOperationCallable() { + return stub.resizeRegionInstanceGroupManagerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1551,7 +1839,7 @@ public final Operation resizeRegionInstanceGroupManager( * .build(); * ApiFuture<Operation> future = regionInstanceGroupManagerClient.resizeRegionInstanceGroupManagerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1572,7 +1860,7 @@ public final Operation resizeRegionInstanceGroupManager( * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) { * ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]"); * RegionInstanceGroupManagersSetTemplateRequest regionInstanceGroupManagersSetTemplateRequestResource = RegionInstanceGroupManagersSetTemplateRequest.newBuilder().build(); - * Operation response = regionInstanceGroupManagerClient.setInstanceTemplateRegionInstanceGroupManager(instanceGroupManager, regionInstanceGroupManagersSetTemplateRequestResource); + * regionInstanceGroupManagerClient.setInstanceTemplateRegionInstanceGroupManagerAsync(instanceGroupManager, regionInstanceGroupManagersSetTemplateRequestResource).get(); * } * * @@ -1580,11 +1868,13 @@ public final Operation resizeRegionInstanceGroupManager( * @param regionInstanceGroupManagersSetTemplateRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setInstanceTemplateRegionInstanceGroupManager( - ProjectRegionInstanceGroupManagerName instanceGroupManager, - RegionInstanceGroupManagersSetTemplateRequest - regionInstanceGroupManagersSetTemplateRequestResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + setInstanceTemplateRegionInstanceGroupManagerAsync( + ProjectRegionInstanceGroupManagerName instanceGroupManager, + RegionInstanceGroupManagersSetTemplateRequest + regionInstanceGroupManagersSetTemplateRequestResource) { SetInstanceTemplateRegionInstanceGroupManagerHttpRequest request = SetInstanceTemplateRegionInstanceGroupManagerHttpRequest.newBuilder() @@ -1593,7 +1883,7 @@ public final Operation setInstanceTemplateRegionInstanceGroupManager( .setRegionInstanceGroupManagersSetTemplateRequestResource( regionInstanceGroupManagersSetTemplateRequestResource) .build(); - return setInstanceTemplateRegionInstanceGroupManager(request); + return setInstanceTemplateRegionInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1607,7 +1897,7 @@ public final Operation setInstanceTemplateRegionInstanceGroupManager( * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) { * ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]"); * RegionInstanceGroupManagersSetTemplateRequest regionInstanceGroupManagersSetTemplateRequestResource = RegionInstanceGroupManagersSetTemplateRequest.newBuilder().build(); - * Operation response = regionInstanceGroupManagerClient.setInstanceTemplateRegionInstanceGroupManager(instanceGroupManager.toString(), regionInstanceGroupManagersSetTemplateRequestResource); + * regionInstanceGroupManagerClient.setInstanceTemplateRegionInstanceGroupManagerAsync(instanceGroupManager.toString(), regionInstanceGroupManagersSetTemplateRequestResource).get(); * } * * @@ -1615,11 +1905,13 @@ public final Operation setInstanceTemplateRegionInstanceGroupManager( * @param regionInstanceGroupManagersSetTemplateRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setInstanceTemplateRegionInstanceGroupManager( - String instanceGroupManager, - RegionInstanceGroupManagersSetTemplateRequest - regionInstanceGroupManagersSetTemplateRequestResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + setInstanceTemplateRegionInstanceGroupManagerAsync( + String instanceGroupManager, + RegionInstanceGroupManagersSetTemplateRequest + regionInstanceGroupManagersSetTemplateRequestResource) { SetInstanceTemplateRegionInstanceGroupManagerHttpRequest request = SetInstanceTemplateRegionInstanceGroupManagerHttpRequest.newBuilder() @@ -1627,7 +1919,7 @@ public final Operation setInstanceTemplateRegionInstanceGroupManager( .setRegionInstanceGroupManagersSetTemplateRequestResource( regionInstanceGroupManagersSetTemplateRequestResource) .build(); - return setInstanceTemplateRegionInstanceGroupManager(request); + return setInstanceTemplateRegionInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1645,17 +1937,47 @@ public final Operation setInstanceTemplateRegionInstanceGroupManager( * .setInstanceGroupManager(instanceGroupManager.toString()) * .setRegionInstanceGroupManagersSetTemplateRequestResource(regionInstanceGroupManagersSetTemplateRequestResource) * .build(); - * Operation response = regionInstanceGroupManagerClient.setInstanceTemplateRegionInstanceGroupManager(request); + * regionInstanceGroupManagerClient.setInstanceTemplateRegionInstanceGroupManagerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setInstanceTemplateRegionInstanceGroupManager( - SetInstanceTemplateRegionInstanceGroupManagerHttpRequest request) { - return setInstanceTemplateRegionInstanceGroupManagerCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + setInstanceTemplateRegionInstanceGroupManagerAsync( + SetInstanceTemplateRegionInstanceGroupManagerHttpRequest request) { + return setInstanceTemplateRegionInstanceGroupManagerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the instance template to use when creating new instances or recreating instances in this + * group. Existing instances are not affected. + * + *

Sample code: + * + *


+   * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) {
+   *   ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]");
+   *   RegionInstanceGroupManagersSetTemplateRequest regionInstanceGroupManagersSetTemplateRequestResource = RegionInstanceGroupManagersSetTemplateRequest.newBuilder().build();
+   *   SetInstanceTemplateRegionInstanceGroupManagerHttpRequest request = SetInstanceTemplateRegionInstanceGroupManagerHttpRequest.newBuilder()
+   *     .setInstanceGroupManager(instanceGroupManager.toString())
+   *     .setRegionInstanceGroupManagersSetTemplateRequestResource(regionInstanceGroupManagersSetTemplateRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionInstanceGroupManagerClient.setInstanceTemplateRegionInstanceGroupManagerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + setInstanceTemplateRegionInstanceGroupManagerOperationCallable() { + return stub.setInstanceTemplateRegionInstanceGroupManagerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1675,7 +1997,7 @@ public final Operation setInstanceTemplateRegionInstanceGroupManager( * .build(); * ApiFuture<Operation> future = regionInstanceGroupManagerClient.setInstanceTemplateRegionInstanceGroupManagerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1696,7 +2018,7 @@ public final Operation setInstanceTemplateRegionInstanceGroupManager( * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) { * ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]"); * RegionInstanceGroupManagersSetTargetPoolsRequest regionInstanceGroupManagersSetTargetPoolsRequestResource = RegionInstanceGroupManagersSetTargetPoolsRequest.newBuilder().build(); - * Operation response = regionInstanceGroupManagerClient.setTargetPoolsRegionInstanceGroupManager(instanceGroupManager, regionInstanceGroupManagersSetTargetPoolsRequestResource); + * regionInstanceGroupManagerClient.setTargetPoolsRegionInstanceGroupManagerAsync(instanceGroupManager, regionInstanceGroupManagersSetTargetPoolsRequestResource).get(); * } * * @@ -1704,11 +2026,13 @@ public final Operation setInstanceTemplateRegionInstanceGroupManager( * @param regionInstanceGroupManagersSetTargetPoolsRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setTargetPoolsRegionInstanceGroupManager( - ProjectRegionInstanceGroupManagerName instanceGroupManager, - RegionInstanceGroupManagersSetTargetPoolsRequest - regionInstanceGroupManagersSetTargetPoolsRequestResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + setTargetPoolsRegionInstanceGroupManagerAsync( + ProjectRegionInstanceGroupManagerName instanceGroupManager, + RegionInstanceGroupManagersSetTargetPoolsRequest + regionInstanceGroupManagersSetTargetPoolsRequestResource) { SetTargetPoolsRegionInstanceGroupManagerHttpRequest request = SetTargetPoolsRegionInstanceGroupManagerHttpRequest.newBuilder() @@ -1717,7 +2041,7 @@ public final Operation setTargetPoolsRegionInstanceGroupManager( .setRegionInstanceGroupManagersSetTargetPoolsRequestResource( regionInstanceGroupManagersSetTargetPoolsRequestResource) .build(); - return setTargetPoolsRegionInstanceGroupManager(request); + return setTargetPoolsRegionInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1731,7 +2055,7 @@ public final Operation setTargetPoolsRegionInstanceGroupManager( * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) { * ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]"); * RegionInstanceGroupManagersSetTargetPoolsRequest regionInstanceGroupManagersSetTargetPoolsRequestResource = RegionInstanceGroupManagersSetTargetPoolsRequest.newBuilder().build(); - * Operation response = regionInstanceGroupManagerClient.setTargetPoolsRegionInstanceGroupManager(instanceGroupManager.toString(), regionInstanceGroupManagersSetTargetPoolsRequestResource); + * regionInstanceGroupManagerClient.setTargetPoolsRegionInstanceGroupManagerAsync(instanceGroupManager.toString(), regionInstanceGroupManagersSetTargetPoolsRequestResource).get(); * } * * @@ -1739,11 +2063,13 @@ public final Operation setTargetPoolsRegionInstanceGroupManager( * @param regionInstanceGroupManagersSetTargetPoolsRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setTargetPoolsRegionInstanceGroupManager( - String instanceGroupManager, - RegionInstanceGroupManagersSetTargetPoolsRequest - regionInstanceGroupManagersSetTargetPoolsRequestResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + setTargetPoolsRegionInstanceGroupManagerAsync( + String instanceGroupManager, + RegionInstanceGroupManagersSetTargetPoolsRequest + regionInstanceGroupManagersSetTargetPoolsRequestResource) { SetTargetPoolsRegionInstanceGroupManagerHttpRequest request = SetTargetPoolsRegionInstanceGroupManagerHttpRequest.newBuilder() @@ -1751,7 +2077,7 @@ public final Operation setTargetPoolsRegionInstanceGroupManager( .setRegionInstanceGroupManagersSetTargetPoolsRequestResource( regionInstanceGroupManagersSetTargetPoolsRequestResource) .build(); - return setTargetPoolsRegionInstanceGroupManager(request); + return setTargetPoolsRegionInstanceGroupManagerAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1769,17 +2095,47 @@ public final Operation setTargetPoolsRegionInstanceGroupManager( * .setInstanceGroupManager(instanceGroupManager.toString()) * .setRegionInstanceGroupManagersSetTargetPoolsRequestResource(regionInstanceGroupManagersSetTargetPoolsRequestResource) * .build(); - * Operation response = regionInstanceGroupManagerClient.setTargetPoolsRegionInstanceGroupManager(request); + * regionInstanceGroupManagerClient.setTargetPoolsRegionInstanceGroupManagerAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setTargetPoolsRegionInstanceGroupManager( - SetTargetPoolsRegionInstanceGroupManagerHttpRequest request) { - return setTargetPoolsRegionInstanceGroupManagerCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture + setTargetPoolsRegionInstanceGroupManagerAsync( + SetTargetPoolsRegionInstanceGroupManagerHttpRequest request) { + return setTargetPoolsRegionInstanceGroupManagerOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Modifies the target pools to which all new instances in this group are assigned. Existing + * instances in the group are not affected. + * + *

Sample code: + * + *


+   * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) {
+   *   ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]");
+   *   RegionInstanceGroupManagersSetTargetPoolsRequest regionInstanceGroupManagersSetTargetPoolsRequestResource = RegionInstanceGroupManagersSetTargetPoolsRequest.newBuilder().build();
+   *   SetTargetPoolsRegionInstanceGroupManagerHttpRequest request = SetTargetPoolsRegionInstanceGroupManagerHttpRequest.newBuilder()
+   *     .setInstanceGroupManager(instanceGroupManager.toString())
+   *     .setRegionInstanceGroupManagersSetTargetPoolsRequestResource(regionInstanceGroupManagersSetTargetPoolsRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = regionInstanceGroupManagerClient.setTargetPoolsRegionInstanceGroupManagerOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + setTargetPoolsRegionInstanceGroupManagerOperationCallable() { + return stub.setTargetPoolsRegionInstanceGroupManagerOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1799,7 +2155,7 @@ public final Operation setTargetPoolsRegionInstanceGroupManager( * .build(); * ApiFuture<Operation> future = regionInstanceGroupManagerClient.setTargetPoolsRegionInstanceGroupManagerCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerSettings.java index 5687ad73a204..56b7ca451625 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerSettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of abandonInstancesRegionInstanceGroupManager to 30 seconds: + * example, to set the total timeout of getRegionInstanceGroupManager to 30 seconds: * *

  * 
  * RegionInstanceGroupManagerSettings.Builder regionInstanceGroupManagerSettingsBuilder =
  *     RegionInstanceGroupManagerSettings.newBuilder();
- * regionInstanceGroupManagerSettingsBuilder.abandonInstancesRegionInstanceGroupManagerSettings().getRetrySettings().toBuilder()
+ * regionInstanceGroupManagerSettingsBuilder.getRegionInstanceGroupManagerSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * RegionInstanceGroupManagerSettings regionInstanceGroupManagerSettings = regionInstanceGroupManagerSettingsBuilder.build();
  * 
@@ -74,6 +76,19 @@ public class RegionInstanceGroupManagerSettings
         .abandonInstancesRegionInstanceGroupManagerSettings();
   }
 
+  /**
+   * Returns the object with the settings used for calls to
+   * abandonInstancesRegionInstanceGroupManager.
+   */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      abandonInstancesRegionInstanceGroupManagerOperationSettings() {
+    return ((RegionInstanceGroupManagerStubSettings) getStubSettings())
+        .abandonInstancesRegionInstanceGroupManagerOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to deleteRegionInstanceGroupManager. */
   public UnaryCallSettings
       deleteRegionInstanceGroupManagerSettings() {
@@ -81,6 +96,16 @@ public class RegionInstanceGroupManagerSettings
         .deleteRegionInstanceGroupManagerSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteRegionInstanceGroupManager. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          DeleteRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      deleteRegionInstanceGroupManagerOperationSettings() {
+    return ((RegionInstanceGroupManagerStubSettings) getStubSettings())
+        .deleteRegionInstanceGroupManagerOperationSettings();
+  }
+
   /**
    * Returns the object with the settings used for calls to
    * deleteInstancesRegionInstanceGroupManager.
@@ -91,6 +116,19 @@ public class RegionInstanceGroupManagerSettings
         .deleteInstancesRegionInstanceGroupManagerSettings();
   }
 
+  /**
+   * Returns the object with the settings used for calls to
+   * deleteInstancesRegionInstanceGroupManager.
+   */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      deleteInstancesRegionInstanceGroupManagerOperationSettings() {
+    return ((RegionInstanceGroupManagerStubSettings) getStubSettings())
+        .deleteInstancesRegionInstanceGroupManagerOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getRegionInstanceGroupManager. */
   public UnaryCallSettings
       getRegionInstanceGroupManagerSettings() {
@@ -105,6 +143,16 @@ public class RegionInstanceGroupManagerSettings
         .insertRegionInstanceGroupManagerSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertRegionInstanceGroupManager. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          InsertRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      insertRegionInstanceGroupManagerOperationSettings() {
+    return ((RegionInstanceGroupManagerStubSettings) getStubSettings())
+        .insertRegionInstanceGroupManagerOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listRegionInstanceGroupManagers. */
   public PagedCallSettings<
           ListRegionInstanceGroupManagersHttpRequest,
@@ -134,6 +182,16 @@ public class RegionInstanceGroupManagerSettings
         .patchRegionInstanceGroupManagerSettings();
   }
 
+  /** Returns the object with the settings used for calls to patchRegionInstanceGroupManager. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          PatchRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      patchRegionInstanceGroupManagerOperationSettings() {
+    return ((RegionInstanceGroupManagerStubSettings) getStubSettings())
+        .patchRegionInstanceGroupManagerOperationSettings();
+  }
+
   /**
    * Returns the object with the settings used for calls to
    * recreateInstancesRegionInstanceGroupManager.
@@ -144,6 +202,19 @@ public class RegionInstanceGroupManagerSettings
         .recreateInstancesRegionInstanceGroupManagerSettings();
   }
 
+  /**
+   * Returns the object with the settings used for calls to
+   * recreateInstancesRegionInstanceGroupManager.
+   */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      recreateInstancesRegionInstanceGroupManagerOperationSettings() {
+    return ((RegionInstanceGroupManagerStubSettings) getStubSettings())
+        .recreateInstancesRegionInstanceGroupManagerOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to resizeRegionInstanceGroupManager. */
   public UnaryCallSettings
       resizeRegionInstanceGroupManagerSettings() {
@@ -151,6 +222,16 @@ public class RegionInstanceGroupManagerSettings
         .resizeRegionInstanceGroupManagerSettings();
   }
 
+  /** Returns the object with the settings used for calls to resizeRegionInstanceGroupManager. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          ResizeRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      resizeRegionInstanceGroupManagerOperationSettings() {
+    return ((RegionInstanceGroupManagerStubSettings) getStubSettings())
+        .resizeRegionInstanceGroupManagerOperationSettings();
+  }
+
   /**
    * Returns the object with the settings used for calls to
    * setInstanceTemplateRegionInstanceGroupManager.
@@ -161,6 +242,19 @@ public class RegionInstanceGroupManagerSettings
         .setInstanceTemplateRegionInstanceGroupManagerSettings();
   }
 
+  /**
+   * Returns the object with the settings used for calls to
+   * setInstanceTemplateRegionInstanceGroupManager.
+   */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      setInstanceTemplateRegionInstanceGroupManagerOperationSettings() {
+    return ((RegionInstanceGroupManagerStubSettings) getStubSettings())
+        .setInstanceTemplateRegionInstanceGroupManagerOperationSettings();
+  }
+
   /**
    * Returns the object with the settings used for calls to
    * setTargetPoolsRegionInstanceGroupManager.
@@ -171,6 +265,19 @@ public class RegionInstanceGroupManagerSettings
         .setTargetPoolsRegionInstanceGroupManagerSettings();
   }
 
+  /**
+   * Returns the object with the settings used for calls to
+   * setTargetPoolsRegionInstanceGroupManager.
+   */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      setTargetPoolsRegionInstanceGroupManagerOperationSettings() {
+    return ((RegionInstanceGroupManagerStubSettings) getStubSettings())
+        .setTargetPoolsRegionInstanceGroupManagerOperationSettings();
+  }
+
   public static final RegionInstanceGroupManagerSettings create(
       RegionInstanceGroupManagerStubSettings stub) throws IOException {
     return new RegionInstanceGroupManagerSettings.Builder(stub.toBuilder()).build();
@@ -284,12 +391,33 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().abandonInstancesRegionInstanceGroupManagerSettings();
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * abandonInstancesRegionInstanceGroupManager.
+     */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        abandonInstancesRegionInstanceGroupManagerOperationSettings() {
+      return getStubSettingsBuilder().abandonInstancesRegionInstanceGroupManagerOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to deleteRegionInstanceGroupManager. */
     public UnaryCallSettings.Builder
         deleteRegionInstanceGroupManagerSettings() {
       return getStubSettingsBuilder().deleteRegionInstanceGroupManagerSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteRegionInstanceGroupManager. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        deleteRegionInstanceGroupManagerOperationSettings() {
+      return getStubSettingsBuilder().deleteRegionInstanceGroupManagerOperationSettings();
+    }
+
     /**
      * Returns the builder for the settings used for calls to
      * deleteInstancesRegionInstanceGroupManager.
@@ -300,6 +428,18 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteInstancesRegionInstanceGroupManagerSettings();
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * deleteInstancesRegionInstanceGroupManager.
+     */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        deleteInstancesRegionInstanceGroupManagerOperationSettings() {
+      return getStubSettingsBuilder().deleteInstancesRegionInstanceGroupManagerOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getRegionInstanceGroupManager. */
     public UnaryCallSettings.Builder
         getRegionInstanceGroupManagerSettings() {
@@ -312,6 +452,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertRegionInstanceGroupManagerSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertRegionInstanceGroupManager. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        insertRegionInstanceGroupManagerOperationSettings() {
+      return getStubSettingsBuilder().insertRegionInstanceGroupManagerOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listRegionInstanceGroupManagers. */
     public PagedCallSettings.Builder<
             ListRegionInstanceGroupManagersHttpRequest,
@@ -338,6 +487,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().patchRegionInstanceGroupManagerSettings();
     }
 
+    /** Returns the builder for the settings used for calls to patchRegionInstanceGroupManager. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            PatchRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        patchRegionInstanceGroupManagerOperationSettings() {
+      return getStubSettingsBuilder().patchRegionInstanceGroupManagerOperationSettings();
+    }
+
     /**
      * Returns the builder for the settings used for calls to
      * recreateInstancesRegionInstanceGroupManager.
@@ -348,12 +506,34 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().recreateInstancesRegionInstanceGroupManagerSettings();
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * recreateInstancesRegionInstanceGroupManager.
+     */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        recreateInstancesRegionInstanceGroupManagerOperationSettings() {
+      return getStubSettingsBuilder()
+          .recreateInstancesRegionInstanceGroupManagerOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to resizeRegionInstanceGroupManager. */
     public UnaryCallSettings.Builder
         resizeRegionInstanceGroupManagerSettings() {
       return getStubSettingsBuilder().resizeRegionInstanceGroupManagerSettings();
     }
 
+    /** Returns the builder for the settings used for calls to resizeRegionInstanceGroupManager. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            ResizeRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        resizeRegionInstanceGroupManagerOperationSettings() {
+      return getStubSettingsBuilder().resizeRegionInstanceGroupManagerOperationSettings();
+    }
+
     /**
      * Returns the builder for the settings used for calls to
      * setInstanceTemplateRegionInstanceGroupManager.
@@ -364,6 +544,19 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().setInstanceTemplateRegionInstanceGroupManagerSettings();
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * setInstanceTemplateRegionInstanceGroupManager.
+     */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        setInstanceTemplateRegionInstanceGroupManagerOperationSettings() {
+      return getStubSettingsBuilder()
+          .setInstanceTemplateRegionInstanceGroupManagerOperationSettings();
+    }
+
     /**
      * Returns the builder for the settings used for calls to
      * setTargetPoolsRegionInstanceGroupManager.
@@ -373,6 +566,18 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().setTargetPoolsRegionInstanceGroupManagerSettings();
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * setTargetPoolsRegionInstanceGroupManager.
+     */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        setTargetPoolsRegionInstanceGroupManagerOperationSettings() {
+      return getStubSettingsBuilder().setTargetPoolsRegionInstanceGroupManagerOperationSettings();
+    }
+
     @Override
     public RegionInstanceGroupManagerSettings build() throws IOException {
       return new RegionInstanceGroupManagerSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupSettings.java
index 5a97bd7daf60..882020198ed4 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupSettings.java
@@ -22,10 +22,12 @@
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
 import com.google.api.gax.rpc.ClientSettings;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.TransportChannelProvider;
 import com.google.api.gax.rpc.UnaryCallSettings;
@@ -96,6 +98,16 @@ public class RegionInstanceGroupSettings extends ClientSettings
+      setNamedPortsRegionInstanceGroupOperationSettings() {
+    return ((RegionInstanceGroupStubSettings) getStubSettings())
+        .setNamedPortsRegionInstanceGroupOperationSettings();
+  }
+
   public static final RegionInstanceGroupSettings create(RegionInstanceGroupStubSettings stub)
       throws IOException {
     return new RegionInstanceGroupSettings.Builder(stub.toBuilder()).build();
@@ -228,6 +240,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().setNamedPortsRegionInstanceGroupSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setNamedPortsRegionInstanceGroup. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetNamedPortsRegionInstanceGroupHttpRequest, EmptyMessage, EmptyMessage>
+        setNamedPortsRegionInstanceGroupOperationSettings() {
+      return getStubSettingsBuilder().setNamedPortsRegionInstanceGroupOperationSettings();
+    }
+
     @Override
     public RegionInstanceGroupSettings build() throws IOException {
       return new RegionInstanceGroupSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionOperationClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionOperationClient.java
index ae66e41e6c6f..a72385759b3b 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionOperationClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionOperationClient.java
@@ -20,6 +20,7 @@
 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.EmptyMessage;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
@@ -246,7 +247,7 @@ public final void deleteRegionOperation(DeleteRegionOperationHttpRequest request
    * 
*/ @BetaApi - public final UnaryCallable + public final UnaryCallable deleteRegionOperationCallable() { return stub.deleteRegionOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionOperationSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionOperationSettings.java index 6391e82e007d..a8f9cf2e16f1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionOperationSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionOperationSettings.java @@ -21,6 +21,7 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; @@ -64,7 +65,8 @@ @BetaApi public class RegionOperationSettings extends ClientSettings { /** Returns the object with the settings used for calls to deleteRegionOperation. */ - public UnaryCallSettings deleteRegionOperationSettings() { + public UnaryCallSettings + deleteRegionOperationSettings() { return ((RegionOperationStubSettings) getStubSettings()).deleteRegionOperationSettings(); } @@ -183,7 +185,7 @@ public Builder applyToAllUnaryMethods( } /** Returns the builder for the settings used for calls to deleteRegionOperation. */ - public UnaryCallSettings.Builder + public UnaryCallSettings.Builder deleteRegionOperationSettings() { return getStubSettingsBuilder().deleteRegionOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteClient.java index 7823767111cf..525a1ecc596a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteClient.java @@ -20,9 +20,12 @@ 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.EmptyMessage; +import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.stub.RouteStub; @@ -43,7 +46,7 @@ * * try (RouteClient routeClient = RouteClient.create()) { * ProjectGlobalRouteName route = ProjectGlobalRouteName.of("[PROJECT]", "[ROUTE]"); - * Operation response = routeClient.deleteRoute(route); + * Route response = routeClient.getRoute(route); * } * * @@ -103,6 +106,7 @@ public class RouteClient implements BackgroundResource { private final RouteSettings settings; private final RouteStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of RouteClient with default settings. */ public static final RouteClient create() throws IOException { @@ -133,12 +137,14 @@ public static final RouteClient create(RouteStub stub) { protected RouteClient(RouteSettings settings) throws IOException { this.settings = settings; this.stub = ((RouteStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected RouteClient(RouteStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final RouteSettings getSettings() { @@ -150,6 +156,16 @@ public RouteStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Deletes the specified Route resource. @@ -159,21 +175,23 @@ public RouteStub getStub() { *

    * try (RouteClient routeClient = RouteClient.create()) {
    *   ProjectGlobalRouteName route = ProjectGlobalRouteName.of("[PROJECT]", "[ROUTE]");
-   *   Operation response = routeClient.deleteRoute(route);
+   *   routeClient.deleteRouteAsync(route).get();
    * }
    * 
* * @param route Name of the Route resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteRoute(ProjectGlobalRouteName route) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteRouteAsync( + ProjectGlobalRouteName route) { DeleteRouteHttpRequest request = DeleteRouteHttpRequest.newBuilder() .setRoute(route == null ? null : route.toString()) .build(); - return deleteRoute(request); + return deleteRouteAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -185,18 +203,19 @@ public final Operation deleteRoute(ProjectGlobalRouteName route) { *

    * try (RouteClient routeClient = RouteClient.create()) {
    *   ProjectGlobalRouteName route = ProjectGlobalRouteName.of("[PROJECT]", "[ROUTE]");
-   *   Operation response = routeClient.deleteRoute(route.toString());
+   *   routeClient.deleteRouteAsync(route.toString()).get();
    * }
    * 
* * @param route Name of the Route resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteRoute(String route) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteRouteAsync(String route) { DeleteRouteHttpRequest request = DeleteRouteHttpRequest.newBuilder().setRoute(route).build(); - return deleteRoute(request); + return deleteRouteAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -211,16 +230,42 @@ public final Operation deleteRoute(String route) { * DeleteRouteHttpRequest request = DeleteRouteHttpRequest.newBuilder() * .setRoute(route.toString()) * .build(); - * Operation response = routeClient.deleteRoute(request); + * routeClient.deleteRouteAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteRoute(DeleteRouteHttpRequest request) { - return deleteRouteCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteRouteAsync( + DeleteRouteHttpRequest request) { + return deleteRouteOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified Route resource. + * + *

Sample code: + * + *


+   * try (RouteClient routeClient = RouteClient.create()) {
+   *   ProjectGlobalRouteName route = ProjectGlobalRouteName.of("[PROJECT]", "[ROUTE]");
+   *   DeleteRouteHttpRequest request = DeleteRouteHttpRequest.newBuilder()
+   *     .setRoute(route.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = routeClient.deleteRouteOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteRouteOperationCallable() { + return stub.deleteRouteOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -237,7 +282,7 @@ public final Operation deleteRoute(DeleteRouteHttpRequest request) { * .build(); * ApiFuture<Operation> future = routeClient.deleteRouteCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -354,7 +399,7 @@ public final UnaryCallable getRouteCallable() { * try (RouteClient routeClient = RouteClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * Route routeResource = Route.newBuilder().build(); - * Operation response = routeClient.insertRoute(project, routeResource); + * routeClient.insertRouteAsync(project, routeResource).get(); * } * * @@ -374,15 +419,17 @@ public final UnaryCallable getRouteCallable() { * (== resource_for beta.routes ==) (== resource_for v1.routes ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertRoute(ProjectName project, Route routeResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertRouteAsync( + ProjectName project, Route routeResource) { InsertRouteHttpRequest request = InsertRouteHttpRequest.newBuilder() .setProject(project == null ? null : project.toString()) .setRouteResource(routeResource) .build(); - return insertRoute(request); + return insertRouteAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -395,7 +442,7 @@ public final Operation insertRoute(ProjectName project, Route routeResource) { * try (RouteClient routeClient = RouteClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * Route routeResource = Route.newBuilder().build(); - * Operation response = routeClient.insertRoute(project.toString(), routeResource); + * routeClient.insertRouteAsync(project.toString(), routeResource).get(); * } * * @@ -415,15 +462,17 @@ public final Operation insertRoute(ProjectName project, Route routeResource) { * (== resource_for beta.routes ==) (== resource_for v1.routes ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertRoute(String project, Route routeResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertRouteAsync( + String project, Route routeResource) { InsertRouteHttpRequest request = InsertRouteHttpRequest.newBuilder() .setProject(project) .setRouteResource(routeResource) .build(); - return insertRoute(request); + return insertRouteAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -440,16 +489,44 @@ public final Operation insertRoute(String project, Route routeResource) { * .setProject(project.toString()) * .setRouteResource(routeResource) * .build(); - * Operation response = routeClient.insertRoute(request); + * routeClient.insertRouteAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertRoute(InsertRouteHttpRequest request) { - return insertRouteCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertRouteAsync( + InsertRouteHttpRequest request) { + return insertRouteOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a Route resource in the specified project using the data included in the request. + * + *

Sample code: + * + *


+   * try (RouteClient routeClient = RouteClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   Route routeResource = Route.newBuilder().build();
+   *   InsertRouteHttpRequest request = InsertRouteHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setRouteResource(routeResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = routeClient.insertRouteOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertRouteOperationCallable() { + return stub.insertRouteOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -468,7 +545,7 @@ public final Operation insertRoute(InsertRouteHttpRequest request) { * .build(); * ApiFuture<Operation> future = routeClient.insertRouteCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteSettings.java index 0e7e58b36b80..13ad2c0c748d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteSettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteRoute to 30 seconds: + * example, to set the total timeout of getRoute to 30 seconds: * *

  * 
  * RouteSettings.Builder routeSettingsBuilder =
  *     RouteSettings.newBuilder();
- * routeSettingsBuilder.deleteRouteSettings().getRetrySettings().toBuilder()
+ * routeSettingsBuilder.getRouteSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * RouteSettings routeSettings = routeSettingsBuilder.build();
  * 
@@ -68,6 +70,14 @@ public UnaryCallSettings deleteRouteSettings(
     return ((RouteStubSettings) getStubSettings()).deleteRouteSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteRoute. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteRouteOperationSettings() {
+    return ((RouteStubSettings) getStubSettings()).deleteRouteOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getRoute. */
   public UnaryCallSettings getRouteSettings() {
     return ((RouteStubSettings) getStubSettings()).getRouteSettings();
@@ -78,6 +88,14 @@ public UnaryCallSettings insertRouteSettings(
     return ((RouteStubSettings) getStubSettings()).insertRouteSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertRoute. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertRouteOperationSettings() {
+    return ((RouteStubSettings) getStubSettings()).insertRouteOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listRoutes. */
   public PagedCallSettings
       listRoutesSettings() {
@@ -190,6 +208,14 @@ public UnaryCallSettings.Builder deleteRouteS
       return getStubSettingsBuilder().deleteRouteSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteRoute. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteRouteOperationSettings() {
+      return getStubSettingsBuilder().deleteRouteOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getRoute. */
     public UnaryCallSettings.Builder getRouteSettings() {
       return getStubSettingsBuilder().getRouteSettings();
@@ -200,6 +226,14 @@ public UnaryCallSettings.Builder insertRouteS
       return getStubSettingsBuilder().insertRouteSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertRoute. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertRouteOperationSettings() {
+      return getStubSettingsBuilder().insertRouteOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listRoutes. */
     public PagedCallSettings.Builder
         listRoutesSettings() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java
index dadaa6afb804..2adc332c684e 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.RouterStub;
@@ -43,7 +46,7 @@
  * 
  * try (RouterClient routerClient = RouterClient.create()) {
  *   ProjectRegionRouterName router = ProjectRegionRouterName.of("[PROJECT]", "[REGION]", "[ROUTER]");
- *   Operation response = routerClient.deleteRouter(router);
+ *   Router response = routerClient.getRouter(router);
  * }
  * 
  * 
@@ -103,6 +106,7 @@ public class RouterClient implements BackgroundResource { private final RouterSettings settings; private final RouterStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of RouterClient with default settings. */ public static final RouterClient create() throws IOException { @@ -133,12 +137,14 @@ public static final RouterClient create(RouterStub stub) { protected RouterClient(RouterSettings settings) throws IOException { this.settings = settings; this.stub = ((RouterStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected RouterClient(RouterStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final RouterSettings getSettings() { @@ -150,6 +156,16 @@ public RouterStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Retrieves an aggregated list of routers. @@ -297,21 +313,23 @@ public final AggregatedListRoutersPagedResponse aggregatedListRouters( *

    * try (RouterClient routerClient = RouterClient.create()) {
    *   ProjectRegionRouterName router = ProjectRegionRouterName.of("[PROJECT]", "[REGION]", "[ROUTER]");
-   *   Operation response = routerClient.deleteRouter(router);
+   *   routerClient.deleteRouterAsync(router).get();
    * }
    * 
* * @param router Name of the Router resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteRouter(ProjectRegionRouterName router) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteRouterAsync( + ProjectRegionRouterName router) { DeleteRouterHttpRequest request = DeleteRouterHttpRequest.newBuilder() .setRouter(router == null ? null : router.toString()) .build(); - return deleteRouter(request); + return deleteRouterAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -323,19 +341,20 @@ public final Operation deleteRouter(ProjectRegionRouterName router) { *

    * try (RouterClient routerClient = RouterClient.create()) {
    *   ProjectRegionRouterName router = ProjectRegionRouterName.of("[PROJECT]", "[REGION]", "[ROUTER]");
-   *   Operation response = routerClient.deleteRouter(router.toString());
+   *   routerClient.deleteRouterAsync(router.toString()).get();
    * }
    * 
* * @param router Name of the Router resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteRouter(String router) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteRouterAsync(String router) { DeleteRouterHttpRequest request = DeleteRouterHttpRequest.newBuilder().setRouter(router).build(); - return deleteRouter(request); + return deleteRouterAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -350,16 +369,42 @@ public final Operation deleteRouter(String router) { * DeleteRouterHttpRequest request = DeleteRouterHttpRequest.newBuilder() * .setRouter(router.toString()) * .build(); - * Operation response = routerClient.deleteRouter(request); + * routerClient.deleteRouterAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteRouter(DeleteRouterHttpRequest request) { - return deleteRouterCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteRouterAsync( + DeleteRouterHttpRequest request) { + return deleteRouterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified Router resource. + * + *

Sample code: + * + *


+   * try (RouterClient routerClient = RouterClient.create()) {
+   *   ProjectRegionRouterName router = ProjectRegionRouterName.of("[PROJECT]", "[REGION]", "[ROUTER]");
+   *   DeleteRouterHttpRequest request = DeleteRouterHttpRequest.newBuilder()
+   *     .setRouter(router.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = routerClient.deleteRouterOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteRouterOperationCallable() { + return stub.deleteRouterOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -376,7 +421,7 @@ public final Operation deleteRouter(DeleteRouterHttpRequest request) { * .build(); * ApiFuture<Operation> future = routerClient.deleteRouterCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -735,7 +780,7 @@ public final RouterStatusResponse getRouterStatusRouter( * try (RouterClient routerClient = RouterClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * Router routerResource = Router.newBuilder().build(); - * Operation response = routerClient.insertRouter(region, routerResource); + * routerClient.insertRouterAsync(region, routerResource).get(); * } * * @@ -743,15 +788,17 @@ public final RouterStatusResponse getRouterStatusRouter( * @param routerResource Router resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertRouter(ProjectRegionName region, Router routerResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertRouterAsync( + ProjectRegionName region, Router routerResource) { InsertRouterHttpRequest request = InsertRouterHttpRequest.newBuilder() .setRegion(region == null ? null : region.toString()) .setRouterResource(routerResource) .build(); - return insertRouter(request); + return insertRouterAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -765,7 +812,7 @@ public final Operation insertRouter(ProjectRegionName region, Router routerResou * try (RouterClient routerClient = RouterClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * Router routerResource = Router.newBuilder().build(); - * Operation response = routerClient.insertRouter(region.toString(), routerResource); + * routerClient.insertRouterAsync(region.toString(), routerResource).get(); * } * * @@ -773,15 +820,17 @@ public final Operation insertRouter(ProjectRegionName region, Router routerResou * @param routerResource Router resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertRouter(String region, Router routerResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertRouterAsync( + String region, Router routerResource) { InsertRouterHttpRequest request = InsertRouterHttpRequest.newBuilder() .setRegion(region) .setRouterResource(routerResource) .build(); - return insertRouter(request); + return insertRouterAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -799,16 +848,45 @@ public final Operation insertRouter(String region, Router routerResource) { * .setRegion(region.toString()) * .setRouterResource(routerResource) * .build(); - * Operation response = routerClient.insertRouter(request); + * routerClient.insertRouterAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertRouter(InsertRouterHttpRequest request) { - return insertRouterCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertRouterAsync( + InsertRouterHttpRequest request) { + return insertRouterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a Router resource in the specified project and region using the data included in the + * request. + * + *

Sample code: + * + *


+   * try (RouterClient routerClient = RouterClient.create()) {
+   *   ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
+   *   Router routerResource = Router.newBuilder().build();
+   *   InsertRouterHttpRequest request = InsertRouterHttpRequest.newBuilder()
+   *     .setRegion(region.toString())
+   *     .setRouterResource(routerResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = routerClient.insertRouterOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertRouterOperationCallable() { + return stub.insertRouterOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -828,7 +906,7 @@ public final Operation insertRouter(InsertRouterHttpRequest request) { * .build(); * ApiFuture<Operation> future = routerClient.insertRouterCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -984,7 +1062,7 @@ public final UnaryCallable listRoutersCallab * ProjectRegionRouterName router = ProjectRegionRouterName.of("[PROJECT]", "[REGION]", "[ROUTER]"); * Router routerResource = Router.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = routerClient.patchRouter(router, routerResource, fieldMask); + * routerClient.patchRouterAsync(router, routerResource, fieldMask).get(); * } * * @@ -996,8 +1074,9 @@ public final UnaryCallable listRoutersCallab * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchRouter( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchRouterAsync( ProjectRegionRouterName router, Router routerResource, List fieldMask) { PatchRouterHttpRequest request = @@ -1006,7 +1085,7 @@ public final Operation patchRouter( .setRouterResource(routerResource) .addAllFieldMask(fieldMask) .build(); - return patchRouter(request); + return patchRouterAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1021,7 +1100,7 @@ public final Operation patchRouter( * ProjectRegionRouterName router = ProjectRegionRouterName.of("[PROJECT]", "[REGION]", "[ROUTER]"); * Router routerResource = Router.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = routerClient.patchRouter(router.toString(), routerResource, fieldMask); + * routerClient.patchRouterAsync(router.toString(), routerResource, fieldMask).get(); * } * * @@ -1033,8 +1112,10 @@ public final Operation patchRouter( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchRouter(String router, Router routerResource, List fieldMask) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchRouterAsync( + String router, Router routerResource, List fieldMask) { PatchRouterHttpRequest request = PatchRouterHttpRequest.newBuilder() @@ -1042,7 +1123,7 @@ public final Operation patchRouter(String router, Router routerResource, List * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchRouter(PatchRouterHttpRequest request) { - return patchRouterCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchRouterAsync( + PatchRouterHttpRequest request) { + return patchRouterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Patches the specified Router resource with the data included in the request. This method + * supports PATCH semantics and uses JSON merge patch format and processing rules. + * + *

Sample code: + * + *


+   * try (RouterClient routerClient = RouterClient.create()) {
+   *   ProjectRegionRouterName router = ProjectRegionRouterName.of("[PROJECT]", "[REGION]", "[ROUTER]");
+   *   Router routerResource = Router.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   PatchRouterHttpRequest request = PatchRouterHttpRequest.newBuilder()
+   *     .setRouter(router.toString())
+   *     .setRouterResource(routerResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = routerClient.patchRouterOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + patchRouterOperationCallable() { + return stub.patchRouterOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1093,7 +1205,7 @@ public final Operation patchRouter(PatchRouterHttpRequest request) { * .build(); * ApiFuture<Operation> future = routerClient.patchRouterCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1228,7 +1340,7 @@ public final RoutersPreviewResponse previewRouter(PreviewRouterHttpRequest reque * ProjectRegionRouterName router = ProjectRegionRouterName.of("[PROJECT]", "[REGION]", "[ROUTER]"); * Router routerResource = Router.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = routerClient.updateRouter(router, routerResource, fieldMask); + * routerClient.updateRouterAsync(router, routerResource, fieldMask).get(); * } * * @@ -1240,8 +1352,9 @@ public final RoutersPreviewResponse previewRouter(PreviewRouterHttpRequest reque * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateRouter( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateRouterAsync( ProjectRegionRouterName router, Router routerResource, List fieldMask) { UpdateRouterHttpRequest request = @@ -1250,7 +1363,7 @@ public final Operation updateRouter( .setRouterResource(routerResource) .addAllFieldMask(fieldMask) .build(); - return updateRouter(request); + return updateRouterAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1264,7 +1377,7 @@ public final Operation updateRouter( * ProjectRegionRouterName router = ProjectRegionRouterName.of("[PROJECT]", "[REGION]", "[ROUTER]"); * Router routerResource = Router.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = routerClient.updateRouter(router.toString(), routerResource, fieldMask); + * routerClient.updateRouterAsync(router.toString(), routerResource, fieldMask).get(); * } * * @@ -1276,8 +1389,9 @@ public final Operation updateRouter( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateRouter( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateRouterAsync( String router, Router routerResource, List fieldMask) { UpdateRouterHttpRequest request = @@ -1286,7 +1400,7 @@ public final Operation updateRouter( .setRouterResource(routerResource) .addAllFieldMask(fieldMask) .build(); - return updateRouter(request); + return updateRouterAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1305,16 +1419,46 @@ public final Operation updateRouter( * .setRouterResource(routerResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = routerClient.updateRouter(request); + * routerClient.updateRouterAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateRouter(UpdateRouterHttpRequest request) { - return updateRouterCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateRouterAsync( + UpdateRouterHttpRequest request) { + return updateRouterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the specified Router resource with the data included in the request. + * + *

Sample code: + * + *


+   * try (RouterClient routerClient = RouterClient.create()) {
+   *   ProjectRegionRouterName router = ProjectRegionRouterName.of("[PROJECT]", "[REGION]", "[ROUTER]");
+   *   Router routerResource = Router.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   UpdateRouterHttpRequest request = UpdateRouterHttpRequest.newBuilder()
+   *     .setRouter(router.toString())
+   *     .setRouterResource(routerResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = routerClient.updateRouterOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + updateRouterOperationCallable() { + return stub.updateRouterOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1335,7 +1479,7 @@ public final Operation updateRouter(UpdateRouterHttpRequest request) { * .build(); * ApiFuture<Operation> future = routerClient.updateRouterCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterSettings.java index db3b3c409c4f..89538badda4f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterSettings.java @@ -23,10 +23,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -50,13 +52,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteRouter to 30 seconds: + * example, to set the total timeout of getRouter to 30 seconds: * *

  * 
  * RouterSettings.Builder routerSettingsBuilder =
  *     RouterSettings.newBuilder();
- * routerSettingsBuilder.deleteRouterSettings().getRetrySettings().toBuilder()
+ * routerSettingsBuilder.getRouterSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * RouterSettings routerSettings = routerSettingsBuilder.build();
  * 
@@ -79,6 +81,14 @@ public UnaryCallSettings deleteRouterSetting
     return ((RouterStubSettings) getStubSettings()).deleteRouterSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteRouter. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteRouterOperationSettings() {
+    return ((RouterStubSettings) getStubSettings()).deleteRouterOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getRouter. */
   public UnaryCallSettings getRouterSettings() {
     return ((RouterStubSettings) getStubSettings()).getRouterSettings();
@@ -104,6 +114,14 @@ public UnaryCallSettings insertRouterSetting
     return ((RouterStubSettings) getStubSettings()).insertRouterSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertRouter. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertRouterOperationSettings() {
+    return ((RouterStubSettings) getStubSettings()).insertRouterOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listRouters. */
   public PagedCallSettings
       listRoutersSettings() {
@@ -115,6 +133,14 @@ public UnaryCallSettings patchRouterSettings(
     return ((RouterStubSettings) getStubSettings()).patchRouterSettings();
   }
 
+  /** Returns the object with the settings used for calls to patchRouter. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchRouterOperationSettings() {
+    return ((RouterStubSettings) getStubSettings()).patchRouterOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to previewRouter. */
   public UnaryCallSettings
       previewRouterSettings() {
@@ -126,6 +152,14 @@ public UnaryCallSettings updateRouterSetting
     return ((RouterStubSettings) getStubSettings()).updateRouterSettings();
   }
 
+  /** Returns the object with the settings used for calls to updateRouter. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateRouterOperationSettings() {
+    return ((RouterStubSettings) getStubSettings()).updateRouterOperationSettings();
+  }
+
   public static final RouterSettings create(RouterStubSettings stub) throws IOException {
     return new RouterSettings.Builder(stub.toBuilder()).build();
   }
@@ -241,6 +275,14 @@ public UnaryCallSettings.Builder deleteRoute
       return getStubSettingsBuilder().deleteRouterSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteRouter. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteRouterOperationSettings() {
+      return getStubSettingsBuilder().deleteRouterOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getRouter. */
     public UnaryCallSettings.Builder getRouterSettings() {
       return getStubSettingsBuilder().getRouterSettings();
@@ -266,6 +308,14 @@ public UnaryCallSettings.Builder insertRoute
       return getStubSettingsBuilder().insertRouterSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertRouter. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertRouterOperationSettings() {
+      return getStubSettingsBuilder().insertRouterOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listRouters. */
     public PagedCallSettings.Builder
         listRoutersSettings() {
@@ -277,6 +327,14 @@ public UnaryCallSettings.Builder patchRouterS
       return getStubSettingsBuilder().patchRouterSettings();
     }
 
+    /** Returns the builder for the settings used for calls to patchRouter. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchRouterOperationSettings() {
+      return getStubSettingsBuilder().patchRouterOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to previewRouter. */
     public UnaryCallSettings.Builder
         previewRouterSettings() {
@@ -288,6 +346,14 @@ public UnaryCallSettings.Builder updateRoute
       return getStubSettingsBuilder().updateRouterSettings();
     }
 
+    /** Returns the builder for the settings used for calls to updateRouter. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        updateRouterOperationSettings() {
+      return getStubSettingsBuilder().updateRouterOperationSettings();
+    }
+
     @Override
     public RouterSettings build() throws IOException {
       return new RouterSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyClient.java
index e1add564f16d..0c7863a3b378 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.SecurityPolicyStub;
@@ -43,8 +46,7 @@
  * 
  * try (SecurityPolicyClient securityPolicyClient = SecurityPolicyClient.create()) {
  *   ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]");
- *   SecurityPolicyRule securityPolicyRuleResource = SecurityPolicyRule.newBuilder().build();
- *   Operation response = securityPolicyClient.addRuleSecurityPolicy(securityPolicy, securityPolicyRuleResource);
+ *   SecurityPolicy response = securityPolicyClient.getSecurityPolicy(securityPolicy);
  * }
  * 
  * 
@@ -104,6 +106,7 @@ public class SecurityPolicyClient implements BackgroundResource { private final SecurityPolicySettings settings; private final SecurityPolicyStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of SecurityPolicyClient with default settings. */ public static final SecurityPolicyClient create() throws IOException { @@ -136,12 +139,14 @@ public static final SecurityPolicyClient create(SecurityPolicyStub stub) { protected SecurityPolicyClient(SecurityPolicySettings settings) throws IOException { this.settings = settings; this.stub = ((SecurityPolicyStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected SecurityPolicyClient(SecurityPolicyStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final SecurityPolicySettings getSettings() { @@ -153,6 +158,16 @@ public SecurityPolicyStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Inserts a rule into a security policy. @@ -163,7 +178,7 @@ public SecurityPolicyStub getStub() { * try (SecurityPolicyClient securityPolicyClient = SecurityPolicyClient.create()) { * ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]"); * SecurityPolicyRule securityPolicyRuleResource = SecurityPolicyRule.newBuilder().build(); - * Operation response = securityPolicyClient.addRuleSecurityPolicy(securityPolicy, securityPolicyRuleResource); + * securityPolicyClient.addRuleSecurityPolicyAsync(securityPolicy, securityPolicyRuleResource).get(); * } * * @@ -172,8 +187,9 @@ public SecurityPolicyStub getStub() { * along with the action to be taken when traffic matches this condition (allow or deny). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addRuleSecurityPolicy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addRuleSecurityPolicyAsync( ProjectGlobalSecurityPolicyName securityPolicy, SecurityPolicyRule securityPolicyRuleResource) { @@ -182,7 +198,7 @@ public final Operation addRuleSecurityPolicy( .setSecurityPolicy(securityPolicy == null ? null : securityPolicy.toString()) .setSecurityPolicyRuleResource(securityPolicyRuleResource) .build(); - return addRuleSecurityPolicy(request); + return addRuleSecurityPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -195,7 +211,7 @@ public final Operation addRuleSecurityPolicy( * try (SecurityPolicyClient securityPolicyClient = SecurityPolicyClient.create()) { * ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]"); * SecurityPolicyRule securityPolicyRuleResource = SecurityPolicyRule.newBuilder().build(); - * Operation response = securityPolicyClient.addRuleSecurityPolicy(securityPolicy.toString(), securityPolicyRuleResource); + * securityPolicyClient.addRuleSecurityPolicyAsync(securityPolicy.toString(), securityPolicyRuleResource).get(); * } * * @@ -204,8 +220,9 @@ public final Operation addRuleSecurityPolicy( * along with the action to be taken when traffic matches this condition (allow or deny). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addRuleSecurityPolicy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addRuleSecurityPolicyAsync( String securityPolicy, SecurityPolicyRule securityPolicyRuleResource) { AddRuleSecurityPolicyHttpRequest request = @@ -213,7 +230,7 @@ public final Operation addRuleSecurityPolicy( .setSecurityPolicy(securityPolicy) .setSecurityPolicyRuleResource(securityPolicyRuleResource) .build(); - return addRuleSecurityPolicy(request); + return addRuleSecurityPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -230,16 +247,44 @@ public final Operation addRuleSecurityPolicy( * .setSecurityPolicy(securityPolicy.toString()) * .setSecurityPolicyRuleResource(securityPolicyRuleResource) * .build(); - * Operation response = securityPolicyClient.addRuleSecurityPolicy(request); + * securityPolicyClient.addRuleSecurityPolicyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addRuleSecurityPolicy(AddRuleSecurityPolicyHttpRequest request) { - return addRuleSecurityPolicyCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addRuleSecurityPolicyAsync( + AddRuleSecurityPolicyHttpRequest request) { + return addRuleSecurityPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Inserts a rule into a security policy. + * + *

Sample code: + * + *


+   * try (SecurityPolicyClient securityPolicyClient = SecurityPolicyClient.create()) {
+   *   ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]");
+   *   SecurityPolicyRule securityPolicyRuleResource = SecurityPolicyRule.newBuilder().build();
+   *   AddRuleSecurityPolicyHttpRequest request = AddRuleSecurityPolicyHttpRequest.newBuilder()
+   *     .setSecurityPolicy(securityPolicy.toString())
+   *     .setSecurityPolicyRuleResource(securityPolicyRuleResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = securityPolicyClient.addRuleSecurityPolicyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + addRuleSecurityPolicyOperationCallable() { + return stub.addRuleSecurityPolicyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -258,7 +303,7 @@ public final Operation addRuleSecurityPolicy(AddRuleSecurityPolicyHttpRequest re * .build(); * ApiFuture<Operation> future = securityPolicyClient.addRuleSecurityPolicyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -277,21 +322,23 @@ public final Operation addRuleSecurityPolicy(AddRuleSecurityPolicyHttpRequest re *

    * try (SecurityPolicyClient securityPolicyClient = SecurityPolicyClient.create()) {
    *   ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]");
-   *   Operation response = securityPolicyClient.deleteSecurityPolicy(securityPolicy);
+   *   securityPolicyClient.deleteSecurityPolicyAsync(securityPolicy).get();
    * }
    * 
* * @param securityPolicy Name of the security policy to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteSecurityPolicy(ProjectGlobalSecurityPolicyName securityPolicy) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteSecurityPolicyAsync( + ProjectGlobalSecurityPolicyName securityPolicy) { DeleteSecurityPolicyHttpRequest request = DeleteSecurityPolicyHttpRequest.newBuilder() .setSecurityPolicy(securityPolicy == null ? null : securityPolicy.toString()) .build(); - return deleteSecurityPolicy(request); + return deleteSecurityPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -303,19 +350,21 @@ public final Operation deleteSecurityPolicy(ProjectGlobalSecurityPolicyName secu *

    * try (SecurityPolicyClient securityPolicyClient = SecurityPolicyClient.create()) {
    *   ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]");
-   *   Operation response = securityPolicyClient.deleteSecurityPolicy(securityPolicy.toString());
+   *   securityPolicyClient.deleteSecurityPolicyAsync(securityPolicy.toString()).get();
    * }
    * 
* * @param securityPolicy Name of the security policy to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteSecurityPolicy(String securityPolicy) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteSecurityPolicyAsync( + String securityPolicy) { DeleteSecurityPolicyHttpRequest request = DeleteSecurityPolicyHttpRequest.newBuilder().setSecurityPolicy(securityPolicy).build(); - return deleteSecurityPolicy(request); + return deleteSecurityPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -330,16 +379,42 @@ public final Operation deleteSecurityPolicy(String securityPolicy) { * DeleteSecurityPolicyHttpRequest request = DeleteSecurityPolicyHttpRequest.newBuilder() * .setSecurityPolicy(securityPolicy.toString()) * .build(); - * Operation response = securityPolicyClient.deleteSecurityPolicy(request); + * securityPolicyClient.deleteSecurityPolicyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteSecurityPolicy(DeleteSecurityPolicyHttpRequest request) { - return deleteSecurityPolicyCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteSecurityPolicyAsync( + DeleteSecurityPolicyHttpRequest request) { + return deleteSecurityPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified policy. + * + *

Sample code: + * + *


+   * try (SecurityPolicyClient securityPolicyClient = SecurityPolicyClient.create()) {
+   *   ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]");
+   *   DeleteSecurityPolicyHttpRequest request = DeleteSecurityPolicyHttpRequest.newBuilder()
+   *     .setSecurityPolicy(securityPolicy.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = securityPolicyClient.deleteSecurityPolicyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteSecurityPolicyOperationCallable() { + return stub.deleteSecurityPolicyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -356,7 +431,7 @@ public final Operation deleteSecurityPolicy(DeleteSecurityPolicyHttpRequest requ * .build(); * ApiFuture<Operation> future = securityPolicyClient.deleteSecurityPolicyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -585,7 +660,7 @@ public final SecurityPolicyRule getRuleSecurityPolicy(GetRuleSecurityPolicyHttpR * try (SecurityPolicyClient securityPolicyClient = SecurityPolicyClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * SecurityPolicy securityPolicyResource = SecurityPolicy.newBuilder().build(); - * Operation response = securityPolicyClient.insertSecurityPolicy(project, securityPolicyResource); + * securityPolicyClient.insertSecurityPolicyAsync(project, securityPolicyResource).get(); * } * * @@ -595,8 +670,9 @@ public final SecurityPolicyRule getRuleSecurityPolicy(GetRuleSecurityPolicyHttpR * resource_for beta.securityPolicies ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertSecurityPolicy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertSecurityPolicyAsync( ProjectName project, SecurityPolicy securityPolicyResource) { InsertSecurityPolicyHttpRequest request = @@ -604,7 +680,7 @@ public final Operation insertSecurityPolicy( .setProject(project == null ? null : project.toString()) .setSecurityPolicyResource(securityPolicyResource) .build(); - return insertSecurityPolicy(request); + return insertSecurityPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -617,7 +693,7 @@ public final Operation insertSecurityPolicy( * try (SecurityPolicyClient securityPolicyClient = SecurityPolicyClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * SecurityPolicy securityPolicyResource = SecurityPolicy.newBuilder().build(); - * Operation response = securityPolicyClient.insertSecurityPolicy(project.toString(), securityPolicyResource); + * securityPolicyClient.insertSecurityPolicyAsync(project.toString(), securityPolicyResource).get(); * } * * @@ -627,8 +703,9 @@ public final Operation insertSecurityPolicy( * resource_for beta.securityPolicies ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertSecurityPolicy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertSecurityPolicyAsync( String project, SecurityPolicy securityPolicyResource) { InsertSecurityPolicyHttpRequest request = @@ -636,7 +713,7 @@ public final Operation insertSecurityPolicy( .setProject(project) .setSecurityPolicyResource(securityPolicyResource) .build(); - return insertSecurityPolicy(request); + return insertSecurityPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -653,16 +730,44 @@ public final Operation insertSecurityPolicy( * .setProject(project.toString()) * .setSecurityPolicyResource(securityPolicyResource) * .build(); - * Operation response = securityPolicyClient.insertSecurityPolicy(request); + * securityPolicyClient.insertSecurityPolicyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertSecurityPolicy(InsertSecurityPolicyHttpRequest request) { - return insertSecurityPolicyCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertSecurityPolicyAsync( + InsertSecurityPolicyHttpRequest request) { + return insertSecurityPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new policy in the specified project using the data included in the request. + * + *

Sample code: + * + *


+   * try (SecurityPolicyClient securityPolicyClient = SecurityPolicyClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   SecurityPolicy securityPolicyResource = SecurityPolicy.newBuilder().build();
+   *   InsertSecurityPolicyHttpRequest request = InsertSecurityPolicyHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setSecurityPolicyResource(securityPolicyResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = securityPolicyClient.insertSecurityPolicyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertSecurityPolicyOperationCallable() { + return stub.insertSecurityPolicyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -681,7 +786,7 @@ public final Operation insertSecurityPolicy(InsertSecurityPolicyHttpRequest requ * .build(); * ApiFuture<Operation> future = securityPolicyClient.insertSecurityPolicyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -840,7 +945,7 @@ public final ListSecurityPoliciesPagedResponse listSecurityPolicies( * ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]"); * SecurityPolicy securityPolicyResource = SecurityPolicy.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = securityPolicyClient.patchSecurityPolicy(securityPolicy, securityPolicyResource, fieldMask); + * securityPolicyClient.patchSecurityPolicyAsync(securityPolicy, securityPolicyResource, fieldMask).get(); * } * * @@ -854,8 +959,9 @@ public final ListSecurityPoliciesPagedResponse listSecurityPolicies( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchSecurityPolicy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchSecurityPolicyAsync( ProjectGlobalSecurityPolicyName securityPolicy, SecurityPolicy securityPolicyResource, List fieldMask) { @@ -866,7 +972,7 @@ public final Operation patchSecurityPolicy( .setSecurityPolicyResource(securityPolicyResource) .addAllFieldMask(fieldMask) .build(); - return patchSecurityPolicy(request); + return patchSecurityPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -880,7 +986,7 @@ public final Operation patchSecurityPolicy( * ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]"); * SecurityPolicy securityPolicyResource = SecurityPolicy.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = securityPolicyClient.patchSecurityPolicy(securityPolicy.toString(), securityPolicyResource, fieldMask); + * securityPolicyClient.patchSecurityPolicyAsync(securityPolicy.toString(), securityPolicyResource, fieldMask).get(); * } * * @@ -894,8 +1000,9 @@ public final Operation patchSecurityPolicy( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchSecurityPolicy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchSecurityPolicyAsync( String securityPolicy, SecurityPolicy securityPolicyResource, List fieldMask) { PatchSecurityPolicyHttpRequest request = @@ -904,7 +1011,7 @@ public final Operation patchSecurityPolicy( .setSecurityPolicyResource(securityPolicyResource) .addAllFieldMask(fieldMask) .build(); - return patchSecurityPolicy(request); + return patchSecurityPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -923,16 +1030,46 @@ public final Operation patchSecurityPolicy( * .setSecurityPolicyResource(securityPolicyResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = securityPolicyClient.patchSecurityPolicy(request); + * securityPolicyClient.patchSecurityPolicyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchSecurityPolicy(PatchSecurityPolicyHttpRequest request) { - return patchSecurityPolicyCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchSecurityPolicyAsync( + PatchSecurityPolicyHttpRequest request) { + return patchSecurityPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Patches the specified policy with the data included in the request. + * + *

Sample code: + * + *


+   * try (SecurityPolicyClient securityPolicyClient = SecurityPolicyClient.create()) {
+   *   ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]");
+   *   SecurityPolicy securityPolicyResource = SecurityPolicy.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   PatchSecurityPolicyHttpRequest request = PatchSecurityPolicyHttpRequest.newBuilder()
+   *     .setSecurityPolicy(securityPolicy.toString())
+   *     .setSecurityPolicyResource(securityPolicyResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = securityPolicyClient.patchSecurityPolicyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + patchSecurityPolicyOperationCallable() { + return stub.patchSecurityPolicyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -953,7 +1090,7 @@ public final Operation patchSecurityPolicy(PatchSecurityPolicyHttpRequest reques * .build(); * ApiFuture<Operation> future = securityPolicyClient.patchSecurityPolicyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -974,7 +1111,7 @@ public final Operation patchSecurityPolicy(PatchSecurityPolicyHttpRequest reques * Integer priority = 0; * ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]"); * SecurityPolicyRule securityPolicyRuleResource = SecurityPolicyRule.newBuilder().build(); - * Operation response = securityPolicyClient.patchRuleSecurityPolicy(priority, securityPolicy, securityPolicyRuleResource); + * securityPolicyClient.patchRuleSecurityPolicyAsync(priority, securityPolicy, securityPolicyRuleResource).get(); * } * * @@ -984,8 +1121,9 @@ public final Operation patchSecurityPolicy(PatchSecurityPolicyHttpRequest reques * along with the action to be taken when traffic matches this condition (allow or deny). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchRuleSecurityPolicy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchRuleSecurityPolicyAsync( Integer priority, ProjectGlobalSecurityPolicyName securityPolicy, SecurityPolicyRule securityPolicyRuleResource) { @@ -996,7 +1134,7 @@ public final Operation patchRuleSecurityPolicy( .setSecurityPolicy(securityPolicy == null ? null : securityPolicy.toString()) .setSecurityPolicyRuleResource(securityPolicyRuleResource) .build(); - return patchRuleSecurityPolicy(request); + return patchRuleSecurityPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1010,7 +1148,7 @@ public final Operation patchRuleSecurityPolicy( * Integer priority = 0; * ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]"); * SecurityPolicyRule securityPolicyRuleResource = SecurityPolicyRule.newBuilder().build(); - * Operation response = securityPolicyClient.patchRuleSecurityPolicy(priority, securityPolicy.toString(), securityPolicyRuleResource); + * securityPolicyClient.patchRuleSecurityPolicyAsync(priority, securityPolicy.toString(), securityPolicyRuleResource).get(); * } * * @@ -1020,8 +1158,9 @@ public final Operation patchRuleSecurityPolicy( * along with the action to be taken when traffic matches this condition (allow or deny). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchRuleSecurityPolicy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchRuleSecurityPolicyAsync( Integer priority, String securityPolicy, SecurityPolicyRule securityPolicyRuleResource) { PatchRuleSecurityPolicyHttpRequest request = @@ -1030,7 +1169,7 @@ public final Operation patchRuleSecurityPolicy( .setSecurityPolicy(securityPolicy) .setSecurityPolicyRuleResource(securityPolicyRuleResource) .build(); - return patchRuleSecurityPolicy(request); + return patchRuleSecurityPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1049,16 +1188,46 @@ public final Operation patchRuleSecurityPolicy( * .setSecurityPolicy(securityPolicy.toString()) * .setSecurityPolicyRuleResource(securityPolicyRuleResource) * .build(); - * Operation response = securityPolicyClient.patchRuleSecurityPolicy(request); + * securityPolicyClient.patchRuleSecurityPolicyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchRuleSecurityPolicy(PatchRuleSecurityPolicyHttpRequest request) { - return patchRuleSecurityPolicyCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchRuleSecurityPolicyAsync( + PatchRuleSecurityPolicyHttpRequest request) { + return patchRuleSecurityPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Patches a rule at the specified priority. + * + *

Sample code: + * + *


+   * try (SecurityPolicyClient securityPolicyClient = SecurityPolicyClient.create()) {
+   *   Integer priority = 0;
+   *   ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]");
+   *   SecurityPolicyRule securityPolicyRuleResource = SecurityPolicyRule.newBuilder().build();
+   *   PatchRuleSecurityPolicyHttpRequest request = PatchRuleSecurityPolicyHttpRequest.newBuilder()
+   *     .setPriority(priority)
+   *     .setSecurityPolicy(securityPolicy.toString())
+   *     .setSecurityPolicyRuleResource(securityPolicyRuleResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = securityPolicyClient.patchRuleSecurityPolicyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + patchRuleSecurityPolicyOperationCallable() { + return stub.patchRuleSecurityPolicyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1079,7 +1248,7 @@ public final Operation patchRuleSecurityPolicy(PatchRuleSecurityPolicyHttpReques * .build(); * ApiFuture<Operation> future = securityPolicyClient.patchRuleSecurityPolicyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1099,7 +1268,7 @@ public final Operation patchRuleSecurityPolicy(PatchRuleSecurityPolicyHttpReques * try (SecurityPolicyClient securityPolicyClient = SecurityPolicyClient.create()) { * Integer priority = 0; * ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]"); - * Operation response = securityPolicyClient.removeRuleSecurityPolicy(priority, securityPolicy); + * securityPolicyClient.removeRuleSecurityPolicyAsync(priority, securityPolicy).get(); * } * * @@ -1107,8 +1276,9 @@ public final Operation patchRuleSecurityPolicy(PatchRuleSecurityPolicyHttpReques * @param securityPolicy Name of the security policy to update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation removeRuleSecurityPolicy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture removeRuleSecurityPolicyAsync( Integer priority, ProjectGlobalSecurityPolicyName securityPolicy) { RemoveRuleSecurityPolicyHttpRequest request = @@ -1116,7 +1286,7 @@ public final Operation removeRuleSecurityPolicy( .setPriority(priority) .setSecurityPolicy(securityPolicy == null ? null : securityPolicy.toString()) .build(); - return removeRuleSecurityPolicy(request); + return removeRuleSecurityPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1129,7 +1299,7 @@ public final Operation removeRuleSecurityPolicy( * try (SecurityPolicyClient securityPolicyClient = SecurityPolicyClient.create()) { * Integer priority = 0; * ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]"); - * Operation response = securityPolicyClient.removeRuleSecurityPolicy(priority, securityPolicy.toString()); + * securityPolicyClient.removeRuleSecurityPolicyAsync(priority, securityPolicy.toString()).get(); * } * * @@ -1137,15 +1307,17 @@ public final Operation removeRuleSecurityPolicy( * @param securityPolicy Name of the security policy to update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation removeRuleSecurityPolicy(Integer priority, String securityPolicy) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture removeRuleSecurityPolicyAsync( + Integer priority, String securityPolicy) { RemoveRuleSecurityPolicyHttpRequest request = RemoveRuleSecurityPolicyHttpRequest.newBuilder() .setPriority(priority) .setSecurityPolicy(securityPolicy) .build(); - return removeRuleSecurityPolicy(request); + return removeRuleSecurityPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1162,16 +1334,44 @@ public final Operation removeRuleSecurityPolicy(Integer priority, String securit * .setPriority(priority) * .setSecurityPolicy(securityPolicy.toString()) * .build(); - * Operation response = securityPolicyClient.removeRuleSecurityPolicy(request); + * securityPolicyClient.removeRuleSecurityPolicyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation removeRuleSecurityPolicy(RemoveRuleSecurityPolicyHttpRequest request) { - return removeRuleSecurityPolicyCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture removeRuleSecurityPolicyAsync( + RemoveRuleSecurityPolicyHttpRequest request) { + return removeRuleSecurityPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a rule at the specified priority. + * + *

Sample code: + * + *


+   * try (SecurityPolicyClient securityPolicyClient = SecurityPolicyClient.create()) {
+   *   Integer priority = 0;
+   *   ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]");
+   *   RemoveRuleSecurityPolicyHttpRequest request = RemoveRuleSecurityPolicyHttpRequest.newBuilder()
+   *     .setPriority(priority)
+   *     .setSecurityPolicy(securityPolicy.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = securityPolicyClient.removeRuleSecurityPolicyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + removeRuleSecurityPolicyOperationCallable() { + return stub.removeRuleSecurityPolicyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1190,7 +1390,7 @@ public final Operation removeRuleSecurityPolicy(RemoveRuleSecurityPolicyHttpRequ * .build(); * ApiFuture<Operation> future = securityPolicyClient.removeRuleSecurityPolicyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicySettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicySettings.java index 152a602aedd9..0a01d4fe5d6f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicySettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicySettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of addRuleSecurityPolicy to 30 seconds: + * example, to set the total timeout of getSecurityPolicy to 30 seconds: * *

  * 
  * SecurityPolicySettings.Builder securityPolicySettingsBuilder =
  *     SecurityPolicySettings.newBuilder();
- * securityPolicySettingsBuilder.addRuleSecurityPolicySettings().getRetrySettings().toBuilder()
+ * securityPolicySettingsBuilder.getSecurityPolicySettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * SecurityPolicySettings securityPolicySettings = securityPolicySettingsBuilder.build();
  * 
@@ -69,12 +71,29 @@ public class SecurityPolicySettings extends ClientSettings
+      addRuleSecurityPolicyOperationSettings() {
+    return ((SecurityPolicyStubSettings) getStubSettings())
+        .addRuleSecurityPolicyOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to deleteSecurityPolicy. */
   public UnaryCallSettings
       deleteSecurityPolicySettings() {
     return ((SecurityPolicyStubSettings) getStubSettings()).deleteSecurityPolicySettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteSecurityPolicy. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteSecurityPolicyOperationSettings() {
+    return ((SecurityPolicyStubSettings) getStubSettings()).deleteSecurityPolicyOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getSecurityPolicy. */
   public UnaryCallSettings
       getSecurityPolicySettings() {
@@ -93,6 +112,14 @@ public class SecurityPolicySettings extends ClientSettings
+      insertSecurityPolicyOperationSettings() {
+    return ((SecurityPolicyStubSettings) getStubSettings()).insertSecurityPolicyOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listSecurityPolicies. */
   public PagedCallSettings<
           ListSecurityPoliciesHttpRequest, SecurityPolicyList, ListSecurityPoliciesPagedResponse>
@@ -106,18 +133,44 @@ public class SecurityPolicySettings extends ClientSettings
+      patchSecurityPolicyOperationSettings() {
+    return ((SecurityPolicyStubSettings) getStubSettings()).patchSecurityPolicyOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to patchRuleSecurityPolicy. */
   public UnaryCallSettings
       patchRuleSecurityPolicySettings() {
     return ((SecurityPolicyStubSettings) getStubSettings()).patchRuleSecurityPolicySettings();
   }
 
+  /** Returns the object with the settings used for calls to patchRuleSecurityPolicy. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchRuleSecurityPolicyOperationSettings() {
+    return ((SecurityPolicyStubSettings) getStubSettings())
+        .patchRuleSecurityPolicyOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to removeRuleSecurityPolicy. */
   public UnaryCallSettings
       removeRuleSecurityPolicySettings() {
     return ((SecurityPolicyStubSettings) getStubSettings()).removeRuleSecurityPolicySettings();
   }
 
+  /** Returns the object with the settings used for calls to removeRuleSecurityPolicy. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      removeRuleSecurityPolicyOperationSettings() {
+    return ((SecurityPolicyStubSettings) getStubSettings())
+        .removeRuleSecurityPolicyOperationSettings();
+  }
+
   public static final SecurityPolicySettings create(SecurityPolicyStubSettings stub)
       throws IOException {
     return new SecurityPolicySettings.Builder(stub.toBuilder()).build();
@@ -226,12 +279,30 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().addRuleSecurityPolicySettings();
     }
 
+    /** Returns the builder for the settings used for calls to addRuleSecurityPolicy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            AddRuleSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage>
+        addRuleSecurityPolicyOperationSettings() {
+      return getStubSettingsBuilder().addRuleSecurityPolicyOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to deleteSecurityPolicy. */
     public UnaryCallSettings.Builder
         deleteSecurityPolicySettings() {
       return getStubSettingsBuilder().deleteSecurityPolicySettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteSecurityPolicy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage>
+        deleteSecurityPolicyOperationSettings() {
+      return getStubSettingsBuilder().deleteSecurityPolicyOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getSecurityPolicy. */
     public UnaryCallSettings.Builder
         getSecurityPolicySettings() {
@@ -250,6 +321,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertSecurityPolicySettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertSecurityPolicy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage>
+        insertSecurityPolicyOperationSettings() {
+      return getStubSettingsBuilder().insertSecurityPolicyOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listSecurityPolicies. */
     public PagedCallSettings.Builder<
             ListSecurityPoliciesHttpRequest, SecurityPolicyList, ListSecurityPoliciesPagedResponse>
@@ -263,18 +343,44 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().patchSecurityPolicySettings();
     }
 
+    /** Returns the builder for the settings used for calls to patchSecurityPolicy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchSecurityPolicyOperationSettings() {
+      return getStubSettingsBuilder().patchSecurityPolicyOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to patchRuleSecurityPolicy. */
     public UnaryCallSettings.Builder
         patchRuleSecurityPolicySettings() {
       return getStubSettingsBuilder().patchRuleSecurityPolicySettings();
     }
 
+    /** Returns the builder for the settings used for calls to patchRuleSecurityPolicy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            PatchRuleSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage>
+        patchRuleSecurityPolicyOperationSettings() {
+      return getStubSettingsBuilder().patchRuleSecurityPolicyOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to removeRuleSecurityPolicy. */
     public UnaryCallSettings.Builder
         removeRuleSecurityPolicySettings() {
       return getStubSettingsBuilder().removeRuleSecurityPolicySettings();
     }
 
+    /** Returns the builder for the settings used for calls to removeRuleSecurityPolicy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            RemoveRuleSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage>
+        removeRuleSecurityPolicyOperationSettings() {
+      return getStubSettingsBuilder().removeRuleSecurityPolicyOperationSettings();
+    }
+
     @Override
     public SecurityPolicySettings build() throws IOException {
       return new SecurityPolicySettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotClient.java
index 85553b55b7fb..562dfdc55040 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.SnapshotStub;
@@ -43,7 +46,7 @@
  * 
  * try (SnapshotClient snapshotClient = SnapshotClient.create()) {
  *   ProjectGlobalSnapshotName snapshot = ProjectGlobalSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
- *   Operation response = snapshotClient.deleteSnapshot(snapshot);
+ *   Snapshot response = snapshotClient.getSnapshot(snapshot);
  * }
  * 
  * 
@@ -103,6 +106,7 @@ public class SnapshotClient implements BackgroundResource { private final SnapshotSettings settings; private final SnapshotStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of SnapshotClient with default settings. */ public static final SnapshotClient create() throws IOException { @@ -133,12 +137,14 @@ public static final SnapshotClient create(SnapshotStub stub) { protected SnapshotClient(SnapshotSettings settings) throws IOException { this.settings = settings; this.stub = ((SnapshotStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected SnapshotClient(SnapshotStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final SnapshotSettings getSettings() { @@ -150,6 +156,16 @@ public SnapshotStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not @@ -164,21 +180,23 @@ public SnapshotStub getStub() { *

    * try (SnapshotClient snapshotClient = SnapshotClient.create()) {
    *   ProjectGlobalSnapshotName snapshot = ProjectGlobalSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
-   *   Operation response = snapshotClient.deleteSnapshot(snapshot);
+   *   snapshotClient.deleteSnapshotAsync(snapshot).get();
    * }
    * 
* * @param snapshot Name of the Snapshot resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteSnapshot(ProjectGlobalSnapshotName snapshot) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteSnapshotAsync( + ProjectGlobalSnapshotName snapshot) { DeleteSnapshotHttpRequest request = DeleteSnapshotHttpRequest.newBuilder() .setSnapshot(snapshot == null ? null : snapshot.toString()) .build(); - return deleteSnapshot(request); + return deleteSnapshotAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -195,19 +213,20 @@ public final Operation deleteSnapshot(ProjectGlobalSnapshotName snapshot) { *

    * try (SnapshotClient snapshotClient = SnapshotClient.create()) {
    *   ProjectGlobalSnapshotName snapshot = ProjectGlobalSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
-   *   Operation response = snapshotClient.deleteSnapshot(snapshot.toString());
+   *   snapshotClient.deleteSnapshotAsync(snapshot.toString()).get();
    * }
    * 
* * @param snapshot Name of the Snapshot resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteSnapshot(String snapshot) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteSnapshotAsync(String snapshot) { DeleteSnapshotHttpRequest request = DeleteSnapshotHttpRequest.newBuilder().setSnapshot(snapshot).build(); - return deleteSnapshot(request); + return deleteSnapshotAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -227,16 +246,47 @@ public final Operation deleteSnapshot(String snapshot) { * DeleteSnapshotHttpRequest request = DeleteSnapshotHttpRequest.newBuilder() * .setSnapshot(snapshot.toString()) * .build(); - * Operation response = snapshotClient.deleteSnapshot(request); + * snapshotClient.deleteSnapshotAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteSnapshot(DeleteSnapshotHttpRequest request) { - return deleteSnapshotCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteSnapshotAsync( + DeleteSnapshotHttpRequest request) { + return deleteSnapshotOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not + * necessarily delete all the data on that snapshot. If any data on the snapshot that is marked + * for deletion is needed for subsequent snapshots, the data will be moved to the next + * corresponding snapshot. + * + *

For more information, see Deleting snapshots. + * + *

Sample code: + * + *


+   * try (SnapshotClient snapshotClient = SnapshotClient.create()) {
+   *   ProjectGlobalSnapshotName snapshot = ProjectGlobalSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
+   *   DeleteSnapshotHttpRequest request = DeleteSnapshotHttpRequest.newBuilder()
+   *     .setSnapshot(snapshot.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = snapshotClient.deleteSnapshotOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteSnapshotOperationCallable() { + return stub.deleteSnapshotOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -258,7 +308,7 @@ public final Operation deleteSnapshot(DeleteSnapshotHttpRequest request) { * .build(); * ApiFuture<Operation> future = snapshotClient.deleteSnapshotCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -730,7 +780,7 @@ public final Policy setIamPolicySnapshot(SetIamPolicySnapshotHttpRequest request * try (SnapshotClient snapshotClient = SnapshotClient.create()) { * ProjectGlobalSnapshotResourceName resource = ProjectGlobalSnapshotResourceName.of("[PROJECT]", "[RESOURCE]"); * GlobalSetLabelsRequest globalSetLabelsRequestResource = GlobalSetLabelsRequest.newBuilder().build(); - * Operation response = snapshotClient.setLabelsSnapshot(resource, globalSetLabelsRequestResource); + * snapshotClient.setLabelsSnapshotAsync(resource, globalSetLabelsRequestResource).get(); * } * * @@ -738,8 +788,9 @@ public final Policy setIamPolicySnapshot(SetIamPolicySnapshotHttpRequest request * @param globalSetLabelsRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setLabelsSnapshot( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setLabelsSnapshotAsync( ProjectGlobalSnapshotResourceName resource, GlobalSetLabelsRequest globalSetLabelsRequestResource) { @@ -748,7 +799,7 @@ public final Operation setLabelsSnapshot( .setResource(resource == null ? null : resource.toString()) .setGlobalSetLabelsRequestResource(globalSetLabelsRequestResource) .build(); - return setLabelsSnapshot(request); + return setLabelsSnapshotAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -762,7 +813,7 @@ public final Operation setLabelsSnapshot( * try (SnapshotClient snapshotClient = SnapshotClient.create()) { * ProjectGlobalSnapshotResourceName resource = ProjectGlobalSnapshotResourceName.of("[PROJECT]", "[RESOURCE]"); * GlobalSetLabelsRequest globalSetLabelsRequestResource = GlobalSetLabelsRequest.newBuilder().build(); - * Operation response = snapshotClient.setLabelsSnapshot(resource.toString(), globalSetLabelsRequestResource); + * snapshotClient.setLabelsSnapshotAsync(resource.toString(), globalSetLabelsRequestResource).get(); * } * * @@ -770,8 +821,9 @@ public final Operation setLabelsSnapshot( * @param globalSetLabelsRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setLabelsSnapshot( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setLabelsSnapshotAsync( String resource, GlobalSetLabelsRequest globalSetLabelsRequestResource) { SetLabelsSnapshotHttpRequest request = @@ -779,7 +831,7 @@ public final Operation setLabelsSnapshot( .setResource(resource) .setGlobalSetLabelsRequestResource(globalSetLabelsRequestResource) .build(); - return setLabelsSnapshot(request); + return setLabelsSnapshotAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -797,16 +849,45 @@ public final Operation setLabelsSnapshot( * .setResource(resource.toString()) * .setGlobalSetLabelsRequestResource(globalSetLabelsRequestResource) * .build(); - * Operation response = snapshotClient.setLabelsSnapshot(request); + * snapshotClient.setLabelsSnapshotAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setLabelsSnapshot(SetLabelsSnapshotHttpRequest request) { - return setLabelsSnapshotCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setLabelsSnapshotAsync( + SetLabelsSnapshotHttpRequest request) { + return setLabelsSnapshotOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the labels on a snapshot. To learn more about labels, read the Labeling Resources + * documentation. + * + *

Sample code: + * + *


+   * try (SnapshotClient snapshotClient = SnapshotClient.create()) {
+   *   ProjectGlobalSnapshotResourceName resource = ProjectGlobalSnapshotResourceName.of("[PROJECT]", "[RESOURCE]");
+   *   GlobalSetLabelsRequest globalSetLabelsRequestResource = GlobalSetLabelsRequest.newBuilder().build();
+   *   SetLabelsSnapshotHttpRequest request = SetLabelsSnapshotHttpRequest.newBuilder()
+   *     .setResource(resource.toString())
+   *     .setGlobalSetLabelsRequestResource(globalSetLabelsRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = snapshotClient.setLabelsSnapshotOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + setLabelsSnapshotOperationCallable() { + return stub.setLabelsSnapshotOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -826,7 +907,7 @@ public final Operation setLabelsSnapshot(SetLabelsSnapshotHttpRequest request) { * .build(); * ApiFuture<Operation> future = snapshotClient.setLabelsSnapshotCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotSettings.java index 1bfd437e19ea..141e29431ebc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotSettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteSnapshot to 30 seconds: + * example, to set the total timeout of getSnapshot to 30 seconds: * *

  * 
  * SnapshotSettings.Builder snapshotSettingsBuilder =
  *     SnapshotSettings.newBuilder();
- * snapshotSettingsBuilder.deleteSnapshotSettings().getRetrySettings().toBuilder()
+ * snapshotSettingsBuilder.getSnapshotSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * SnapshotSettings snapshotSettings = snapshotSettingsBuilder.build();
  * 
@@ -68,6 +70,14 @@ public UnaryCallSettings deleteSnapshotSet
     return ((SnapshotStubSettings) getStubSettings()).deleteSnapshotSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteSnapshot. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteSnapshotOperationSettings() {
+    return ((SnapshotStubSettings) getStubSettings()).deleteSnapshotOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getSnapshot. */
   public UnaryCallSettings getSnapshotSettings() {
     return ((SnapshotStubSettings) getStubSettings()).getSnapshotSettings();
@@ -94,6 +104,14 @@ public UnaryCallSettings setLabelsSnaps
     return ((SnapshotStubSettings) getStubSettings()).setLabelsSnapshotSettings();
   }
 
+  /** Returns the object with the settings used for calls to setLabelsSnapshot. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setLabelsSnapshotOperationSettings() {
+    return ((SnapshotStubSettings) getStubSettings()).setLabelsSnapshotOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to testIamPermissionsSnapshot. */
   public UnaryCallSettings
       testIamPermissionsSnapshotSettings() {
@@ -207,6 +225,14 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteSnapshotSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteSnapshot. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteSnapshotOperationSettings() {
+      return getStubSettingsBuilder().deleteSnapshotOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getSnapshot. */
     public UnaryCallSettings.Builder getSnapshotSettings() {
       return getStubSettingsBuilder().getSnapshotSettings();
@@ -237,6 +263,14 @@ public UnaryCallSettings.Builder getSnapshotSe
       return getStubSettingsBuilder().setLabelsSnapshotSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setLabelsSnapshot. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        setLabelsSnapshotOperationSettings() {
+      return getStubSettingsBuilder().setLabelsSnapshotOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to testIamPermissionsSnapshot. */
     public UnaryCallSettings.Builder
         testIamPermissionsSnapshotSettings() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateClient.java
index 8e5ed73bcfe1..eb7223094856 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.SslCertificateStub;
@@ -43,7 +46,7 @@
  * 
  * try (SslCertificateClient sslCertificateClient = SslCertificateClient.create()) {
  *   ProjectGlobalSslCertificateName sslCertificate = ProjectGlobalSslCertificateName.of("[PROJECT]", "[SSL_CERTIFICATE]");
- *   Operation response = sslCertificateClient.deleteSslCertificate(sslCertificate);
+ *   SslCertificate response = sslCertificateClient.getSslCertificate(sslCertificate);
  * }
  * 
  * 
@@ -103,6 +106,7 @@ public class SslCertificateClient implements BackgroundResource { private final SslCertificateSettings settings; private final SslCertificateStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of SslCertificateClient with default settings. */ public static final SslCertificateClient create() throws IOException { @@ -135,12 +139,14 @@ public static final SslCertificateClient create(SslCertificateStub stub) { protected SslCertificateClient(SslCertificateSettings settings) throws IOException { this.settings = settings; this.stub = ((SslCertificateStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected SslCertificateClient(SslCertificateStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final SslCertificateSettings getSettings() { @@ -152,6 +158,16 @@ public SslCertificateStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Deletes the specified SslCertificate resource. @@ -161,21 +177,23 @@ public SslCertificateStub getStub() { *

    * try (SslCertificateClient sslCertificateClient = SslCertificateClient.create()) {
    *   ProjectGlobalSslCertificateName sslCertificate = ProjectGlobalSslCertificateName.of("[PROJECT]", "[SSL_CERTIFICATE]");
-   *   Operation response = sslCertificateClient.deleteSslCertificate(sslCertificate);
+   *   sslCertificateClient.deleteSslCertificateAsync(sslCertificate).get();
    * }
    * 
* * @param sslCertificate Name of the SslCertificate resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteSslCertificate(ProjectGlobalSslCertificateName sslCertificate) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteSslCertificateAsync( + ProjectGlobalSslCertificateName sslCertificate) { DeleteSslCertificateHttpRequest request = DeleteSslCertificateHttpRequest.newBuilder() .setSslCertificate(sslCertificate == null ? null : sslCertificate.toString()) .build(); - return deleteSslCertificate(request); + return deleteSslCertificateAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -187,19 +205,21 @@ public final Operation deleteSslCertificate(ProjectGlobalSslCertificateName sslC *

    * try (SslCertificateClient sslCertificateClient = SslCertificateClient.create()) {
    *   ProjectGlobalSslCertificateName sslCertificate = ProjectGlobalSslCertificateName.of("[PROJECT]", "[SSL_CERTIFICATE]");
-   *   Operation response = sslCertificateClient.deleteSslCertificate(sslCertificate.toString());
+   *   sslCertificateClient.deleteSslCertificateAsync(sslCertificate.toString()).get();
    * }
    * 
* * @param sslCertificate Name of the SslCertificate resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteSslCertificate(String sslCertificate) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteSslCertificateAsync( + String sslCertificate) { DeleteSslCertificateHttpRequest request = DeleteSslCertificateHttpRequest.newBuilder().setSslCertificate(sslCertificate).build(); - return deleteSslCertificate(request); + return deleteSslCertificateAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -214,16 +234,42 @@ public final Operation deleteSslCertificate(String sslCertificate) { * DeleteSslCertificateHttpRequest request = DeleteSslCertificateHttpRequest.newBuilder() * .setSslCertificate(sslCertificate.toString()) * .build(); - * Operation response = sslCertificateClient.deleteSslCertificate(request); + * sslCertificateClient.deleteSslCertificateAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteSslCertificate(DeleteSslCertificateHttpRequest request) { - return deleteSslCertificateCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteSslCertificateAsync( + DeleteSslCertificateHttpRequest request) { + return deleteSslCertificateOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified SslCertificate resource. + * + *

Sample code: + * + *


+   * try (SslCertificateClient sslCertificateClient = SslCertificateClient.create()) {
+   *   ProjectGlobalSslCertificateName sslCertificate = ProjectGlobalSslCertificateName.of("[PROJECT]", "[SSL_CERTIFICATE]");
+   *   DeleteSslCertificateHttpRequest request = DeleteSslCertificateHttpRequest.newBuilder()
+   *     .setSslCertificate(sslCertificate.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = sslCertificateClient.deleteSslCertificateOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteSslCertificateOperationCallable() { + return stub.deleteSslCertificateOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -240,7 +286,7 @@ public final Operation deleteSslCertificate(DeleteSslCertificateHttpRequest requ * .build(); * ApiFuture<Operation> future = sslCertificateClient.deleteSslCertificateCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -363,7 +409,7 @@ public final SslCertificate getSslCertificate(GetSslCertificateHttpRequest reque * try (SslCertificateClient sslCertificateClient = SslCertificateClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * SslCertificate sslCertificateResource = SslCertificate.newBuilder().build(); - * Operation response = sslCertificateClient.insertSslCertificate(project, sslCertificateResource); + * sslCertificateClient.insertSslCertificateAsync(project, sslCertificateResource).get(); * } * * @@ -373,8 +419,9 @@ public final SslCertificate getSslCertificate(GetSslCertificateHttpRequest reque * user. (== resource_for beta.sslCertificates ==) (== resource_for v1.sslCertificates ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertSslCertificate( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertSslCertificateAsync( ProjectName project, SslCertificate sslCertificateResource) { InsertSslCertificateHttpRequest request = @@ -382,7 +429,7 @@ public final Operation insertSslCertificate( .setProject(project == null ? null : project.toString()) .setSslCertificateResource(sslCertificateResource) .build(); - return insertSslCertificate(request); + return insertSslCertificateAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -396,7 +443,7 @@ public final Operation insertSslCertificate( * try (SslCertificateClient sslCertificateClient = SslCertificateClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * SslCertificate sslCertificateResource = SslCertificate.newBuilder().build(); - * Operation response = sslCertificateClient.insertSslCertificate(project.toString(), sslCertificateResource); + * sslCertificateClient.insertSslCertificateAsync(project.toString(), sslCertificateResource).get(); * } * * @@ -406,8 +453,9 @@ public final Operation insertSslCertificate( * user. (== resource_for beta.sslCertificates ==) (== resource_for v1.sslCertificates ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertSslCertificate( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertSslCertificateAsync( String project, SslCertificate sslCertificateResource) { InsertSslCertificateHttpRequest request = @@ -415,7 +463,7 @@ public final Operation insertSslCertificate( .setProject(project) .setSslCertificateResource(sslCertificateResource) .build(); - return insertSslCertificate(request); + return insertSslCertificateAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -433,16 +481,45 @@ public final Operation insertSslCertificate( * .setProject(project.toString()) * .setSslCertificateResource(sslCertificateResource) * .build(); - * Operation response = sslCertificateClient.insertSslCertificate(request); + * sslCertificateClient.insertSslCertificateAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertSslCertificate(InsertSslCertificateHttpRequest request) { - return insertSslCertificateCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertSslCertificateAsync( + InsertSslCertificateHttpRequest request) { + return insertSslCertificateOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a SslCertificate resource in the specified project using the data included in the + * request. + * + *

Sample code: + * + *


+   * try (SslCertificateClient sslCertificateClient = SslCertificateClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   SslCertificate sslCertificateResource = SslCertificate.newBuilder().build();
+   *   InsertSslCertificateHttpRequest request = InsertSslCertificateHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setSslCertificateResource(sslCertificateResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = sslCertificateClient.insertSslCertificateOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertSslCertificateOperationCallable() { + return stub.insertSslCertificateOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -462,7 +539,7 @@ public final Operation insertSslCertificate(InsertSslCertificateHttpRequest requ * .build(); * ApiFuture<Operation> future = sslCertificateClient.insertSslCertificateCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateSettings.java index c258d13ad827..82497aab3829 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateSettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteSslCertificate to 30 seconds: + * example, to set the total timeout of getSslCertificate to 30 seconds: * *

  * 
  * SslCertificateSettings.Builder sslCertificateSettingsBuilder =
  *     SslCertificateSettings.newBuilder();
- * sslCertificateSettingsBuilder.deleteSslCertificateSettings().getRetrySettings().toBuilder()
+ * sslCertificateSettingsBuilder.getSslCertificateSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * SslCertificateSettings sslCertificateSettings = sslCertificateSettingsBuilder.build();
  * 
@@ -69,6 +71,14 @@ public class SslCertificateSettings extends ClientSettings
+      deleteSslCertificateOperationSettings() {
+    return ((SslCertificateStubSettings) getStubSettings()).deleteSslCertificateOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getSslCertificate. */
   public UnaryCallSettings
       getSslCertificateSettings() {
@@ -81,6 +91,14 @@ public class SslCertificateSettings extends ClientSettings
+      insertSslCertificateOperationSettings() {
+    return ((SslCertificateStubSettings) getStubSettings()).insertSslCertificateOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listSslCertificates. */
   public PagedCallSettings<
           ListSslCertificatesHttpRequest, SslCertificateList, ListSslCertificatesPagedResponse>
@@ -196,6 +214,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteSslCertificateSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteSslCertificate. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteSslCertificateHttpRequest, EmptyMessage, EmptyMessage>
+        deleteSslCertificateOperationSettings() {
+      return getStubSettingsBuilder().deleteSslCertificateOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getSslCertificate. */
     public UnaryCallSettings.Builder
         getSslCertificateSettings() {
@@ -208,6 +235,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertSslCertificateSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertSslCertificate. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertSslCertificateHttpRequest, EmptyMessage, EmptyMessage>
+        insertSslCertificateOperationSettings() {
+      return getStubSettingsBuilder().insertSslCertificateOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listSslCertificates. */
     public PagedCallSettings.Builder<
             ListSslCertificatesHttpRequest, SslCertificateList, ListSslCertificatesPagedResponse>
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyClient.java
index 843b7f63b18b..22de1023da4e 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.SslPolicyStub;
@@ -43,7 +46,7 @@
  * 
  * try (SslPolicyClient sslPolicyClient = SslPolicyClient.create()) {
  *   ProjectGlobalSslPolicyName sslPolicy = ProjectGlobalSslPolicyName.of("[PROJECT]", "[SSL_POLICY]");
- *   Operation response = sslPolicyClient.deleteSslPolicy(sslPolicy);
+ *   SslPolicy response = sslPolicyClient.getSslPolicy(sslPolicy);
  * }
  * 
  * 
@@ -103,6 +106,7 @@ public class SslPolicyClient implements BackgroundResource { private final SslPolicySettings settings; private final SslPolicyStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of SslPolicyClient with default settings. */ public static final SslPolicyClient create() throws IOException { @@ -133,12 +137,14 @@ public static final SslPolicyClient create(SslPolicyStub stub) { protected SslPolicyClient(SslPolicySettings settings) throws IOException { this.settings = settings; this.stub = ((SslPolicyStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected SslPolicyClient(SslPolicyStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final SslPolicySettings getSettings() { @@ -150,6 +156,16 @@ public SslPolicyStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in @@ -160,7 +176,7 @@ public SslPolicyStub getStub() { *

    * try (SslPolicyClient sslPolicyClient = SslPolicyClient.create()) {
    *   ProjectGlobalSslPolicyName sslPolicy = ProjectGlobalSslPolicyName.of("[PROJECT]", "[SSL_POLICY]");
-   *   Operation response = sslPolicyClient.deleteSslPolicy(sslPolicy);
+   *   sslPolicyClient.deleteSslPolicyAsync(sslPolicy).get();
    * }
    * 
* @@ -168,14 +184,16 @@ public SslPolicyStub getStub() { * comply with RFC1035. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteSslPolicy(ProjectGlobalSslPolicyName sslPolicy) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteSslPolicyAsync( + ProjectGlobalSslPolicyName sslPolicy) { DeleteSslPolicyHttpRequest request = DeleteSslPolicyHttpRequest.newBuilder() .setSslPolicy(sslPolicy == null ? null : sslPolicy.toString()) .build(); - return deleteSslPolicy(request); + return deleteSslPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -188,7 +206,7 @@ public final Operation deleteSslPolicy(ProjectGlobalSslPolicyName sslPolicy) { *

    * try (SslPolicyClient sslPolicyClient = SslPolicyClient.create()) {
    *   ProjectGlobalSslPolicyName sslPolicy = ProjectGlobalSslPolicyName.of("[PROJECT]", "[SSL_POLICY]");
-   *   Operation response = sslPolicyClient.deleteSslPolicy(sslPolicy.toString());
+   *   sslPolicyClient.deleteSslPolicyAsync(sslPolicy.toString()).get();
    * }
    * 
* @@ -196,12 +214,13 @@ public final Operation deleteSslPolicy(ProjectGlobalSslPolicyName sslPolicy) { * comply with RFC1035. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteSslPolicy(String sslPolicy) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteSslPolicyAsync(String sslPolicy) { DeleteSslPolicyHttpRequest request = DeleteSslPolicyHttpRequest.newBuilder().setSslPolicy(sslPolicy).build(); - return deleteSslPolicy(request); + return deleteSslPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -217,16 +236,43 @@ public final Operation deleteSslPolicy(String sslPolicy) { * DeleteSslPolicyHttpRequest request = DeleteSslPolicyHttpRequest.newBuilder() * .setSslPolicy(sslPolicy.toString()) * .build(); - * Operation response = sslPolicyClient.deleteSslPolicy(request); + * sslPolicyClient.deleteSslPolicyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteSslPolicy(DeleteSslPolicyHttpRequest request) { - return deleteSslPolicyCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteSslPolicyAsync( + DeleteSslPolicyHttpRequest request) { + return deleteSslPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in + * use by any TargetHttpsProxy or TargetSslProxy resources. + * + *

Sample code: + * + *


+   * try (SslPolicyClient sslPolicyClient = SslPolicyClient.create()) {
+   *   ProjectGlobalSslPolicyName sslPolicy = ProjectGlobalSslPolicyName.of("[PROJECT]", "[SSL_POLICY]");
+   *   DeleteSslPolicyHttpRequest request = DeleteSslPolicyHttpRequest.newBuilder()
+   *     .setSslPolicy(sslPolicy.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = sslPolicyClient.deleteSslPolicyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteSslPolicyOperationCallable() { + return stub.deleteSslPolicyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -244,7 +290,7 @@ public final Operation deleteSslPolicy(DeleteSslPolicyHttpRequest request) { * .build(); * ApiFuture<Operation> future = sslPolicyClient.deleteSslPolicyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -363,7 +409,7 @@ public final UnaryCallable getSslPolicyCalla * try (SslPolicyClient sslPolicyClient = SslPolicyClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * SslPolicy sslPolicyResource = SslPolicy.newBuilder().build(); - * Operation response = sslPolicyClient.insertSslPolicy(project, sslPolicyResource); + * sslPolicyClient.insertSslPolicyAsync(project, sslPolicyResource).get(); * } * * @@ -374,15 +420,17 @@ public final UnaryCallable getSslPolicyCalla * the load balancers and the backends. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertSslPolicy(ProjectName project, SslPolicy sslPolicyResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertSslPolicyAsync( + ProjectName project, SslPolicy sslPolicyResource) { InsertSslPolicyHttpRequest request = InsertSslPolicyHttpRequest.newBuilder() .setProject(project == null ? null : project.toString()) .setSslPolicyResource(sslPolicyResource) .build(); - return insertSslPolicy(request); + return insertSslPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -396,7 +444,7 @@ public final Operation insertSslPolicy(ProjectName project, SslPolicy sslPolicyR * try (SslPolicyClient sslPolicyClient = SslPolicyClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * SslPolicy sslPolicyResource = SslPolicy.newBuilder().build(); - * Operation response = sslPolicyClient.insertSslPolicy(project.toString(), sslPolicyResource); + * sslPolicyClient.insertSslPolicyAsync(project.toString(), sslPolicyResource).get(); * } * * @@ -407,15 +455,17 @@ public final Operation insertSslPolicy(ProjectName project, SslPolicy sslPolicyR * the load balancers and the backends. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertSslPolicy(String project, SslPolicy sslPolicyResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertSslPolicyAsync( + String project, SslPolicy sslPolicyResource) { InsertSslPolicyHttpRequest request = InsertSslPolicyHttpRequest.newBuilder() .setProject(project) .setSslPolicyResource(sslPolicyResource) .build(); - return insertSslPolicy(request); + return insertSslPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -433,16 +483,45 @@ public final Operation insertSslPolicy(String project, SslPolicy sslPolicyResour * .setProject(project.toString()) * .setSslPolicyResource(sslPolicyResource) * .build(); - * Operation response = sslPolicyClient.insertSslPolicy(request); + * sslPolicyClient.insertSslPolicyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertSslPolicy(InsertSslPolicyHttpRequest request) { - return insertSslPolicyCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertSslPolicyAsync( + InsertSslPolicyHttpRequest request) { + return insertSslPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns the specified SSL policy resource. Gets a list of available SSL policies by making a + * list() request. + * + *

Sample code: + * + *


+   * try (SslPolicyClient sslPolicyClient = SslPolicyClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   SslPolicy sslPolicyResource = SslPolicy.newBuilder().build();
+   *   InsertSslPolicyHttpRequest request = InsertSslPolicyHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setSslPolicyResource(sslPolicyResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = sslPolicyClient.insertSslPolicyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertSslPolicyOperationCallable() { + return stub.insertSslPolicyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -462,7 +541,7 @@ public final Operation insertSslPolicy(InsertSslPolicyHttpRequest request) { * .build(); * ApiFuture<Operation> future = sslPolicyClient.insertSslPolicyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -721,7 +800,7 @@ public final SslPoliciesListAvailableFeaturesResponse listAvailableFeaturesSslPo * ProjectGlobalSslPolicyName sslPolicy = ProjectGlobalSslPolicyName.of("[PROJECT]", "[SSL_POLICY]"); * SslPolicy sslPolicyResource = SslPolicy.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = sslPolicyClient.patchSslPolicy(sslPolicy, sslPolicyResource, fieldMask); + * sslPolicyClient.patchSslPolicyAsync(sslPolicy, sslPolicyResource, fieldMask).get(); * } * * @@ -737,8 +816,9 @@ public final SslPoliciesListAvailableFeaturesResponse listAvailableFeaturesSslPo * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchSslPolicy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchSslPolicyAsync( ProjectGlobalSslPolicyName sslPolicy, SslPolicy sslPolicyResource, List fieldMask) { PatchSslPolicyHttpRequest request = @@ -747,7 +827,7 @@ public final Operation patchSslPolicy( .setSslPolicyResource(sslPolicyResource) .addAllFieldMask(fieldMask) .build(); - return patchSslPolicy(request); + return patchSslPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -761,7 +841,7 @@ public final Operation patchSslPolicy( * ProjectGlobalSslPolicyName sslPolicy = ProjectGlobalSslPolicyName.of("[PROJECT]", "[SSL_POLICY]"); * SslPolicy sslPolicyResource = SslPolicy.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = sslPolicyClient.patchSslPolicy(sslPolicy.toString(), sslPolicyResource, fieldMask); + * sslPolicyClient.patchSslPolicyAsync(sslPolicy.toString(), sslPolicyResource, fieldMask).get(); * } * * @@ -777,8 +857,9 @@ public final Operation patchSslPolicy( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchSslPolicy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchSslPolicyAsync( String sslPolicy, SslPolicy sslPolicyResource, List fieldMask) { PatchSslPolicyHttpRequest request = @@ -787,7 +868,7 @@ public final Operation patchSslPolicy( .setSslPolicyResource(sslPolicyResource) .addAllFieldMask(fieldMask) .build(); - return patchSslPolicy(request); + return patchSslPolicyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -806,16 +887,46 @@ public final Operation patchSslPolicy( * .setSslPolicyResource(sslPolicyResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = sslPolicyClient.patchSslPolicy(request); + * sslPolicyClient.patchSslPolicyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchSslPolicy(PatchSslPolicyHttpRequest request) { - return patchSslPolicyCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchSslPolicyAsync( + PatchSslPolicyHttpRequest request) { + return patchSslPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Patches the specified SSL policy with the data included in the request. + * + *

Sample code: + * + *


+   * try (SslPolicyClient sslPolicyClient = SslPolicyClient.create()) {
+   *   ProjectGlobalSslPolicyName sslPolicy = ProjectGlobalSslPolicyName.of("[PROJECT]", "[SSL_POLICY]");
+   *   SslPolicy sslPolicyResource = SslPolicy.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   PatchSslPolicyHttpRequest request = PatchSslPolicyHttpRequest.newBuilder()
+   *     .setSslPolicy(sslPolicy.toString())
+   *     .setSslPolicyResource(sslPolicyResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = sslPolicyClient.patchSslPolicyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + patchSslPolicyOperationCallable() { + return stub.patchSslPolicyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -836,7 +947,7 @@ public final Operation patchSslPolicy(PatchSslPolicyHttpRequest request) { * .build(); * ApiFuture<Operation> future = sslPolicyClient.patchSslPolicyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicySettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicySettings.java index c68915971db3..a320d7cbe238 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicySettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicySettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteSslPolicy to 30 seconds: + * example, to set the total timeout of getSslPolicy to 30 seconds: * *

  * 
  * SslPolicySettings.Builder sslPolicySettingsBuilder =
  *     SslPolicySettings.newBuilder();
- * sslPolicySettingsBuilder.deleteSslPolicySettings().getRetrySettings().toBuilder()
+ * sslPolicySettingsBuilder.getSslPolicySettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * SslPolicySettings sslPolicySettings = sslPolicySettingsBuilder.build();
  * 
@@ -68,6 +70,14 @@ public UnaryCallSettings deleteSslPolicyS
     return ((SslPolicyStubSettings) getStubSettings()).deleteSslPolicySettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteSslPolicy. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteSslPolicyOperationSettings() {
+    return ((SslPolicyStubSettings) getStubSettings()).deleteSslPolicyOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getSslPolicy. */
   public UnaryCallSettings getSslPolicySettings() {
     return ((SslPolicyStubSettings) getStubSettings()).getSslPolicySettings();
@@ -78,6 +88,14 @@ public UnaryCallSettings insertSslPolicyS
     return ((SslPolicyStubSettings) getStubSettings()).insertSslPolicySettings();
   }
 
+  /** Returns the object with the settings used for calls to insertSslPolicy. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertSslPolicyOperationSettings() {
+    return ((SslPolicyStubSettings) getStubSettings()).insertSslPolicyOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listSslPolicies. */
   public PagedCallSettings<
           ListSslPoliciesHttpRequest, SslPoliciesList, ListSslPoliciesPagedResponse>
@@ -97,6 +115,14 @@ public UnaryCallSettings patchSslPolicySet
     return ((SslPolicyStubSettings) getStubSettings()).patchSslPolicySettings();
   }
 
+  /** Returns the object with the settings used for calls to patchSslPolicy. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchSslPolicyOperationSettings() {
+    return ((SslPolicyStubSettings) getStubSettings()).patchSslPolicyOperationSettings();
+  }
+
   public static final SslPolicySettings create(SslPolicyStubSettings stub) throws IOException {
     return new SslPolicySettings.Builder(stub.toBuilder()).build();
   }
@@ -204,6 +230,14 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteSslPolicySettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteSslPolicy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteSslPolicyOperationSettings() {
+      return getStubSettingsBuilder().deleteSslPolicyOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getSslPolicy. */
     public UnaryCallSettings.Builder getSslPolicySettings() {
       return getStubSettingsBuilder().getSslPolicySettings();
@@ -215,6 +249,14 @@ public UnaryCallSettings.Builder getSslPolic
       return getStubSettingsBuilder().insertSslPolicySettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertSslPolicy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertSslPolicyOperationSettings() {
+      return getStubSettingsBuilder().insertSslPolicyOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listSslPolicies. */
     public PagedCallSettings.Builder<
             ListSslPoliciesHttpRequest, SslPoliciesList, ListSslPoliciesPagedResponse>
@@ -235,6 +277,14 @@ public UnaryCallSettings.Builder getSslPolic
       return getStubSettingsBuilder().patchSslPolicySettings();
     }
 
+    /** Returns the builder for the settings used for calls to patchSslPolicy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchSslPolicyOperationSettings() {
+      return getStubSettingsBuilder().patchSslPolicyOperationSettings();
+    }
+
     @Override
     public SslPolicySettings build() throws IOException {
       return new SslPolicySettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java
index bb80c9d6c130..c0329572baaa 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.SubnetworkStub;
@@ -43,7 +46,7 @@
  * 
  * try (SubnetworkClient subnetworkClient = SubnetworkClient.create()) {
  *   ProjectRegionSubnetworkName subnetwork = ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]");
- *   Operation response = subnetworkClient.deleteSubnetwork(subnetwork);
+ *   Subnetwork response = subnetworkClient.getSubnetwork(subnetwork);
  * }
  * 
  * 
@@ -103,6 +106,7 @@ public class SubnetworkClient implements BackgroundResource { private final SubnetworkSettings settings; private final SubnetworkStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of SubnetworkClient with default settings. */ public static final SubnetworkClient create() throws IOException { @@ -133,12 +137,14 @@ public static final SubnetworkClient create(SubnetworkStub stub) { protected SubnetworkClient(SubnetworkSettings settings) throws IOException { this.settings = settings; this.stub = ((SubnetworkStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected SubnetworkClient(SubnetworkStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final SubnetworkSettings getSettings() { @@ -150,6 +156,16 @@ public SubnetworkStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Retrieves an aggregated list of subnetworks. @@ -299,21 +315,23 @@ public final AggregatedListSubnetworksPagedResponse aggregatedListSubnetworks( *

    * try (SubnetworkClient subnetworkClient = SubnetworkClient.create()) {
    *   ProjectRegionSubnetworkName subnetwork = ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]");
-   *   Operation response = subnetworkClient.deleteSubnetwork(subnetwork);
+   *   subnetworkClient.deleteSubnetworkAsync(subnetwork).get();
    * }
    * 
* * @param subnetwork Name of the Subnetwork resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteSubnetwork(ProjectRegionSubnetworkName subnetwork) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteSubnetworkAsync( + ProjectRegionSubnetworkName subnetwork) { DeleteSubnetworkHttpRequest request = DeleteSubnetworkHttpRequest.newBuilder() .setSubnetwork(subnetwork == null ? null : subnetwork.toString()) .build(); - return deleteSubnetwork(request); + return deleteSubnetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -325,19 +343,21 @@ public final Operation deleteSubnetwork(ProjectRegionSubnetworkName subnetwork) *

    * try (SubnetworkClient subnetworkClient = SubnetworkClient.create()) {
    *   ProjectRegionSubnetworkName subnetwork = ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]");
-   *   Operation response = subnetworkClient.deleteSubnetwork(subnetwork.toString());
+   *   subnetworkClient.deleteSubnetworkAsync(subnetwork.toString()).get();
    * }
    * 
* * @param subnetwork Name of the Subnetwork resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteSubnetwork(String subnetwork) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteSubnetworkAsync( + String subnetwork) { DeleteSubnetworkHttpRequest request = DeleteSubnetworkHttpRequest.newBuilder().setSubnetwork(subnetwork).build(); - return deleteSubnetwork(request); + return deleteSubnetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -352,16 +372,42 @@ public final Operation deleteSubnetwork(String subnetwork) { * DeleteSubnetworkHttpRequest request = DeleteSubnetworkHttpRequest.newBuilder() * .setSubnetwork(subnetwork.toString()) * .build(); - * Operation response = subnetworkClient.deleteSubnetwork(request); + * subnetworkClient.deleteSubnetworkAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteSubnetwork(DeleteSubnetworkHttpRequest request) { - return deleteSubnetworkCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteSubnetworkAsync( + DeleteSubnetworkHttpRequest request) { + return deleteSubnetworkOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified subnetwork. + * + *

Sample code: + * + *


+   * try (SubnetworkClient subnetworkClient = SubnetworkClient.create()) {
+   *   ProjectRegionSubnetworkName subnetwork = ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]");
+   *   DeleteSubnetworkHttpRequest request = DeleteSubnetworkHttpRequest.newBuilder()
+   *     .setSubnetwork(subnetwork.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = subnetworkClient.deleteSubnetworkOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteSubnetworkOperationCallable() { + return stub.deleteSubnetworkOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -378,7 +424,7 @@ public final Operation deleteSubnetwork(DeleteSubnetworkHttpRequest request) { * .build(); * ApiFuture<Operation> future = subnetworkClient.deleteSubnetworkCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -397,7 +443,7 @@ public final UnaryCallable deleteSubnetw * try (SubnetworkClient subnetworkClient = SubnetworkClient.create()) { * ProjectRegionSubnetworkName subnetwork = ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]"); * SubnetworksExpandIpCidrRangeRequest subnetworksExpandIpCidrRangeRequestResource = SubnetworksExpandIpCidrRangeRequest.newBuilder().build(); - * Operation response = subnetworkClient.expandIpCidrRangeSubnetwork(subnetwork, subnetworksExpandIpCidrRangeRequestResource); + * subnetworkClient.expandIpCidrRangeSubnetworkAsync(subnetwork, subnetworksExpandIpCidrRangeRequestResource).get(); * } * * @@ -405,8 +451,9 @@ public final UnaryCallable deleteSubnetw * @param subnetworksExpandIpCidrRangeRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation expandIpCidrRangeSubnetwork( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture expandIpCidrRangeSubnetworkAsync( ProjectRegionSubnetworkName subnetwork, SubnetworksExpandIpCidrRangeRequest subnetworksExpandIpCidrRangeRequestResource) { @@ -416,7 +463,7 @@ public final Operation expandIpCidrRangeSubnetwork( .setSubnetworksExpandIpCidrRangeRequestResource( subnetworksExpandIpCidrRangeRequestResource) .build(); - return expandIpCidrRangeSubnetwork(request); + return expandIpCidrRangeSubnetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -429,7 +476,7 @@ public final Operation expandIpCidrRangeSubnetwork( * try (SubnetworkClient subnetworkClient = SubnetworkClient.create()) { * ProjectRegionSubnetworkName subnetwork = ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]"); * SubnetworksExpandIpCidrRangeRequest subnetworksExpandIpCidrRangeRequestResource = SubnetworksExpandIpCidrRangeRequest.newBuilder().build(); - * Operation response = subnetworkClient.expandIpCidrRangeSubnetwork(subnetwork.toString(), subnetworksExpandIpCidrRangeRequestResource); + * subnetworkClient.expandIpCidrRangeSubnetworkAsync(subnetwork.toString(), subnetworksExpandIpCidrRangeRequestResource).get(); * } * * @@ -437,8 +484,9 @@ public final Operation expandIpCidrRangeSubnetwork( * @param subnetworksExpandIpCidrRangeRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation expandIpCidrRangeSubnetwork( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture expandIpCidrRangeSubnetworkAsync( String subnetwork, SubnetworksExpandIpCidrRangeRequest subnetworksExpandIpCidrRangeRequestResource) { @@ -448,7 +496,7 @@ public final Operation expandIpCidrRangeSubnetwork( .setSubnetworksExpandIpCidrRangeRequestResource( subnetworksExpandIpCidrRangeRequestResource) .build(); - return expandIpCidrRangeSubnetwork(request); + return expandIpCidrRangeSubnetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -465,17 +513,44 @@ public final Operation expandIpCidrRangeSubnetwork( * .setSubnetwork(subnetwork.toString()) * .setSubnetworksExpandIpCidrRangeRequestResource(subnetworksExpandIpCidrRangeRequestResource) * .build(); - * Operation response = subnetworkClient.expandIpCidrRangeSubnetwork(request); + * subnetworkClient.expandIpCidrRangeSubnetworkAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation expandIpCidrRangeSubnetwork( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture expandIpCidrRangeSubnetworkAsync( ExpandIpCidrRangeSubnetworkHttpRequest request) { - return expandIpCidrRangeSubnetworkCallable().call(request); + return expandIpCidrRangeSubnetworkOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Expands the IP CIDR range of the subnetwork to a specified value. + * + *

Sample code: + * + *


+   * try (SubnetworkClient subnetworkClient = SubnetworkClient.create()) {
+   *   ProjectRegionSubnetworkName subnetwork = ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]");
+   *   SubnetworksExpandIpCidrRangeRequest subnetworksExpandIpCidrRangeRequestResource = SubnetworksExpandIpCidrRangeRequest.newBuilder().build();
+   *   ExpandIpCidrRangeSubnetworkHttpRequest request = ExpandIpCidrRangeSubnetworkHttpRequest.newBuilder()
+   *     .setSubnetwork(subnetwork.toString())
+   *     .setSubnetworksExpandIpCidrRangeRequestResource(subnetworksExpandIpCidrRangeRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = subnetworkClient.expandIpCidrRangeSubnetworkOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + expandIpCidrRangeSubnetworkOperationCallable() { + return stub.expandIpCidrRangeSubnetworkOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -494,7 +569,7 @@ public final Operation expandIpCidrRangeSubnetwork( * .build(); * ApiFuture<Operation> future = subnetworkClient.expandIpCidrRangeSubnetworkCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -713,7 +788,7 @@ public final Policy getIamPolicySubnetwork(GetIamPolicySubnetworkHttpRequest req * try (SubnetworkClient subnetworkClient = SubnetworkClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * Subnetwork subnetworkResource = Subnetwork.newBuilder().build(); - * Operation response = subnetworkClient.insertSubnetwork(region, subnetworkResource); + * subnetworkClient.insertSubnetworkAsync(region, subnetworkResource).get(); * } * * @@ -722,15 +797,17 @@ public final Policy getIamPolicySubnetwork(GetIamPolicySubnetworkHttpRequest req * resource_for v1.subnetworks ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertSubnetwork(ProjectRegionName region, Subnetwork subnetworkResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertSubnetworkAsync( + ProjectRegionName region, Subnetwork subnetworkResource) { InsertSubnetworkHttpRequest request = InsertSubnetworkHttpRequest.newBuilder() .setRegion(region == null ? null : region.toString()) .setSubnetworkResource(subnetworkResource) .build(); - return insertSubnetwork(request); + return insertSubnetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -743,7 +820,7 @@ public final Operation insertSubnetwork(ProjectRegionName region, Subnetwork sub * try (SubnetworkClient subnetworkClient = SubnetworkClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * Subnetwork subnetworkResource = Subnetwork.newBuilder().build(); - * Operation response = subnetworkClient.insertSubnetwork(region.toString(), subnetworkResource); + * subnetworkClient.insertSubnetworkAsync(region.toString(), subnetworkResource).get(); * } * * @@ -752,15 +829,17 @@ public final Operation insertSubnetwork(ProjectRegionName region, Subnetwork sub * resource_for v1.subnetworks ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertSubnetwork(String region, Subnetwork subnetworkResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertSubnetworkAsync( + String region, Subnetwork subnetworkResource) { InsertSubnetworkHttpRequest request = InsertSubnetworkHttpRequest.newBuilder() .setRegion(region) .setSubnetworkResource(subnetworkResource) .build(); - return insertSubnetwork(request); + return insertSubnetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -777,16 +856,44 @@ public final Operation insertSubnetwork(String region, Subnetwork subnetworkReso * .setRegion(region.toString()) * .setSubnetworkResource(subnetworkResource) * .build(); - * Operation response = subnetworkClient.insertSubnetwork(request); + * subnetworkClient.insertSubnetworkAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertSubnetwork(InsertSubnetworkHttpRequest request) { - return insertSubnetworkCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertSubnetworkAsync( + InsertSubnetworkHttpRequest request) { + return insertSubnetworkOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a subnetwork in the specified project using the data included in the request. + * + *

Sample code: + * + *


+   * try (SubnetworkClient subnetworkClient = SubnetworkClient.create()) {
+   *   ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
+   *   Subnetwork subnetworkResource = Subnetwork.newBuilder().build();
+   *   InsertSubnetworkHttpRequest request = InsertSubnetworkHttpRequest.newBuilder()
+   *     .setRegion(region.toString())
+   *     .setSubnetworkResource(subnetworkResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = subnetworkClient.insertSubnetworkOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertSubnetworkOperationCallable() { + return stub.insertSubnetworkOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -805,7 +912,7 @@ public final Operation insertSubnetwork(InsertSubnetworkHttpRequest request) { * .build(); * ApiFuture<Operation> future = subnetworkClient.insertSubnetworkCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1101,7 +1208,7 @@ public final ListUsableSubnetworksPagedResponse listUsableSubnetworks( * ProjectRegionSubnetworkName subnetwork = ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]"); * Subnetwork subnetworkResource = Subnetwork.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = subnetworkClient.patchSubnetwork(subnetwork, subnetworkResource, fieldMask); + * subnetworkClient.patchSubnetworkAsync(subnetwork, subnetworkResource, fieldMask).get(); * } * * @@ -1114,8 +1221,9 @@ public final ListUsableSubnetworksPagedResponse listUsableSubnetworks( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchSubnetwork( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchSubnetworkAsync( ProjectRegionSubnetworkName subnetwork, Subnetwork subnetworkResource, List fieldMask) { @@ -1126,7 +1234,7 @@ public final Operation patchSubnetwork( .setSubnetworkResource(subnetworkResource) .addAllFieldMask(fieldMask) .build(); - return patchSubnetwork(request); + return patchSubnetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1142,7 +1250,7 @@ public final Operation patchSubnetwork( * ProjectRegionSubnetworkName subnetwork = ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]"); * Subnetwork subnetworkResource = Subnetwork.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = subnetworkClient.patchSubnetwork(subnetwork.toString(), subnetworkResource, fieldMask); + * subnetworkClient.patchSubnetworkAsync(subnetwork.toString(), subnetworkResource, fieldMask).get(); * } * * @@ -1155,8 +1263,9 @@ public final Operation patchSubnetwork( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchSubnetwork( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchSubnetworkAsync( String subnetwork, Subnetwork subnetworkResource, List fieldMask) { PatchSubnetworkHttpRequest request = @@ -1165,7 +1274,7 @@ public final Operation patchSubnetwork( .setSubnetworkResource(subnetworkResource) .addAllFieldMask(fieldMask) .build(); - return patchSubnetwork(request); + return patchSubnetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1186,16 +1295,48 @@ public final Operation patchSubnetwork( * .setSubnetworkResource(subnetworkResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = subnetworkClient.patchSubnetwork(request); + * subnetworkClient.patchSubnetworkAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchSubnetwork(PatchSubnetworkHttpRequest request) { - return patchSubnetworkCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchSubnetworkAsync( + PatchSubnetworkHttpRequest request) { + return patchSubnetworkOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Patches the specified subnetwork with the data included in the request. Only certain fields can + * up updated with a patch request as indicated in the field descriptions. You must specify the + * current fingeprint of the subnetwork resource being patched. + * + *

Sample code: + * + *


+   * try (SubnetworkClient subnetworkClient = SubnetworkClient.create()) {
+   *   ProjectRegionSubnetworkName subnetwork = ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]");
+   *   Subnetwork subnetworkResource = Subnetwork.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   PatchSubnetworkHttpRequest request = PatchSubnetworkHttpRequest.newBuilder()
+   *     .setSubnetwork(subnetwork.toString())
+   *     .setSubnetworkResource(subnetworkResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = subnetworkClient.patchSubnetworkOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + patchSubnetworkOperationCallable() { + return stub.patchSubnetworkOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1218,7 +1359,7 @@ public final Operation patchSubnetwork(PatchSubnetworkHttpRequest request) { * .build(); * ApiFuture<Operation> future = subnetworkClient.patchSubnetworkCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1351,7 +1492,7 @@ public final Policy setIamPolicySubnetwork(SetIamPolicySubnetworkHttpRequest req * try (SubnetworkClient subnetworkClient = SubnetworkClient.create()) { * ProjectRegionSubnetworkName subnetwork = ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]"); * SubnetworksSetPrivateIpGoogleAccessRequest subnetworksSetPrivateIpGoogleAccessRequestResource = SubnetworksSetPrivateIpGoogleAccessRequest.newBuilder().build(); - * Operation response = subnetworkClient.setPrivateIpGoogleAccessSubnetwork(subnetwork, subnetworksSetPrivateIpGoogleAccessRequestResource); + * subnetworkClient.setPrivateIpGoogleAccessSubnetworkAsync(subnetwork, subnetworksSetPrivateIpGoogleAccessRequestResource).get(); * } * * @@ -1359,8 +1500,9 @@ public final Policy setIamPolicySubnetwork(SetIamPolicySubnetworkHttpRequest req * @param subnetworksSetPrivateIpGoogleAccessRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setPrivateIpGoogleAccessSubnetwork( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setPrivateIpGoogleAccessSubnetworkAsync( ProjectRegionSubnetworkName subnetwork, SubnetworksSetPrivateIpGoogleAccessRequest subnetworksSetPrivateIpGoogleAccessRequestResource) { @@ -1371,7 +1513,7 @@ public final Operation setPrivateIpGoogleAccessSubnetwork( .setSubnetworksSetPrivateIpGoogleAccessRequestResource( subnetworksSetPrivateIpGoogleAccessRequestResource) .build(); - return setPrivateIpGoogleAccessSubnetwork(request); + return setPrivateIpGoogleAccessSubnetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1385,7 +1527,7 @@ public final Operation setPrivateIpGoogleAccessSubnetwork( * try (SubnetworkClient subnetworkClient = SubnetworkClient.create()) { * ProjectRegionSubnetworkName subnetwork = ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]"); * SubnetworksSetPrivateIpGoogleAccessRequest subnetworksSetPrivateIpGoogleAccessRequestResource = SubnetworksSetPrivateIpGoogleAccessRequest.newBuilder().build(); - * Operation response = subnetworkClient.setPrivateIpGoogleAccessSubnetwork(subnetwork.toString(), subnetworksSetPrivateIpGoogleAccessRequestResource); + * subnetworkClient.setPrivateIpGoogleAccessSubnetworkAsync(subnetwork.toString(), subnetworksSetPrivateIpGoogleAccessRequestResource).get(); * } * * @@ -1393,8 +1535,9 @@ public final Operation setPrivateIpGoogleAccessSubnetwork( * @param subnetworksSetPrivateIpGoogleAccessRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setPrivateIpGoogleAccessSubnetwork( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setPrivateIpGoogleAccessSubnetworkAsync( String subnetwork, SubnetworksSetPrivateIpGoogleAccessRequest subnetworksSetPrivateIpGoogleAccessRequestResource) { @@ -1405,7 +1548,7 @@ public final Operation setPrivateIpGoogleAccessSubnetwork( .setSubnetworksSetPrivateIpGoogleAccessRequestResource( subnetworksSetPrivateIpGoogleAccessRequestResource) .build(); - return setPrivateIpGoogleAccessSubnetwork(request); + return setPrivateIpGoogleAccessSubnetworkAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1423,17 +1566,46 @@ public final Operation setPrivateIpGoogleAccessSubnetwork( * .setSubnetwork(subnetwork.toString()) * .setSubnetworksSetPrivateIpGoogleAccessRequestResource(subnetworksSetPrivateIpGoogleAccessRequestResource) * .build(); - * Operation response = subnetworkClient.setPrivateIpGoogleAccessSubnetwork(request); + * subnetworkClient.setPrivateIpGoogleAccessSubnetworkAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setPrivateIpGoogleAccessSubnetwork( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setPrivateIpGoogleAccessSubnetworkAsync( SetPrivateIpGoogleAccessSubnetworkHttpRequest request) { - return setPrivateIpGoogleAccessSubnetworkCallable().call(request); + return setPrivateIpGoogleAccessSubnetworkOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Set whether VMs in this subnet can access Google services without assigning external IP + * addresses through Private Google Access. + * + *

Sample code: + * + *


+   * try (SubnetworkClient subnetworkClient = SubnetworkClient.create()) {
+   *   ProjectRegionSubnetworkName subnetwork = ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]");
+   *   SubnetworksSetPrivateIpGoogleAccessRequest subnetworksSetPrivateIpGoogleAccessRequestResource = SubnetworksSetPrivateIpGoogleAccessRequest.newBuilder().build();
+   *   SetPrivateIpGoogleAccessSubnetworkHttpRequest request = SetPrivateIpGoogleAccessSubnetworkHttpRequest.newBuilder()
+   *     .setSubnetwork(subnetwork.toString())
+   *     .setSubnetworksSetPrivateIpGoogleAccessRequestResource(subnetworksSetPrivateIpGoogleAccessRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = subnetworkClient.setPrivateIpGoogleAccessSubnetworkOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, EmptyMessage> + setPrivateIpGoogleAccessSubnetworkOperationCallable() { + return stub.setPrivateIpGoogleAccessSubnetworkOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1453,7 +1625,7 @@ public final Operation setPrivateIpGoogleAccessSubnetwork( * .build(); * ApiFuture<Operation> future = subnetworkClient.setPrivateIpGoogleAccessSubnetworkCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkSettings.java index 39c44a77cf32..87e9656c807a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkSettings.java @@ -23,10 +23,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -50,13 +52,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteSubnetwork to 30 seconds: + * example, to set the total timeout of getSubnetwork to 30 seconds: * *

  * 
  * SubnetworkSettings.Builder subnetworkSettingsBuilder =
  *     SubnetworkSettings.newBuilder();
- * subnetworkSettingsBuilder.deleteSubnetworkSettings().getRetrySettings().toBuilder()
+ * subnetworkSettingsBuilder.getSubnetworkSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * SubnetworkSettings subnetworkSettings = subnetworkSettingsBuilder.build();
  * 
@@ -79,12 +81,29 @@ public UnaryCallSettings deleteSubnetwor
     return ((SubnetworkStubSettings) getStubSettings()).deleteSubnetworkSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteSubnetwork. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteSubnetworkOperationSettings() {
+    return ((SubnetworkStubSettings) getStubSettings()).deleteSubnetworkOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to expandIpCidrRangeSubnetwork. */
   public UnaryCallSettings
       expandIpCidrRangeSubnetworkSettings() {
     return ((SubnetworkStubSettings) getStubSettings()).expandIpCidrRangeSubnetworkSettings();
   }
 
+  /** Returns the object with the settings used for calls to expandIpCidrRangeSubnetwork. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      expandIpCidrRangeSubnetworkOperationSettings() {
+    return ((SubnetworkStubSettings) getStubSettings())
+        .expandIpCidrRangeSubnetworkOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getSubnetwork. */
   public UnaryCallSettings getSubnetworkSettings() {
     return ((SubnetworkStubSettings) getStubSettings()).getSubnetworkSettings();
@@ -101,6 +120,14 @@ public UnaryCallSettings insertSubnetwor
     return ((SubnetworkStubSettings) getStubSettings()).insertSubnetworkSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertSubnetwork. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertSubnetworkOperationSettings() {
+    return ((SubnetworkStubSettings) getStubSettings()).insertSubnetworkOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listSubnetworks. */
   public PagedCallSettings
       listSubnetworksSettings() {
@@ -121,6 +148,14 @@ public UnaryCallSettings patchSubnetworkS
     return ((SubnetworkStubSettings) getStubSettings()).patchSubnetworkSettings();
   }
 
+  /** Returns the object with the settings used for calls to patchSubnetwork. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchSubnetworkOperationSettings() {
+    return ((SubnetworkStubSettings) getStubSettings()).patchSubnetworkOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setIamPolicySubnetwork. */
   public UnaryCallSettings
       setIamPolicySubnetworkSettings() {
@@ -134,6 +169,16 @@ public UnaryCallSettings patchSubnetworkS
         .setPrivateIpGoogleAccessSubnetworkSettings();
   }
 
+  /** Returns the object with the settings used for calls to setPrivateIpGoogleAccessSubnetwork. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, EmptyMessage>
+      setPrivateIpGoogleAccessSubnetworkOperationSettings() {
+    return ((SubnetworkStubSettings) getStubSettings())
+        .setPrivateIpGoogleAccessSubnetworkOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to testIamPermissionsSubnetwork. */
   public UnaryCallSettings
       testIamPermissionsSubnetworkSettings() {
@@ -256,12 +301,29 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteSubnetworkSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteSubnetwork. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteSubnetworkOperationSettings() {
+      return getStubSettingsBuilder().deleteSubnetworkOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to expandIpCidrRangeSubnetwork. */
     public UnaryCallSettings.Builder
         expandIpCidrRangeSubnetworkSettings() {
       return getStubSettingsBuilder().expandIpCidrRangeSubnetworkSettings();
     }
 
+    /** Returns the builder for the settings used for calls to expandIpCidrRangeSubnetwork. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            ExpandIpCidrRangeSubnetworkHttpRequest, EmptyMessage, EmptyMessage>
+        expandIpCidrRangeSubnetworkOperationSettings() {
+      return getStubSettingsBuilder().expandIpCidrRangeSubnetworkOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getSubnetwork. */
     public UnaryCallSettings.Builder getSubnetworkSettings() {
       return getStubSettingsBuilder().getSubnetworkSettings();
@@ -279,6 +341,14 @@ public UnaryCallSettings.Builder getSubnet
       return getStubSettingsBuilder().insertSubnetworkSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertSubnetwork. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertSubnetworkOperationSettings() {
+      return getStubSettingsBuilder().insertSubnetworkOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listSubnetworks. */
     public PagedCallSettings.Builder<
             ListSubnetworksHttpRequest, SubnetworkList, ListSubnetworksPagedResponse>
@@ -301,6 +371,14 @@ public UnaryCallSettings.Builder getSubnet
       return getStubSettingsBuilder().patchSubnetworkSettings();
     }
 
+    /** Returns the builder for the settings used for calls to patchSubnetwork. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchSubnetworkOperationSettings() {
+      return getStubSettingsBuilder().patchSubnetworkOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setIamPolicySubnetwork. */
     public UnaryCallSettings.Builder
         setIamPolicySubnetworkSettings() {
@@ -315,6 +393,17 @@ public UnaryCallSettings.Builder getSubnet
       return getStubSettingsBuilder().setPrivateIpGoogleAccessSubnetworkSettings();
     }
 
+    /**
+     * Returns the builder for the settings used for calls to setPrivateIpGoogleAccessSubnetwork.
+     */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, EmptyMessage>
+        setPrivateIpGoogleAccessSubnetworkOperationSettings() {
+      return getStubSettingsBuilder().setPrivateIpGoogleAccessSubnetworkOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to testIamPermissionsSubnetwork. */
     public UnaryCallSettings.Builder<
             TestIamPermissionsSubnetworkHttpRequest, TestPermissionsResponse>
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyClient.java
index 235e0176e5ef..17718f5fe6c5 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.TargetHttpProxyStub;
@@ -43,7 +46,7 @@
  * 
  * try (TargetHttpProxyClient targetHttpProxyClient = TargetHttpProxyClient.create()) {
  *   ProjectGlobalTargetHttpProxyName targetHttpProxy = ProjectGlobalTargetHttpProxyName.of("[PROJECT]", "[TARGET_HTTP_PROXY]");
- *   Operation response = targetHttpProxyClient.deleteTargetHttpProxy(targetHttpProxy);
+ *   TargetHttpProxy response = targetHttpProxyClient.getTargetHttpProxy(targetHttpProxy);
  * }
  * 
  * 
@@ -104,6 +107,7 @@ public class TargetHttpProxyClient implements BackgroundResource { private final TargetHttpProxySettings settings; private final TargetHttpProxyStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of TargetHttpProxyClient with default settings. */ public static final TargetHttpProxyClient create() throws IOException { @@ -136,12 +140,14 @@ public static final TargetHttpProxyClient create(TargetHttpProxyStub stub) { protected TargetHttpProxyClient(TargetHttpProxySettings settings) throws IOException { this.settings = settings; this.stub = ((TargetHttpProxyStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected TargetHttpProxyClient(TargetHttpProxyStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final TargetHttpProxySettings getSettings() { @@ -153,6 +159,16 @@ public TargetHttpProxyStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Deletes the specified TargetHttpProxy resource. @@ -162,21 +178,23 @@ public TargetHttpProxyStub getStub() { *

    * try (TargetHttpProxyClient targetHttpProxyClient = TargetHttpProxyClient.create()) {
    *   ProjectGlobalTargetHttpProxyName targetHttpProxy = ProjectGlobalTargetHttpProxyName.of("[PROJECT]", "[TARGET_HTTP_PROXY]");
-   *   Operation response = targetHttpProxyClient.deleteTargetHttpProxy(targetHttpProxy);
+   *   targetHttpProxyClient.deleteTargetHttpProxyAsync(targetHttpProxy).get();
    * }
    * 
* * @param targetHttpProxy Name of the TargetHttpProxy resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteTargetHttpProxy(ProjectGlobalTargetHttpProxyName targetHttpProxy) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteTargetHttpProxyAsync( + ProjectGlobalTargetHttpProxyName targetHttpProxy) { DeleteTargetHttpProxyHttpRequest request = DeleteTargetHttpProxyHttpRequest.newBuilder() .setTargetHttpProxy(targetHttpProxy == null ? null : targetHttpProxy.toString()) .build(); - return deleteTargetHttpProxy(request); + return deleteTargetHttpProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -188,19 +206,21 @@ public final Operation deleteTargetHttpProxy(ProjectGlobalTargetHttpProxyName ta *

    * try (TargetHttpProxyClient targetHttpProxyClient = TargetHttpProxyClient.create()) {
    *   ProjectGlobalTargetHttpProxyName targetHttpProxy = ProjectGlobalTargetHttpProxyName.of("[PROJECT]", "[TARGET_HTTP_PROXY]");
-   *   Operation response = targetHttpProxyClient.deleteTargetHttpProxy(targetHttpProxy.toString());
+   *   targetHttpProxyClient.deleteTargetHttpProxyAsync(targetHttpProxy.toString()).get();
    * }
    * 
* * @param targetHttpProxy Name of the TargetHttpProxy resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteTargetHttpProxy(String targetHttpProxy) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteTargetHttpProxyAsync( + String targetHttpProxy) { DeleteTargetHttpProxyHttpRequest request = DeleteTargetHttpProxyHttpRequest.newBuilder().setTargetHttpProxy(targetHttpProxy).build(); - return deleteTargetHttpProxy(request); + return deleteTargetHttpProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -215,16 +235,42 @@ public final Operation deleteTargetHttpProxy(String targetHttpProxy) { * DeleteTargetHttpProxyHttpRequest request = DeleteTargetHttpProxyHttpRequest.newBuilder() * .setTargetHttpProxy(targetHttpProxy.toString()) * .build(); - * Operation response = targetHttpProxyClient.deleteTargetHttpProxy(request); + * targetHttpProxyClient.deleteTargetHttpProxyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteTargetHttpProxy(DeleteTargetHttpProxyHttpRequest request) { - return deleteTargetHttpProxyCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteTargetHttpProxyAsync( + DeleteTargetHttpProxyHttpRequest request) { + return deleteTargetHttpProxyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified TargetHttpProxy resource. + * + *

Sample code: + * + *


+   * try (TargetHttpProxyClient targetHttpProxyClient = TargetHttpProxyClient.create()) {
+   *   ProjectGlobalTargetHttpProxyName targetHttpProxy = ProjectGlobalTargetHttpProxyName.of("[PROJECT]", "[TARGET_HTTP_PROXY]");
+   *   DeleteTargetHttpProxyHttpRequest request = DeleteTargetHttpProxyHttpRequest.newBuilder()
+   *     .setTargetHttpProxy(targetHttpProxy.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetHttpProxyClient.deleteTargetHttpProxyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteTargetHttpProxyOperationCallable() { + return stub.deleteTargetHttpProxyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -241,7 +287,7 @@ public final Operation deleteTargetHttpProxy(DeleteTargetHttpProxyHttpRequest re * .build(); * ApiFuture<Operation> future = targetHttpProxyClient.deleteTargetHttpProxyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -365,7 +411,7 @@ public final TargetHttpProxy getTargetHttpProxy(GetTargetHttpProxyHttpRequest re * try (TargetHttpProxyClient targetHttpProxyClient = TargetHttpProxyClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * TargetHttpProxy targetHttpProxyResource = TargetHttpProxy.newBuilder().build(); - * Operation response = targetHttpProxyClient.insertTargetHttpProxy(project, targetHttpProxyResource); + * targetHttpProxyClient.insertTargetHttpProxyAsync(project, targetHttpProxyResource).get(); * } * * @@ -374,8 +420,9 @@ public final TargetHttpProxy getTargetHttpProxy(GetTargetHttpProxyHttpRequest re * (== resource_for beta.targetHttpProxies ==) (== resource_for v1.targetHttpProxies ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertTargetHttpProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertTargetHttpProxyAsync( ProjectName project, TargetHttpProxy targetHttpProxyResource) { InsertTargetHttpProxyHttpRequest request = @@ -383,7 +430,7 @@ public final Operation insertTargetHttpProxy( .setProject(project == null ? null : project.toString()) .setTargetHttpProxyResource(targetHttpProxyResource) .build(); - return insertTargetHttpProxy(request); + return insertTargetHttpProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -397,7 +444,7 @@ public final Operation insertTargetHttpProxy( * try (TargetHttpProxyClient targetHttpProxyClient = TargetHttpProxyClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * TargetHttpProxy targetHttpProxyResource = TargetHttpProxy.newBuilder().build(); - * Operation response = targetHttpProxyClient.insertTargetHttpProxy(project.toString(), targetHttpProxyResource); + * targetHttpProxyClient.insertTargetHttpProxyAsync(project.toString(), targetHttpProxyResource).get(); * } * * @@ -406,8 +453,9 @@ public final Operation insertTargetHttpProxy( * (== resource_for beta.targetHttpProxies ==) (== resource_for v1.targetHttpProxies ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertTargetHttpProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertTargetHttpProxyAsync( String project, TargetHttpProxy targetHttpProxyResource) { InsertTargetHttpProxyHttpRequest request = @@ -415,7 +463,7 @@ public final Operation insertTargetHttpProxy( .setProject(project) .setTargetHttpProxyResource(targetHttpProxyResource) .build(); - return insertTargetHttpProxy(request); + return insertTargetHttpProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -433,16 +481,45 @@ public final Operation insertTargetHttpProxy( * .setProject(project.toString()) * .setTargetHttpProxyResource(targetHttpProxyResource) * .build(); - * Operation response = targetHttpProxyClient.insertTargetHttpProxy(request); + * targetHttpProxyClient.insertTargetHttpProxyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertTargetHttpProxy(InsertTargetHttpProxyHttpRequest request) { - return insertTargetHttpProxyCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertTargetHttpProxyAsync( + InsertTargetHttpProxyHttpRequest request) { + return insertTargetHttpProxyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a TargetHttpProxy resource in the specified project using the data included in the + * request. + * + *

Sample code: + * + *


+   * try (TargetHttpProxyClient targetHttpProxyClient = TargetHttpProxyClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   TargetHttpProxy targetHttpProxyResource = TargetHttpProxy.newBuilder().build();
+   *   InsertTargetHttpProxyHttpRequest request = InsertTargetHttpProxyHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setTargetHttpProxyResource(targetHttpProxyResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetHttpProxyClient.insertTargetHttpProxyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertTargetHttpProxyOperationCallable() { + return stub.insertTargetHttpProxyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -462,7 +539,7 @@ public final Operation insertTargetHttpProxy(InsertTargetHttpProxyHttpRequest re * .build(); * ApiFuture<Operation> future = targetHttpProxyClient.insertTargetHttpProxyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -620,7 +697,7 @@ public final ListTargetHttpProxiesPagedResponse listTargetHttpProxies( * try (TargetHttpProxyClient targetHttpProxyClient = TargetHttpProxyClient.create()) { * ProjectTargetHttpProxyName targetHttpProxy = ProjectTargetHttpProxyName.of("[PROJECT]", "[TARGET_HTTP_PROXY]"); * UrlMapReference urlMapReferenceResource = UrlMapReference.newBuilder().build(); - * Operation response = targetHttpProxyClient.setUrlMapTargetHttpProxy(targetHttpProxy, urlMapReferenceResource); + * targetHttpProxyClient.setUrlMapTargetHttpProxyAsync(targetHttpProxy, urlMapReferenceResource).get(); * } * * @@ -628,8 +705,9 @@ public final ListTargetHttpProxiesPagedResponse listTargetHttpProxies( * @param urlMapReferenceResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setUrlMapTargetHttpProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setUrlMapTargetHttpProxyAsync( ProjectTargetHttpProxyName targetHttpProxy, UrlMapReference urlMapReferenceResource) { SetUrlMapTargetHttpProxyHttpRequest request = @@ -637,7 +715,7 @@ public final Operation setUrlMapTargetHttpProxy( .setTargetHttpProxy(targetHttpProxy == null ? null : targetHttpProxy.toString()) .setUrlMapReferenceResource(urlMapReferenceResource) .build(); - return setUrlMapTargetHttpProxy(request); + return setUrlMapTargetHttpProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -650,7 +728,7 @@ public final Operation setUrlMapTargetHttpProxy( * try (TargetHttpProxyClient targetHttpProxyClient = TargetHttpProxyClient.create()) { * ProjectTargetHttpProxyName targetHttpProxy = ProjectTargetHttpProxyName.of("[PROJECT]", "[TARGET_HTTP_PROXY]"); * UrlMapReference urlMapReferenceResource = UrlMapReference.newBuilder().build(); - * Operation response = targetHttpProxyClient.setUrlMapTargetHttpProxy(targetHttpProxy.toString(), urlMapReferenceResource); + * targetHttpProxyClient.setUrlMapTargetHttpProxyAsync(targetHttpProxy.toString(), urlMapReferenceResource).get(); * } * * @@ -658,8 +736,9 @@ public final Operation setUrlMapTargetHttpProxy( * @param urlMapReferenceResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setUrlMapTargetHttpProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setUrlMapTargetHttpProxyAsync( String targetHttpProxy, UrlMapReference urlMapReferenceResource) { SetUrlMapTargetHttpProxyHttpRequest request = @@ -667,7 +746,7 @@ public final Operation setUrlMapTargetHttpProxy( .setTargetHttpProxy(targetHttpProxy) .setUrlMapReferenceResource(urlMapReferenceResource) .build(); - return setUrlMapTargetHttpProxy(request); + return setUrlMapTargetHttpProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -684,16 +763,44 @@ public final Operation setUrlMapTargetHttpProxy( * .setTargetHttpProxy(targetHttpProxy.toString()) * .setUrlMapReferenceResource(urlMapReferenceResource) * .build(); - * Operation response = targetHttpProxyClient.setUrlMapTargetHttpProxy(request); + * targetHttpProxyClient.setUrlMapTargetHttpProxyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setUrlMapTargetHttpProxy(SetUrlMapTargetHttpProxyHttpRequest request) { - return setUrlMapTargetHttpProxyCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setUrlMapTargetHttpProxyAsync( + SetUrlMapTargetHttpProxyHttpRequest request) { + return setUrlMapTargetHttpProxyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Changes the URL map for TargetHttpProxy. + * + *

Sample code: + * + *


+   * try (TargetHttpProxyClient targetHttpProxyClient = TargetHttpProxyClient.create()) {
+   *   ProjectTargetHttpProxyName targetHttpProxy = ProjectTargetHttpProxyName.of("[PROJECT]", "[TARGET_HTTP_PROXY]");
+   *   UrlMapReference urlMapReferenceResource = UrlMapReference.newBuilder().build();
+   *   SetUrlMapTargetHttpProxyHttpRequest request = SetUrlMapTargetHttpProxyHttpRequest.newBuilder()
+   *     .setTargetHttpProxy(targetHttpProxy.toString())
+   *     .setUrlMapReferenceResource(urlMapReferenceResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetHttpProxyClient.setUrlMapTargetHttpProxyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + setUrlMapTargetHttpProxyOperationCallable() { + return stub.setUrlMapTargetHttpProxyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -712,7 +819,7 @@ public final Operation setUrlMapTargetHttpProxy(SetUrlMapTargetHttpProxyHttpRequ * .build(); * ApiFuture<Operation> future = targetHttpProxyClient.setUrlMapTargetHttpProxyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxySettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxySettings.java index 74c33bda6d1c..479971a22704 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxySettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxySettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteTargetHttpProxy to 30 seconds: + * example, to set the total timeout of getTargetHttpProxy to 30 seconds: * *

  * 
  * TargetHttpProxySettings.Builder targetHttpProxySettingsBuilder =
  *     TargetHttpProxySettings.newBuilder();
- * targetHttpProxySettingsBuilder.deleteTargetHttpProxySettings().getRetrySettings().toBuilder()
+ * targetHttpProxySettingsBuilder.getTargetHttpProxySettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * TargetHttpProxySettings targetHttpProxySettings = targetHttpProxySettingsBuilder.build();
  * 
@@ -69,6 +71,15 @@ public class TargetHttpProxySettings extends ClientSettings
+      deleteTargetHttpProxyOperationSettings() {
+    return ((TargetHttpProxyStubSettings) getStubSettings())
+        .deleteTargetHttpProxyOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getTargetHttpProxy. */
   public UnaryCallSettings
       getTargetHttpProxySettings() {
@@ -81,6 +92,15 @@ public class TargetHttpProxySettings extends ClientSettings
+      insertTargetHttpProxyOperationSettings() {
+    return ((TargetHttpProxyStubSettings) getStubSettings())
+        .insertTargetHttpProxyOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listTargetHttpProxies. */
   public PagedCallSettings<
           ListTargetHttpProxiesHttpRequest, TargetHttpProxyList, ListTargetHttpProxiesPagedResponse>
@@ -94,6 +114,15 @@ public class TargetHttpProxySettings extends ClientSettings
+      setUrlMapTargetHttpProxyOperationSettings() {
+    return ((TargetHttpProxyStubSettings) getStubSettings())
+        .setUrlMapTargetHttpProxyOperationSettings();
+  }
+
   public static final TargetHttpProxySettings create(TargetHttpProxyStubSettings stub)
       throws IOException {
     return new TargetHttpProxySettings.Builder(stub.toBuilder()).build();
@@ -202,6 +231,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteTargetHttpProxySettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteTargetHttpProxy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteTargetHttpProxyHttpRequest, EmptyMessage, EmptyMessage>
+        deleteTargetHttpProxyOperationSettings() {
+      return getStubSettingsBuilder().deleteTargetHttpProxyOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getTargetHttpProxy. */
     public UnaryCallSettings.Builder
         getTargetHttpProxySettings() {
@@ -214,6 +252,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertTargetHttpProxySettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertTargetHttpProxy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertTargetHttpProxyHttpRequest, EmptyMessage, EmptyMessage>
+        insertTargetHttpProxyOperationSettings() {
+      return getStubSettingsBuilder().insertTargetHttpProxyOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listTargetHttpProxies. */
     public PagedCallSettings.Builder<
             ListTargetHttpProxiesHttpRequest,
@@ -229,6 +276,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().setUrlMapTargetHttpProxySettings();
     }
 
+    /** Returns the builder for the settings used for calls to setUrlMapTargetHttpProxy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetUrlMapTargetHttpProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setUrlMapTargetHttpProxyOperationSettings() {
+      return getStubSettingsBuilder().setUrlMapTargetHttpProxyOperationSettings();
+    }
+
     @Override
     public TargetHttpProxySettings build() throws IOException {
       return new TargetHttpProxySettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyClient.java
index 439a5944f737..39f83661a292 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.TargetHttpsProxyStub;
@@ -43,7 +46,7 @@
  * 
  * try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
  *   ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
- *   Operation response = targetHttpsProxyClient.deleteTargetHttpsProxy(targetHttpsProxy);
+ *   TargetHttpsProxy response = targetHttpsProxyClient.getTargetHttpsProxy(targetHttpsProxy);
  * }
  * 
  * 
@@ -104,6 +107,7 @@ public class TargetHttpsProxyClient implements BackgroundResource { private final TargetHttpsProxySettings settings; private final TargetHttpsProxyStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of TargetHttpsProxyClient with default settings. */ public static final TargetHttpsProxyClient create() throws IOException { @@ -136,12 +140,14 @@ public static final TargetHttpsProxyClient create(TargetHttpsProxyStub stub) { protected TargetHttpsProxyClient(TargetHttpsProxySettings settings) throws IOException { this.settings = settings; this.stub = ((TargetHttpsProxyStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected TargetHttpsProxyClient(TargetHttpsProxyStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final TargetHttpsProxySettings getSettings() { @@ -153,6 +159,16 @@ public TargetHttpsProxyStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Deletes the specified TargetHttpsProxy resource. @@ -162,22 +178,23 @@ public TargetHttpsProxyStub getStub() { *

    * try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
    *   ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
-   *   Operation response = targetHttpsProxyClient.deleteTargetHttpsProxy(targetHttpsProxy);
+   *   targetHttpsProxyClient.deleteTargetHttpsProxyAsync(targetHttpsProxy).get();
    * }
    * 
* * @param targetHttpsProxy Name of the TargetHttpsProxy resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteTargetHttpsProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteTargetHttpsProxyAsync( ProjectGlobalTargetHttpsProxyName targetHttpsProxy) { DeleteTargetHttpsProxyHttpRequest request = DeleteTargetHttpsProxyHttpRequest.newBuilder() .setTargetHttpsProxy(targetHttpsProxy == null ? null : targetHttpsProxy.toString()) .build(); - return deleteTargetHttpsProxy(request); + return deleteTargetHttpsProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -189,21 +206,23 @@ public final Operation deleteTargetHttpsProxy( *

    * try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
    *   ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
-   *   Operation response = targetHttpsProxyClient.deleteTargetHttpsProxy(targetHttpsProxy.toString());
+   *   targetHttpsProxyClient.deleteTargetHttpsProxyAsync(targetHttpsProxy.toString()).get();
    * }
    * 
* * @param targetHttpsProxy Name of the TargetHttpsProxy resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteTargetHttpsProxy(String targetHttpsProxy) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteTargetHttpsProxyAsync( + String targetHttpsProxy) { DeleteTargetHttpsProxyHttpRequest request = DeleteTargetHttpsProxyHttpRequest.newBuilder() .setTargetHttpsProxy(targetHttpsProxy) .build(); - return deleteTargetHttpsProxy(request); + return deleteTargetHttpsProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -218,16 +237,42 @@ public final Operation deleteTargetHttpsProxy(String targetHttpsProxy) { * DeleteTargetHttpsProxyHttpRequest request = DeleteTargetHttpsProxyHttpRequest.newBuilder() * .setTargetHttpsProxy(targetHttpsProxy.toString()) * .build(); - * Operation response = targetHttpsProxyClient.deleteTargetHttpsProxy(request); + * targetHttpsProxyClient.deleteTargetHttpsProxyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteTargetHttpsProxy(DeleteTargetHttpsProxyHttpRequest request) { - return deleteTargetHttpsProxyCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteTargetHttpsProxyAsync( + DeleteTargetHttpsProxyHttpRequest request) { + return deleteTargetHttpsProxyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified TargetHttpsProxy resource. + * + *

Sample code: + * + *


+   * try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
+   *   ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
+   *   DeleteTargetHttpsProxyHttpRequest request = DeleteTargetHttpsProxyHttpRequest.newBuilder()
+   *     .setTargetHttpsProxy(targetHttpsProxy.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetHttpsProxyClient.deleteTargetHttpsProxyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteTargetHttpsProxyOperationCallable() { + return stub.deleteTargetHttpsProxyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -244,7 +289,7 @@ public final Operation deleteTargetHttpsProxy(DeleteTargetHttpsProxyHttpRequest * .build(); * ApiFuture<Operation> future = targetHttpsProxyClient.deleteTargetHttpsProxyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -368,7 +413,7 @@ public final TargetHttpsProxy getTargetHttpsProxy(GetTargetHttpsProxyHttpRequest * try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * TargetHttpsProxy targetHttpsProxyResource = TargetHttpsProxy.newBuilder().build(); - * Operation response = targetHttpsProxyClient.insertTargetHttpsProxy(project, targetHttpsProxyResource); + * targetHttpsProxyClient.insertTargetHttpsProxyAsync(project, targetHttpsProxyResource).get(); * } * * @@ -378,8 +423,9 @@ public final TargetHttpsProxy getTargetHttpsProxy(GetTargetHttpsProxyHttpRequest * ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertTargetHttpsProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertTargetHttpsProxyAsync( ProjectName project, TargetHttpsProxy targetHttpsProxyResource) { InsertTargetHttpsProxyHttpRequest request = @@ -387,7 +433,7 @@ public final Operation insertTargetHttpsProxy( .setProject(project == null ? null : project.toString()) .setTargetHttpsProxyResource(targetHttpsProxyResource) .build(); - return insertTargetHttpsProxy(request); + return insertTargetHttpsProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -401,7 +447,7 @@ public final Operation insertTargetHttpsProxy( * try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * TargetHttpsProxy targetHttpsProxyResource = TargetHttpsProxy.newBuilder().build(); - * Operation response = targetHttpsProxyClient.insertTargetHttpsProxy(project.toString(), targetHttpsProxyResource); + * targetHttpsProxyClient.insertTargetHttpsProxyAsync(project.toString(), targetHttpsProxyResource).get(); * } * * @@ -411,8 +457,9 @@ public final Operation insertTargetHttpsProxy( * ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertTargetHttpsProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertTargetHttpsProxyAsync( String project, TargetHttpsProxy targetHttpsProxyResource) { InsertTargetHttpsProxyHttpRequest request = @@ -420,7 +467,7 @@ public final Operation insertTargetHttpsProxy( .setProject(project) .setTargetHttpsProxyResource(targetHttpsProxyResource) .build(); - return insertTargetHttpsProxy(request); + return insertTargetHttpsProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -438,16 +485,45 @@ public final Operation insertTargetHttpsProxy( * .setProject(project.toString()) * .setTargetHttpsProxyResource(targetHttpsProxyResource) * .build(); - * Operation response = targetHttpsProxyClient.insertTargetHttpsProxy(request); + * targetHttpsProxyClient.insertTargetHttpsProxyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertTargetHttpsProxy(InsertTargetHttpsProxyHttpRequest request) { - return insertTargetHttpsProxyCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertTargetHttpsProxyAsync( + InsertTargetHttpsProxyHttpRequest request) { + return insertTargetHttpsProxyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a TargetHttpsProxy resource in the specified project using the data included in the + * request. + * + *

Sample code: + * + *


+   * try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   TargetHttpsProxy targetHttpsProxyResource = TargetHttpsProxy.newBuilder().build();
+   *   InsertTargetHttpsProxyHttpRequest request = InsertTargetHttpsProxyHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setTargetHttpsProxyResource(targetHttpsProxyResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetHttpsProxyClient.insertTargetHttpsProxyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertTargetHttpsProxyOperationCallable() { + return stub.insertTargetHttpsProxyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -467,7 +543,7 @@ public final Operation insertTargetHttpsProxy(InsertTargetHttpsProxyHttpRequest * .build(); * ApiFuture<Operation> future = targetHttpsProxyClient.insertTargetHttpsProxyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -625,7 +701,7 @@ public final ListTargetHttpsProxiesPagedResponse listTargetHttpsProxies( * try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) { * ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]"); * TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource = TargetHttpsProxiesSetQuicOverrideRequest.newBuilder().build(); - * Operation response = targetHttpsProxyClient.setQuicOverrideTargetHttpsProxy(targetHttpsProxy, targetHttpsProxiesSetQuicOverrideRequestResource); + * targetHttpsProxyClient.setQuicOverrideTargetHttpsProxyAsync(targetHttpsProxy, targetHttpsProxiesSetQuicOverrideRequestResource).get(); * } * * @@ -634,8 +710,9 @@ public final ListTargetHttpsProxiesPagedResponse listTargetHttpsProxies( * @param targetHttpsProxiesSetQuicOverrideRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setQuicOverrideTargetHttpsProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setQuicOverrideTargetHttpsProxyAsync( ProjectGlobalTargetHttpsProxyName targetHttpsProxy, TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource) { @@ -645,7 +722,7 @@ public final Operation setQuicOverrideTargetHttpsProxy( .setTargetHttpsProxiesSetQuicOverrideRequestResource( targetHttpsProxiesSetQuicOverrideRequestResource) .build(); - return setQuicOverrideTargetHttpsProxy(request); + return setQuicOverrideTargetHttpsProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -658,7 +735,7 @@ public final Operation setQuicOverrideTargetHttpsProxy( * try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) { * ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]"); * TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource = TargetHttpsProxiesSetQuicOverrideRequest.newBuilder().build(); - * Operation response = targetHttpsProxyClient.setQuicOverrideTargetHttpsProxy(targetHttpsProxy.toString(), targetHttpsProxiesSetQuicOverrideRequestResource); + * targetHttpsProxyClient.setQuicOverrideTargetHttpsProxyAsync(targetHttpsProxy.toString(), targetHttpsProxiesSetQuicOverrideRequestResource).get(); * } * * @@ -667,8 +744,9 @@ public final Operation setQuicOverrideTargetHttpsProxy( * @param targetHttpsProxiesSetQuicOverrideRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setQuicOverrideTargetHttpsProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setQuicOverrideTargetHttpsProxyAsync( String targetHttpsProxy, TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource) { @@ -678,7 +756,7 @@ public final Operation setQuicOverrideTargetHttpsProxy( .setTargetHttpsProxiesSetQuicOverrideRequestResource( targetHttpsProxiesSetQuicOverrideRequestResource) .build(); - return setQuicOverrideTargetHttpsProxy(request); + return setQuicOverrideTargetHttpsProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -695,17 +773,45 @@ public final Operation setQuicOverrideTargetHttpsProxy( * .setTargetHttpsProxy(targetHttpsProxy.toString()) * .setTargetHttpsProxiesSetQuicOverrideRequestResource(targetHttpsProxiesSetQuicOverrideRequestResource) * .build(); - * Operation response = targetHttpsProxyClient.setQuicOverrideTargetHttpsProxy(request); + * targetHttpsProxyClient.setQuicOverrideTargetHttpsProxyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setQuicOverrideTargetHttpsProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setQuicOverrideTargetHttpsProxyAsync( SetQuicOverrideTargetHttpsProxyHttpRequest request) { - return setQuicOverrideTargetHttpsProxyCallable().call(request); + return setQuicOverrideTargetHttpsProxyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the QUIC override policy for TargetHttpsProxy. + * + *

Sample code: + * + *


+   * try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
+   *   ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
+   *   TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource = TargetHttpsProxiesSetQuicOverrideRequest.newBuilder().build();
+   *   SetQuicOverrideTargetHttpsProxyHttpRequest request = SetQuicOverrideTargetHttpsProxyHttpRequest.newBuilder()
+   *     .setTargetHttpsProxy(targetHttpsProxy.toString())
+   *     .setTargetHttpsProxiesSetQuicOverrideRequestResource(targetHttpsProxiesSetQuicOverrideRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetHttpsProxyClient.setQuicOverrideTargetHttpsProxyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + SetQuicOverrideTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + setQuicOverrideTargetHttpsProxyOperationCallable() { + return stub.setQuicOverrideTargetHttpsProxyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -724,7 +830,7 @@ public final Operation setQuicOverrideTargetHttpsProxy( * .build(); * ApiFuture<Operation> future = targetHttpsProxyClient.setQuicOverrideTargetHttpsProxyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -744,7 +850,7 @@ public final Operation setQuicOverrideTargetHttpsProxy( * try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) { * ProjectTargetHttpsProxyName targetHttpsProxy = ProjectTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]"); * TargetHttpsProxiesSetSslCertificatesRequest targetHttpsProxiesSetSslCertificatesRequestResource = TargetHttpsProxiesSetSslCertificatesRequest.newBuilder().build(); - * Operation response = targetHttpsProxyClient.setSslCertificatesTargetHttpsProxy(targetHttpsProxy, targetHttpsProxiesSetSslCertificatesRequestResource); + * targetHttpsProxyClient.setSslCertificatesTargetHttpsProxyAsync(targetHttpsProxy, targetHttpsProxiesSetSslCertificatesRequestResource).get(); * } * * @@ -753,8 +859,9 @@ public final Operation setQuicOverrideTargetHttpsProxy( * @param targetHttpsProxiesSetSslCertificatesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setSslCertificatesTargetHttpsProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setSslCertificatesTargetHttpsProxyAsync( ProjectTargetHttpsProxyName targetHttpsProxy, TargetHttpsProxiesSetSslCertificatesRequest targetHttpsProxiesSetSslCertificatesRequestResource) { @@ -765,7 +872,7 @@ public final Operation setSslCertificatesTargetHttpsProxy( .setTargetHttpsProxiesSetSslCertificatesRequestResource( targetHttpsProxiesSetSslCertificatesRequestResource) .build(); - return setSslCertificatesTargetHttpsProxy(request); + return setSslCertificatesTargetHttpsProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -778,7 +885,7 @@ public final Operation setSslCertificatesTargetHttpsProxy( * try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) { * ProjectTargetHttpsProxyName targetHttpsProxy = ProjectTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]"); * TargetHttpsProxiesSetSslCertificatesRequest targetHttpsProxiesSetSslCertificatesRequestResource = TargetHttpsProxiesSetSslCertificatesRequest.newBuilder().build(); - * Operation response = targetHttpsProxyClient.setSslCertificatesTargetHttpsProxy(targetHttpsProxy.toString(), targetHttpsProxiesSetSslCertificatesRequestResource); + * targetHttpsProxyClient.setSslCertificatesTargetHttpsProxyAsync(targetHttpsProxy.toString(), targetHttpsProxiesSetSslCertificatesRequestResource).get(); * } * * @@ -787,8 +894,9 @@ public final Operation setSslCertificatesTargetHttpsProxy( * @param targetHttpsProxiesSetSslCertificatesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setSslCertificatesTargetHttpsProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setSslCertificatesTargetHttpsProxyAsync( String targetHttpsProxy, TargetHttpsProxiesSetSslCertificatesRequest targetHttpsProxiesSetSslCertificatesRequestResource) { @@ -799,7 +907,7 @@ public final Operation setSslCertificatesTargetHttpsProxy( .setTargetHttpsProxiesSetSslCertificatesRequestResource( targetHttpsProxiesSetSslCertificatesRequestResource) .build(); - return setSslCertificatesTargetHttpsProxy(request); + return setSslCertificatesTargetHttpsProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -816,17 +924,45 @@ public final Operation setSslCertificatesTargetHttpsProxy( * .setTargetHttpsProxy(targetHttpsProxy.toString()) * .setTargetHttpsProxiesSetSslCertificatesRequestResource(targetHttpsProxiesSetSslCertificatesRequestResource) * .build(); - * Operation response = targetHttpsProxyClient.setSslCertificatesTargetHttpsProxy(request); + * targetHttpsProxyClient.setSslCertificatesTargetHttpsProxyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setSslCertificatesTargetHttpsProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setSslCertificatesTargetHttpsProxyAsync( SetSslCertificatesTargetHttpsProxyHttpRequest request) { - return setSslCertificatesTargetHttpsProxyCallable().call(request); + return setSslCertificatesTargetHttpsProxyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Replaces SslCertificates for TargetHttpsProxy. + * + *

Sample code: + * + *


+   * try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
+   *   ProjectTargetHttpsProxyName targetHttpsProxy = ProjectTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
+   *   TargetHttpsProxiesSetSslCertificatesRequest targetHttpsProxiesSetSslCertificatesRequestResource = TargetHttpsProxiesSetSslCertificatesRequest.newBuilder().build();
+   *   SetSslCertificatesTargetHttpsProxyHttpRequest request = SetSslCertificatesTargetHttpsProxyHttpRequest.newBuilder()
+   *     .setTargetHttpsProxy(targetHttpsProxy.toString())
+   *     .setTargetHttpsProxiesSetSslCertificatesRequestResource(targetHttpsProxiesSetSslCertificatesRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetHttpsProxyClient.setSslCertificatesTargetHttpsProxyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + setSslCertificatesTargetHttpsProxyOperationCallable() { + return stub.setSslCertificatesTargetHttpsProxyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -845,7 +981,7 @@ public final Operation setSslCertificatesTargetHttpsProxy( * .build(); * ApiFuture<Operation> future = targetHttpsProxyClient.setSslCertificatesTargetHttpsProxyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -867,7 +1003,7 @@ public final Operation setSslCertificatesTargetHttpsProxy( * try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) { * ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]"); * SslPolicyReference sslPolicyReferenceResource = SslPolicyReference.newBuilder().build(); - * Operation response = targetHttpsProxyClient.setSslPolicyTargetHttpsProxy(targetHttpsProxy, sslPolicyReferenceResource); + * targetHttpsProxyClient.setSslPolicyTargetHttpsProxyAsync(targetHttpsProxy, sslPolicyReferenceResource).get(); * } * * @@ -876,8 +1012,9 @@ public final Operation setSslCertificatesTargetHttpsProxy( * @param sslPolicyReferenceResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setSslPolicyTargetHttpsProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setSslPolicyTargetHttpsProxyAsync( ProjectGlobalTargetHttpsProxyName targetHttpsProxy, SslPolicyReference sslPolicyReferenceResource) { @@ -886,7 +1023,7 @@ public final Operation setSslPolicyTargetHttpsProxy( .setTargetHttpsProxy(targetHttpsProxy == null ? null : targetHttpsProxy.toString()) .setSslPolicyReferenceResource(sslPolicyReferenceResource) .build(); - return setSslPolicyTargetHttpsProxy(request); + return setSslPolicyTargetHttpsProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -901,7 +1038,7 @@ public final Operation setSslPolicyTargetHttpsProxy( * try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) { * ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]"); * SslPolicyReference sslPolicyReferenceResource = SslPolicyReference.newBuilder().build(); - * Operation response = targetHttpsProxyClient.setSslPolicyTargetHttpsProxy(targetHttpsProxy.toString(), sslPolicyReferenceResource); + * targetHttpsProxyClient.setSslPolicyTargetHttpsProxyAsync(targetHttpsProxy.toString(), sslPolicyReferenceResource).get(); * } * * @@ -910,8 +1047,9 @@ public final Operation setSslPolicyTargetHttpsProxy( * @param sslPolicyReferenceResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setSslPolicyTargetHttpsProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setSslPolicyTargetHttpsProxyAsync( String targetHttpsProxy, SslPolicyReference sslPolicyReferenceResource) { SetSslPolicyTargetHttpsProxyHttpRequest request = @@ -919,7 +1057,7 @@ public final Operation setSslPolicyTargetHttpsProxy( .setTargetHttpsProxy(targetHttpsProxy) .setSslPolicyReferenceResource(sslPolicyReferenceResource) .build(); - return setSslPolicyTargetHttpsProxy(request); + return setSslPolicyTargetHttpsProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -938,17 +1076,47 @@ public final Operation setSslPolicyTargetHttpsProxy( * .setTargetHttpsProxy(targetHttpsProxy.toString()) * .setSslPolicyReferenceResource(sslPolicyReferenceResource) * .build(); - * Operation response = targetHttpsProxyClient.setSslPolicyTargetHttpsProxy(request); + * targetHttpsProxyClient.setSslPolicyTargetHttpsProxyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setSslPolicyTargetHttpsProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setSslPolicyTargetHttpsProxyAsync( SetSslPolicyTargetHttpsProxyHttpRequest request) { - return setSslPolicyTargetHttpsProxyCallable().call(request); + return setSslPolicyTargetHttpsProxyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the server-side support for + * SSL features. This affects connections between clients and the HTTPS proxy load balancer. They + * do not affect the connection between the load balancer and the backends. + * + *

Sample code: + * + *


+   * try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
+   *   ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
+   *   SslPolicyReference sslPolicyReferenceResource = SslPolicyReference.newBuilder().build();
+   *   SetSslPolicyTargetHttpsProxyHttpRequest request = SetSslPolicyTargetHttpsProxyHttpRequest.newBuilder()
+   *     .setTargetHttpsProxy(targetHttpsProxy.toString())
+   *     .setSslPolicyReferenceResource(sslPolicyReferenceResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetHttpsProxyClient.setSslPolicyTargetHttpsProxyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + SetSslPolicyTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + setSslPolicyTargetHttpsProxyOperationCallable() { + return stub.setSslPolicyTargetHttpsProxyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -969,7 +1137,7 @@ public final Operation setSslPolicyTargetHttpsProxy( * .build(); * ApiFuture<Operation> future = targetHttpsProxyClient.setSslPolicyTargetHttpsProxyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -989,7 +1157,7 @@ public final Operation setSslPolicyTargetHttpsProxy( * try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) { * ProjectTargetHttpsProxyName targetHttpsProxy = ProjectTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]"); * UrlMapReference urlMapReferenceResource = UrlMapReference.newBuilder().build(); - * Operation response = targetHttpsProxyClient.setUrlMapTargetHttpsProxy(targetHttpsProxy, urlMapReferenceResource); + * targetHttpsProxyClient.setUrlMapTargetHttpsProxyAsync(targetHttpsProxy, urlMapReferenceResource).get(); * } * * @@ -997,8 +1165,9 @@ public final Operation setSslPolicyTargetHttpsProxy( * @param urlMapReferenceResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setUrlMapTargetHttpsProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setUrlMapTargetHttpsProxyAsync( ProjectTargetHttpsProxyName targetHttpsProxy, UrlMapReference urlMapReferenceResource) { SetUrlMapTargetHttpsProxyHttpRequest request = @@ -1006,7 +1175,7 @@ public final Operation setUrlMapTargetHttpsProxy( .setTargetHttpsProxy(targetHttpsProxy == null ? null : targetHttpsProxy.toString()) .setUrlMapReferenceResource(urlMapReferenceResource) .build(); - return setUrlMapTargetHttpsProxy(request); + return setUrlMapTargetHttpsProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1019,7 +1188,7 @@ public final Operation setUrlMapTargetHttpsProxy( * try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) { * ProjectTargetHttpsProxyName targetHttpsProxy = ProjectTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]"); * UrlMapReference urlMapReferenceResource = UrlMapReference.newBuilder().build(); - * Operation response = targetHttpsProxyClient.setUrlMapTargetHttpsProxy(targetHttpsProxy.toString(), urlMapReferenceResource); + * targetHttpsProxyClient.setUrlMapTargetHttpsProxyAsync(targetHttpsProxy.toString(), urlMapReferenceResource).get(); * } * * @@ -1027,8 +1196,9 @@ public final Operation setUrlMapTargetHttpsProxy( * @param urlMapReferenceResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setUrlMapTargetHttpsProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setUrlMapTargetHttpsProxyAsync( String targetHttpsProxy, UrlMapReference urlMapReferenceResource) { SetUrlMapTargetHttpsProxyHttpRequest request = @@ -1036,7 +1206,7 @@ public final Operation setUrlMapTargetHttpsProxy( .setTargetHttpsProxy(targetHttpsProxy) .setUrlMapReferenceResource(urlMapReferenceResource) .build(); - return setUrlMapTargetHttpsProxy(request); + return setUrlMapTargetHttpsProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1053,16 +1223,44 @@ public final Operation setUrlMapTargetHttpsProxy( * .setTargetHttpsProxy(targetHttpsProxy.toString()) * .setUrlMapReferenceResource(urlMapReferenceResource) * .build(); - * Operation response = targetHttpsProxyClient.setUrlMapTargetHttpsProxy(request); + * targetHttpsProxyClient.setUrlMapTargetHttpsProxyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setUrlMapTargetHttpsProxy(SetUrlMapTargetHttpsProxyHttpRequest request) { - return setUrlMapTargetHttpsProxyCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setUrlMapTargetHttpsProxyAsync( + SetUrlMapTargetHttpsProxyHttpRequest request) { + return setUrlMapTargetHttpsProxyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Changes the URL map for TargetHttpsProxy. + * + *

Sample code: + * + *


+   * try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) {
+   *   ProjectTargetHttpsProxyName targetHttpsProxy = ProjectTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
+   *   UrlMapReference urlMapReferenceResource = UrlMapReference.newBuilder().build();
+   *   SetUrlMapTargetHttpsProxyHttpRequest request = SetUrlMapTargetHttpsProxyHttpRequest.newBuilder()
+   *     .setTargetHttpsProxy(targetHttpsProxy.toString())
+   *     .setUrlMapReferenceResource(urlMapReferenceResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetHttpsProxyClient.setUrlMapTargetHttpsProxyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + setUrlMapTargetHttpsProxyOperationCallable() { + return stub.setUrlMapTargetHttpsProxyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1081,7 +1279,7 @@ public final Operation setUrlMapTargetHttpsProxy(SetUrlMapTargetHttpsProxyHttpRe * .build(); * ApiFuture<Operation> future = targetHttpsProxyClient.setUrlMapTargetHttpsProxyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxySettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxySettings.java index cadcd83543e1..fdccb1b9a249 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxySettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxySettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteTargetHttpsProxy to 30 seconds: + * example, to set the total timeout of getTargetHttpsProxy to 30 seconds: * *

  * 
  * TargetHttpsProxySettings.Builder targetHttpsProxySettingsBuilder =
  *     TargetHttpsProxySettings.newBuilder();
- * targetHttpsProxySettingsBuilder.deleteTargetHttpsProxySettings().getRetrySettings().toBuilder()
+ * targetHttpsProxySettingsBuilder.getTargetHttpsProxySettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * TargetHttpsProxySettings targetHttpsProxySettings = targetHttpsProxySettingsBuilder.build();
  * 
@@ -69,6 +71,15 @@ public class TargetHttpsProxySettings extends ClientSettings
+      deleteTargetHttpsProxyOperationSettings() {
+    return ((TargetHttpsProxyStubSettings) getStubSettings())
+        .deleteTargetHttpsProxyOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getTargetHttpsProxy. */
   public UnaryCallSettings
       getTargetHttpsProxySettings() {
@@ -81,6 +92,15 @@ public class TargetHttpsProxySettings extends ClientSettings
+      insertTargetHttpsProxyOperationSettings() {
+    return ((TargetHttpsProxyStubSettings) getStubSettings())
+        .insertTargetHttpsProxyOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listTargetHttpsProxies. */
   public PagedCallSettings<
           ListTargetHttpsProxiesHttpRequest,
@@ -97,6 +117,16 @@ public class TargetHttpsProxySettings extends ClientSettings
+      setQuicOverrideTargetHttpsProxyOperationSettings() {
+    return ((TargetHttpsProxyStubSettings) getStubSettings())
+        .setQuicOverrideTargetHttpsProxyOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setSslCertificatesTargetHttpsProxy. */
   public UnaryCallSettings
       setSslCertificatesTargetHttpsProxySettings() {
@@ -104,6 +134,16 @@ public class TargetHttpsProxySettings extends ClientSettings
+      setSslCertificatesTargetHttpsProxyOperationSettings() {
+    return ((TargetHttpsProxyStubSettings) getStubSettings())
+        .setSslCertificatesTargetHttpsProxyOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setSslPolicyTargetHttpsProxy. */
   public UnaryCallSettings
       setSslPolicyTargetHttpsProxySettings() {
@@ -111,12 +151,30 @@ public class TargetHttpsProxySettings extends ClientSettings
+      setSslPolicyTargetHttpsProxyOperationSettings() {
+    return ((TargetHttpsProxyStubSettings) getStubSettings())
+        .setSslPolicyTargetHttpsProxyOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setUrlMapTargetHttpsProxy. */
   public UnaryCallSettings
       setUrlMapTargetHttpsProxySettings() {
     return ((TargetHttpsProxyStubSettings) getStubSettings()).setUrlMapTargetHttpsProxySettings();
   }
 
+  /** Returns the object with the settings used for calls to setUrlMapTargetHttpsProxy. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setUrlMapTargetHttpsProxyOperationSettings() {
+    return ((TargetHttpsProxyStubSettings) getStubSettings())
+        .setUrlMapTargetHttpsProxyOperationSettings();
+  }
+
   public static final TargetHttpsProxySettings create(TargetHttpsProxyStubSettings stub)
       throws IOException {
     return new TargetHttpsProxySettings.Builder(stub.toBuilder()).build();
@@ -225,6 +283,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteTargetHttpsProxySettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteTargetHttpsProxy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+        deleteTargetHttpsProxyOperationSettings() {
+      return getStubSettingsBuilder().deleteTargetHttpsProxyOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getTargetHttpsProxy. */
     public UnaryCallSettings.Builder
         getTargetHttpsProxySettings() {
@@ -237,6 +304,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertTargetHttpsProxySettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertTargetHttpsProxy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+        insertTargetHttpsProxyOperationSettings() {
+      return getStubSettingsBuilder().insertTargetHttpsProxyOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listTargetHttpsProxies. */
     public PagedCallSettings.Builder<
             ListTargetHttpsProxiesHttpRequest,
@@ -252,6 +328,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().setQuicOverrideTargetHttpsProxySettings();
     }
 
+    /** Returns the builder for the settings used for calls to setQuicOverrideTargetHttpsProxy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetQuicOverrideTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setQuicOverrideTargetHttpsProxyOperationSettings() {
+      return getStubSettingsBuilder().setQuicOverrideTargetHttpsProxyOperationSettings();
+    }
+
     /**
      * Returns the builder for the settings used for calls to setSslCertificatesTargetHttpsProxy.
      */
@@ -260,18 +345,47 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().setSslCertificatesTargetHttpsProxySettings();
     }
 
+    /**
+     * Returns the builder for the settings used for calls to setSslCertificatesTargetHttpsProxy.
+     */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setSslCertificatesTargetHttpsProxyOperationSettings() {
+      return getStubSettingsBuilder().setSslCertificatesTargetHttpsProxyOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setSslPolicyTargetHttpsProxy. */
     public UnaryCallSettings.Builder
         setSslPolicyTargetHttpsProxySettings() {
       return getStubSettingsBuilder().setSslPolicyTargetHttpsProxySettings();
     }
 
+    /** Returns the builder for the settings used for calls to setSslPolicyTargetHttpsProxy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetSslPolicyTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setSslPolicyTargetHttpsProxyOperationSettings() {
+      return getStubSettingsBuilder().setSslPolicyTargetHttpsProxyOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setUrlMapTargetHttpsProxy. */
     public UnaryCallSettings.Builder
         setUrlMapTargetHttpsProxySettings() {
       return getStubSettingsBuilder().setUrlMapTargetHttpsProxySettings();
     }
 
+    /** Returns the builder for the settings used for calls to setUrlMapTargetHttpsProxy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetUrlMapTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setUrlMapTargetHttpsProxyOperationSettings() {
+      return getStubSettingsBuilder().setUrlMapTargetHttpsProxyOperationSettings();
+    }
+
     @Override
     public TargetHttpsProxySettings build() throws IOException {
       return new TargetHttpsProxySettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceClient.java
index 37644b84a4ba..dee5c2cbf231 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.TargetInstanceStub;
@@ -43,7 +46,7 @@
  * 
  * try (TargetInstanceClient targetInstanceClient = TargetInstanceClient.create()) {
  *   ProjectZoneTargetInstanceName targetInstance = ProjectZoneTargetInstanceName.of("[PROJECT]", "[ZONE]", "[TARGET_INSTANCE]");
- *   Operation response = targetInstanceClient.deleteTargetInstance(targetInstance);
+ *   TargetInstance response = targetInstanceClient.getTargetInstance(targetInstance);
  * }
  * 
  * 
@@ -103,6 +106,7 @@ public class TargetInstanceClient implements BackgroundResource { private final TargetInstanceSettings settings; private final TargetInstanceStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of TargetInstanceClient with default settings. */ public static final TargetInstanceClient create() throws IOException { @@ -135,12 +139,14 @@ public static final TargetInstanceClient create(TargetInstanceStub stub) { protected TargetInstanceClient(TargetInstanceSettings settings) throws IOException { this.settings = settings; this.stub = ((TargetInstanceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected TargetInstanceClient(TargetInstanceStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final TargetInstanceSettings getSettings() { @@ -152,6 +158,16 @@ public TargetInstanceStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Retrieves an aggregated list of target instances. @@ -302,21 +318,23 @@ public final AggregatedListTargetInstancesPagedResponse aggregatedListTargetInst *

    * try (TargetInstanceClient targetInstanceClient = TargetInstanceClient.create()) {
    *   ProjectZoneTargetInstanceName targetInstance = ProjectZoneTargetInstanceName.of("[PROJECT]", "[ZONE]", "[TARGET_INSTANCE]");
-   *   Operation response = targetInstanceClient.deleteTargetInstance(targetInstance);
+   *   targetInstanceClient.deleteTargetInstanceAsync(targetInstance).get();
    * }
    * 
* * @param targetInstance Name of the TargetInstance resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteTargetInstance(ProjectZoneTargetInstanceName targetInstance) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteTargetInstanceAsync( + ProjectZoneTargetInstanceName targetInstance) { DeleteTargetInstanceHttpRequest request = DeleteTargetInstanceHttpRequest.newBuilder() .setTargetInstance(targetInstance == null ? null : targetInstance.toString()) .build(); - return deleteTargetInstance(request); + return deleteTargetInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -328,19 +346,21 @@ public final Operation deleteTargetInstance(ProjectZoneTargetInstanceName target *

    * try (TargetInstanceClient targetInstanceClient = TargetInstanceClient.create()) {
    *   ProjectZoneTargetInstanceName targetInstance = ProjectZoneTargetInstanceName.of("[PROJECT]", "[ZONE]", "[TARGET_INSTANCE]");
-   *   Operation response = targetInstanceClient.deleteTargetInstance(targetInstance.toString());
+   *   targetInstanceClient.deleteTargetInstanceAsync(targetInstance.toString()).get();
    * }
    * 
* * @param targetInstance Name of the TargetInstance resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteTargetInstance(String targetInstance) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteTargetInstanceAsync( + String targetInstance) { DeleteTargetInstanceHttpRequest request = DeleteTargetInstanceHttpRequest.newBuilder().setTargetInstance(targetInstance).build(); - return deleteTargetInstance(request); + return deleteTargetInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -355,16 +375,42 @@ public final Operation deleteTargetInstance(String targetInstance) { * DeleteTargetInstanceHttpRequest request = DeleteTargetInstanceHttpRequest.newBuilder() * .setTargetInstance(targetInstance.toString()) * .build(); - * Operation response = targetInstanceClient.deleteTargetInstance(request); + * targetInstanceClient.deleteTargetInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteTargetInstance(DeleteTargetInstanceHttpRequest request) { - return deleteTargetInstanceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteTargetInstanceAsync( + DeleteTargetInstanceHttpRequest request) { + return deleteTargetInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified TargetInstance resource. + * + *

Sample code: + * + *


+   * try (TargetInstanceClient targetInstanceClient = TargetInstanceClient.create()) {
+   *   ProjectZoneTargetInstanceName targetInstance = ProjectZoneTargetInstanceName.of("[PROJECT]", "[ZONE]", "[TARGET_INSTANCE]");
+   *   DeleteTargetInstanceHttpRequest request = DeleteTargetInstanceHttpRequest.newBuilder()
+   *     .setTargetInstance(targetInstance.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetInstanceClient.deleteTargetInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteTargetInstanceOperationCallable() { + return stub.deleteTargetInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -381,7 +427,7 @@ public final Operation deleteTargetInstance(DeleteTargetInstanceHttpRequest requ * .build(); * ApiFuture<Operation> future = targetInstanceClient.deleteTargetInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -504,7 +550,7 @@ public final TargetInstance getTargetInstance(GetTargetInstanceHttpRequest reque * try (TargetInstanceClient targetInstanceClient = TargetInstanceClient.create()) { * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); * TargetInstance targetInstanceResource = TargetInstance.newBuilder().build(); - * Operation response = targetInstanceClient.insertTargetInstance(zone, targetInstanceResource); + * targetInstanceClient.insertTargetInstanceAsync(zone, targetInstanceResource).get(); * } * * @@ -514,8 +560,9 @@ public final TargetInstance getTargetInstance(GetTargetInstanceHttpRequest reque * beta.targetInstances ==) (== resource_for v1.targetInstances ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertTargetInstance( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertTargetInstanceAsync( ProjectZoneName zone, TargetInstance targetInstanceResource) { InsertTargetInstanceHttpRequest request = @@ -523,7 +570,7 @@ public final Operation insertTargetInstance( .setZone(zone == null ? null : zone.toString()) .setTargetInstanceResource(targetInstanceResource) .build(); - return insertTargetInstance(request); + return insertTargetInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -537,7 +584,7 @@ public final Operation insertTargetInstance( * try (TargetInstanceClient targetInstanceClient = TargetInstanceClient.create()) { * ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); * TargetInstance targetInstanceResource = TargetInstance.newBuilder().build(); - * Operation response = targetInstanceClient.insertTargetInstance(zone.toString(), targetInstanceResource); + * targetInstanceClient.insertTargetInstanceAsync(zone.toString(), targetInstanceResource).get(); * } * * @@ -547,15 +594,17 @@ public final Operation insertTargetInstance( * beta.targetInstances ==) (== resource_for v1.targetInstances ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertTargetInstance(String zone, TargetInstance targetInstanceResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertTargetInstanceAsync( + String zone, TargetInstance targetInstanceResource) { InsertTargetInstanceHttpRequest request = InsertTargetInstanceHttpRequest.newBuilder() .setZone(zone) .setTargetInstanceResource(targetInstanceResource) .build(); - return insertTargetInstance(request); + return insertTargetInstanceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -573,16 +622,45 @@ public final Operation insertTargetInstance(String zone, TargetInstance targetIn * .setZone(zone.toString()) * .setTargetInstanceResource(targetInstanceResource) * .build(); - * Operation response = targetInstanceClient.insertTargetInstance(request); + * targetInstanceClient.insertTargetInstanceAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertTargetInstance(InsertTargetInstanceHttpRequest request) { - return insertTargetInstanceCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertTargetInstanceAsync( + InsertTargetInstanceHttpRequest request) { + return insertTargetInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a TargetInstance resource in the specified project and zone using the data included in + * the request. + * + *

Sample code: + * + *


+   * try (TargetInstanceClient targetInstanceClient = TargetInstanceClient.create()) {
+   *   ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
+   *   TargetInstance targetInstanceResource = TargetInstance.newBuilder().build();
+   *   InsertTargetInstanceHttpRequest request = InsertTargetInstanceHttpRequest.newBuilder()
+   *     .setZone(zone.toString())
+   *     .setTargetInstanceResource(targetInstanceResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetInstanceClient.insertTargetInstanceOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertTargetInstanceOperationCallable() { + return stub.insertTargetInstanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -602,7 +680,7 @@ public final Operation insertTargetInstance(InsertTargetInstanceHttpRequest requ * .build(); * ApiFuture<Operation> future = targetInstanceClient.insertTargetInstanceCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceSettings.java index 3f708af29ab4..0d2a11045ad5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceSettings.java @@ -22,10 +22,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -49,13 +51,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteTargetInstance to 30 seconds: + * example, to set the total timeout of getTargetInstance to 30 seconds: * *

  * 
  * TargetInstanceSettings.Builder targetInstanceSettingsBuilder =
  *     TargetInstanceSettings.newBuilder();
- * targetInstanceSettingsBuilder.deleteTargetInstanceSettings().getRetrySettings().toBuilder()
+ * targetInstanceSettingsBuilder.getTargetInstanceSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * TargetInstanceSettings targetInstanceSettings = targetInstanceSettingsBuilder.build();
  * 
@@ -79,6 +81,14 @@ public class TargetInstanceSettings extends ClientSettings
+      deleteTargetInstanceOperationSettings() {
+    return ((TargetInstanceStubSettings) getStubSettings()).deleteTargetInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getTargetInstance. */
   public UnaryCallSettings
       getTargetInstanceSettings() {
@@ -91,6 +101,14 @@ public class TargetInstanceSettings extends ClientSettings
+      insertTargetInstanceOperationSettings() {
+    return ((TargetInstanceStubSettings) getStubSettings()).insertTargetInstanceOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listTargetInstances. */
   public PagedCallSettings<
           ListTargetInstancesHttpRequest, TargetInstanceList, ListTargetInstancesPagedResponse>
@@ -215,6 +233,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteTargetInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteTargetInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteTargetInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        deleteTargetInstanceOperationSettings() {
+      return getStubSettingsBuilder().deleteTargetInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getTargetInstance. */
     public UnaryCallSettings.Builder
         getTargetInstanceSettings() {
@@ -227,6 +254,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertTargetInstanceSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertTargetInstance. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertTargetInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        insertTargetInstanceOperationSettings() {
+      return getStubSettingsBuilder().insertTargetInstanceOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listTargetInstances. */
     public PagedCallSettings.Builder<
             ListTargetInstancesHttpRequest, TargetInstanceList, ListTargetInstancesPagedResponse>
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolClient.java
index 523c6e282375..bf54322e52ba 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.TargetPoolStub;
@@ -43,8 +46,7 @@
  * 
  * try (TargetPoolClient targetPoolClient = TargetPoolClient.create()) {
  *   ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]");
- *   TargetPoolsAddHealthCheckRequest targetPoolsAddHealthCheckRequestResource = TargetPoolsAddHealthCheckRequest.newBuilder().build();
- *   Operation response = targetPoolClient.addHealthCheckTargetPool(targetPool, targetPoolsAddHealthCheckRequestResource);
+ *   TargetPool response = targetPoolClient.getTargetPool(targetPool);
  * }
  * 
  * 
@@ -104,6 +106,7 @@ public class TargetPoolClient implements BackgroundResource { private final TargetPoolSettings settings; private final TargetPoolStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of TargetPoolClient with default settings. */ public static final TargetPoolClient create() throws IOException { @@ -134,12 +137,14 @@ public static final TargetPoolClient create(TargetPoolStub stub) { protected TargetPoolClient(TargetPoolSettings settings) throws IOException { this.settings = settings; this.stub = ((TargetPoolStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected TargetPoolClient(TargetPoolStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final TargetPoolSettings getSettings() { @@ -151,6 +156,16 @@ public TargetPoolStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Adds health check URLs to a target pool. @@ -161,7 +176,7 @@ public TargetPoolStub getStub() { * try (TargetPoolClient targetPoolClient = TargetPoolClient.create()) { * ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]"); * TargetPoolsAddHealthCheckRequest targetPoolsAddHealthCheckRequestResource = TargetPoolsAddHealthCheckRequest.newBuilder().build(); - * Operation response = targetPoolClient.addHealthCheckTargetPool(targetPool, targetPoolsAddHealthCheckRequestResource); + * targetPoolClient.addHealthCheckTargetPoolAsync(targetPool, targetPoolsAddHealthCheckRequestResource).get(); * } * * @@ -169,8 +184,9 @@ public TargetPoolStub getStub() { * @param targetPoolsAddHealthCheckRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addHealthCheckTargetPool( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addHealthCheckTargetPoolAsync( ProjectRegionTargetPoolName targetPool, TargetPoolsAddHealthCheckRequest targetPoolsAddHealthCheckRequestResource) { @@ -179,7 +195,7 @@ public final Operation addHealthCheckTargetPool( .setTargetPool(targetPool == null ? null : targetPool.toString()) .setTargetPoolsAddHealthCheckRequestResource(targetPoolsAddHealthCheckRequestResource) .build(); - return addHealthCheckTargetPool(request); + return addHealthCheckTargetPoolAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -192,7 +208,7 @@ public final Operation addHealthCheckTargetPool( * try (TargetPoolClient targetPoolClient = TargetPoolClient.create()) { * ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]"); * TargetPoolsAddHealthCheckRequest targetPoolsAddHealthCheckRequestResource = TargetPoolsAddHealthCheckRequest.newBuilder().build(); - * Operation response = targetPoolClient.addHealthCheckTargetPool(targetPool.toString(), targetPoolsAddHealthCheckRequestResource); + * targetPoolClient.addHealthCheckTargetPoolAsync(targetPool.toString(), targetPoolsAddHealthCheckRequestResource).get(); * } * * @@ -200,8 +216,9 @@ public final Operation addHealthCheckTargetPool( * @param targetPoolsAddHealthCheckRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addHealthCheckTargetPool( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addHealthCheckTargetPoolAsync( String targetPool, TargetPoolsAddHealthCheckRequest targetPoolsAddHealthCheckRequestResource) { @@ -210,7 +227,7 @@ public final Operation addHealthCheckTargetPool( .setTargetPool(targetPool) .setTargetPoolsAddHealthCheckRequestResource(targetPoolsAddHealthCheckRequestResource) .build(); - return addHealthCheckTargetPool(request); + return addHealthCheckTargetPoolAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -227,16 +244,44 @@ public final Operation addHealthCheckTargetPool( * .setTargetPool(targetPool.toString()) * .setTargetPoolsAddHealthCheckRequestResource(targetPoolsAddHealthCheckRequestResource) * .build(); - * Operation response = targetPoolClient.addHealthCheckTargetPool(request); + * targetPoolClient.addHealthCheckTargetPoolAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addHealthCheckTargetPool(AddHealthCheckTargetPoolHttpRequest request) { - return addHealthCheckTargetPoolCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addHealthCheckTargetPoolAsync( + AddHealthCheckTargetPoolHttpRequest request) { + return addHealthCheckTargetPoolOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Adds health check URLs to a target pool. + * + *

Sample code: + * + *


+   * try (TargetPoolClient targetPoolClient = TargetPoolClient.create()) {
+   *   ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]");
+   *   TargetPoolsAddHealthCheckRequest targetPoolsAddHealthCheckRequestResource = TargetPoolsAddHealthCheckRequest.newBuilder().build();
+   *   AddHealthCheckTargetPoolHttpRequest request = AddHealthCheckTargetPoolHttpRequest.newBuilder()
+   *     .setTargetPool(targetPool.toString())
+   *     .setTargetPoolsAddHealthCheckRequestResource(targetPoolsAddHealthCheckRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetPoolClient.addHealthCheckTargetPoolOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + addHealthCheckTargetPoolOperationCallable() { + return stub.addHealthCheckTargetPoolOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -255,7 +300,7 @@ public final Operation addHealthCheckTargetPool(AddHealthCheckTargetPoolHttpRequ * .build(); * ApiFuture<Operation> future = targetPoolClient.addHealthCheckTargetPoolCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -275,7 +320,7 @@ public final Operation addHealthCheckTargetPool(AddHealthCheckTargetPoolHttpRequ * try (TargetPoolClient targetPoolClient = TargetPoolClient.create()) { * ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]"); * TargetPoolsAddInstanceRequest targetPoolsAddInstanceRequestResource = TargetPoolsAddInstanceRequest.newBuilder().build(); - * Operation response = targetPoolClient.addInstanceTargetPool(targetPool, targetPoolsAddInstanceRequestResource); + * targetPoolClient.addInstanceTargetPoolAsync(targetPool, targetPoolsAddInstanceRequestResource).get(); * } * * @@ -283,8 +328,9 @@ public final Operation addHealthCheckTargetPool(AddHealthCheckTargetPoolHttpRequ * @param targetPoolsAddInstanceRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addInstanceTargetPool( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addInstanceTargetPoolAsync( ProjectRegionTargetPoolName targetPool, TargetPoolsAddInstanceRequest targetPoolsAddInstanceRequestResource) { @@ -293,7 +339,7 @@ public final Operation addInstanceTargetPool( .setTargetPool(targetPool == null ? null : targetPool.toString()) .setTargetPoolsAddInstanceRequestResource(targetPoolsAddInstanceRequestResource) .build(); - return addInstanceTargetPool(request); + return addInstanceTargetPoolAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -306,7 +352,7 @@ public final Operation addInstanceTargetPool( * try (TargetPoolClient targetPoolClient = TargetPoolClient.create()) { * ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]"); * TargetPoolsAddInstanceRequest targetPoolsAddInstanceRequestResource = TargetPoolsAddInstanceRequest.newBuilder().build(); - * Operation response = targetPoolClient.addInstanceTargetPool(targetPool.toString(), targetPoolsAddInstanceRequestResource); + * targetPoolClient.addInstanceTargetPoolAsync(targetPool.toString(), targetPoolsAddInstanceRequestResource).get(); * } * * @@ -314,8 +360,9 @@ public final Operation addInstanceTargetPool( * @param targetPoolsAddInstanceRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addInstanceTargetPool( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addInstanceTargetPoolAsync( String targetPool, TargetPoolsAddInstanceRequest targetPoolsAddInstanceRequestResource) { AddInstanceTargetPoolHttpRequest request = @@ -323,7 +370,7 @@ public final Operation addInstanceTargetPool( .setTargetPool(targetPool) .setTargetPoolsAddInstanceRequestResource(targetPoolsAddInstanceRequestResource) .build(); - return addInstanceTargetPool(request); + return addInstanceTargetPoolAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -340,16 +387,44 @@ public final Operation addInstanceTargetPool( * .setTargetPool(targetPool.toString()) * .setTargetPoolsAddInstanceRequestResource(targetPoolsAddInstanceRequestResource) * .build(); - * Operation response = targetPoolClient.addInstanceTargetPool(request); + * targetPoolClient.addInstanceTargetPoolAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation addInstanceTargetPool(AddInstanceTargetPoolHttpRequest request) { - return addInstanceTargetPoolCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture addInstanceTargetPoolAsync( + AddInstanceTargetPoolHttpRequest request) { + return addInstanceTargetPoolOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Adds an instance to a target pool. + * + *

Sample code: + * + *


+   * try (TargetPoolClient targetPoolClient = TargetPoolClient.create()) {
+   *   ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]");
+   *   TargetPoolsAddInstanceRequest targetPoolsAddInstanceRequestResource = TargetPoolsAddInstanceRequest.newBuilder().build();
+   *   AddInstanceTargetPoolHttpRequest request = AddInstanceTargetPoolHttpRequest.newBuilder()
+   *     .setTargetPool(targetPool.toString())
+   *     .setTargetPoolsAddInstanceRequestResource(targetPoolsAddInstanceRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetPoolClient.addInstanceTargetPoolOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + addInstanceTargetPoolOperationCallable() { + return stub.addInstanceTargetPoolOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -368,7 +443,7 @@ public final Operation addInstanceTargetPool(AddInstanceTargetPoolHttpRequest re * .build(); * ApiFuture<Operation> future = targetPoolClient.addInstanceTargetPoolCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -527,21 +602,23 @@ public final AggregatedListTargetPoolsPagedResponse aggregatedListTargetPools( *

    * try (TargetPoolClient targetPoolClient = TargetPoolClient.create()) {
    *   ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]");
-   *   Operation response = targetPoolClient.deleteTargetPool(targetPool);
+   *   targetPoolClient.deleteTargetPoolAsync(targetPool).get();
    * }
    * 
* * @param targetPool Name of the TargetPool resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteTargetPool(ProjectRegionTargetPoolName targetPool) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteTargetPoolAsync( + ProjectRegionTargetPoolName targetPool) { DeleteTargetPoolHttpRequest request = DeleteTargetPoolHttpRequest.newBuilder() .setTargetPool(targetPool == null ? null : targetPool.toString()) .build(); - return deleteTargetPool(request); + return deleteTargetPoolAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -553,19 +630,21 @@ public final Operation deleteTargetPool(ProjectRegionTargetPoolName targetPool) *

    * try (TargetPoolClient targetPoolClient = TargetPoolClient.create()) {
    *   ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]");
-   *   Operation response = targetPoolClient.deleteTargetPool(targetPool.toString());
+   *   targetPoolClient.deleteTargetPoolAsync(targetPool.toString()).get();
    * }
    * 
* * @param targetPool Name of the TargetPool resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteTargetPool(String targetPool) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteTargetPoolAsync( + String targetPool) { DeleteTargetPoolHttpRequest request = DeleteTargetPoolHttpRequest.newBuilder().setTargetPool(targetPool).build(); - return deleteTargetPool(request); + return deleteTargetPoolAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -580,16 +659,42 @@ public final Operation deleteTargetPool(String targetPool) { * DeleteTargetPoolHttpRequest request = DeleteTargetPoolHttpRequest.newBuilder() * .setTargetPool(targetPool.toString()) * .build(); - * Operation response = targetPoolClient.deleteTargetPool(request); + * targetPoolClient.deleteTargetPoolAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteTargetPool(DeleteTargetPoolHttpRequest request) { - return deleteTargetPoolCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteTargetPoolAsync( + DeleteTargetPoolHttpRequest request) { + return deleteTargetPoolOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified target pool. + * + *

Sample code: + * + *


+   * try (TargetPoolClient targetPoolClient = TargetPoolClient.create()) {
+   *   ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]");
+   *   DeleteTargetPoolHttpRequest request = DeleteTargetPoolHttpRequest.newBuilder()
+   *     .setTargetPool(targetPool.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetPoolClient.deleteTargetPoolOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteTargetPoolOperationCallable() { + return stub.deleteTargetPoolOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -606,7 +711,7 @@ public final Operation deleteTargetPool(DeleteTargetPoolHttpRequest request) { * .build(); * ApiFuture<Operation> future = targetPoolClient.deleteTargetPoolCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -844,7 +949,7 @@ public final TargetPoolInstanceHealth getHealthTargetPool( * try (TargetPoolClient targetPoolClient = TargetPoolClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * TargetPool targetPoolResource = TargetPool.newBuilder().build(); - * Operation response = targetPoolClient.insertTargetPool(region, targetPoolResource); + * targetPoolClient.insertTargetPoolAsync(region, targetPoolResource).get(); * } * * @@ -854,15 +959,17 @@ public final TargetPoolInstanceHealth getHealthTargetPool( * beta.targetPools ==) (== resource_for v1.targetPools ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertTargetPool(ProjectRegionName region, TargetPool targetPoolResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertTargetPoolAsync( + ProjectRegionName region, TargetPool targetPoolResource) { InsertTargetPoolHttpRequest request = InsertTargetPoolHttpRequest.newBuilder() .setRegion(region == null ? null : region.toString()) .setTargetPoolResource(targetPoolResource) .build(); - return insertTargetPool(request); + return insertTargetPoolAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -876,7 +983,7 @@ public final Operation insertTargetPool(ProjectRegionName region, TargetPool tar * try (TargetPoolClient targetPoolClient = TargetPoolClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * TargetPool targetPoolResource = TargetPool.newBuilder().build(); - * Operation response = targetPoolClient.insertTargetPool(region.toString(), targetPoolResource); + * targetPoolClient.insertTargetPoolAsync(region.toString(), targetPoolResource).get(); * } * * @@ -886,15 +993,17 @@ public final Operation insertTargetPool(ProjectRegionName region, TargetPool tar * beta.targetPools ==) (== resource_for v1.targetPools ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertTargetPool(String region, TargetPool targetPoolResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertTargetPoolAsync( + String region, TargetPool targetPoolResource) { InsertTargetPoolHttpRequest request = InsertTargetPoolHttpRequest.newBuilder() .setRegion(region) .setTargetPoolResource(targetPoolResource) .build(); - return insertTargetPool(request); + return insertTargetPoolAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -912,16 +1021,45 @@ public final Operation insertTargetPool(String region, TargetPool targetPoolReso * .setRegion(region.toString()) * .setTargetPoolResource(targetPoolResource) * .build(); - * Operation response = targetPoolClient.insertTargetPool(request); + * targetPoolClient.insertTargetPoolAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertTargetPool(InsertTargetPoolHttpRequest request) { - return insertTargetPoolCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertTargetPoolAsync( + InsertTargetPoolHttpRequest request) { + return insertTargetPoolOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a target pool in the specified project and region using the data included in the + * request. + * + *

Sample code: + * + *


+   * try (TargetPoolClient targetPoolClient = TargetPoolClient.create()) {
+   *   ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
+   *   TargetPool targetPoolResource = TargetPool.newBuilder().build();
+   *   InsertTargetPoolHttpRequest request = InsertTargetPoolHttpRequest.newBuilder()
+   *     .setRegion(region.toString())
+   *     .setTargetPoolResource(targetPoolResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetPoolClient.insertTargetPoolOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertTargetPoolOperationCallable() { + return stub.insertTargetPoolOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -941,7 +1079,7 @@ public final Operation insertTargetPool(InsertTargetPoolHttpRequest request) { * .build(); * ApiFuture<Operation> future = targetPoolClient.insertTargetPoolCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1096,7 +1234,7 @@ public final UnaryCallable listTarge * try (TargetPoolClient targetPoolClient = TargetPoolClient.create()) { * ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]"); * TargetPoolsRemoveHealthCheckRequest targetPoolsRemoveHealthCheckRequestResource = TargetPoolsRemoveHealthCheckRequest.newBuilder().build(); - * Operation response = targetPoolClient.removeHealthCheckTargetPool(targetPool, targetPoolsRemoveHealthCheckRequestResource); + * targetPoolClient.removeHealthCheckTargetPoolAsync(targetPool, targetPoolsRemoveHealthCheckRequestResource).get(); * } * * @@ -1104,8 +1242,9 @@ public final UnaryCallable listTarge * @param targetPoolsRemoveHealthCheckRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation removeHealthCheckTargetPool( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture removeHealthCheckTargetPoolAsync( ProjectRegionTargetPoolName targetPool, TargetPoolsRemoveHealthCheckRequest targetPoolsRemoveHealthCheckRequestResource) { @@ -1115,7 +1254,7 @@ public final Operation removeHealthCheckTargetPool( .setTargetPoolsRemoveHealthCheckRequestResource( targetPoolsRemoveHealthCheckRequestResource) .build(); - return removeHealthCheckTargetPool(request); + return removeHealthCheckTargetPoolAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1128,7 +1267,7 @@ public final Operation removeHealthCheckTargetPool( * try (TargetPoolClient targetPoolClient = TargetPoolClient.create()) { * ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]"); * TargetPoolsRemoveHealthCheckRequest targetPoolsRemoveHealthCheckRequestResource = TargetPoolsRemoveHealthCheckRequest.newBuilder().build(); - * Operation response = targetPoolClient.removeHealthCheckTargetPool(targetPool.toString(), targetPoolsRemoveHealthCheckRequestResource); + * targetPoolClient.removeHealthCheckTargetPoolAsync(targetPool.toString(), targetPoolsRemoveHealthCheckRequestResource).get(); * } * * @@ -1136,8 +1275,9 @@ public final Operation removeHealthCheckTargetPool( * @param targetPoolsRemoveHealthCheckRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation removeHealthCheckTargetPool( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture removeHealthCheckTargetPoolAsync( String targetPool, TargetPoolsRemoveHealthCheckRequest targetPoolsRemoveHealthCheckRequestResource) { @@ -1147,7 +1287,7 @@ public final Operation removeHealthCheckTargetPool( .setTargetPoolsRemoveHealthCheckRequestResource( targetPoolsRemoveHealthCheckRequestResource) .build(); - return removeHealthCheckTargetPool(request); + return removeHealthCheckTargetPoolAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1164,17 +1304,44 @@ public final Operation removeHealthCheckTargetPool( * .setTargetPool(targetPool.toString()) * .setTargetPoolsRemoveHealthCheckRequestResource(targetPoolsRemoveHealthCheckRequestResource) * .build(); - * Operation response = targetPoolClient.removeHealthCheckTargetPool(request); + * targetPoolClient.removeHealthCheckTargetPoolAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation removeHealthCheckTargetPool( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture removeHealthCheckTargetPoolAsync( RemoveHealthCheckTargetPoolHttpRequest request) { - return removeHealthCheckTargetPoolCallable().call(request); + return removeHealthCheckTargetPoolOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Removes health check URL from a target pool. + * + *

Sample code: + * + *


+   * try (TargetPoolClient targetPoolClient = TargetPoolClient.create()) {
+   *   ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]");
+   *   TargetPoolsRemoveHealthCheckRequest targetPoolsRemoveHealthCheckRequestResource = TargetPoolsRemoveHealthCheckRequest.newBuilder().build();
+   *   RemoveHealthCheckTargetPoolHttpRequest request = RemoveHealthCheckTargetPoolHttpRequest.newBuilder()
+   *     .setTargetPool(targetPool.toString())
+   *     .setTargetPoolsRemoveHealthCheckRequestResource(targetPoolsRemoveHealthCheckRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetPoolClient.removeHealthCheckTargetPoolOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + removeHealthCheckTargetPoolOperationCallable() { + return stub.removeHealthCheckTargetPoolOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1193,7 +1360,7 @@ public final Operation removeHealthCheckTargetPool( * .build(); * ApiFuture<Operation> future = targetPoolClient.removeHealthCheckTargetPoolCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1213,7 +1380,7 @@ public final Operation removeHealthCheckTargetPool( * try (TargetPoolClient targetPoolClient = TargetPoolClient.create()) { * ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]"); * TargetPoolsRemoveInstanceRequest targetPoolsRemoveInstanceRequestResource = TargetPoolsRemoveInstanceRequest.newBuilder().build(); - * Operation response = targetPoolClient.removeInstanceTargetPool(targetPool, targetPoolsRemoveInstanceRequestResource); + * targetPoolClient.removeInstanceTargetPoolAsync(targetPool, targetPoolsRemoveInstanceRequestResource).get(); * } * * @@ -1221,8 +1388,9 @@ public final Operation removeHealthCheckTargetPool( * @param targetPoolsRemoveInstanceRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation removeInstanceTargetPool( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture removeInstanceTargetPoolAsync( ProjectRegionTargetPoolName targetPool, TargetPoolsRemoveInstanceRequest targetPoolsRemoveInstanceRequestResource) { @@ -1231,7 +1399,7 @@ public final Operation removeInstanceTargetPool( .setTargetPool(targetPool == null ? null : targetPool.toString()) .setTargetPoolsRemoveInstanceRequestResource(targetPoolsRemoveInstanceRequestResource) .build(); - return removeInstanceTargetPool(request); + return removeInstanceTargetPoolAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1244,7 +1412,7 @@ public final Operation removeInstanceTargetPool( * try (TargetPoolClient targetPoolClient = TargetPoolClient.create()) { * ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]"); * TargetPoolsRemoveInstanceRequest targetPoolsRemoveInstanceRequestResource = TargetPoolsRemoveInstanceRequest.newBuilder().build(); - * Operation response = targetPoolClient.removeInstanceTargetPool(targetPool.toString(), targetPoolsRemoveInstanceRequestResource); + * targetPoolClient.removeInstanceTargetPoolAsync(targetPool.toString(), targetPoolsRemoveInstanceRequestResource).get(); * } * * @@ -1252,8 +1420,9 @@ public final Operation removeInstanceTargetPool( * @param targetPoolsRemoveInstanceRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation removeInstanceTargetPool( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture removeInstanceTargetPoolAsync( String targetPool, TargetPoolsRemoveInstanceRequest targetPoolsRemoveInstanceRequestResource) { @@ -1262,7 +1431,7 @@ public final Operation removeInstanceTargetPool( .setTargetPool(targetPool) .setTargetPoolsRemoveInstanceRequestResource(targetPoolsRemoveInstanceRequestResource) .build(); - return removeInstanceTargetPool(request); + return removeInstanceTargetPoolAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1279,16 +1448,44 @@ public final Operation removeInstanceTargetPool( * .setTargetPool(targetPool.toString()) * .setTargetPoolsRemoveInstanceRequestResource(targetPoolsRemoveInstanceRequestResource) * .build(); - * Operation response = targetPoolClient.removeInstanceTargetPool(request); + * targetPoolClient.removeInstanceTargetPoolAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation removeInstanceTargetPool(RemoveInstanceTargetPoolHttpRequest request) { - return removeInstanceTargetPoolCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture removeInstanceTargetPoolAsync( + RemoveInstanceTargetPoolHttpRequest request) { + return removeInstanceTargetPoolOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Removes instance URL from a target pool. + * + *

Sample code: + * + *


+   * try (TargetPoolClient targetPoolClient = TargetPoolClient.create()) {
+   *   ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]");
+   *   TargetPoolsRemoveInstanceRequest targetPoolsRemoveInstanceRequestResource = TargetPoolsRemoveInstanceRequest.newBuilder().build();
+   *   RemoveInstanceTargetPoolHttpRequest request = RemoveInstanceTargetPoolHttpRequest.newBuilder()
+   *     .setTargetPool(targetPool.toString())
+   *     .setTargetPoolsRemoveInstanceRequestResource(targetPoolsRemoveInstanceRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetPoolClient.removeInstanceTargetPoolOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + removeInstanceTargetPoolOperationCallable() { + return stub.removeInstanceTargetPoolOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1307,7 +1504,7 @@ public final Operation removeInstanceTargetPool(RemoveInstanceTargetPoolHttpRequ * .build(); * ApiFuture<Operation> future = targetPoolClient.removeInstanceTargetPoolCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -1328,7 +1525,7 @@ public final Operation removeInstanceTargetPool(RemoveInstanceTargetPoolHttpRequ * ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]"); * Float failoverRatio = 0; * TargetReference targetReferenceResource = TargetReference.newBuilder().build(); - * Operation response = targetPoolClient.setBackupTargetPool(targetPool, failoverRatio, targetReferenceResource); + * targetPoolClient.setBackupTargetPoolAsync(targetPool, failoverRatio, targetReferenceResource).get(); * } * * @@ -1337,8 +1534,9 @@ public final Operation removeInstanceTargetPool(RemoveInstanceTargetPoolHttpRequ * @param targetReferenceResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setBackupTargetPool( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setBackupTargetPoolAsync( ProjectRegionTargetPoolName targetPool, Float failoverRatio, TargetReference targetReferenceResource) { @@ -1349,7 +1547,7 @@ public final Operation setBackupTargetPool( .setFailoverRatio(failoverRatio) .setTargetReferenceResource(targetReferenceResource) .build(); - return setBackupTargetPool(request); + return setBackupTargetPoolAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1363,7 +1561,7 @@ public final Operation setBackupTargetPool( * ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]"); * Float failoverRatio = 0; * TargetReference targetReferenceResource = TargetReference.newBuilder().build(); - * Operation response = targetPoolClient.setBackupTargetPool(targetPool.toString(), failoverRatio, targetReferenceResource); + * targetPoolClient.setBackupTargetPoolAsync(targetPool.toString(), failoverRatio, targetReferenceResource).get(); * } * * @@ -1372,8 +1570,9 @@ public final Operation setBackupTargetPool( * @param targetReferenceResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setBackupTargetPool( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setBackupTargetPoolAsync( String targetPool, Float failoverRatio, TargetReference targetReferenceResource) { SetBackupTargetPoolHttpRequest request = @@ -1382,7 +1581,7 @@ public final Operation setBackupTargetPool( .setFailoverRatio(failoverRatio) .setTargetReferenceResource(targetReferenceResource) .build(); - return setBackupTargetPool(request); + return setBackupTargetPoolAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1401,16 +1600,46 @@ public final Operation setBackupTargetPool( * .setFailoverRatio(failoverRatio) * .setTargetReferenceResource(targetReferenceResource) * .build(); - * Operation response = targetPoolClient.setBackupTargetPool(request); + * targetPoolClient.setBackupTargetPoolAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setBackupTargetPool(SetBackupTargetPoolHttpRequest request) { - return setBackupTargetPoolCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setBackupTargetPoolAsync( + SetBackupTargetPoolHttpRequest request) { + return setBackupTargetPoolOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Changes a backup target pool's configurations. + * + *

Sample code: + * + *


+   * try (TargetPoolClient targetPoolClient = TargetPoolClient.create()) {
+   *   ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]");
+   *   Float failoverRatio = 0;
+   *   TargetReference targetReferenceResource = TargetReference.newBuilder().build();
+   *   SetBackupTargetPoolHttpRequest request = SetBackupTargetPoolHttpRequest.newBuilder()
+   *     .setTargetPool(targetPool.toString())
+   *     .setFailoverRatio(failoverRatio)
+   *     .setTargetReferenceResource(targetReferenceResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetPoolClient.setBackupTargetPoolOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + setBackupTargetPoolOperationCallable() { + return stub.setBackupTargetPoolOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1431,7 +1660,7 @@ public final Operation setBackupTargetPool(SetBackupTargetPoolHttpRequest reques * .build(); * ApiFuture<Operation> future = targetPoolClient.setBackupTargetPoolCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolSettings.java index 449fb686d9ef..da3b3966a06a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolSettings.java @@ -22,10 +22,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -49,13 +51,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of addHealthCheckTargetPool to 30 seconds: + * example, to set the total timeout of getTargetPool to 30 seconds: * *

  * 
  * TargetPoolSettings.Builder targetPoolSettingsBuilder =
  *     TargetPoolSettings.newBuilder();
- * targetPoolSettingsBuilder.addHealthCheckTargetPoolSettings().getRetrySettings().toBuilder()
+ * targetPoolSettingsBuilder.getTargetPoolSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * TargetPoolSettings targetPoolSettings = targetPoolSettingsBuilder.build();
  * 
@@ -70,12 +72,28 @@ public class TargetPoolSettings extends ClientSettings {
     return ((TargetPoolStubSettings) getStubSettings()).addHealthCheckTargetPoolSettings();
   }
 
+  /** Returns the object with the settings used for calls to addHealthCheckTargetPool. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      addHealthCheckTargetPoolOperationSettings() {
+    return ((TargetPoolStubSettings) getStubSettings()).addHealthCheckTargetPoolOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to addInstanceTargetPool. */
   public UnaryCallSettings
       addInstanceTargetPoolSettings() {
     return ((TargetPoolStubSettings) getStubSettings()).addInstanceTargetPoolSettings();
   }
 
+  /** Returns the object with the settings used for calls to addInstanceTargetPool. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      addInstanceTargetPoolOperationSettings() {
+    return ((TargetPoolStubSettings) getStubSettings()).addInstanceTargetPoolOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to aggregatedListTargetPools. */
   public PagedCallSettings<
           AggregatedListTargetPoolsHttpRequest,
@@ -90,6 +108,14 @@ public UnaryCallSettings deleteTargetPoo
     return ((TargetPoolStubSettings) getStubSettings()).deleteTargetPoolSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteTargetPool. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteTargetPoolOperationSettings() {
+    return ((TargetPoolStubSettings) getStubSettings()).deleteTargetPoolOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getTargetPool. */
   public UnaryCallSettings getTargetPoolSettings() {
     return ((TargetPoolStubSettings) getStubSettings()).getTargetPoolSettings();
@@ -106,6 +132,14 @@ public UnaryCallSettings insertTargetPoo
     return ((TargetPoolStubSettings) getStubSettings()).insertTargetPoolSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertTargetPool. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertTargetPoolOperationSettings() {
+    return ((TargetPoolStubSettings) getStubSettings()).insertTargetPoolOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listTargetPools. */
   public PagedCallSettings
       listTargetPoolsSettings() {
@@ -118,18 +152,43 @@ public UnaryCallSettings insertTargetPoo
     return ((TargetPoolStubSettings) getStubSettings()).removeHealthCheckTargetPoolSettings();
   }
 
+  /** Returns the object with the settings used for calls to removeHealthCheckTargetPool. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      removeHealthCheckTargetPoolOperationSettings() {
+    return ((TargetPoolStubSettings) getStubSettings())
+        .removeHealthCheckTargetPoolOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to removeInstanceTargetPool. */
   public UnaryCallSettings
       removeInstanceTargetPoolSettings() {
     return ((TargetPoolStubSettings) getStubSettings()).removeInstanceTargetPoolSettings();
   }
 
+  /** Returns the object with the settings used for calls to removeInstanceTargetPool. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      removeInstanceTargetPoolOperationSettings() {
+    return ((TargetPoolStubSettings) getStubSettings()).removeInstanceTargetPoolOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setBackupTargetPool. */
   public UnaryCallSettings
       setBackupTargetPoolSettings() {
     return ((TargetPoolStubSettings) getStubSettings()).setBackupTargetPoolSettings();
   }
 
+  /** Returns the object with the settings used for calls to setBackupTargetPool. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setBackupTargetPoolOperationSettings() {
+    return ((TargetPoolStubSettings) getStubSettings()).setBackupTargetPoolOperationSettings();
+  }
+
   public static final TargetPoolSettings create(TargetPoolStubSettings stub) throws IOException {
     return new TargetPoolSettings.Builder(stub.toBuilder()).build();
   }
@@ -237,12 +296,30 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().addHealthCheckTargetPoolSettings();
     }
 
+    /** Returns the builder for the settings used for calls to addHealthCheckTargetPool. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            AddHealthCheckTargetPoolHttpRequest, EmptyMessage, EmptyMessage>
+        addHealthCheckTargetPoolOperationSettings() {
+      return getStubSettingsBuilder().addHealthCheckTargetPoolOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to addInstanceTargetPool. */
     public UnaryCallSettings.Builder
         addInstanceTargetPoolSettings() {
       return getStubSettingsBuilder().addInstanceTargetPoolSettings();
     }
 
+    /** Returns the builder for the settings used for calls to addInstanceTargetPool. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            AddInstanceTargetPoolHttpRequest, EmptyMessage, EmptyMessage>
+        addInstanceTargetPoolOperationSettings() {
+      return getStubSettingsBuilder().addInstanceTargetPoolOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to aggregatedListTargetPools. */
     public PagedCallSettings.Builder<
             AggregatedListTargetPoolsHttpRequest,
@@ -258,6 +335,14 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteTargetPoolSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteTargetPool. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteTargetPoolOperationSettings() {
+      return getStubSettingsBuilder().deleteTargetPoolOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getTargetPool. */
     public UnaryCallSettings.Builder getTargetPoolSettings() {
       return getStubSettingsBuilder().getTargetPoolSettings();
@@ -275,6 +360,14 @@ public UnaryCallSettings.Builder getTarget
       return getStubSettingsBuilder().insertTargetPoolSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertTargetPool. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertTargetPoolOperationSettings() {
+      return getStubSettingsBuilder().insertTargetPoolOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listTargetPools. */
     public PagedCallSettings.Builder<
             ListTargetPoolsHttpRequest, TargetPoolList, ListTargetPoolsPagedResponse>
@@ -288,18 +381,44 @@ public UnaryCallSettings.Builder getTarget
       return getStubSettingsBuilder().removeHealthCheckTargetPoolSettings();
     }
 
+    /** Returns the builder for the settings used for calls to removeHealthCheckTargetPool. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            RemoveHealthCheckTargetPoolHttpRequest, EmptyMessage, EmptyMessage>
+        removeHealthCheckTargetPoolOperationSettings() {
+      return getStubSettingsBuilder().removeHealthCheckTargetPoolOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to removeInstanceTargetPool. */
     public UnaryCallSettings.Builder
         removeInstanceTargetPoolSettings() {
       return getStubSettingsBuilder().removeInstanceTargetPoolSettings();
     }
 
+    /** Returns the builder for the settings used for calls to removeInstanceTargetPool. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            RemoveInstanceTargetPoolHttpRequest, EmptyMessage, EmptyMessage>
+        removeInstanceTargetPoolOperationSettings() {
+      return getStubSettingsBuilder().removeInstanceTargetPoolOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setBackupTargetPool. */
     public UnaryCallSettings.Builder
         setBackupTargetPoolSettings() {
       return getStubSettingsBuilder().setBackupTargetPoolSettings();
     }
 
+    /** Returns the builder for the settings used for calls to setBackupTargetPool. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        setBackupTargetPoolOperationSettings() {
+      return getStubSettingsBuilder().setBackupTargetPoolOperationSettings();
+    }
+
     @Override
     public TargetPoolSettings build() throws IOException {
       return new TargetPoolSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyClient.java
index 443a8fb50925..01ec164d6471 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.TargetSslProxyStub;
@@ -43,7 +46,7 @@
  * 
  * try (TargetSslProxyClient targetSslProxyClient = TargetSslProxyClient.create()) {
  *   ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]");
- *   Operation response = targetSslProxyClient.deleteTargetSslProxy(targetSslProxy);
+ *   TargetSslProxy response = targetSslProxyClient.getTargetSslProxy(targetSslProxy);
  * }
  * 
  * 
@@ -103,6 +106,7 @@ public class TargetSslProxyClient implements BackgroundResource { private final TargetSslProxySettings settings; private final TargetSslProxyStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of TargetSslProxyClient with default settings. */ public static final TargetSslProxyClient create() throws IOException { @@ -135,12 +139,14 @@ public static final TargetSslProxyClient create(TargetSslProxyStub stub) { protected TargetSslProxyClient(TargetSslProxySettings settings) throws IOException { this.settings = settings; this.stub = ((TargetSslProxyStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected TargetSslProxyClient(TargetSslProxyStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final TargetSslProxySettings getSettings() { @@ -152,6 +158,16 @@ public TargetSslProxyStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Deletes the specified TargetSslProxy resource. @@ -161,21 +177,23 @@ public TargetSslProxyStub getStub() { *

    * try (TargetSslProxyClient targetSslProxyClient = TargetSslProxyClient.create()) {
    *   ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]");
-   *   Operation response = targetSslProxyClient.deleteTargetSslProxy(targetSslProxy);
+   *   targetSslProxyClient.deleteTargetSslProxyAsync(targetSslProxy).get();
    * }
    * 
* * @param targetSslProxy Name of the TargetSslProxy resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteTargetSslProxy(ProjectGlobalTargetSslProxyName targetSslProxy) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteTargetSslProxyAsync( + ProjectGlobalTargetSslProxyName targetSslProxy) { DeleteTargetSslProxyHttpRequest request = DeleteTargetSslProxyHttpRequest.newBuilder() .setTargetSslProxy(targetSslProxy == null ? null : targetSslProxy.toString()) .build(); - return deleteTargetSslProxy(request); + return deleteTargetSslProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -187,19 +205,21 @@ public final Operation deleteTargetSslProxy(ProjectGlobalTargetSslProxyName targ *

    * try (TargetSslProxyClient targetSslProxyClient = TargetSslProxyClient.create()) {
    *   ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]");
-   *   Operation response = targetSslProxyClient.deleteTargetSslProxy(targetSslProxy.toString());
+   *   targetSslProxyClient.deleteTargetSslProxyAsync(targetSslProxy.toString()).get();
    * }
    * 
* * @param targetSslProxy Name of the TargetSslProxy resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteTargetSslProxy(String targetSslProxy) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteTargetSslProxyAsync( + String targetSslProxy) { DeleteTargetSslProxyHttpRequest request = DeleteTargetSslProxyHttpRequest.newBuilder().setTargetSslProxy(targetSslProxy).build(); - return deleteTargetSslProxy(request); + return deleteTargetSslProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -214,16 +234,42 @@ public final Operation deleteTargetSslProxy(String targetSslProxy) { * DeleteTargetSslProxyHttpRequest request = DeleteTargetSslProxyHttpRequest.newBuilder() * .setTargetSslProxy(targetSslProxy.toString()) * .build(); - * Operation response = targetSslProxyClient.deleteTargetSslProxy(request); + * targetSslProxyClient.deleteTargetSslProxyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteTargetSslProxy(DeleteTargetSslProxyHttpRequest request) { - return deleteTargetSslProxyCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteTargetSslProxyAsync( + DeleteTargetSslProxyHttpRequest request) { + return deleteTargetSslProxyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified TargetSslProxy resource. + * + *

Sample code: + * + *


+   * try (TargetSslProxyClient targetSslProxyClient = TargetSslProxyClient.create()) {
+   *   ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]");
+   *   DeleteTargetSslProxyHttpRequest request = DeleteTargetSslProxyHttpRequest.newBuilder()
+   *     .setTargetSslProxy(targetSslProxy.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetSslProxyClient.deleteTargetSslProxyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteTargetSslProxyOperationCallable() { + return stub.deleteTargetSslProxyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -240,7 +286,7 @@ public final Operation deleteTargetSslProxy(DeleteTargetSslProxyHttpRequest requ * .build(); * ApiFuture<Operation> future = targetSslProxyClient.deleteTargetSslProxyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -363,7 +409,7 @@ public final TargetSslProxy getTargetSslProxy(GetTargetSslProxyHttpRequest reque * try (TargetSslProxyClient targetSslProxyClient = TargetSslProxyClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * TargetSslProxy targetSslProxyResource = TargetSslProxy.newBuilder().build(); - * Operation response = targetSslProxyClient.insertTargetSslProxy(project, targetSslProxyResource); + * targetSslProxyClient.insertTargetSslProxyAsync(project, targetSslProxyResource).get(); * } * * @@ -372,8 +418,9 @@ public final TargetSslProxy getTargetSslProxy(GetTargetSslProxyHttpRequest reque * (== resource_for beta.targetSslProxies ==) (== resource_for v1.targetSslProxies ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertTargetSslProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertTargetSslProxyAsync( ProjectName project, TargetSslProxy targetSslProxyResource) { InsertTargetSslProxyHttpRequest request = @@ -381,7 +428,7 @@ public final Operation insertTargetSslProxy( .setProject(project == null ? null : project.toString()) .setTargetSslProxyResource(targetSslProxyResource) .build(); - return insertTargetSslProxy(request); + return insertTargetSslProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -395,7 +442,7 @@ public final Operation insertTargetSslProxy( * try (TargetSslProxyClient targetSslProxyClient = TargetSslProxyClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * TargetSslProxy targetSslProxyResource = TargetSslProxy.newBuilder().build(); - * Operation response = targetSslProxyClient.insertTargetSslProxy(project.toString(), targetSslProxyResource); + * targetSslProxyClient.insertTargetSslProxyAsync(project.toString(), targetSslProxyResource).get(); * } * * @@ -404,8 +451,9 @@ public final Operation insertTargetSslProxy( * (== resource_for beta.targetSslProxies ==) (== resource_for v1.targetSslProxies ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertTargetSslProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertTargetSslProxyAsync( String project, TargetSslProxy targetSslProxyResource) { InsertTargetSslProxyHttpRequest request = @@ -413,7 +461,7 @@ public final Operation insertTargetSslProxy( .setProject(project) .setTargetSslProxyResource(targetSslProxyResource) .build(); - return insertTargetSslProxy(request); + return insertTargetSslProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -431,16 +479,45 @@ public final Operation insertTargetSslProxy( * .setProject(project.toString()) * .setTargetSslProxyResource(targetSslProxyResource) * .build(); - * Operation response = targetSslProxyClient.insertTargetSslProxy(request); + * targetSslProxyClient.insertTargetSslProxyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertTargetSslProxy(InsertTargetSslProxyHttpRequest request) { - return insertTargetSslProxyCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertTargetSslProxyAsync( + InsertTargetSslProxyHttpRequest request) { + return insertTargetSslProxyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a TargetSslProxy resource in the specified project using the data included in the + * request. + * + *

Sample code: + * + *


+   * try (TargetSslProxyClient targetSslProxyClient = TargetSslProxyClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   TargetSslProxy targetSslProxyResource = TargetSslProxy.newBuilder().build();
+   *   InsertTargetSslProxyHttpRequest request = InsertTargetSslProxyHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setTargetSslProxyResource(targetSslProxyResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetSslProxyClient.insertTargetSslProxyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertTargetSslProxyOperationCallable() { + return stub.insertTargetSslProxyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -460,7 +537,7 @@ public final Operation insertTargetSslProxy(InsertTargetSslProxyHttpRequest requ * .build(); * ApiFuture<Operation> future = targetSslProxyClient.insertTargetSslProxyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -618,7 +695,7 @@ public final ListTargetSslProxiesPagedResponse listTargetSslProxies( * try (TargetSslProxyClient targetSslProxyClient = TargetSslProxyClient.create()) { * ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]"); * TargetSslProxiesSetBackendServiceRequest targetSslProxiesSetBackendServiceRequestResource = TargetSslProxiesSetBackendServiceRequest.newBuilder().build(); - * Operation response = targetSslProxyClient.setBackendServiceTargetSslProxy(targetSslProxy, targetSslProxiesSetBackendServiceRequestResource); + * targetSslProxyClient.setBackendServiceTargetSslProxyAsync(targetSslProxy, targetSslProxiesSetBackendServiceRequestResource).get(); * } * * @@ -627,8 +704,9 @@ public final ListTargetSslProxiesPagedResponse listTargetSslProxies( * @param targetSslProxiesSetBackendServiceRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setBackendServiceTargetSslProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setBackendServiceTargetSslProxyAsync( ProjectGlobalTargetSslProxyName targetSslProxy, TargetSslProxiesSetBackendServiceRequest targetSslProxiesSetBackendServiceRequestResource) { @@ -638,7 +716,7 @@ public final Operation setBackendServiceTargetSslProxy( .setTargetSslProxiesSetBackendServiceRequestResource( targetSslProxiesSetBackendServiceRequestResource) .build(); - return setBackendServiceTargetSslProxy(request); + return setBackendServiceTargetSslProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -651,7 +729,7 @@ public final Operation setBackendServiceTargetSslProxy( * try (TargetSslProxyClient targetSslProxyClient = TargetSslProxyClient.create()) { * ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]"); * TargetSslProxiesSetBackendServiceRequest targetSslProxiesSetBackendServiceRequestResource = TargetSslProxiesSetBackendServiceRequest.newBuilder().build(); - * Operation response = targetSslProxyClient.setBackendServiceTargetSslProxy(targetSslProxy.toString(), targetSslProxiesSetBackendServiceRequestResource); + * targetSslProxyClient.setBackendServiceTargetSslProxyAsync(targetSslProxy.toString(), targetSslProxiesSetBackendServiceRequestResource).get(); * } * * @@ -660,8 +738,9 @@ public final Operation setBackendServiceTargetSslProxy( * @param targetSslProxiesSetBackendServiceRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setBackendServiceTargetSslProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setBackendServiceTargetSslProxyAsync( String targetSslProxy, TargetSslProxiesSetBackendServiceRequest targetSslProxiesSetBackendServiceRequestResource) { @@ -671,7 +750,7 @@ public final Operation setBackendServiceTargetSslProxy( .setTargetSslProxiesSetBackendServiceRequestResource( targetSslProxiesSetBackendServiceRequestResource) .build(); - return setBackendServiceTargetSslProxy(request); + return setBackendServiceTargetSslProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -688,17 +767,45 @@ public final Operation setBackendServiceTargetSslProxy( * .setTargetSslProxy(targetSslProxy.toString()) * .setTargetSslProxiesSetBackendServiceRequestResource(targetSslProxiesSetBackendServiceRequestResource) * .build(); - * Operation response = targetSslProxyClient.setBackendServiceTargetSslProxy(request); + * targetSslProxyClient.setBackendServiceTargetSslProxyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setBackendServiceTargetSslProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setBackendServiceTargetSslProxyAsync( SetBackendServiceTargetSslProxyHttpRequest request) { - return setBackendServiceTargetSslProxyCallable().call(request); + return setBackendServiceTargetSslProxyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Changes the BackendService for TargetSslProxy. + * + *

Sample code: + * + *


+   * try (TargetSslProxyClient targetSslProxyClient = TargetSslProxyClient.create()) {
+   *   ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]");
+   *   TargetSslProxiesSetBackendServiceRequest targetSslProxiesSetBackendServiceRequestResource = TargetSslProxiesSetBackendServiceRequest.newBuilder().build();
+   *   SetBackendServiceTargetSslProxyHttpRequest request = SetBackendServiceTargetSslProxyHttpRequest.newBuilder()
+   *     .setTargetSslProxy(targetSslProxy.toString())
+   *     .setTargetSslProxiesSetBackendServiceRequestResource(targetSslProxiesSetBackendServiceRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetSslProxyClient.setBackendServiceTargetSslProxyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + SetBackendServiceTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + setBackendServiceTargetSslProxyOperationCallable() { + return stub.setBackendServiceTargetSslProxyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -717,7 +824,7 @@ public final Operation setBackendServiceTargetSslProxy( * .build(); * ApiFuture<Operation> future = targetSslProxyClient.setBackendServiceTargetSslProxyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -737,7 +844,7 @@ public final Operation setBackendServiceTargetSslProxy( * try (TargetSslProxyClient targetSslProxyClient = TargetSslProxyClient.create()) { * ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]"); * TargetSslProxiesSetProxyHeaderRequest targetSslProxiesSetProxyHeaderRequestResource = TargetSslProxiesSetProxyHeaderRequest.newBuilder().build(); - * Operation response = targetSslProxyClient.setProxyHeaderTargetSslProxy(targetSslProxy, targetSslProxiesSetProxyHeaderRequestResource); + * targetSslProxyClient.setProxyHeaderTargetSslProxyAsync(targetSslProxy, targetSslProxiesSetProxyHeaderRequestResource).get(); * } * * @@ -745,8 +852,9 @@ public final Operation setBackendServiceTargetSslProxy( * @param targetSslProxiesSetProxyHeaderRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setProxyHeaderTargetSslProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setProxyHeaderTargetSslProxyAsync( ProjectGlobalTargetSslProxyName targetSslProxy, TargetSslProxiesSetProxyHeaderRequest targetSslProxiesSetProxyHeaderRequestResource) { @@ -756,7 +864,7 @@ public final Operation setProxyHeaderTargetSslProxy( .setTargetSslProxiesSetProxyHeaderRequestResource( targetSslProxiesSetProxyHeaderRequestResource) .build(); - return setProxyHeaderTargetSslProxy(request); + return setProxyHeaderTargetSslProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -769,7 +877,7 @@ public final Operation setProxyHeaderTargetSslProxy( * try (TargetSslProxyClient targetSslProxyClient = TargetSslProxyClient.create()) { * ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]"); * TargetSslProxiesSetProxyHeaderRequest targetSslProxiesSetProxyHeaderRequestResource = TargetSslProxiesSetProxyHeaderRequest.newBuilder().build(); - * Operation response = targetSslProxyClient.setProxyHeaderTargetSslProxy(targetSslProxy.toString(), targetSslProxiesSetProxyHeaderRequestResource); + * targetSslProxyClient.setProxyHeaderTargetSslProxyAsync(targetSslProxy.toString(), targetSslProxiesSetProxyHeaderRequestResource).get(); * } * * @@ -777,8 +885,9 @@ public final Operation setProxyHeaderTargetSslProxy( * @param targetSslProxiesSetProxyHeaderRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setProxyHeaderTargetSslProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setProxyHeaderTargetSslProxyAsync( String targetSslProxy, TargetSslProxiesSetProxyHeaderRequest targetSslProxiesSetProxyHeaderRequestResource) { @@ -788,7 +897,7 @@ public final Operation setProxyHeaderTargetSslProxy( .setTargetSslProxiesSetProxyHeaderRequestResource( targetSslProxiesSetProxyHeaderRequestResource) .build(); - return setProxyHeaderTargetSslProxy(request); + return setProxyHeaderTargetSslProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -805,17 +914,45 @@ public final Operation setProxyHeaderTargetSslProxy( * .setTargetSslProxy(targetSslProxy.toString()) * .setTargetSslProxiesSetProxyHeaderRequestResource(targetSslProxiesSetProxyHeaderRequestResource) * .build(); - * Operation response = targetSslProxyClient.setProxyHeaderTargetSslProxy(request); + * targetSslProxyClient.setProxyHeaderTargetSslProxyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setProxyHeaderTargetSslProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setProxyHeaderTargetSslProxyAsync( SetProxyHeaderTargetSslProxyHttpRequest request) { - return setProxyHeaderTargetSslProxyCallable().call(request); + return setProxyHeaderTargetSslProxyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Changes the ProxyHeaderType for TargetSslProxy. + * + *

Sample code: + * + *


+   * try (TargetSslProxyClient targetSslProxyClient = TargetSslProxyClient.create()) {
+   *   ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]");
+   *   TargetSslProxiesSetProxyHeaderRequest targetSslProxiesSetProxyHeaderRequestResource = TargetSslProxiesSetProxyHeaderRequest.newBuilder().build();
+   *   SetProxyHeaderTargetSslProxyHttpRequest request = SetProxyHeaderTargetSslProxyHttpRequest.newBuilder()
+   *     .setTargetSslProxy(targetSslProxy.toString())
+   *     .setTargetSslProxiesSetProxyHeaderRequestResource(targetSslProxiesSetProxyHeaderRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetSslProxyClient.setProxyHeaderTargetSslProxyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + SetProxyHeaderTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + setProxyHeaderTargetSslProxyOperationCallable() { + return stub.setProxyHeaderTargetSslProxyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -834,7 +971,7 @@ public final Operation setProxyHeaderTargetSslProxy( * .build(); * ApiFuture<Operation> future = targetSslProxyClient.setProxyHeaderTargetSslProxyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -854,7 +991,7 @@ public final Operation setProxyHeaderTargetSslProxy( * try (TargetSslProxyClient targetSslProxyClient = TargetSslProxyClient.create()) { * ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]"); * TargetSslProxiesSetSslCertificatesRequest targetSslProxiesSetSslCertificatesRequestResource = TargetSslProxiesSetSslCertificatesRequest.newBuilder().build(); - * Operation response = targetSslProxyClient.setSslCertificatesTargetSslProxy(targetSslProxy, targetSslProxiesSetSslCertificatesRequestResource); + * targetSslProxyClient.setSslCertificatesTargetSslProxyAsync(targetSslProxy, targetSslProxiesSetSslCertificatesRequestResource).get(); * } * * @@ -863,8 +1000,9 @@ public final Operation setProxyHeaderTargetSslProxy( * @param targetSslProxiesSetSslCertificatesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setSslCertificatesTargetSslProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setSslCertificatesTargetSslProxyAsync( ProjectGlobalTargetSslProxyName targetSslProxy, TargetSslProxiesSetSslCertificatesRequest targetSslProxiesSetSslCertificatesRequestResource) { @@ -874,7 +1012,7 @@ public final Operation setSslCertificatesTargetSslProxy( .setTargetSslProxiesSetSslCertificatesRequestResource( targetSslProxiesSetSslCertificatesRequestResource) .build(); - return setSslCertificatesTargetSslProxy(request); + return setSslCertificatesTargetSslProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -887,7 +1025,7 @@ public final Operation setSslCertificatesTargetSslProxy( * try (TargetSslProxyClient targetSslProxyClient = TargetSslProxyClient.create()) { * ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]"); * TargetSslProxiesSetSslCertificatesRequest targetSslProxiesSetSslCertificatesRequestResource = TargetSslProxiesSetSslCertificatesRequest.newBuilder().build(); - * Operation response = targetSslProxyClient.setSslCertificatesTargetSslProxy(targetSslProxy.toString(), targetSslProxiesSetSslCertificatesRequestResource); + * targetSslProxyClient.setSslCertificatesTargetSslProxyAsync(targetSslProxy.toString(), targetSslProxiesSetSslCertificatesRequestResource).get(); * } * * @@ -896,8 +1034,9 @@ public final Operation setSslCertificatesTargetSslProxy( * @param targetSslProxiesSetSslCertificatesRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setSslCertificatesTargetSslProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setSslCertificatesTargetSslProxyAsync( String targetSslProxy, TargetSslProxiesSetSslCertificatesRequest targetSslProxiesSetSslCertificatesRequestResource) { @@ -907,7 +1046,7 @@ public final Operation setSslCertificatesTargetSslProxy( .setTargetSslProxiesSetSslCertificatesRequestResource( targetSslProxiesSetSslCertificatesRequestResource) .build(); - return setSslCertificatesTargetSslProxy(request); + return setSslCertificatesTargetSslProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -924,17 +1063,45 @@ public final Operation setSslCertificatesTargetSslProxy( * .setTargetSslProxy(targetSslProxy.toString()) * .setTargetSslProxiesSetSslCertificatesRequestResource(targetSslProxiesSetSslCertificatesRequestResource) * .build(); - * Operation response = targetSslProxyClient.setSslCertificatesTargetSslProxy(request); + * targetSslProxyClient.setSslCertificatesTargetSslProxyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setSslCertificatesTargetSslProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setSslCertificatesTargetSslProxyAsync( SetSslCertificatesTargetSslProxyHttpRequest request) { - return setSslCertificatesTargetSslProxyCallable().call(request); + return setSslCertificatesTargetSslProxyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Changes SslCertificates for TargetSslProxy. + * + *

Sample code: + * + *


+   * try (TargetSslProxyClient targetSslProxyClient = TargetSslProxyClient.create()) {
+   *   ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]");
+   *   TargetSslProxiesSetSslCertificatesRequest targetSslProxiesSetSslCertificatesRequestResource = TargetSslProxiesSetSslCertificatesRequest.newBuilder().build();
+   *   SetSslCertificatesTargetSslProxyHttpRequest request = SetSslCertificatesTargetSslProxyHttpRequest.newBuilder()
+   *     .setTargetSslProxy(targetSslProxy.toString())
+   *     .setTargetSslProxiesSetSslCertificatesRequestResource(targetSslProxiesSetSslCertificatesRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetSslProxyClient.setSslCertificatesTargetSslProxyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + SetSslCertificatesTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + setSslCertificatesTargetSslProxyOperationCallable() { + return stub.setSslCertificatesTargetSslProxyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -953,7 +1120,7 @@ public final Operation setSslCertificatesTargetSslProxy( * .build(); * ApiFuture<Operation> future = targetSslProxyClient.setSslCertificatesTargetSslProxyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -975,7 +1142,7 @@ public final Operation setSslCertificatesTargetSslProxy( * try (TargetSslProxyClient targetSslProxyClient = TargetSslProxyClient.create()) { * ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]"); * SslPolicyReference sslPolicyReferenceResource = SslPolicyReference.newBuilder().build(); - * Operation response = targetSslProxyClient.setSslPolicyTargetSslProxy(targetSslProxy, sslPolicyReferenceResource); + * targetSslProxyClient.setSslPolicyTargetSslProxyAsync(targetSslProxy, sslPolicyReferenceResource).get(); * } * * @@ -984,8 +1151,9 @@ public final Operation setSslCertificatesTargetSslProxy( * @param sslPolicyReferenceResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setSslPolicyTargetSslProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setSslPolicyTargetSslProxyAsync( ProjectGlobalTargetSslProxyName targetSslProxy, SslPolicyReference sslPolicyReferenceResource) { @@ -994,7 +1162,7 @@ public final Operation setSslPolicyTargetSslProxy( .setTargetSslProxy(targetSslProxy == null ? null : targetSslProxy.toString()) .setSslPolicyReferenceResource(sslPolicyReferenceResource) .build(); - return setSslPolicyTargetSslProxy(request); + return setSslPolicyTargetSslProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1009,7 +1177,7 @@ public final Operation setSslPolicyTargetSslProxy( * try (TargetSslProxyClient targetSslProxyClient = TargetSslProxyClient.create()) { * ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]"); * SslPolicyReference sslPolicyReferenceResource = SslPolicyReference.newBuilder().build(); - * Operation response = targetSslProxyClient.setSslPolicyTargetSslProxy(targetSslProxy.toString(), sslPolicyReferenceResource); + * targetSslProxyClient.setSslPolicyTargetSslProxyAsync(targetSslProxy.toString(), sslPolicyReferenceResource).get(); * } * * @@ -1018,8 +1186,9 @@ public final Operation setSslPolicyTargetSslProxy( * @param sslPolicyReferenceResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setSslPolicyTargetSslProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setSslPolicyTargetSslProxyAsync( String targetSslProxy, SslPolicyReference sslPolicyReferenceResource) { SetSslPolicyTargetSslProxyHttpRequest request = @@ -1027,7 +1196,7 @@ public final Operation setSslPolicyTargetSslProxy( .setTargetSslProxy(targetSslProxy) .setSslPolicyReferenceResource(sslPolicyReferenceResource) .build(); - return setSslPolicyTargetSslProxy(request); + return setSslPolicyTargetSslProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1046,16 +1215,46 @@ public final Operation setSslPolicyTargetSslProxy( * .setTargetSslProxy(targetSslProxy.toString()) * .setSslPolicyReferenceResource(sslPolicyReferenceResource) * .build(); - * Operation response = targetSslProxyClient.setSslPolicyTargetSslProxy(request); + * targetSslProxyClient.setSslPolicyTargetSslProxyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setSslPolicyTargetSslProxy(SetSslPolicyTargetSslProxyHttpRequest request) { - return setSslPolicyTargetSslProxyCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setSslPolicyTargetSslProxyAsync( + SetSslPolicyTargetSslProxyHttpRequest request) { + return setSslPolicyTargetSslProxyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for + * SSL features. This affects connections between clients and the SSL proxy load balancer. They do + * not affect the connection between the load balancer and the backends. + * + *

Sample code: + * + *


+   * try (TargetSslProxyClient targetSslProxyClient = TargetSslProxyClient.create()) {
+   *   ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]");
+   *   SslPolicyReference sslPolicyReferenceResource = SslPolicyReference.newBuilder().build();
+   *   SetSslPolicyTargetSslProxyHttpRequest request = SetSslPolicyTargetSslProxyHttpRequest.newBuilder()
+   *     .setTargetSslProxy(targetSslProxy.toString())
+   *     .setSslPolicyReferenceResource(sslPolicyReferenceResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetSslProxyClient.setSslPolicyTargetSslProxyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + setSslPolicyTargetSslProxyOperationCallable() { + return stub.setSslPolicyTargetSslProxyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1076,7 +1275,7 @@ public final Operation setSslPolicyTargetSslProxy(SetSslPolicyTargetSslProxyHttp * .build(); * ApiFuture<Operation> future = targetSslProxyClient.setSslPolicyTargetSslProxyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxySettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxySettings.java index 98a0974de251..432f6b0e10a1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxySettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxySettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteTargetSslProxy to 30 seconds: + * example, to set the total timeout of getTargetSslProxy to 30 seconds: * *

  * 
  * TargetSslProxySettings.Builder targetSslProxySettingsBuilder =
  *     TargetSslProxySettings.newBuilder();
- * targetSslProxySettingsBuilder.deleteTargetSslProxySettings().getRetrySettings().toBuilder()
+ * targetSslProxySettingsBuilder.getTargetSslProxySettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * TargetSslProxySettings targetSslProxySettings = targetSslProxySettingsBuilder.build();
  * 
@@ -69,6 +71,14 @@ public class TargetSslProxySettings extends ClientSettings
+      deleteTargetSslProxyOperationSettings() {
+    return ((TargetSslProxyStubSettings) getStubSettings()).deleteTargetSslProxyOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getTargetSslProxy. */
   public UnaryCallSettings
       getTargetSslProxySettings() {
@@ -81,6 +91,14 @@ public class TargetSslProxySettings extends ClientSettings
+      insertTargetSslProxyOperationSettings() {
+    return ((TargetSslProxyStubSettings) getStubSettings()).insertTargetSslProxyOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listTargetSslProxies. */
   public PagedCallSettings<
           ListTargetSslProxiesHttpRequest, TargetSslProxyList, ListTargetSslProxiesPagedResponse>
@@ -95,12 +113,31 @@ public class TargetSslProxySettings extends ClientSettings
+      setBackendServiceTargetSslProxyOperationSettings() {
+    return ((TargetSslProxyStubSettings) getStubSettings())
+        .setBackendServiceTargetSslProxyOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setProxyHeaderTargetSslProxy. */
   public UnaryCallSettings
       setProxyHeaderTargetSslProxySettings() {
     return ((TargetSslProxyStubSettings) getStubSettings()).setProxyHeaderTargetSslProxySettings();
   }
 
+  /** Returns the object with the settings used for calls to setProxyHeaderTargetSslProxy. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setProxyHeaderTargetSslProxyOperationSettings() {
+    return ((TargetSslProxyStubSettings) getStubSettings())
+        .setProxyHeaderTargetSslProxyOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setSslCertificatesTargetSslProxy. */
   public UnaryCallSettings
       setSslCertificatesTargetSslProxySettings() {
@@ -108,12 +145,31 @@ public class TargetSslProxySettings extends ClientSettings
+      setSslCertificatesTargetSslProxyOperationSettings() {
+    return ((TargetSslProxyStubSettings) getStubSettings())
+        .setSslCertificatesTargetSslProxyOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setSslPolicyTargetSslProxy. */
   public UnaryCallSettings
       setSslPolicyTargetSslProxySettings() {
     return ((TargetSslProxyStubSettings) getStubSettings()).setSslPolicyTargetSslProxySettings();
   }
 
+  /** Returns the object with the settings used for calls to setSslPolicyTargetSslProxy. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setSslPolicyTargetSslProxyOperationSettings() {
+    return ((TargetSslProxyStubSettings) getStubSettings())
+        .setSslPolicyTargetSslProxyOperationSettings();
+  }
+
   public static final TargetSslProxySettings create(TargetSslProxyStubSettings stub)
       throws IOException {
     return new TargetSslProxySettings.Builder(stub.toBuilder()).build();
@@ -222,6 +278,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteTargetSslProxySettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteTargetSslProxy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+        deleteTargetSslProxyOperationSettings() {
+      return getStubSettingsBuilder().deleteTargetSslProxyOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getTargetSslProxy. */
     public UnaryCallSettings.Builder
         getTargetSslProxySettings() {
@@ -234,6 +299,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertTargetSslProxySettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertTargetSslProxy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+        insertTargetSslProxyOperationSettings() {
+      return getStubSettingsBuilder().insertTargetSslProxyOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listTargetSslProxies. */
     public PagedCallSettings.Builder<
             ListTargetSslProxiesHttpRequest, TargetSslProxyList, ListTargetSslProxiesPagedResponse>
@@ -247,24 +321,60 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().setBackendServiceTargetSslProxySettings();
     }
 
+    /** Returns the builder for the settings used for calls to setBackendServiceTargetSslProxy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetBackendServiceTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setBackendServiceTargetSslProxyOperationSettings() {
+      return getStubSettingsBuilder().setBackendServiceTargetSslProxyOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setProxyHeaderTargetSslProxy. */
     public UnaryCallSettings.Builder
         setProxyHeaderTargetSslProxySettings() {
       return getStubSettingsBuilder().setProxyHeaderTargetSslProxySettings();
     }
 
+    /** Returns the builder for the settings used for calls to setProxyHeaderTargetSslProxy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetProxyHeaderTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setProxyHeaderTargetSslProxyOperationSettings() {
+      return getStubSettingsBuilder().setProxyHeaderTargetSslProxyOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setSslCertificatesTargetSslProxy. */
     public UnaryCallSettings.Builder
         setSslCertificatesTargetSslProxySettings() {
       return getStubSettingsBuilder().setSslCertificatesTargetSslProxySettings();
     }
 
+    /** Returns the builder for the settings used for calls to setSslCertificatesTargetSslProxy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetSslCertificatesTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setSslCertificatesTargetSslProxyOperationSettings() {
+      return getStubSettingsBuilder().setSslCertificatesTargetSslProxyOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setSslPolicyTargetSslProxy. */
     public UnaryCallSettings.Builder
         setSslPolicyTargetSslProxySettings() {
       return getStubSettingsBuilder().setSslPolicyTargetSslProxySettings();
     }
 
+    /** Returns the builder for the settings used for calls to setSslPolicyTargetSslProxy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetSslPolicyTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setSslPolicyTargetSslProxyOperationSettings() {
+      return getStubSettingsBuilder().setSslPolicyTargetSslProxyOperationSettings();
+    }
+
     @Override
     public TargetSslProxySettings build() throws IOException {
       return new TargetSslProxySettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyClient.java
index 0fbcd7c51685..85e9c0c4fa9e 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.TargetTcpProxyStub;
@@ -43,7 +46,7 @@
  * 
  * try (TargetTcpProxyClient targetTcpProxyClient = TargetTcpProxyClient.create()) {
  *   ProjectGlobalTargetTcpProxyName targetTcpProxy = ProjectGlobalTargetTcpProxyName.of("[PROJECT]", "[TARGET_TCP_PROXY]");
- *   Operation response = targetTcpProxyClient.deleteTargetTcpProxy(targetTcpProxy);
+ *   TargetTcpProxy response = targetTcpProxyClient.getTargetTcpProxy(targetTcpProxy);
  * }
  * 
  * 
@@ -103,6 +106,7 @@ public class TargetTcpProxyClient implements BackgroundResource { private final TargetTcpProxySettings settings; private final TargetTcpProxyStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of TargetTcpProxyClient with default settings. */ public static final TargetTcpProxyClient create() throws IOException { @@ -135,12 +139,14 @@ public static final TargetTcpProxyClient create(TargetTcpProxyStub stub) { protected TargetTcpProxyClient(TargetTcpProxySettings settings) throws IOException { this.settings = settings; this.stub = ((TargetTcpProxyStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected TargetTcpProxyClient(TargetTcpProxyStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final TargetTcpProxySettings getSettings() { @@ -152,6 +158,16 @@ public TargetTcpProxyStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Deletes the specified TargetTcpProxy resource. @@ -161,21 +177,23 @@ public TargetTcpProxyStub getStub() { *

    * try (TargetTcpProxyClient targetTcpProxyClient = TargetTcpProxyClient.create()) {
    *   ProjectGlobalTargetTcpProxyName targetTcpProxy = ProjectGlobalTargetTcpProxyName.of("[PROJECT]", "[TARGET_TCP_PROXY]");
-   *   Operation response = targetTcpProxyClient.deleteTargetTcpProxy(targetTcpProxy);
+   *   targetTcpProxyClient.deleteTargetTcpProxyAsync(targetTcpProxy).get();
    * }
    * 
* * @param targetTcpProxy Name of the TargetTcpProxy resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteTargetTcpProxy(ProjectGlobalTargetTcpProxyName targetTcpProxy) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteTargetTcpProxyAsync( + ProjectGlobalTargetTcpProxyName targetTcpProxy) { DeleteTargetTcpProxyHttpRequest request = DeleteTargetTcpProxyHttpRequest.newBuilder() .setTargetTcpProxy(targetTcpProxy == null ? null : targetTcpProxy.toString()) .build(); - return deleteTargetTcpProxy(request); + return deleteTargetTcpProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -187,19 +205,21 @@ public final Operation deleteTargetTcpProxy(ProjectGlobalTargetTcpProxyName targ *

    * try (TargetTcpProxyClient targetTcpProxyClient = TargetTcpProxyClient.create()) {
    *   ProjectGlobalTargetTcpProxyName targetTcpProxy = ProjectGlobalTargetTcpProxyName.of("[PROJECT]", "[TARGET_TCP_PROXY]");
-   *   Operation response = targetTcpProxyClient.deleteTargetTcpProxy(targetTcpProxy.toString());
+   *   targetTcpProxyClient.deleteTargetTcpProxyAsync(targetTcpProxy.toString()).get();
    * }
    * 
* * @param targetTcpProxy Name of the TargetTcpProxy resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteTargetTcpProxy(String targetTcpProxy) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteTargetTcpProxyAsync( + String targetTcpProxy) { DeleteTargetTcpProxyHttpRequest request = DeleteTargetTcpProxyHttpRequest.newBuilder().setTargetTcpProxy(targetTcpProxy).build(); - return deleteTargetTcpProxy(request); + return deleteTargetTcpProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -214,16 +234,42 @@ public final Operation deleteTargetTcpProxy(String targetTcpProxy) { * DeleteTargetTcpProxyHttpRequest request = DeleteTargetTcpProxyHttpRequest.newBuilder() * .setTargetTcpProxy(targetTcpProxy.toString()) * .build(); - * Operation response = targetTcpProxyClient.deleteTargetTcpProxy(request); + * targetTcpProxyClient.deleteTargetTcpProxyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteTargetTcpProxy(DeleteTargetTcpProxyHttpRequest request) { - return deleteTargetTcpProxyCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteTargetTcpProxyAsync( + DeleteTargetTcpProxyHttpRequest request) { + return deleteTargetTcpProxyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified TargetTcpProxy resource. + * + *

Sample code: + * + *


+   * try (TargetTcpProxyClient targetTcpProxyClient = TargetTcpProxyClient.create()) {
+   *   ProjectGlobalTargetTcpProxyName targetTcpProxy = ProjectGlobalTargetTcpProxyName.of("[PROJECT]", "[TARGET_TCP_PROXY]");
+   *   DeleteTargetTcpProxyHttpRequest request = DeleteTargetTcpProxyHttpRequest.newBuilder()
+   *     .setTargetTcpProxy(targetTcpProxy.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetTcpProxyClient.deleteTargetTcpProxyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteTargetTcpProxyOperationCallable() { + return stub.deleteTargetTcpProxyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -240,7 +286,7 @@ public final Operation deleteTargetTcpProxy(DeleteTargetTcpProxyHttpRequest requ * .build(); * ApiFuture<Operation> future = targetTcpProxyClient.deleteTargetTcpProxyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -363,7 +409,7 @@ public final TargetTcpProxy getTargetTcpProxy(GetTargetTcpProxyHttpRequest reque * try (TargetTcpProxyClient targetTcpProxyClient = TargetTcpProxyClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * TargetTcpProxy targetTcpProxyResource = TargetTcpProxy.newBuilder().build(); - * Operation response = targetTcpProxyClient.insertTargetTcpProxy(project, targetTcpProxyResource); + * targetTcpProxyClient.insertTargetTcpProxyAsync(project, targetTcpProxyResource).get(); * } * * @@ -372,8 +418,9 @@ public final TargetTcpProxy getTargetTcpProxy(GetTargetTcpProxyHttpRequest reque * resource_for beta.targetTcpProxies ==) (== resource_for v1.targetTcpProxies ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertTargetTcpProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertTargetTcpProxyAsync( ProjectName project, TargetTcpProxy targetTcpProxyResource) { InsertTargetTcpProxyHttpRequest request = @@ -381,7 +428,7 @@ public final Operation insertTargetTcpProxy( .setProject(project == null ? null : project.toString()) .setTargetTcpProxyResource(targetTcpProxyResource) .build(); - return insertTargetTcpProxy(request); + return insertTargetTcpProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -395,7 +442,7 @@ public final Operation insertTargetTcpProxy( * try (TargetTcpProxyClient targetTcpProxyClient = TargetTcpProxyClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * TargetTcpProxy targetTcpProxyResource = TargetTcpProxy.newBuilder().build(); - * Operation response = targetTcpProxyClient.insertTargetTcpProxy(project.toString(), targetTcpProxyResource); + * targetTcpProxyClient.insertTargetTcpProxyAsync(project.toString(), targetTcpProxyResource).get(); * } * * @@ -404,8 +451,9 @@ public final Operation insertTargetTcpProxy( * resource_for beta.targetTcpProxies ==) (== resource_for v1.targetTcpProxies ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertTargetTcpProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertTargetTcpProxyAsync( String project, TargetTcpProxy targetTcpProxyResource) { InsertTargetTcpProxyHttpRequest request = @@ -413,7 +461,7 @@ public final Operation insertTargetTcpProxy( .setProject(project) .setTargetTcpProxyResource(targetTcpProxyResource) .build(); - return insertTargetTcpProxy(request); + return insertTargetTcpProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -431,16 +479,45 @@ public final Operation insertTargetTcpProxy( * .setProject(project.toString()) * .setTargetTcpProxyResource(targetTcpProxyResource) * .build(); - * Operation response = targetTcpProxyClient.insertTargetTcpProxy(request); + * targetTcpProxyClient.insertTargetTcpProxyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertTargetTcpProxy(InsertTargetTcpProxyHttpRequest request) { - return insertTargetTcpProxyCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertTargetTcpProxyAsync( + InsertTargetTcpProxyHttpRequest request) { + return insertTargetTcpProxyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a TargetTcpProxy resource in the specified project using the data included in the + * request. + * + *

Sample code: + * + *


+   * try (TargetTcpProxyClient targetTcpProxyClient = TargetTcpProxyClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   TargetTcpProxy targetTcpProxyResource = TargetTcpProxy.newBuilder().build();
+   *   InsertTargetTcpProxyHttpRequest request = InsertTargetTcpProxyHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setTargetTcpProxyResource(targetTcpProxyResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetTcpProxyClient.insertTargetTcpProxyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertTargetTcpProxyOperationCallable() { + return stub.insertTargetTcpProxyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -460,7 +537,7 @@ public final Operation insertTargetTcpProxy(InsertTargetTcpProxyHttpRequest requ * .build(); * ApiFuture<Operation> future = targetTcpProxyClient.insertTargetTcpProxyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -618,7 +695,7 @@ public final ListTargetTcpProxiesPagedResponse listTargetTcpProxies( * try (TargetTcpProxyClient targetTcpProxyClient = TargetTcpProxyClient.create()) { * ProjectGlobalTargetTcpProxyName targetTcpProxy = ProjectGlobalTargetTcpProxyName.of("[PROJECT]", "[TARGET_TCP_PROXY]"); * TargetTcpProxiesSetBackendServiceRequest targetTcpProxiesSetBackendServiceRequestResource = TargetTcpProxiesSetBackendServiceRequest.newBuilder().build(); - * Operation response = targetTcpProxyClient.setBackendServiceTargetTcpProxy(targetTcpProxy, targetTcpProxiesSetBackendServiceRequestResource); + * targetTcpProxyClient.setBackendServiceTargetTcpProxyAsync(targetTcpProxy, targetTcpProxiesSetBackendServiceRequestResource).get(); * } * * @@ -627,8 +704,9 @@ public final ListTargetTcpProxiesPagedResponse listTargetTcpProxies( * @param targetTcpProxiesSetBackendServiceRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setBackendServiceTargetTcpProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setBackendServiceTargetTcpProxyAsync( ProjectGlobalTargetTcpProxyName targetTcpProxy, TargetTcpProxiesSetBackendServiceRequest targetTcpProxiesSetBackendServiceRequestResource) { @@ -638,7 +716,7 @@ public final Operation setBackendServiceTargetTcpProxy( .setTargetTcpProxiesSetBackendServiceRequestResource( targetTcpProxiesSetBackendServiceRequestResource) .build(); - return setBackendServiceTargetTcpProxy(request); + return setBackendServiceTargetTcpProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -651,7 +729,7 @@ public final Operation setBackendServiceTargetTcpProxy( * try (TargetTcpProxyClient targetTcpProxyClient = TargetTcpProxyClient.create()) { * ProjectGlobalTargetTcpProxyName targetTcpProxy = ProjectGlobalTargetTcpProxyName.of("[PROJECT]", "[TARGET_TCP_PROXY]"); * TargetTcpProxiesSetBackendServiceRequest targetTcpProxiesSetBackendServiceRequestResource = TargetTcpProxiesSetBackendServiceRequest.newBuilder().build(); - * Operation response = targetTcpProxyClient.setBackendServiceTargetTcpProxy(targetTcpProxy.toString(), targetTcpProxiesSetBackendServiceRequestResource); + * targetTcpProxyClient.setBackendServiceTargetTcpProxyAsync(targetTcpProxy.toString(), targetTcpProxiesSetBackendServiceRequestResource).get(); * } * * @@ -660,8 +738,9 @@ public final Operation setBackendServiceTargetTcpProxy( * @param targetTcpProxiesSetBackendServiceRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setBackendServiceTargetTcpProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setBackendServiceTargetTcpProxyAsync( String targetTcpProxy, TargetTcpProxiesSetBackendServiceRequest targetTcpProxiesSetBackendServiceRequestResource) { @@ -671,7 +750,7 @@ public final Operation setBackendServiceTargetTcpProxy( .setTargetTcpProxiesSetBackendServiceRequestResource( targetTcpProxiesSetBackendServiceRequestResource) .build(); - return setBackendServiceTargetTcpProxy(request); + return setBackendServiceTargetTcpProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -688,17 +767,45 @@ public final Operation setBackendServiceTargetTcpProxy( * .setTargetTcpProxy(targetTcpProxy.toString()) * .setTargetTcpProxiesSetBackendServiceRequestResource(targetTcpProxiesSetBackendServiceRequestResource) * .build(); - * Operation response = targetTcpProxyClient.setBackendServiceTargetTcpProxy(request); + * targetTcpProxyClient.setBackendServiceTargetTcpProxyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setBackendServiceTargetTcpProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setBackendServiceTargetTcpProxyAsync( SetBackendServiceTargetTcpProxyHttpRequest request) { - return setBackendServiceTargetTcpProxyCallable().call(request); + return setBackendServiceTargetTcpProxyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Changes the BackendService for TargetTcpProxy. + * + *

Sample code: + * + *


+   * try (TargetTcpProxyClient targetTcpProxyClient = TargetTcpProxyClient.create()) {
+   *   ProjectGlobalTargetTcpProxyName targetTcpProxy = ProjectGlobalTargetTcpProxyName.of("[PROJECT]", "[TARGET_TCP_PROXY]");
+   *   TargetTcpProxiesSetBackendServiceRequest targetTcpProxiesSetBackendServiceRequestResource = TargetTcpProxiesSetBackendServiceRequest.newBuilder().build();
+   *   SetBackendServiceTargetTcpProxyHttpRequest request = SetBackendServiceTargetTcpProxyHttpRequest.newBuilder()
+   *     .setTargetTcpProxy(targetTcpProxy.toString())
+   *     .setTargetTcpProxiesSetBackendServiceRequestResource(targetTcpProxiesSetBackendServiceRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetTcpProxyClient.setBackendServiceTargetTcpProxyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + SetBackendServiceTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage> + setBackendServiceTargetTcpProxyOperationCallable() { + return stub.setBackendServiceTargetTcpProxyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -717,7 +824,7 @@ public final Operation setBackendServiceTargetTcpProxy( * .build(); * ApiFuture<Operation> future = targetTcpProxyClient.setBackendServiceTargetTcpProxyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -737,7 +844,7 @@ public final Operation setBackendServiceTargetTcpProxy( * try (TargetTcpProxyClient targetTcpProxyClient = TargetTcpProxyClient.create()) { * ProjectGlobalTargetTcpProxyName targetTcpProxy = ProjectGlobalTargetTcpProxyName.of("[PROJECT]", "[TARGET_TCP_PROXY]"); * TargetTcpProxiesSetProxyHeaderRequest targetTcpProxiesSetProxyHeaderRequestResource = TargetTcpProxiesSetProxyHeaderRequest.newBuilder().build(); - * Operation response = targetTcpProxyClient.setProxyHeaderTargetTcpProxy(targetTcpProxy, targetTcpProxiesSetProxyHeaderRequestResource); + * targetTcpProxyClient.setProxyHeaderTargetTcpProxyAsync(targetTcpProxy, targetTcpProxiesSetProxyHeaderRequestResource).get(); * } * * @@ -745,8 +852,9 @@ public final Operation setBackendServiceTargetTcpProxy( * @param targetTcpProxiesSetProxyHeaderRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setProxyHeaderTargetTcpProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setProxyHeaderTargetTcpProxyAsync( ProjectGlobalTargetTcpProxyName targetTcpProxy, TargetTcpProxiesSetProxyHeaderRequest targetTcpProxiesSetProxyHeaderRequestResource) { @@ -756,7 +864,7 @@ public final Operation setProxyHeaderTargetTcpProxy( .setTargetTcpProxiesSetProxyHeaderRequestResource( targetTcpProxiesSetProxyHeaderRequestResource) .build(); - return setProxyHeaderTargetTcpProxy(request); + return setProxyHeaderTargetTcpProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -769,7 +877,7 @@ public final Operation setProxyHeaderTargetTcpProxy( * try (TargetTcpProxyClient targetTcpProxyClient = TargetTcpProxyClient.create()) { * ProjectGlobalTargetTcpProxyName targetTcpProxy = ProjectGlobalTargetTcpProxyName.of("[PROJECT]", "[TARGET_TCP_PROXY]"); * TargetTcpProxiesSetProxyHeaderRequest targetTcpProxiesSetProxyHeaderRequestResource = TargetTcpProxiesSetProxyHeaderRequest.newBuilder().build(); - * Operation response = targetTcpProxyClient.setProxyHeaderTargetTcpProxy(targetTcpProxy.toString(), targetTcpProxiesSetProxyHeaderRequestResource); + * targetTcpProxyClient.setProxyHeaderTargetTcpProxyAsync(targetTcpProxy.toString(), targetTcpProxiesSetProxyHeaderRequestResource).get(); * } * * @@ -777,8 +885,9 @@ public final Operation setProxyHeaderTargetTcpProxy( * @param targetTcpProxiesSetProxyHeaderRequestResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setProxyHeaderTargetTcpProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setProxyHeaderTargetTcpProxyAsync( String targetTcpProxy, TargetTcpProxiesSetProxyHeaderRequest targetTcpProxiesSetProxyHeaderRequestResource) { @@ -788,7 +897,7 @@ public final Operation setProxyHeaderTargetTcpProxy( .setTargetTcpProxiesSetProxyHeaderRequestResource( targetTcpProxiesSetProxyHeaderRequestResource) .build(); - return setProxyHeaderTargetTcpProxy(request); + return setProxyHeaderTargetTcpProxyAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -805,17 +914,45 @@ public final Operation setProxyHeaderTargetTcpProxy( * .setTargetTcpProxy(targetTcpProxy.toString()) * .setTargetTcpProxiesSetProxyHeaderRequestResource(targetTcpProxiesSetProxyHeaderRequestResource) * .build(); - * Operation response = targetTcpProxyClient.setProxyHeaderTargetTcpProxy(request); + * targetTcpProxyClient.setProxyHeaderTargetTcpProxyAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation setProxyHeaderTargetTcpProxy( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture setProxyHeaderTargetTcpProxyAsync( SetProxyHeaderTargetTcpProxyHttpRequest request) { - return setProxyHeaderTargetTcpProxyCallable().call(request); + return setProxyHeaderTargetTcpProxyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Changes the ProxyHeaderType for TargetTcpProxy. + * + *

Sample code: + * + *


+   * try (TargetTcpProxyClient targetTcpProxyClient = TargetTcpProxyClient.create()) {
+   *   ProjectGlobalTargetTcpProxyName targetTcpProxy = ProjectGlobalTargetTcpProxyName.of("[PROJECT]", "[TARGET_TCP_PROXY]");
+   *   TargetTcpProxiesSetProxyHeaderRequest targetTcpProxiesSetProxyHeaderRequestResource = TargetTcpProxiesSetProxyHeaderRequest.newBuilder().build();
+   *   SetProxyHeaderTargetTcpProxyHttpRequest request = SetProxyHeaderTargetTcpProxyHttpRequest.newBuilder()
+   *     .setTargetTcpProxy(targetTcpProxy.toString())
+   *     .setTargetTcpProxiesSetProxyHeaderRequestResource(targetTcpProxiesSetProxyHeaderRequestResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetTcpProxyClient.setProxyHeaderTargetTcpProxyOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable< + SetProxyHeaderTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage> + setProxyHeaderTargetTcpProxyOperationCallable() { + return stub.setProxyHeaderTargetTcpProxyOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -834,7 +971,7 @@ public final Operation setProxyHeaderTargetTcpProxy( * .build(); * ApiFuture<Operation> future = targetTcpProxyClient.setProxyHeaderTargetTcpProxyCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxySettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxySettings.java index dbd3807b8b27..994d3b3c87f6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxySettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxySettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteTargetTcpProxy to 30 seconds: + * example, to set the total timeout of getTargetTcpProxy to 30 seconds: * *

  * 
  * TargetTcpProxySettings.Builder targetTcpProxySettingsBuilder =
  *     TargetTcpProxySettings.newBuilder();
- * targetTcpProxySettingsBuilder.deleteTargetTcpProxySettings().getRetrySettings().toBuilder()
+ * targetTcpProxySettingsBuilder.getTargetTcpProxySettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * TargetTcpProxySettings targetTcpProxySettings = targetTcpProxySettingsBuilder.build();
  * 
@@ -69,6 +71,14 @@ public class TargetTcpProxySettings extends ClientSettings
+      deleteTargetTcpProxyOperationSettings() {
+    return ((TargetTcpProxyStubSettings) getStubSettings()).deleteTargetTcpProxyOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getTargetTcpProxy. */
   public UnaryCallSettings
       getTargetTcpProxySettings() {
@@ -81,6 +91,14 @@ public class TargetTcpProxySettings extends ClientSettings
+      insertTargetTcpProxyOperationSettings() {
+    return ((TargetTcpProxyStubSettings) getStubSettings()).insertTargetTcpProxyOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listTargetTcpProxies. */
   public PagedCallSettings<
           ListTargetTcpProxiesHttpRequest, TargetTcpProxyList, ListTargetTcpProxiesPagedResponse>
@@ -95,12 +113,31 @@ public class TargetTcpProxySettings extends ClientSettings
+      setBackendServiceTargetTcpProxyOperationSettings() {
+    return ((TargetTcpProxyStubSettings) getStubSettings())
+        .setBackendServiceTargetTcpProxyOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to setProxyHeaderTargetTcpProxy. */
   public UnaryCallSettings
       setProxyHeaderTargetTcpProxySettings() {
     return ((TargetTcpProxyStubSettings) getStubSettings()).setProxyHeaderTargetTcpProxySettings();
   }
 
+  /** Returns the object with the settings used for calls to setProxyHeaderTargetTcpProxy. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setProxyHeaderTargetTcpProxyOperationSettings() {
+    return ((TargetTcpProxyStubSettings) getStubSettings())
+        .setProxyHeaderTargetTcpProxyOperationSettings();
+  }
+
   public static final TargetTcpProxySettings create(TargetTcpProxyStubSettings stub)
       throws IOException {
     return new TargetTcpProxySettings.Builder(stub.toBuilder()).build();
@@ -209,6 +246,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteTargetTcpProxySettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteTargetTcpProxy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage>
+        deleteTargetTcpProxyOperationSettings() {
+      return getStubSettingsBuilder().deleteTargetTcpProxyOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getTargetTcpProxy. */
     public UnaryCallSettings.Builder
         getTargetTcpProxySettings() {
@@ -221,6 +267,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertTargetTcpProxySettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertTargetTcpProxy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage>
+        insertTargetTcpProxyOperationSettings() {
+      return getStubSettingsBuilder().insertTargetTcpProxyOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listTargetTcpProxies. */
     public PagedCallSettings.Builder<
             ListTargetTcpProxiesHttpRequest, TargetTcpProxyList, ListTargetTcpProxiesPagedResponse>
@@ -234,12 +289,30 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().setBackendServiceTargetTcpProxySettings();
     }
 
+    /** Returns the builder for the settings used for calls to setBackendServiceTargetTcpProxy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetBackendServiceTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setBackendServiceTargetTcpProxyOperationSettings() {
+      return getStubSettingsBuilder().setBackendServiceTargetTcpProxyOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to setProxyHeaderTargetTcpProxy. */
     public UnaryCallSettings.Builder
         setProxyHeaderTargetTcpProxySettings() {
       return getStubSettingsBuilder().setProxyHeaderTargetTcpProxySettings();
     }
 
+    /** Returns the builder for the settings used for calls to setProxyHeaderTargetTcpProxy. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetProxyHeaderTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setProxyHeaderTargetTcpProxyOperationSettings() {
+      return getStubSettingsBuilder().setProxyHeaderTargetTcpProxyOperationSettings();
+    }
+
     @Override
     public TargetTcpProxySettings build() throws IOException {
       return new TargetTcpProxySettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayClient.java
index 745be670bcfd..129792ca5cec 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.TargetVpnGatewayStub;
@@ -43,7 +46,7 @@
  * 
  * try (TargetVpnGatewayClient targetVpnGatewayClient = TargetVpnGatewayClient.create()) {
  *   ProjectRegionTargetVpnGatewayName targetVpnGateway = ProjectRegionTargetVpnGatewayName.of("[PROJECT]", "[REGION]", "[TARGET_VPN_GATEWAY]");
- *   Operation response = targetVpnGatewayClient.deleteTargetVpnGateway(targetVpnGateway);
+ *   TargetVpnGateway response = targetVpnGatewayClient.getTargetVpnGateway(targetVpnGateway);
  * }
  * 
  * 
@@ -104,6 +107,7 @@ public class TargetVpnGatewayClient implements BackgroundResource { private final TargetVpnGatewaySettings settings; private final TargetVpnGatewayStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of TargetVpnGatewayClient with default settings. */ public static final TargetVpnGatewayClient create() throws IOException { @@ -136,12 +140,14 @@ public static final TargetVpnGatewayClient create(TargetVpnGatewayStub stub) { protected TargetVpnGatewayClient(TargetVpnGatewaySettings settings) throws IOException { this.settings = settings; this.stub = ((TargetVpnGatewayStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected TargetVpnGatewayClient(TargetVpnGatewayStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final TargetVpnGatewaySettings getSettings() { @@ -153,6 +159,16 @@ public TargetVpnGatewayStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Retrieves an aggregated list of target VPN gateways. @@ -304,22 +320,23 @@ public final AggregatedListTargetVpnGatewaysPagedResponse aggregatedListTargetVp *

    * try (TargetVpnGatewayClient targetVpnGatewayClient = TargetVpnGatewayClient.create()) {
    *   ProjectRegionTargetVpnGatewayName targetVpnGateway = ProjectRegionTargetVpnGatewayName.of("[PROJECT]", "[REGION]", "[TARGET_VPN_GATEWAY]");
-   *   Operation response = targetVpnGatewayClient.deleteTargetVpnGateway(targetVpnGateway);
+   *   targetVpnGatewayClient.deleteTargetVpnGatewayAsync(targetVpnGateway).get();
    * }
    * 
* * @param targetVpnGateway Name of the target VPN gateway to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteTargetVpnGateway( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteTargetVpnGatewayAsync( ProjectRegionTargetVpnGatewayName targetVpnGateway) { DeleteTargetVpnGatewayHttpRequest request = DeleteTargetVpnGatewayHttpRequest.newBuilder() .setTargetVpnGateway(targetVpnGateway == null ? null : targetVpnGateway.toString()) .build(); - return deleteTargetVpnGateway(request); + return deleteTargetVpnGatewayAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -331,21 +348,23 @@ public final Operation deleteTargetVpnGateway( *

    * try (TargetVpnGatewayClient targetVpnGatewayClient = TargetVpnGatewayClient.create()) {
    *   ProjectRegionTargetVpnGatewayName targetVpnGateway = ProjectRegionTargetVpnGatewayName.of("[PROJECT]", "[REGION]", "[TARGET_VPN_GATEWAY]");
-   *   Operation response = targetVpnGatewayClient.deleteTargetVpnGateway(targetVpnGateway.toString());
+   *   targetVpnGatewayClient.deleteTargetVpnGatewayAsync(targetVpnGateway.toString()).get();
    * }
    * 
* * @param targetVpnGateway Name of the target VPN gateway to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteTargetVpnGateway(String targetVpnGateway) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteTargetVpnGatewayAsync( + String targetVpnGateway) { DeleteTargetVpnGatewayHttpRequest request = DeleteTargetVpnGatewayHttpRequest.newBuilder() .setTargetVpnGateway(targetVpnGateway) .build(); - return deleteTargetVpnGateway(request); + return deleteTargetVpnGatewayAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -360,16 +379,42 @@ public final Operation deleteTargetVpnGateway(String targetVpnGateway) { * DeleteTargetVpnGatewayHttpRequest request = DeleteTargetVpnGatewayHttpRequest.newBuilder() * .setTargetVpnGateway(targetVpnGateway.toString()) * .build(); - * Operation response = targetVpnGatewayClient.deleteTargetVpnGateway(request); + * targetVpnGatewayClient.deleteTargetVpnGatewayAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteTargetVpnGateway(DeleteTargetVpnGatewayHttpRequest request) { - return deleteTargetVpnGatewayCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteTargetVpnGatewayAsync( + DeleteTargetVpnGatewayHttpRequest request) { + return deleteTargetVpnGatewayOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified target VPN gateway. + * + *

Sample code: + * + *


+   * try (TargetVpnGatewayClient targetVpnGatewayClient = TargetVpnGatewayClient.create()) {
+   *   ProjectRegionTargetVpnGatewayName targetVpnGateway = ProjectRegionTargetVpnGatewayName.of("[PROJECT]", "[REGION]", "[TARGET_VPN_GATEWAY]");
+   *   DeleteTargetVpnGatewayHttpRequest request = DeleteTargetVpnGatewayHttpRequest.newBuilder()
+   *     .setTargetVpnGateway(targetVpnGateway.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetVpnGatewayClient.deleteTargetVpnGatewayOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteTargetVpnGatewayOperationCallable() { + return stub.deleteTargetVpnGatewayOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -386,7 +431,7 @@ public final Operation deleteTargetVpnGateway(DeleteTargetVpnGatewayHttpRequest * .build(); * ApiFuture<Operation> future = targetVpnGatewayClient.deleteTargetVpnGatewayCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -510,7 +555,7 @@ public final TargetVpnGateway getTargetVpnGateway(GetTargetVpnGatewayHttpRequest * try (TargetVpnGatewayClient targetVpnGatewayClient = TargetVpnGatewayClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * TargetVpnGateway targetVpnGatewayResource = TargetVpnGateway.newBuilder().build(); - * Operation response = targetVpnGatewayClient.insertTargetVpnGateway(region, targetVpnGatewayResource); + * targetVpnGatewayClient.insertTargetVpnGatewayAsync(region, targetVpnGatewayResource).get(); * } * * @@ -519,8 +564,9 @@ public final TargetVpnGateway getTargetVpnGateway(GetTargetVpnGatewayHttpRequest * beta.targetVpnGateways ==) (== resource_for v1.targetVpnGateways ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertTargetVpnGateway( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertTargetVpnGatewayAsync( ProjectRegionName region, TargetVpnGateway targetVpnGatewayResource) { InsertTargetVpnGatewayHttpRequest request = @@ -528,7 +574,7 @@ public final Operation insertTargetVpnGateway( .setRegion(region == null ? null : region.toString()) .setTargetVpnGatewayResource(targetVpnGatewayResource) .build(); - return insertTargetVpnGateway(request); + return insertTargetVpnGatewayAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -542,7 +588,7 @@ public final Operation insertTargetVpnGateway( * try (TargetVpnGatewayClient targetVpnGatewayClient = TargetVpnGatewayClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * TargetVpnGateway targetVpnGatewayResource = TargetVpnGateway.newBuilder().build(); - * Operation response = targetVpnGatewayClient.insertTargetVpnGateway(region.toString(), targetVpnGatewayResource); + * targetVpnGatewayClient.insertTargetVpnGatewayAsync(region.toString(), targetVpnGatewayResource).get(); * } * * @@ -551,8 +597,9 @@ public final Operation insertTargetVpnGateway( * beta.targetVpnGateways ==) (== resource_for v1.targetVpnGateways ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertTargetVpnGateway( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertTargetVpnGatewayAsync( String region, TargetVpnGateway targetVpnGatewayResource) { InsertTargetVpnGatewayHttpRequest request = @@ -560,7 +607,7 @@ public final Operation insertTargetVpnGateway( .setRegion(region) .setTargetVpnGatewayResource(targetVpnGatewayResource) .build(); - return insertTargetVpnGateway(request); + return insertTargetVpnGatewayAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -578,16 +625,45 @@ public final Operation insertTargetVpnGateway( * .setRegion(region.toString()) * .setTargetVpnGatewayResource(targetVpnGatewayResource) * .build(); - * Operation response = targetVpnGatewayClient.insertTargetVpnGateway(request); + * targetVpnGatewayClient.insertTargetVpnGatewayAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertTargetVpnGateway(InsertTargetVpnGatewayHttpRequest request) { - return insertTargetVpnGatewayCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertTargetVpnGatewayAsync( + InsertTargetVpnGatewayHttpRequest request) { + return insertTargetVpnGatewayOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a target VPN gateway in the specified project and region using the data included in the + * request. + * + *

Sample code: + * + *


+   * try (TargetVpnGatewayClient targetVpnGatewayClient = TargetVpnGatewayClient.create()) {
+   *   ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
+   *   TargetVpnGateway targetVpnGatewayResource = TargetVpnGateway.newBuilder().build();
+   *   InsertTargetVpnGatewayHttpRequest request = InsertTargetVpnGatewayHttpRequest.newBuilder()
+   *     .setRegion(region.toString())
+   *     .setTargetVpnGatewayResource(targetVpnGatewayResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = targetVpnGatewayClient.insertTargetVpnGatewayOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertTargetVpnGatewayOperationCallable() { + return stub.insertTargetVpnGatewayOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -607,7 +683,7 @@ public final Operation insertTargetVpnGateway(InsertTargetVpnGatewayHttpRequest * .build(); * ApiFuture<Operation> future = targetVpnGatewayClient.insertTargetVpnGatewayCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaySettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaySettings.java index f887b42a8e62..dd186e7808c9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaySettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaySettings.java @@ -22,10 +22,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -49,13 +51,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteTargetVpnGateway to 30 seconds: + * example, to set the total timeout of getTargetVpnGateway to 30 seconds: * *

  * 
  * TargetVpnGatewaySettings.Builder targetVpnGatewaySettingsBuilder =
  *     TargetVpnGatewaySettings.newBuilder();
- * targetVpnGatewaySettingsBuilder.deleteTargetVpnGatewaySettings().getRetrySettings().toBuilder()
+ * targetVpnGatewaySettingsBuilder.getTargetVpnGatewaySettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * TargetVpnGatewaySettings targetVpnGatewaySettings = targetVpnGatewaySettingsBuilder.build();
  * 
@@ -80,6 +82,15 @@ public class TargetVpnGatewaySettings extends ClientSettings
+      deleteTargetVpnGatewayOperationSettings() {
+    return ((TargetVpnGatewayStubSettings) getStubSettings())
+        .deleteTargetVpnGatewayOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getTargetVpnGateway. */
   public UnaryCallSettings
       getTargetVpnGatewaySettings() {
@@ -92,6 +103,15 @@ public class TargetVpnGatewaySettings extends ClientSettings
+      insertTargetVpnGatewayOperationSettings() {
+    return ((TargetVpnGatewayStubSettings) getStubSettings())
+        .insertTargetVpnGatewayOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listTargetVpnGateways. */
   public PagedCallSettings<
           ListTargetVpnGatewaysHttpRequest,
@@ -218,6 +238,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteTargetVpnGatewaySettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteTargetVpnGateway. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteTargetVpnGatewayHttpRequest, EmptyMessage, EmptyMessage>
+        deleteTargetVpnGatewayOperationSettings() {
+      return getStubSettingsBuilder().deleteTargetVpnGatewayOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getTargetVpnGateway. */
     public UnaryCallSettings.Builder
         getTargetVpnGatewaySettings() {
@@ -230,6 +259,15 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().insertTargetVpnGatewaySettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertTargetVpnGateway. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertTargetVpnGatewayHttpRequest, EmptyMessage, EmptyMessage>
+        insertTargetVpnGatewayOperationSettings() {
+      return getStubSettingsBuilder().insertTargetVpnGatewayOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listTargetVpnGateways. */
     public PagedCallSettings.Builder<
             ListTargetVpnGatewaysHttpRequest,
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapClient.java
index 26a3c830ac28..7a1e112bad30 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.UrlMapStub;
@@ -43,7 +46,7 @@
  * 
  * try (UrlMapClient urlMapClient = UrlMapClient.create()) {
  *   ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]");
- *   Operation response = urlMapClient.deleteUrlMap(urlMap);
+ *   UrlMap response = urlMapClient.getUrlMap(urlMap);
  * }
  * 
  * 
@@ -103,6 +106,7 @@ public class UrlMapClient implements BackgroundResource { private final UrlMapSettings settings; private final UrlMapStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of UrlMapClient with default settings. */ public static final UrlMapClient create() throws IOException { @@ -133,12 +137,14 @@ public static final UrlMapClient create(UrlMapStub stub) { protected UrlMapClient(UrlMapSettings settings) throws IOException { this.settings = settings; this.stub = ((UrlMapStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected UrlMapClient(UrlMapStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final UrlMapSettings getSettings() { @@ -150,6 +156,16 @@ public UrlMapStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Deletes the specified UrlMap resource. @@ -159,21 +175,23 @@ public UrlMapStub getStub() { *

    * try (UrlMapClient urlMapClient = UrlMapClient.create()) {
    *   ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]");
-   *   Operation response = urlMapClient.deleteUrlMap(urlMap);
+   *   urlMapClient.deleteUrlMapAsync(urlMap).get();
    * }
    * 
* * @param urlMap Name of the UrlMap resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteUrlMap(ProjectGlobalUrlMapName urlMap) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteUrlMapAsync( + ProjectGlobalUrlMapName urlMap) { DeleteUrlMapHttpRequest request = DeleteUrlMapHttpRequest.newBuilder() .setUrlMap(urlMap == null ? null : urlMap.toString()) .build(); - return deleteUrlMap(request); + return deleteUrlMapAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -185,19 +203,20 @@ public final Operation deleteUrlMap(ProjectGlobalUrlMapName urlMap) { *

    * try (UrlMapClient urlMapClient = UrlMapClient.create()) {
    *   ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]");
-   *   Operation response = urlMapClient.deleteUrlMap(urlMap.toString());
+   *   urlMapClient.deleteUrlMapAsync(urlMap.toString()).get();
    * }
    * 
* * @param urlMap Name of the UrlMap resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteUrlMap(String urlMap) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteUrlMapAsync(String urlMap) { DeleteUrlMapHttpRequest request = DeleteUrlMapHttpRequest.newBuilder().setUrlMap(urlMap).build(); - return deleteUrlMap(request); + return deleteUrlMapAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -212,16 +231,42 @@ public final Operation deleteUrlMap(String urlMap) { * DeleteUrlMapHttpRequest request = DeleteUrlMapHttpRequest.newBuilder() * .setUrlMap(urlMap.toString()) * .build(); - * Operation response = urlMapClient.deleteUrlMap(request); + * urlMapClient.deleteUrlMapAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteUrlMap(DeleteUrlMapHttpRequest request) { - return deleteUrlMapCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteUrlMapAsync( + DeleteUrlMapHttpRequest request) { + return deleteUrlMapOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified UrlMap resource. + * + *

Sample code: + * + *


+   * try (UrlMapClient urlMapClient = UrlMapClient.create()) {
+   *   ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]");
+   *   DeleteUrlMapHttpRequest request = DeleteUrlMapHttpRequest.newBuilder()
+   *     .setUrlMap(urlMap.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = urlMapClient.deleteUrlMapOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteUrlMapOperationCallable() { + return stub.deleteUrlMapOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -238,7 +283,7 @@ public final Operation deleteUrlMap(DeleteUrlMapHttpRequest request) { * .build(); * ApiFuture<Operation> future = urlMapClient.deleteUrlMapCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -357,7 +402,7 @@ public final UnaryCallable getUrlMapCallable() { * try (UrlMapClient urlMapClient = UrlMapClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * UrlMap urlMapResource = UrlMap.newBuilder().build(); - * Operation response = urlMapClient.insertUrlMap(project, urlMapResource); + * urlMapClient.insertUrlMapAsync(project, urlMapResource).get(); * } * * @@ -366,15 +411,17 @@ public final UnaryCallable getUrlMapCallable() { * BackendService resource, based on the "longest-match" of the URL's host and path. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertUrlMap(ProjectName project, UrlMap urlMapResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertUrlMapAsync( + ProjectName project, UrlMap urlMapResource) { InsertUrlMapHttpRequest request = InsertUrlMapHttpRequest.newBuilder() .setProject(project == null ? null : project.toString()) .setUrlMapResource(urlMapResource) .build(); - return insertUrlMap(request); + return insertUrlMapAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -387,7 +434,7 @@ public final Operation insertUrlMap(ProjectName project, UrlMap urlMapResource) * try (UrlMapClient urlMapClient = UrlMapClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); * UrlMap urlMapResource = UrlMap.newBuilder().build(); - * Operation response = urlMapClient.insertUrlMap(project.toString(), urlMapResource); + * urlMapClient.insertUrlMapAsync(project.toString(), urlMapResource).get(); * } * * @@ -396,15 +443,17 @@ public final Operation insertUrlMap(ProjectName project, UrlMap urlMapResource) * BackendService resource, based on the "longest-match" of the URL's host and path. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertUrlMap(String project, UrlMap urlMapResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertUrlMapAsync( + String project, UrlMap urlMapResource) { InsertUrlMapHttpRequest request = InsertUrlMapHttpRequest.newBuilder() .setProject(project) .setUrlMapResource(urlMapResource) .build(); - return insertUrlMap(request); + return insertUrlMapAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -421,16 +470,44 @@ public final Operation insertUrlMap(String project, UrlMap urlMapResource) { * .setProject(project.toString()) * .setUrlMapResource(urlMapResource) * .build(); - * Operation response = urlMapClient.insertUrlMap(request); + * urlMapClient.insertUrlMapAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertUrlMap(InsertUrlMapHttpRequest request) { - return insertUrlMapCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertUrlMapAsync( + InsertUrlMapHttpRequest request) { + return insertUrlMapOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a UrlMap resource in the specified project using the data included in the request. + * + *

Sample code: + * + *


+   * try (UrlMapClient urlMapClient = UrlMapClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   UrlMap urlMapResource = UrlMap.newBuilder().build();
+   *   InsertUrlMapHttpRequest request = InsertUrlMapHttpRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .setUrlMapResource(urlMapResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = urlMapClient.insertUrlMapOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertUrlMapOperationCallable() { + return stub.insertUrlMapOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -449,7 +526,7 @@ public final Operation insertUrlMap(InsertUrlMapHttpRequest request) { * .build(); * ApiFuture<Operation> future = urlMapClient.insertUrlMapCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -469,7 +546,7 @@ public final UnaryCallable insertUrlMapCalla * try (UrlMapClient urlMapClient = UrlMapClient.create()) { * ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]"); * CacheInvalidationRule cacheInvalidationRuleResource = CacheInvalidationRule.newBuilder().build(); - * Operation response = urlMapClient.invalidateCacheUrlMap(urlMap, cacheInvalidationRuleResource); + * urlMapClient.invalidateCacheUrlMapAsync(urlMap, cacheInvalidationRuleResource).get(); * } * * @@ -477,8 +554,9 @@ public final UnaryCallable insertUrlMapCalla * @param cacheInvalidationRuleResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation invalidateCacheUrlMap( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture invalidateCacheUrlMapAsync( ProjectGlobalUrlMapName urlMap, CacheInvalidationRule cacheInvalidationRuleResource) { InvalidateCacheUrlMapHttpRequest request = @@ -486,7 +564,7 @@ public final Operation invalidateCacheUrlMap( .setUrlMap(urlMap == null ? null : urlMap.toString()) .setCacheInvalidationRuleResource(cacheInvalidationRuleResource) .build(); - return invalidateCacheUrlMap(request); + return invalidateCacheUrlMapAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -500,7 +578,7 @@ public final Operation invalidateCacheUrlMap( * try (UrlMapClient urlMapClient = UrlMapClient.create()) { * ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]"); * CacheInvalidationRule cacheInvalidationRuleResource = CacheInvalidationRule.newBuilder().build(); - * Operation response = urlMapClient.invalidateCacheUrlMap(urlMap.toString(), cacheInvalidationRuleResource); + * urlMapClient.invalidateCacheUrlMapAsync(urlMap.toString(), cacheInvalidationRuleResource).get(); * } * * @@ -508,8 +586,9 @@ public final Operation invalidateCacheUrlMap( * @param cacheInvalidationRuleResource * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation invalidateCacheUrlMap( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture invalidateCacheUrlMapAsync( String urlMap, CacheInvalidationRule cacheInvalidationRuleResource) { InvalidateCacheUrlMapHttpRequest request = @@ -517,7 +596,7 @@ public final Operation invalidateCacheUrlMap( .setUrlMap(urlMap) .setCacheInvalidationRuleResource(cacheInvalidationRuleResource) .build(); - return invalidateCacheUrlMap(request); + return invalidateCacheUrlMapAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -535,16 +614,45 @@ public final Operation invalidateCacheUrlMap( * .setUrlMap(urlMap.toString()) * .setCacheInvalidationRuleResource(cacheInvalidationRuleResource) * .build(); - * Operation response = urlMapClient.invalidateCacheUrlMap(request); + * urlMapClient.invalidateCacheUrlMapAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation invalidateCacheUrlMap(InvalidateCacheUrlMapHttpRequest request) { - return invalidateCacheUrlMapCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture invalidateCacheUrlMapAsync( + InvalidateCacheUrlMapHttpRequest request) { + return invalidateCacheUrlMapOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Initiates a cache invalidation operation, invalidating the specified path, scoped to the + * specified UrlMap. + * + *

Sample code: + * + *


+   * try (UrlMapClient urlMapClient = UrlMapClient.create()) {
+   *   ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]");
+   *   CacheInvalidationRule cacheInvalidationRuleResource = CacheInvalidationRule.newBuilder().build();
+   *   InvalidateCacheUrlMapHttpRequest request = InvalidateCacheUrlMapHttpRequest.newBuilder()
+   *     .setUrlMap(urlMap.toString())
+   *     .setCacheInvalidationRuleResource(cacheInvalidationRuleResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = urlMapClient.invalidateCacheUrlMapOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + invalidateCacheUrlMapOperationCallable() { + return stub.invalidateCacheUrlMapOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -564,7 +672,7 @@ public final Operation invalidateCacheUrlMap(InvalidateCacheUrlMapHttpRequest re * .build(); * ApiFuture<Operation> future = urlMapClient.invalidateCacheUrlMapCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -722,7 +830,7 @@ public final UnaryCallable listUrlMapsCallab * ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]"); * UrlMap urlMapResource = UrlMap.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = urlMapClient.patchUrlMap(urlMap, urlMapResource, fieldMask); + * urlMapClient.patchUrlMapAsync(urlMap, urlMapResource, fieldMask).get(); * } * * @@ -735,8 +843,9 @@ public final UnaryCallable listUrlMapsCallab * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchUrlMap( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchUrlMapAsync( ProjectGlobalUrlMapName urlMap, UrlMap urlMapResource, List fieldMask) { PatchUrlMapHttpRequest request = @@ -745,7 +854,7 @@ public final Operation patchUrlMap( .setUrlMapResource(urlMapResource) .addAllFieldMask(fieldMask) .build(); - return patchUrlMap(request); + return patchUrlMapAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -760,7 +869,7 @@ public final Operation patchUrlMap( * ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]"); * UrlMap urlMapResource = UrlMap.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = urlMapClient.patchUrlMap(urlMap.toString(), urlMapResource, fieldMask); + * urlMapClient.patchUrlMapAsync(urlMap.toString(), urlMapResource, fieldMask).get(); * } * * @@ -773,8 +882,10 @@ public final Operation patchUrlMap( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchUrlMap(String urlMap, UrlMap urlMapResource, List fieldMask) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchUrlMapAsync( + String urlMap, UrlMap urlMapResource, List fieldMask) { PatchUrlMapHttpRequest request = PatchUrlMapHttpRequest.newBuilder() @@ -782,7 +893,7 @@ public final Operation patchUrlMap(String urlMap, UrlMap urlMapResource, List * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation patchUrlMap(PatchUrlMapHttpRequest request) { - return patchUrlMapCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture patchUrlMapAsync( + PatchUrlMapHttpRequest request) { + return patchUrlMapOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Patches the specified UrlMap resource with the data included in the request. This method + * supports PATCH semantics and uses the JSON merge patch format and processing rules. + * + *

Sample code: + * + *


+   * try (UrlMapClient urlMapClient = UrlMapClient.create()) {
+   *   ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]");
+   *   UrlMap urlMapResource = UrlMap.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   PatchUrlMapHttpRequest request = PatchUrlMapHttpRequest.newBuilder()
+   *     .setUrlMap(urlMap.toString())
+   *     .setUrlMapResource(urlMapResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = urlMapClient.patchUrlMapOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + patchUrlMapOperationCallable() { + return stub.patchUrlMapOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -833,7 +975,7 @@ public final Operation patchUrlMap(PatchUrlMapHttpRequest request) { * .build(); * ApiFuture<Operation> future = urlMapClient.patchUrlMapCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -853,7 +995,7 @@ public final UnaryCallable patchUrlMapCallabl * ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]"); * UrlMap urlMapResource = UrlMap.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = urlMapClient.updateUrlMap(urlMap, urlMapResource, fieldMask); + * urlMapClient.updateUrlMapAsync(urlMap, urlMapResource, fieldMask).get(); * } * * @@ -866,8 +1008,9 @@ public final UnaryCallable patchUrlMapCallabl * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateUrlMap( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateUrlMapAsync( ProjectGlobalUrlMapName urlMap, UrlMap urlMapResource, List fieldMask) { UpdateUrlMapHttpRequest request = @@ -876,7 +1019,7 @@ public final Operation updateUrlMap( .setUrlMapResource(urlMapResource) .addAllFieldMask(fieldMask) .build(); - return updateUrlMap(request); + return updateUrlMapAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -890,7 +1033,7 @@ public final Operation updateUrlMap( * ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]"); * UrlMap urlMapResource = UrlMap.newBuilder().build(); * List<String> fieldMask = new ArrayList<>(); - * Operation response = urlMapClient.updateUrlMap(urlMap.toString(), urlMapResource, fieldMask); + * urlMapClient.updateUrlMapAsync(urlMap.toString(), urlMapResource, fieldMask).get(); * } * * @@ -903,8 +1046,9 @@ public final Operation updateUrlMap( * not have a fieldmask, then only non-empty fields will be serialized. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateUrlMap( + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateUrlMapAsync( String urlMap, UrlMap urlMapResource, List fieldMask) { UpdateUrlMapHttpRequest request = @@ -913,7 +1057,7 @@ public final Operation updateUrlMap( .setUrlMapResource(urlMapResource) .addAllFieldMask(fieldMask) .build(); - return updateUrlMap(request); + return updateUrlMapAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -932,16 +1076,46 @@ public final Operation updateUrlMap( * .setUrlMapResource(urlMapResource) * .addAllFieldMask(fieldMask) * .build(); - * Operation response = urlMapClient.updateUrlMap(request); + * urlMapClient.updateUrlMapAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation updateUrlMap(UpdateUrlMapHttpRequest request) { - return updateUrlMapCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture updateUrlMapAsync( + UpdateUrlMapHttpRequest request) { + return updateUrlMapOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the specified UrlMap resource with the data included in the request. + * + *

Sample code: + * + *


+   * try (UrlMapClient urlMapClient = UrlMapClient.create()) {
+   *   ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]");
+   *   UrlMap urlMapResource = UrlMap.newBuilder().build();
+   *   List<String> fieldMask = new ArrayList<>();
+   *   UpdateUrlMapHttpRequest request = UpdateUrlMapHttpRequest.newBuilder()
+   *     .setUrlMap(urlMap.toString())
+   *     .setUrlMapResource(urlMapResource)
+   *     .addAllFieldMask(fieldMask)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = urlMapClient.updateUrlMapOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + updateUrlMapOperationCallable() { + return stub.updateUrlMapOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -962,7 +1136,7 @@ public final Operation updateUrlMap(UpdateUrlMapHttpRequest request) { * .build(); * ApiFuture<Operation> future = urlMapClient.updateUrlMapCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapSettings.java index 81532b9aedaa..8cb9f2747150 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapSettings.java @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -48,13 +50,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteUrlMap to 30 seconds: + * example, to set the total timeout of getUrlMap to 30 seconds: * *

  * 
  * UrlMapSettings.Builder urlMapSettingsBuilder =
  *     UrlMapSettings.newBuilder();
- * urlMapSettingsBuilder.deleteUrlMapSettings().getRetrySettings().toBuilder()
+ * urlMapSettingsBuilder.getUrlMapSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * UrlMapSettings urlMapSettings = urlMapSettingsBuilder.build();
  * 
@@ -68,6 +70,14 @@ public UnaryCallSettings deleteUrlMapSetting
     return ((UrlMapStubSettings) getStubSettings()).deleteUrlMapSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteUrlMap. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteUrlMapOperationSettings() {
+    return ((UrlMapStubSettings) getStubSettings()).deleteUrlMapOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getUrlMap. */
   public UnaryCallSettings getUrlMapSettings() {
     return ((UrlMapStubSettings) getStubSettings()).getUrlMapSettings();
@@ -78,12 +88,28 @@ public UnaryCallSettings insertUrlMapSetting
     return ((UrlMapStubSettings) getStubSettings()).insertUrlMapSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertUrlMap. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertUrlMapOperationSettings() {
+    return ((UrlMapStubSettings) getStubSettings()).insertUrlMapOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to invalidateCacheUrlMap. */
   public UnaryCallSettings
       invalidateCacheUrlMapSettings() {
     return ((UrlMapStubSettings) getStubSettings()).invalidateCacheUrlMapSettings();
   }
 
+  /** Returns the object with the settings used for calls to invalidateCacheUrlMap. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      invalidateCacheUrlMapOperationSettings() {
+    return ((UrlMapStubSettings) getStubSettings()).invalidateCacheUrlMapOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listUrlMaps. */
   public PagedCallSettings
       listUrlMapsSettings() {
@@ -95,11 +121,27 @@ public UnaryCallSettings patchUrlMapSettings(
     return ((UrlMapStubSettings) getStubSettings()).patchUrlMapSettings();
   }
 
+  /** Returns the object with the settings used for calls to patchUrlMap. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchUrlMapOperationSettings() {
+    return ((UrlMapStubSettings) getStubSettings()).patchUrlMapOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to updateUrlMap. */
   public UnaryCallSettings updateUrlMapSettings() {
     return ((UrlMapStubSettings) getStubSettings()).updateUrlMapSettings();
   }
 
+  /** Returns the object with the settings used for calls to updateUrlMap. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateUrlMapOperationSettings() {
+    return ((UrlMapStubSettings) getStubSettings()).updateUrlMapOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to validateUrlMap. */
   public UnaryCallSettings
       validateUrlMapSettings() {
@@ -212,6 +254,14 @@ public UnaryCallSettings.Builder deleteUrlMa
       return getStubSettingsBuilder().deleteUrlMapSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteUrlMap. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteUrlMapOperationSettings() {
+      return getStubSettingsBuilder().deleteUrlMapOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getUrlMap. */
     public UnaryCallSettings.Builder getUrlMapSettings() {
       return getStubSettingsBuilder().getUrlMapSettings();
@@ -222,12 +272,29 @@ public UnaryCallSettings.Builder insertUrlMa
       return getStubSettingsBuilder().insertUrlMapSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertUrlMap. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertUrlMapOperationSettings() {
+      return getStubSettingsBuilder().insertUrlMapOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to invalidateCacheUrlMap. */
     public UnaryCallSettings.Builder
         invalidateCacheUrlMapSettings() {
       return getStubSettingsBuilder().invalidateCacheUrlMapSettings();
     }
 
+    /** Returns the builder for the settings used for calls to invalidateCacheUrlMap. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InvalidateCacheUrlMapHttpRequest, EmptyMessage, EmptyMessage>
+        invalidateCacheUrlMapOperationSettings() {
+      return getStubSettingsBuilder().invalidateCacheUrlMapOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listUrlMaps. */
     public PagedCallSettings.Builder
         listUrlMapsSettings() {
@@ -239,11 +306,27 @@ public UnaryCallSettings.Builder patchUrlMapS
       return getStubSettingsBuilder().patchUrlMapSettings();
     }
 
+    /** Returns the builder for the settings used for calls to patchUrlMap. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchUrlMapOperationSettings() {
+      return getStubSettingsBuilder().patchUrlMapOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to updateUrlMap. */
     public UnaryCallSettings.Builder updateUrlMapSettings() {
       return getStubSettingsBuilder().updateUrlMapSettings();
     }
 
+    /** Returns the builder for the settings used for calls to updateUrlMap. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        updateUrlMapOperationSettings() {
+      return getStubSettingsBuilder().updateUrlMapOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to validateUrlMap. */
     public UnaryCallSettings.Builder
         validateUrlMapSettings() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelClient.java
index f69be3298ba9..bb5705ca653d 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelClient.java
@@ -20,9 +20,12 @@
 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.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.stub.VpnTunnelStub;
@@ -43,7 +46,7 @@
  * 
  * try (VpnTunnelClient vpnTunnelClient = VpnTunnelClient.create()) {
  *   ProjectRegionVpnTunnelName vpnTunnel = ProjectRegionVpnTunnelName.of("[PROJECT]", "[REGION]", "[VPN_TUNNEL]");
- *   Operation response = vpnTunnelClient.deleteVpnTunnel(vpnTunnel);
+ *   VpnTunnel response = vpnTunnelClient.getVpnTunnel(vpnTunnel);
  * }
  * 
  * 
@@ -103,6 +106,7 @@ public class VpnTunnelClient implements BackgroundResource { private final VpnTunnelSettings settings; private final VpnTunnelStub stub; + private final GlobalOperationClient operationsClient; /** Constructs an instance of VpnTunnelClient with default settings. */ public static final VpnTunnelClient create() throws IOException { @@ -133,12 +137,14 @@ public static final VpnTunnelClient create(VpnTunnelStub stub) { protected VpnTunnelClient(VpnTunnelSettings settings) throws IOException { this.settings = settings; this.stub = ((VpnTunnelStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected VpnTunnelClient(VpnTunnelStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); } public final VpnTunnelSettings getSettings() { @@ -150,6 +156,16 @@ public VpnTunnelStub getStub() { return stub; } + /** + * Returns the GlobalOperationClient that can be used to query the status of a long-running + * operation returned by another API method call. + */ + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final GlobalOperationClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Retrieves an aggregated list of VPN tunnels. @@ -298,21 +314,23 @@ public final AggregatedListVpnTunnelsPagedResponse aggregatedListVpnTunnels( *

    * try (VpnTunnelClient vpnTunnelClient = VpnTunnelClient.create()) {
    *   ProjectRegionVpnTunnelName vpnTunnel = ProjectRegionVpnTunnelName.of("[PROJECT]", "[REGION]", "[VPN_TUNNEL]");
-   *   Operation response = vpnTunnelClient.deleteVpnTunnel(vpnTunnel);
+   *   vpnTunnelClient.deleteVpnTunnelAsync(vpnTunnel).get();
    * }
    * 
* * @param vpnTunnel Name of the VpnTunnel resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteVpnTunnel(ProjectRegionVpnTunnelName vpnTunnel) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteVpnTunnelAsync( + ProjectRegionVpnTunnelName vpnTunnel) { DeleteVpnTunnelHttpRequest request = DeleteVpnTunnelHttpRequest.newBuilder() .setVpnTunnel(vpnTunnel == null ? null : vpnTunnel.toString()) .build(); - return deleteVpnTunnel(request); + return deleteVpnTunnelAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -324,19 +342,20 @@ public final Operation deleteVpnTunnel(ProjectRegionVpnTunnelName vpnTunnel) { *

    * try (VpnTunnelClient vpnTunnelClient = VpnTunnelClient.create()) {
    *   ProjectRegionVpnTunnelName vpnTunnel = ProjectRegionVpnTunnelName.of("[PROJECT]", "[REGION]", "[VPN_TUNNEL]");
-   *   Operation response = vpnTunnelClient.deleteVpnTunnel(vpnTunnel.toString());
+   *   vpnTunnelClient.deleteVpnTunnelAsync(vpnTunnel.toString()).get();
    * }
    * 
* * @param vpnTunnel Name of the VpnTunnel resource to delete. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteVpnTunnel(String vpnTunnel) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteVpnTunnelAsync(String vpnTunnel) { DeleteVpnTunnelHttpRequest request = DeleteVpnTunnelHttpRequest.newBuilder().setVpnTunnel(vpnTunnel).build(); - return deleteVpnTunnel(request); + return deleteVpnTunnelAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -351,16 +370,42 @@ public final Operation deleteVpnTunnel(String vpnTunnel) { * DeleteVpnTunnelHttpRequest request = DeleteVpnTunnelHttpRequest.newBuilder() * .setVpnTunnel(vpnTunnel.toString()) * .build(); - * Operation response = vpnTunnelClient.deleteVpnTunnel(request); + * vpnTunnelClient.deleteVpnTunnelAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation deleteVpnTunnel(DeleteVpnTunnelHttpRequest request) { - return deleteVpnTunnelCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture deleteVpnTunnelAsync( + DeleteVpnTunnelHttpRequest request) { + return deleteVpnTunnelOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes the specified VpnTunnel resource. + * + *

Sample code: + * + *


+   * try (VpnTunnelClient vpnTunnelClient = VpnTunnelClient.create()) {
+   *   ProjectRegionVpnTunnelName vpnTunnel = ProjectRegionVpnTunnelName.of("[PROJECT]", "[REGION]", "[VPN_TUNNEL]");
+   *   DeleteVpnTunnelHttpRequest request = DeleteVpnTunnelHttpRequest.newBuilder()
+   *     .setVpnTunnel(vpnTunnel.toString())
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = vpnTunnelClient.deleteVpnTunnelOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + deleteVpnTunnelOperationCallable() { + return stub.deleteVpnTunnelOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -377,7 +422,7 @@ public final Operation deleteVpnTunnel(DeleteVpnTunnelHttpRequest request) { * .build(); * ApiFuture<Operation> future = vpnTunnelClient.deleteVpnTunnelCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ @@ -498,7 +543,7 @@ public final UnaryCallable getVpnTunnelCalla * try (VpnTunnelClient vpnTunnelClient = VpnTunnelClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * VpnTunnel vpnTunnelResource = VpnTunnel.newBuilder().build(); - * Operation response = vpnTunnelClient.insertVpnTunnel(region, vpnTunnelResource); + * vpnTunnelClient.insertVpnTunnelAsync(region, vpnTunnelResource).get(); * } * * @@ -507,15 +552,17 @@ public final UnaryCallable getVpnTunnelCalla * resource_for v1.vpnTunnels ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertVpnTunnel(ProjectRegionName region, VpnTunnel vpnTunnelResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertVpnTunnelAsync( + ProjectRegionName region, VpnTunnel vpnTunnelResource) { InsertVpnTunnelHttpRequest request = InsertVpnTunnelHttpRequest.newBuilder() .setRegion(region == null ? null : region.toString()) .setVpnTunnelResource(vpnTunnelResource) .build(); - return insertVpnTunnel(request); + return insertVpnTunnelAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -529,7 +576,7 @@ public final Operation insertVpnTunnel(ProjectRegionName region, VpnTunnel vpnTu * try (VpnTunnelClient vpnTunnelClient = VpnTunnelClient.create()) { * ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); * VpnTunnel vpnTunnelResource = VpnTunnel.newBuilder().build(); - * Operation response = vpnTunnelClient.insertVpnTunnel(region.toString(), vpnTunnelResource); + * vpnTunnelClient.insertVpnTunnelAsync(region.toString(), vpnTunnelResource).get(); * } * * @@ -538,15 +585,17 @@ public final Operation insertVpnTunnel(ProjectRegionName region, VpnTunnel vpnTu * resource_for v1.vpnTunnels ==) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertVpnTunnel(String region, VpnTunnel vpnTunnelResource) { + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertVpnTunnelAsync( + String region, VpnTunnel vpnTunnelResource) { InsertVpnTunnelHttpRequest request = InsertVpnTunnelHttpRequest.newBuilder() .setRegion(region) .setVpnTunnelResource(vpnTunnelResource) .build(); - return insertVpnTunnel(request); + return insertVpnTunnelAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -564,16 +613,45 @@ public final Operation insertVpnTunnel(String region, VpnTunnel vpnTunnelResourc * .setRegion(region.toString()) * .setVpnTunnelResource(vpnTunnelResource) * .build(); - * Operation response = vpnTunnelClient.insertVpnTunnel(request); + * vpnTunnelClient.insertVpnTunnelAsync(request).get(); * } * * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - @BetaApi - public final Operation insertVpnTunnel(InsertVpnTunnelHttpRequest request) { - return insertVpnTunnelCallable().call(request); + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + public final OperationFuture insertVpnTunnelAsync( + InsertVpnTunnelHttpRequest request) { + return insertVpnTunnelOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a VpnTunnel resource in the specified project and region using the data included in the + * request. + * + *

Sample code: + * + *


+   * try (VpnTunnelClient vpnTunnelClient = VpnTunnelClient.create()) {
+   *   ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
+   *   VpnTunnel vpnTunnelResource = VpnTunnel.newBuilder().build();
+   *   InsertVpnTunnelHttpRequest request = InsertVpnTunnelHttpRequest.newBuilder()
+   *     .setRegion(region.toString())
+   *     .setVpnTunnelResource(vpnTunnelResource)
+   *     .build();
+   *   OperationFuture<EmptyMessage, EmptyMessage> future = vpnTunnelClient.insertVpnTunnelOperationCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public final OperationCallable + insertVpnTunnelOperationCallable() { + return stub.insertVpnTunnelOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -593,7 +671,7 @@ public final Operation insertVpnTunnel(InsertVpnTunnelHttpRequest request) { * .build(); * ApiFuture<Operation> future = vpnTunnelClient.insertVpnTunnelCallable().futureCall(request); * // Do something - * Operation response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelSettings.java index 0e644eed7723..c1eede7157da 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelSettings.java @@ -22,10 +22,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; @@ -49,13 +51,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteVpnTunnel to 30 seconds: + * example, to set the total timeout of getVpnTunnel to 30 seconds: * *

  * 
  * VpnTunnelSettings.Builder vpnTunnelSettingsBuilder =
  *     VpnTunnelSettings.newBuilder();
- * vpnTunnelSettingsBuilder.deleteVpnTunnelSettings().getRetrySettings().toBuilder()
+ * vpnTunnelSettingsBuilder.getVpnTunnelSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * VpnTunnelSettings vpnTunnelSettings = vpnTunnelSettingsBuilder.build();
  * 
@@ -78,6 +80,14 @@ public UnaryCallSettings deleteVpnTunnelS
     return ((VpnTunnelStubSettings) getStubSettings()).deleteVpnTunnelSettings();
   }
 
+  /** Returns the object with the settings used for calls to deleteVpnTunnel. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteVpnTunnelOperationSettings() {
+    return ((VpnTunnelStubSettings) getStubSettings()).deleteVpnTunnelOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to getVpnTunnel. */
   public UnaryCallSettings getVpnTunnelSettings() {
     return ((VpnTunnelStubSettings) getStubSettings()).getVpnTunnelSettings();
@@ -88,6 +98,14 @@ public UnaryCallSettings insertVpnTunnelS
     return ((VpnTunnelStubSettings) getStubSettings()).insertVpnTunnelSettings();
   }
 
+  /** Returns the object with the settings used for calls to insertVpnTunnel. */
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertVpnTunnelOperationSettings() {
+    return ((VpnTunnelStubSettings) getStubSettings()).insertVpnTunnelOperationSettings();
+  }
+
   /** Returns the object with the settings used for calls to listVpnTunnels. */
   public PagedCallSettings
       listVpnTunnelsSettings() {
@@ -210,6 +228,14 @@ public Builder applyToAllUnaryMethods(
       return getStubSettingsBuilder().deleteVpnTunnelSettings();
     }
 
+    /** Returns the builder for the settings used for calls to deleteVpnTunnel. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteVpnTunnelOperationSettings() {
+      return getStubSettingsBuilder().deleteVpnTunnelOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to getVpnTunnel. */
     public UnaryCallSettings.Builder getVpnTunnelSettings() {
       return getStubSettingsBuilder().getVpnTunnelSettings();
@@ -221,6 +247,14 @@ public UnaryCallSettings.Builder getVpnTunne
       return getStubSettingsBuilder().insertVpnTunnelSettings();
     }
 
+    /** Returns the builder for the settings used for calls to insertVpnTunnel. */
+    @BetaApi(
+        "The surface for long-running operations is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertVpnTunnelOperationSettings() {
+      return getStubSettingsBuilder().insertVpnTunnelOperationSettings();
+    }
+
     /** Returns the builder for the settings used for calls to listVpnTunnels. */
     public PagedCallSettings.Builder<
             ListVpnTunnelsHttpRequest, VpnTunnelList, ListVpnTunnelsPagedResponse>
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationClient.java
index dc0774a7bc4a..0329e499d55a 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationClient.java
@@ -20,6 +20,7 @@
 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.EmptyMessage;
 import com.google.api.gax.paging.AbstractFixedSizeCollection;
 import com.google.api.gax.paging.AbstractPage;
 import com.google.api.gax.paging.AbstractPagedListResponse;
@@ -245,7 +246,8 @@ public final void deleteZoneOperation(DeleteZoneOperationHttpRequest request) {
    * 
*/ @BetaApi - public final UnaryCallable deleteZoneOperationCallable() { + public final UnaryCallable + deleteZoneOperationCallable() { return stub.deleteZoneOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationSettings.java index 7d0684c08cd6..6569038b3b3b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ZoneOperationSettings.java @@ -21,6 +21,7 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; @@ -64,7 +65,8 @@ @BetaApi public class ZoneOperationSettings extends ClientSettings { /** Returns the object with the settings used for calls to deleteZoneOperation. */ - public UnaryCallSettings deleteZoneOperationSettings() { + public UnaryCallSettings + deleteZoneOperationSettings() { return ((ZoneOperationStubSettings) getStubSettings()).deleteZoneOperationSettings(); } @@ -183,7 +185,7 @@ public Builder applyToAllUnaryMethods( } /** Returns the builder for the settings used for calls to deleteZoneOperation. */ - public UnaryCallSettings.Builder + public UnaryCallSettings.Builder deleteZoneOperationSettings() { return getStubSettingsBuilder().deleteZoneOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java index 62f6781bacfe..aeed83b6c8c1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java @@ -44,7 +44,7 @@ * * try (AddressClient addressClient = AddressClient.create()) { * ProjectRegionAddressName address = ProjectRegionAddressName.of("[PROJECT]", "[REGION]", "[ADDRESS]"); - * Operation response = addressClient.deleteAddress(address); + * Address response = addressClient.getAddress(address); * } * * @@ -59,7 +59,7 @@ * * try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) { * ProjectZoneAutoscalerName autoscaler = ProjectZoneAutoscalerName.of("[PROJECT]", "[ZONE]", "[AUTOSCALER]"); - * Operation response = autoscalerClient.deleteAutoscaler(autoscaler); + * Autoscaler response = autoscalerClient.getAutoscaler(autoscaler); * } * * @@ -74,8 +74,7 @@ * * try (BackendBucketClient backendBucketClient = BackendBucketClient.create()) { * ProjectGlobalBackendBucketName backendBucket = ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]"); - * SignedUrlKey signedUrlKeyResource = SignedUrlKey.newBuilder().build(); - * Operation response = backendBucketClient.addSignedUrlKeyBackendBucket(backendBucket, signedUrlKeyResource); + * BackendBucket response = backendBucketClient.getBackendBucket(backendBucket); * } * * @@ -90,8 +89,7 @@ * * try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) { * ProjectGlobalBackendServiceName backendService = ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]"); - * SignedUrlKey signedUrlKeyResource = SignedUrlKey.newBuilder().build(); - * Operation response = backendServiceClient.addSignedUrlKeyBackendService(backendService, signedUrlKeyResource); + * BackendService response = backendServiceClient.getBackendService(backendService); * } * * @@ -121,9 +119,7 @@ * * try (DiskClient diskClient = DiskClient.create()) { * ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]"); - * Boolean guestFlush = false; - * Snapshot snapshotResource = Snapshot.newBuilder().build(); - * Operation response = diskClient.createSnapshotDisk(disk, guestFlush, snapshotResource); + * Disk response = diskClient.getDisk(disk); * } * * @@ -138,7 +134,7 @@ * * try (FirewallClient firewallClient = FirewallClient.create()) { * ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]"); - * Operation response = firewallClient.deleteFirewall(firewall); + * Firewall response = firewallClient.getFirewall(firewall); * } * * @@ -153,7 +149,7 @@ * * try (ForwardingRuleClient forwardingRuleClient = ForwardingRuleClient.create()) { * ProjectRegionForwardingRuleName forwardingRule = ProjectRegionForwardingRuleName.of("[PROJECT]", "[REGION]", "[FORWARDING_RULE]"); - * Operation response = forwardingRuleClient.deleteForwardingRule(forwardingRule); + * ForwardingRule response = forwardingRuleClient.getForwardingRule(forwardingRule); * } * * @@ -168,7 +164,7 @@ * * try (GlobalAddressClient globalAddressClient = GlobalAddressClient.create()) { * ProjectGlobalAddressName address = ProjectGlobalAddressName.of("[PROJECT]", "[ADDRESS]"); - * Operation response = globalAddressClient.deleteGlobalAddress(address); + * Address response = globalAddressClient.getGlobalAddress(address); * } * * @@ -183,7 +179,7 @@ * * try (GlobalForwardingRuleClient globalForwardingRuleClient = GlobalForwardingRuleClient.create()) { * ProjectGlobalForwardingRuleName forwardingRule = ProjectGlobalForwardingRuleName.of("[PROJECT]", "[FORWARDING_RULE]"); - * Operation response = globalForwardingRuleClient.deleteGlobalForwardingRule(forwardingRule); + * ForwardingRule response = globalForwardingRuleClient.getGlobalForwardingRule(forwardingRule); * } * * @@ -213,7 +209,7 @@ * * try (HealthCheckClient healthCheckClient = HealthCheckClient.create()) { * ProjectGlobalHealthCheckName healthCheck = ProjectGlobalHealthCheckName.of("[PROJECT]", "[HEALTH_CHECK]"); - * Operation response = healthCheckClient.deleteHealthCheck(healthCheck); + * HealthCheck response = healthCheckClient.getHealthCheck(healthCheck); * } * * @@ -228,7 +224,7 @@ * * try (HttpHealthCheckClient httpHealthCheckClient = HttpHealthCheckClient.create()) { * ProjectGlobalHttpHealthCheckName httpHealthCheck = ProjectGlobalHttpHealthCheckName.of("[PROJECT]", "[HTTP_HEALTH_CHECK]"); - * Operation response = httpHealthCheckClient.deleteHttpHealthCheck(httpHealthCheck); + * HttpHealthCheck2 response = httpHealthCheckClient.getHttpHealthCheck(httpHealthCheck); * } * * @@ -243,7 +239,7 @@ * * try (HttpsHealthCheckClient httpsHealthCheckClient = HttpsHealthCheckClient.create()) { * ProjectGlobalHttpsHealthCheckName httpsHealthCheck = ProjectGlobalHttpsHealthCheckName.of("[PROJECT]", "[HTTPS_HEALTH_CHECK]"); - * Operation response = httpsHealthCheckClient.deleteHttpsHealthCheck(httpsHealthCheck); + * HttpsHealthCheck2 response = httpsHealthCheckClient.getHttpsHealthCheck(httpsHealthCheck); * } * * @@ -258,7 +254,7 @@ * * try (ImageClient imageClient = ImageClient.create()) { * ProjectGlobalImageName image = ProjectGlobalImageName.of("[PROJECT]", "[IMAGE]"); - * Operation response = imageClient.deleteImage(image); + * Image response = imageClient.getImage(image); * } * * @@ -273,8 +269,7 @@ * * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) { * ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]"); - * InstanceGroupManagersAbandonInstancesRequest instanceGroupManagersAbandonInstancesRequestResource = InstanceGroupManagersAbandonInstancesRequest.newBuilder().build(); - * Operation response = instanceGroupManagerClient.abandonInstancesInstanceGroupManager(instanceGroupManager, instanceGroupManagersAbandonInstancesRequestResource); + * InstanceGroupManager response = instanceGroupManagerClient.getInstanceGroupManager(instanceGroupManager); * } * * @@ -289,8 +284,7 @@ * * try (InstanceGroupClient instanceGroupClient = InstanceGroupClient.create()) { * ProjectZoneInstanceGroupName instanceGroup = ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]"); - * InstanceGroupsAddInstancesRequest instanceGroupsAddInstancesRequestResource = InstanceGroupsAddInstancesRequest.newBuilder().build(); - * Operation response = instanceGroupClient.addInstancesInstanceGroup(instanceGroup, instanceGroupsAddInstancesRequestResource); + * InstanceGroup response = instanceGroupClient.getInstanceGroup(instanceGroup); * } * * @@ -305,7 +299,7 @@ * * try (InstanceTemplateClient instanceTemplateClient = InstanceTemplateClient.create()) { * ProjectGlobalInstanceTemplateName instanceTemplate = ProjectGlobalInstanceTemplateName.of("[PROJECT]", "[INSTANCE_TEMPLATE]"); - * Operation response = instanceTemplateClient.deleteInstanceTemplate(instanceTemplate); + * InstanceTemplate response = instanceTemplateClient.getInstanceTemplate(instanceTemplate); * } * * @@ -320,9 +314,7 @@ * * try (InstanceClient instanceClient = InstanceClient.create()) { * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]"); - * String networkInterface = ""; - * AccessConfig accessConfigResource = AccessConfig.newBuilder().build(); - * Operation response = instanceClient.addAccessConfigInstance(instance, networkInterface, accessConfigResource); + * Instance response = instanceClient.getInstance(instance); * } * * @@ -337,7 +329,7 @@ * * try (InterconnectAttachmentClient interconnectAttachmentClient = InterconnectAttachmentClient.create()) { * ProjectRegionInterconnectAttachmentName interconnectAttachment = ProjectRegionInterconnectAttachmentName.of("[PROJECT]", "[REGION]", "[INTERCONNECT_ATTACHMENT]"); - * Operation response = interconnectAttachmentClient.deleteInterconnectAttachment(interconnectAttachment); + * InterconnectAttachment response = interconnectAttachmentClient.getInterconnectAttachment(interconnectAttachment); * } * * @@ -367,7 +359,7 @@ * * try (InterconnectClient interconnectClient = InterconnectClient.create()) { * ProjectGlobalInterconnectName interconnect = ProjectGlobalInterconnectName.of("[PROJECT]", "[INTERCONNECT]"); - * Operation response = interconnectClient.deleteInterconnect(interconnect); + * Interconnect response = interconnectClient.getInterconnect(interconnect); * } * * @@ -397,7 +389,7 @@ * * try (LicenseClient licenseClient = LicenseClient.create()) { * ProjectGlobalLicenseName license = ProjectGlobalLicenseName.of("[PROJECT]", "[LICENSE]"); - * Operation response = licenseClient.deleteLicense(license); + * License response = licenseClient.getLicense(license); * } * * @@ -427,8 +419,7 @@ * * try (NetworkClient networkClient = NetworkClient.create()) { * ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]"); - * NetworksAddPeeringRequest networksAddPeeringRequestResource = NetworksAddPeeringRequest.newBuilder().build(); - * Operation response = networkClient.addPeeringNetwork(network, networksAddPeeringRequestResource); + * Network response = networkClient.getNetwork(network); * } * * @@ -443,8 +434,7 @@ * * try (NodeGroupClient nodeGroupClient = NodeGroupClient.create()) { * ProjectZoneNodeGroupName nodeGroup = ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]"); - * NodeGroupsAddNodesRequest nodeGroupsAddNodesRequestResource = NodeGroupsAddNodesRequest.newBuilder().build(); - * Operation response = nodeGroupClient.addNodesNodeGroup(nodeGroup, nodeGroupsAddNodesRequestResource); + * NodeGroup response = nodeGroupClient.getNodeGroup(nodeGroup); * } * * @@ -459,7 +449,7 @@ * * try (NodeTemplateClient nodeTemplateClient = NodeTemplateClient.create()) { * ProjectRegionNodeTemplateName nodeTemplate = ProjectRegionNodeTemplateName.of("[PROJECT]", "[REGION]", "[NODE_TEMPLATE]"); - * Operation response = nodeTemplateClient.deleteNodeTemplate(nodeTemplate); + * NodeTemplate response = nodeTemplateClient.getNodeTemplate(nodeTemplate); * } * * @@ -489,7 +479,7 @@ * * try (ProjectClient projectClient = ProjectClient.create()) { * ProjectName project = ProjectName.of("[PROJECT]"); - * Operation response = projectClient.disableXpnHostProject(project); + * Project response = projectClient.getProject(project); * } * * @@ -504,7 +494,7 @@ * * try (RegionAutoscalerClient regionAutoscalerClient = RegionAutoscalerClient.create()) { * ProjectRegionAutoscalerName autoscaler = ProjectRegionAutoscalerName.of("[PROJECT]", "[REGION]", "[AUTOSCALER]"); - * Operation response = regionAutoscalerClient.deleteRegionAutoscaler(autoscaler); + * Autoscaler response = regionAutoscalerClient.getRegionAutoscaler(autoscaler); * } * * @@ -519,7 +509,7 @@ * * try (RegionBackendServiceClient regionBackendServiceClient = RegionBackendServiceClient.create()) { * ProjectRegionBackendServiceName backendService = ProjectRegionBackendServiceName.of("[PROJECT]", "[REGION]", "[BACKEND_SERVICE]"); - * Operation response = regionBackendServiceClient.deleteRegionBackendService(backendService); + * BackendService response = regionBackendServiceClient.getRegionBackendService(backendService); * } * * @@ -564,8 +554,7 @@ * * try (RegionDiskClient regionDiskClient = RegionDiskClient.create()) { * ProjectRegionDiskName disk = ProjectRegionDiskName.of("[PROJECT]", "[REGION]", "[DISK]"); - * Snapshot snapshotResource = Snapshot.newBuilder().build(); - * Operation response = regionDiskClient.createSnapshotRegionDisk(disk, snapshotResource); + * Disk response = regionDiskClient.getRegionDisk(disk); * } * * @@ -581,8 +570,7 @@ * * try (RegionInstanceGroupManagerClient regionInstanceGroupManagerClient = RegionInstanceGroupManagerClient.create()) { * ProjectRegionInstanceGroupManagerName instanceGroupManager = ProjectRegionInstanceGroupManagerName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]"); - * RegionInstanceGroupManagersAbandonInstancesRequest regionInstanceGroupManagersAbandonInstancesRequestResource = RegionInstanceGroupManagersAbandonInstancesRequest.newBuilder().build(); - * Operation response = regionInstanceGroupManagerClient.abandonInstancesRegionInstanceGroupManager(instanceGroupManager, regionInstanceGroupManagersAbandonInstancesRequestResource); + * InstanceGroupManager response = regionInstanceGroupManagerClient.getRegionInstanceGroupManager(instanceGroupManager); * } * * @@ -642,7 +630,7 @@ * * try (RouterClient routerClient = RouterClient.create()) { * ProjectRegionRouterName router = ProjectRegionRouterName.of("[PROJECT]", "[REGION]", "[ROUTER]"); - * Operation response = routerClient.deleteRouter(router); + * Router response = routerClient.getRouter(router); * } * * @@ -657,7 +645,7 @@ * * try (RouteClient routeClient = RouteClient.create()) { * ProjectGlobalRouteName route = ProjectGlobalRouteName.of("[PROJECT]", "[ROUTE]"); - * Operation response = routeClient.deleteRoute(route); + * Route response = routeClient.getRoute(route); * } * * @@ -672,8 +660,7 @@ * * try (SecurityPolicyClient securityPolicyClient = SecurityPolicyClient.create()) { * ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]"); - * SecurityPolicyRule securityPolicyRuleResource = SecurityPolicyRule.newBuilder().build(); - * Operation response = securityPolicyClient.addRuleSecurityPolicy(securityPolicy, securityPolicyRuleResource); + * SecurityPolicy response = securityPolicyClient.getSecurityPolicy(securityPolicy); * } * * @@ -688,7 +675,7 @@ * * try (SnapshotClient snapshotClient = SnapshotClient.create()) { * ProjectGlobalSnapshotName snapshot = ProjectGlobalSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); - * Operation response = snapshotClient.deleteSnapshot(snapshot); + * Snapshot response = snapshotClient.getSnapshot(snapshot); * } * * @@ -703,7 +690,7 @@ * * try (SslCertificateClient sslCertificateClient = SslCertificateClient.create()) { * ProjectGlobalSslCertificateName sslCertificate = ProjectGlobalSslCertificateName.of("[PROJECT]", "[SSL_CERTIFICATE]"); - * Operation response = sslCertificateClient.deleteSslCertificate(sslCertificate); + * SslCertificate response = sslCertificateClient.getSslCertificate(sslCertificate); * } * * @@ -718,7 +705,7 @@ * * try (SslPolicyClient sslPolicyClient = SslPolicyClient.create()) { * ProjectGlobalSslPolicyName sslPolicy = ProjectGlobalSslPolicyName.of("[PROJECT]", "[SSL_POLICY]"); - * Operation response = sslPolicyClient.deleteSslPolicy(sslPolicy); + * SslPolicy response = sslPolicyClient.getSslPolicy(sslPolicy); * } * * @@ -733,7 +720,7 @@ * * try (SubnetworkClient subnetworkClient = SubnetworkClient.create()) { * ProjectRegionSubnetworkName subnetwork = ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]"); - * Operation response = subnetworkClient.deleteSubnetwork(subnetwork); + * Subnetwork response = subnetworkClient.getSubnetwork(subnetwork); * } * * @@ -748,7 +735,7 @@ * * try (TargetHttpProxyClient targetHttpProxyClient = TargetHttpProxyClient.create()) { * ProjectGlobalTargetHttpProxyName targetHttpProxy = ProjectGlobalTargetHttpProxyName.of("[PROJECT]", "[TARGET_HTTP_PROXY]"); - * Operation response = targetHttpProxyClient.deleteTargetHttpProxy(targetHttpProxy); + * TargetHttpProxy response = targetHttpProxyClient.getTargetHttpProxy(targetHttpProxy); * } * * @@ -763,7 +750,7 @@ * * try (TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient.create()) { * ProjectGlobalTargetHttpsProxyName targetHttpsProxy = ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]"); - * Operation response = targetHttpsProxyClient.deleteTargetHttpsProxy(targetHttpsProxy); + * TargetHttpsProxy response = targetHttpsProxyClient.getTargetHttpsProxy(targetHttpsProxy); * } * * @@ -778,7 +765,7 @@ * * try (TargetInstanceClient targetInstanceClient = TargetInstanceClient.create()) { * ProjectZoneTargetInstanceName targetInstance = ProjectZoneTargetInstanceName.of("[PROJECT]", "[ZONE]", "[TARGET_INSTANCE]"); - * Operation response = targetInstanceClient.deleteTargetInstance(targetInstance); + * TargetInstance response = targetInstanceClient.getTargetInstance(targetInstance); * } * * @@ -793,8 +780,7 @@ * * try (TargetPoolClient targetPoolClient = TargetPoolClient.create()) { * ProjectRegionTargetPoolName targetPool = ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]"); - * TargetPoolsAddHealthCheckRequest targetPoolsAddHealthCheckRequestResource = TargetPoolsAddHealthCheckRequest.newBuilder().build(); - * Operation response = targetPoolClient.addHealthCheckTargetPool(targetPool, targetPoolsAddHealthCheckRequestResource); + * TargetPool response = targetPoolClient.getTargetPool(targetPool); * } * * @@ -809,7 +795,7 @@ * * try (TargetSslProxyClient targetSslProxyClient = TargetSslProxyClient.create()) { * ProjectGlobalTargetSslProxyName targetSslProxy = ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]"); - * Operation response = targetSslProxyClient.deleteTargetSslProxy(targetSslProxy); + * TargetSslProxy response = targetSslProxyClient.getTargetSslProxy(targetSslProxy); * } * * @@ -824,7 +810,7 @@ * * try (TargetTcpProxyClient targetTcpProxyClient = TargetTcpProxyClient.create()) { * ProjectGlobalTargetTcpProxyName targetTcpProxy = ProjectGlobalTargetTcpProxyName.of("[PROJECT]", "[TARGET_TCP_PROXY]"); - * Operation response = targetTcpProxyClient.deleteTargetTcpProxy(targetTcpProxy); + * TargetTcpProxy response = targetTcpProxyClient.getTargetTcpProxy(targetTcpProxy); * } * * @@ -839,7 +825,7 @@ * * try (TargetVpnGatewayClient targetVpnGatewayClient = TargetVpnGatewayClient.create()) { * ProjectRegionTargetVpnGatewayName targetVpnGateway = ProjectRegionTargetVpnGatewayName.of("[PROJECT]", "[REGION]", "[TARGET_VPN_GATEWAY]"); - * Operation response = targetVpnGatewayClient.deleteTargetVpnGateway(targetVpnGateway); + * TargetVpnGateway response = targetVpnGatewayClient.getTargetVpnGateway(targetVpnGateway); * } * * @@ -854,7 +840,7 @@ * * try (UrlMapClient urlMapClient = UrlMapClient.create()) { * ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]"); - * Operation response = urlMapClient.deleteUrlMap(urlMap); + * UrlMap response = urlMapClient.getUrlMap(urlMap); * } * * @@ -869,7 +855,7 @@ * * try (VpnTunnelClient vpnTunnelClient = VpnTunnelClient.create()) { * ProjectRegionVpnTunnelName vpnTunnel = ProjectRegionVpnTunnelName.of("[PROJECT]", "[REGION]", "[VPN_TUNNEL]"); - * Operation response = vpnTunnelClient.deleteVpnTunnel(vpnTunnel); + * VpnTunnel response = vpnTunnelClient.getVpnTunnel(vpnTunnel); * } * * diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStub.java index 22bf14f60f80..2194b791e1f3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStub.java @@ -20,6 +20,8 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.EmptyMessage; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.Address; import com.google.cloud.compute.v1.AddressAggregatedList; @@ -42,6 +44,11 @@ @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public abstract class AddressStub implements BackgroundResource { + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public GlobalOperationStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + @BetaApi public UnaryCallable aggregatedListAddressesPagedCallable() { @@ -55,6 +62,12 @@ public abstract class AddressStub implements BackgroundResource { throw new UnsupportedOperationException("Not implemented: aggregatedListAddressesCallable()"); } + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallable + deleteAddressOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAddressOperationCallable()"); + } + @BetaApi public UnaryCallable deleteAddressCallable() { throw new UnsupportedOperationException("Not implemented: deleteAddressCallable()"); @@ -65,6 +78,12 @@ public UnaryCallable getAddressCallable() { throw new UnsupportedOperationException("Not implemented: getAddressCallable()"); } + @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallable + insertAddressOperationCallable() { + throw new UnsupportedOperationException("Not implemented: insertAddressOperationCallable()"); + } + @BetaApi public UnaryCallable insertAddressCallable() { throw new UnsupportedOperationException("Not implemented: insertAddressCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStubSettings.java index b55480be3ec8..479655ff5d0d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStubSettings.java @@ -24,13 +24,18 @@ import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.ApiMessageOperationTransformers; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.GaxHttpJsonProperties; import com.google.api.gax.httpjson.HttpJsonTransportChannel; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.PagedListDescriptor; @@ -74,13 +79,13 @@ * *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteAddress to 30 seconds: + * example, to set the total timeout of getAddress to 30 seconds: * *

  * 
  * AddressStubSettings.Builder addressSettingsBuilder =
  *     AddressStubSettings.newBuilder();
- * addressSettingsBuilder.deleteAddressSettings().getRetrySettings().toBuilder()
+ * addressSettingsBuilder.getAddressSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * AddressStubSettings addressSettings = addressSettingsBuilder.build();
  * 
@@ -106,8 +111,12 @@ public class AddressStubSettings extends StubSettings {
           AggregatedListAddressesPagedResponse>
       aggregatedListAddressesSettings;
   private final UnaryCallSettings deleteAddressSettings;
+  private final OperationCallSettings
+      deleteAddressOperationSettings;
   private final UnaryCallSettings getAddressSettings;
   private final UnaryCallSettings insertAddressSettings;
+  private final OperationCallSettings
+      insertAddressOperationSettings;
   private final PagedCallSettings
       listAddressesSettings;
 
@@ -125,6 +134,13 @@ public UnaryCallSettings deleteAddressSetti
     return deleteAddressSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteAddress. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteAddressOperationSettings() {
+    return deleteAddressOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getAddress. */
   public UnaryCallSettings getAddressSettings() {
     return getAddressSettings;
@@ -135,6 +151,13 @@ public UnaryCallSettings insertAddressSetti
     return insertAddressSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertAddress. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertAddressOperationSettings() {
+    return insertAddressOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listAddresses. */
   public PagedCallSettings
       listAddressesSettings() {
@@ -217,8 +240,10 @@ protected AddressStubSettings(Builder settingsBuilder) throws IOException {
 
     aggregatedListAddressesSettings = settingsBuilder.aggregatedListAddressesSettings().build();
     deleteAddressSettings = settingsBuilder.deleteAddressSettings().build();
+    deleteAddressOperationSettings = settingsBuilder.deleteAddressOperationSettings().build();
     getAddressSettings = settingsBuilder.getAddressSettings().build();
     insertAddressSettings = settingsBuilder.insertAddressSettings().build();
+    insertAddressOperationSettings = settingsBuilder.insertAddressOperationSettings().build();
     listAddressesSettings = settingsBuilder.listAddressesSettings().build();
   }
 
@@ -358,9 +383,15 @@ public static class Builder extends StubSettings.Builder
         deleteAddressSettings;
+    private final OperationCallSettings.Builder<
+            DeleteAddressHttpRequest, EmptyMessage, EmptyMessage>
+        deleteAddressOperationSettings;
     private final UnaryCallSettings.Builder getAddressSettings;
     private final UnaryCallSettings.Builder
         insertAddressSettings;
+    private final OperationCallSettings.Builder<
+            InsertAddressHttpRequest, EmptyMessage, EmptyMessage>
+        insertAddressOperationSettings;
     private final PagedCallSettings.Builder<
             ListAddressesHttpRequest, AddressList, ListAddressesPagedResponse>
         listAddressesSettings;
@@ -411,10 +442,14 @@ protected Builder(ClientContext clientContext) {
 
       deleteAddressSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteAddressOperationSettings = OperationCallSettings.newBuilder();
+
       getAddressSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertAddressSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertAddressOperationSettings = OperationCallSettings.newBuilder();
+
       listAddressesSettings = PagedCallSettings.newBuilder(LIST_ADDRESSES_PAGE_STR_FACT);
 
       unaryMethodSettingsBuilders =
@@ -463,6 +498,48 @@ private static Builder initDefaults(Builder builder) {
           .listAddressesSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteAddressOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertAddressOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -472,8 +549,10 @@ protected Builder(AddressStubSettings settings) {
 
       aggregatedListAddressesSettings = settings.aggregatedListAddressesSettings.toBuilder();
       deleteAddressSettings = settings.deleteAddressSettings.toBuilder();
+      deleteAddressOperationSettings = settings.deleteAddressOperationSettings.toBuilder();
       getAddressSettings = settings.getAddressSettings.toBuilder();
       insertAddressSettings = settings.insertAddressSettings.toBuilder();
+      insertAddressOperationSettings = settings.insertAddressOperationSettings.toBuilder();
       listAddressesSettings = settings.listAddressesSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
@@ -515,6 +594,14 @@ public UnaryCallSettings.Builder deleteAddr
       return deleteAddressSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteAddress. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteAddressOperationSettings() {
+      return deleteAddressOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getAddress. */
     public UnaryCallSettings.Builder getAddressSettings() {
       return getAddressSettings;
@@ -525,6 +612,14 @@ public UnaryCallSettings.Builder insertAddr
       return insertAddressSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertAddress. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertAddressOperationSettings() {
+      return insertAddressOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listAddresses. */
     public PagedCallSettings.Builder<
             ListAddressesHttpRequest, AddressList, ListAddressesPagedResponse>
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStub.java
index d713b8e587c6..9e5014e919c7 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStub.java
@@ -20,6 +20,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.AggregatedListAutoscalersHttpRequest;
 import com.google.cloud.compute.v1.Autoscaler;
@@ -44,6 +46,11 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class AutoscalerStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
   @BetaApi
   public UnaryCallable
       aggregatedListAutoscalersPagedCallable() {
@@ -57,6 +64,12 @@ public abstract class AutoscalerStub implements BackgroundResource {
     throw new UnsupportedOperationException("Not implemented: aggregatedListAutoscalersCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteAutoscalerOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: deleteAutoscalerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteAutoscalerCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteAutoscalerCallable()");
@@ -67,6 +80,12 @@ public UnaryCallable getAutoscalerCallable
     throw new UnsupportedOperationException("Not implemented: getAutoscalerCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertAutoscalerOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: insertAutoscalerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertAutoscalerCallable() {
     throw new UnsupportedOperationException("Not implemented: insertAutoscalerCallable()");
@@ -83,11 +102,23 @@ public UnaryCallable listAutoscalers
     throw new UnsupportedOperationException("Not implemented: listAutoscalersCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchAutoscalerOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: patchAutoscalerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable patchAutoscalerCallable() {
     throw new UnsupportedOperationException("Not implemented: patchAutoscalerCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateAutoscalerOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: updateAutoscalerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable updateAutoscalerCallable() {
     throw new UnsupportedOperationException("Not implemented: updateAutoscalerCallable()");
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStubSettings.java
index 546c6997be9f..a84f329a987c 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStubSettings.java
@@ -24,13 +24,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -76,13 +81,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteAutoscaler to 30 seconds: + * example, to set the total timeout of getAutoscaler to 30 seconds: * *

  * 
  * AutoscalerStubSettings.Builder autoscalerSettingsBuilder =
  *     AutoscalerStubSettings.newBuilder();
- * autoscalerSettingsBuilder.deleteAutoscalerSettings().getRetrySettings().toBuilder()
+ * autoscalerSettingsBuilder.getAutoscalerSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * AutoscalerStubSettings autoscalerSettings = autoscalerSettingsBuilder.build();
  * 
@@ -108,13 +113,21 @@ public class AutoscalerStubSettings extends StubSettings
           AggregatedListAutoscalersPagedResponse>
       aggregatedListAutoscalersSettings;
   private final UnaryCallSettings deleteAutoscalerSettings;
+  private final OperationCallSettings
+      deleteAutoscalerOperationSettings;
   private final UnaryCallSettings getAutoscalerSettings;
   private final UnaryCallSettings insertAutoscalerSettings;
+  private final OperationCallSettings
+      insertAutoscalerOperationSettings;
   private final PagedCallSettings<
           ListAutoscalersHttpRequest, AutoscalerList, ListAutoscalersPagedResponse>
       listAutoscalersSettings;
   private final UnaryCallSettings patchAutoscalerSettings;
+  private final OperationCallSettings
+      patchAutoscalerOperationSettings;
   private final UnaryCallSettings updateAutoscalerSettings;
+  private final OperationCallSettings
+      updateAutoscalerOperationSettings;
 
   /** Returns the object with the settings used for calls to aggregatedListAutoscalers. */
   public PagedCallSettings<
@@ -130,6 +143,13 @@ public UnaryCallSettings deleteAutoscale
     return deleteAutoscalerSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteAutoscaler. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteAutoscalerOperationSettings() {
+    return deleteAutoscalerOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getAutoscaler. */
   public UnaryCallSettings getAutoscalerSettings() {
     return getAutoscalerSettings;
@@ -140,6 +160,13 @@ public UnaryCallSettings insertAutoscale
     return insertAutoscalerSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertAutoscaler. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertAutoscalerOperationSettings() {
+    return insertAutoscalerOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listAutoscalers. */
   public PagedCallSettings
       listAutoscalersSettings() {
@@ -151,11 +178,25 @@ public UnaryCallSettings patchAutoscalerS
     return patchAutoscalerSettings;
   }
 
+  /** Returns the object with the settings used for calls to patchAutoscaler. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchAutoscalerOperationSettings() {
+    return patchAutoscalerOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to updateAutoscaler. */
   public UnaryCallSettings updateAutoscalerSettings() {
     return updateAutoscalerSettings;
   }
 
+  /** Returns the object with the settings used for calls to updateAutoscaler. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateAutoscalerOperationSettings() {
+    return updateAutoscalerOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public AutoscalerStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -233,11 +274,15 @@ protected AutoscalerStubSettings(Builder settingsBuilder) throws IOException {
 
     aggregatedListAutoscalersSettings = settingsBuilder.aggregatedListAutoscalersSettings().build();
     deleteAutoscalerSettings = settingsBuilder.deleteAutoscalerSettings().build();
+    deleteAutoscalerOperationSettings = settingsBuilder.deleteAutoscalerOperationSettings().build();
     getAutoscalerSettings = settingsBuilder.getAutoscalerSettings().build();
     insertAutoscalerSettings = settingsBuilder.insertAutoscalerSettings().build();
+    insertAutoscalerOperationSettings = settingsBuilder.insertAutoscalerOperationSettings().build();
     listAutoscalersSettings = settingsBuilder.listAutoscalersSettings().build();
     patchAutoscalerSettings = settingsBuilder.patchAutoscalerSettings().build();
+    patchAutoscalerOperationSettings = settingsBuilder.patchAutoscalerOperationSettings().build();
     updateAutoscalerSettings = settingsBuilder.updateAutoscalerSettings().build();
+    updateAutoscalerOperationSettings = settingsBuilder.updateAutoscalerOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -381,17 +426,29 @@ public static class Builder extends StubSettings.Builder
         deleteAutoscalerSettings;
+    private final OperationCallSettings.Builder<
+            DeleteAutoscalerHttpRequest, EmptyMessage, EmptyMessage>
+        deleteAutoscalerOperationSettings;
     private final UnaryCallSettings.Builder
         getAutoscalerSettings;
     private final UnaryCallSettings.Builder
         insertAutoscalerSettings;
+    private final OperationCallSettings.Builder<
+            InsertAutoscalerHttpRequest, EmptyMessage, EmptyMessage>
+        insertAutoscalerOperationSettings;
     private final PagedCallSettings.Builder<
             ListAutoscalersHttpRequest, AutoscalerList, ListAutoscalersPagedResponse>
         listAutoscalersSettings;
     private final UnaryCallSettings.Builder
         patchAutoscalerSettings;
+    private final OperationCallSettings.Builder<
+            PatchAutoscalerHttpRequest, EmptyMessage, EmptyMessage>
+        patchAutoscalerOperationSettings;
     private final UnaryCallSettings.Builder
         updateAutoscalerSettings;
+    private final OperationCallSettings.Builder<
+            UpdateAutoscalerHttpRequest, EmptyMessage, EmptyMessage>
+        updateAutoscalerOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -439,16 +496,24 @@ protected Builder(ClientContext clientContext) {
 
       deleteAutoscalerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteAutoscalerOperationSettings = OperationCallSettings.newBuilder();
+
       getAutoscalerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertAutoscalerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertAutoscalerOperationSettings = OperationCallSettings.newBuilder();
+
       listAutoscalersSettings = PagedCallSettings.newBuilder(LIST_AUTOSCALERS_PAGE_STR_FACT);
 
       patchAutoscalerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      patchAutoscalerOperationSettings = OperationCallSettings.newBuilder();
+
       updateAutoscalerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      updateAutoscalerOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               aggregatedListAutoscalersSettings,
@@ -507,6 +572,90 @@ private static Builder initDefaults(Builder builder) {
           .updateAutoscalerSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteAutoscalerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertAutoscalerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .patchAutoscalerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .updateAutoscalerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -516,11 +665,15 @@ protected Builder(AutoscalerStubSettings settings) {
 
       aggregatedListAutoscalersSettings = settings.aggregatedListAutoscalersSettings.toBuilder();
       deleteAutoscalerSettings = settings.deleteAutoscalerSettings.toBuilder();
+      deleteAutoscalerOperationSettings = settings.deleteAutoscalerOperationSettings.toBuilder();
       getAutoscalerSettings = settings.getAutoscalerSettings.toBuilder();
       insertAutoscalerSettings = settings.insertAutoscalerSettings.toBuilder();
+      insertAutoscalerOperationSettings = settings.insertAutoscalerOperationSettings.toBuilder();
       listAutoscalersSettings = settings.listAutoscalersSettings.toBuilder();
       patchAutoscalerSettings = settings.patchAutoscalerSettings.toBuilder();
+      patchAutoscalerOperationSettings = settings.patchAutoscalerOperationSettings.toBuilder();
       updateAutoscalerSettings = settings.updateAutoscalerSettings.toBuilder();
+      updateAutoscalerOperationSettings = settings.updateAutoscalerOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -564,6 +717,14 @@ public Builder applyToAllUnaryMethods(
       return deleteAutoscalerSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteAutoscaler. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteAutoscalerOperationSettings() {
+      return deleteAutoscalerOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getAutoscaler. */
     public UnaryCallSettings.Builder getAutoscalerSettings() {
       return getAutoscalerSettings;
@@ -575,6 +736,14 @@ public UnaryCallSettings.Builder getAutosc
       return insertAutoscalerSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertAutoscaler. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertAutoscalerOperationSettings() {
+      return insertAutoscalerOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listAutoscalers. */
     public PagedCallSettings.Builder<
             ListAutoscalersHttpRequest, AutoscalerList, ListAutoscalersPagedResponse>
@@ -588,12 +757,28 @@ public UnaryCallSettings.Builder getAutosc
       return patchAutoscalerSettings;
     }
 
+    /** Returns the builder for the settings used for calls to patchAutoscaler. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchAutoscalerOperationSettings() {
+      return patchAutoscalerOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to updateAutoscaler. */
     public UnaryCallSettings.Builder
         updateAutoscalerSettings() {
       return updateAutoscalerSettings;
     }
 
+    /** Returns the builder for the settings used for calls to updateAutoscaler. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        updateAutoscalerOperationSettings() {
+      return updateAutoscalerOperationSettings;
+    }
+
     @Override
     public AutoscalerStubSettings build() throws IOException {
       return new AutoscalerStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStub.java
index 0b11c5b40aee..21fa916f8f67 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.AddSignedUrlKeyBackendBucketHttpRequest;
 import com.google.cloud.compute.v1.BackendBucket;
@@ -43,6 +45,18 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class BackendBucketStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      addSignedUrlKeyBackendBucketOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: addSignedUrlKeyBackendBucketOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       addSignedUrlKeyBackendBucketCallable() {
@@ -50,11 +64,25 @@ public abstract class BackendBucketStub implements BackgroundResource {
         "Not implemented: addSignedUrlKeyBackendBucketCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteBackendBucketOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteBackendBucketOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteBackendBucketCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteBackendBucketCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteSignedUrlKeyBackendBucketOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteSignedUrlKeyBackendBucketOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       deleteSignedUrlKeyBackendBucketCallable() {
@@ -67,6 +95,13 @@ public UnaryCallable getBackendBucke
     throw new UnsupportedOperationException("Not implemented: getBackendBucketCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertBackendBucketOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertBackendBucketOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertBackendBucketCallable() {
     throw new UnsupportedOperationException("Not implemented: insertBackendBucketCallable()");
@@ -84,11 +119,25 @@ public UnaryCallable insertBackendBuc
     throw new UnsupportedOperationException("Not implemented: listBackendBucketsCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchBackendBucketOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: patchBackendBucketOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable patchBackendBucketCallable() {
     throw new UnsupportedOperationException("Not implemented: patchBackendBucketCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateBackendBucketOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: updateBackendBucketOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable updateBackendBucketCallable() {
     throw new UnsupportedOperationException("Not implemented: updateBackendBucketCallable()");
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStubSettings.java
index acdd245d802a..88c8d920b6ab 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -74,13 +79,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of addSignedUrlKeyBackendBucket to 30 seconds: + * example, to set the total timeout of getBackendBucket to 30 seconds: * *

  * 
  * BackendBucketStubSettings.Builder backendBucketSettingsBuilder =
  *     BackendBucketStubSettings.newBuilder();
- * backendBucketSettingsBuilder.addSignedUrlKeyBackendBucketSettings().getRetrySettings().toBuilder()
+ * backendBucketSettingsBuilder.getBackendBucketSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * BackendBucketStubSettings backendBucketSettings = backendBucketSettingsBuilder.build();
  * 
@@ -102,21 +107,35 @@ public class BackendBucketStubSettings extends StubSettings
       addSignedUrlKeyBackendBucketSettings;
+  private final OperationCallSettings<
+          AddSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage>
+      addSignedUrlKeyBackendBucketOperationSettings;
   private final UnaryCallSettings
       deleteBackendBucketSettings;
+  private final OperationCallSettings
+      deleteBackendBucketOperationSettings;
   private final UnaryCallSettings
       deleteSignedUrlKeyBackendBucketSettings;
+  private final OperationCallSettings<
+          DeleteSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage>
+      deleteSignedUrlKeyBackendBucketOperationSettings;
   private final UnaryCallSettings
       getBackendBucketSettings;
   private final UnaryCallSettings
       insertBackendBucketSettings;
+  private final OperationCallSettings
+      insertBackendBucketOperationSettings;
   private final PagedCallSettings<
           ListBackendBucketsHttpRequest, BackendBucketList, ListBackendBucketsPagedResponse>
       listBackendBucketsSettings;
   private final UnaryCallSettings
       patchBackendBucketSettings;
+  private final OperationCallSettings
+      patchBackendBucketOperationSettings;
   private final UnaryCallSettings
       updateBackendBucketSettings;
+  private final OperationCallSettings
+      updateBackendBucketOperationSettings;
 
   /** Returns the object with the settings used for calls to addSignedUrlKeyBackendBucket. */
   public UnaryCallSettings
@@ -124,18 +143,40 @@ public class BackendBucketStubSettings extends StubSettings
+      addSignedUrlKeyBackendBucketOperationSettings() {
+    return addSignedUrlKeyBackendBucketOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to deleteBackendBucket. */
   public UnaryCallSettings
       deleteBackendBucketSettings() {
     return deleteBackendBucketSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteBackendBucket. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteBackendBucketOperationSettings() {
+    return deleteBackendBucketOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to deleteSignedUrlKeyBackendBucket. */
   public UnaryCallSettings
       deleteSignedUrlKeyBackendBucketSettings() {
     return deleteSignedUrlKeyBackendBucketSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteSignedUrlKeyBackendBucket. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          DeleteSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage>
+      deleteSignedUrlKeyBackendBucketOperationSettings() {
+    return deleteSignedUrlKeyBackendBucketOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getBackendBucket. */
   public UnaryCallSettings getBackendBucketSettings() {
     return getBackendBucketSettings;
@@ -147,6 +188,13 @@ public UnaryCallSettings getBackendB
     return insertBackendBucketSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertBackendBucket. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertBackendBucketOperationSettings() {
+    return insertBackendBucketOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listBackendBuckets. */
   public PagedCallSettings<
           ListBackendBucketsHttpRequest, BackendBucketList, ListBackendBucketsPagedResponse>
@@ -159,12 +207,26 @@ public UnaryCallSettings patchBackendB
     return patchBackendBucketSettings;
   }
 
+  /** Returns the object with the settings used for calls to patchBackendBucket. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchBackendBucketOperationSettings() {
+    return patchBackendBucketOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to updateBackendBucket. */
   public UnaryCallSettings
       updateBackendBucketSettings() {
     return updateBackendBucketSettings;
   }
 
+  /** Returns the object with the settings used for calls to updateBackendBucket. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateBackendBucketOperationSettings() {
+    return updateBackendBucketOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public BackendBucketStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -242,14 +304,26 @@ protected BackendBucketStubSettings(Builder settingsBuilder) throws IOException
 
     addSignedUrlKeyBackendBucketSettings =
         settingsBuilder.addSignedUrlKeyBackendBucketSettings().build();
+    addSignedUrlKeyBackendBucketOperationSettings =
+        settingsBuilder.addSignedUrlKeyBackendBucketOperationSettings().build();
     deleteBackendBucketSettings = settingsBuilder.deleteBackendBucketSettings().build();
+    deleteBackendBucketOperationSettings =
+        settingsBuilder.deleteBackendBucketOperationSettings().build();
     deleteSignedUrlKeyBackendBucketSettings =
         settingsBuilder.deleteSignedUrlKeyBackendBucketSettings().build();
+    deleteSignedUrlKeyBackendBucketOperationSettings =
+        settingsBuilder.deleteSignedUrlKeyBackendBucketOperationSettings().build();
     getBackendBucketSettings = settingsBuilder.getBackendBucketSettings().build();
     insertBackendBucketSettings = settingsBuilder.insertBackendBucketSettings().build();
+    insertBackendBucketOperationSettings =
+        settingsBuilder.insertBackendBucketOperationSettings().build();
     listBackendBucketsSettings = settingsBuilder.listBackendBucketsSettings().build();
     patchBackendBucketSettings = settingsBuilder.patchBackendBucketSettings().build();
+    patchBackendBucketOperationSettings =
+        settingsBuilder.patchBackendBucketOperationSettings().build();
     updateBackendBucketSettings = settingsBuilder.updateBackendBucketSettings().build();
+    updateBackendBucketOperationSettings =
+        settingsBuilder.updateBackendBucketOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -319,21 +393,39 @@ public static class Builder extends StubSettings.Builder
         addSignedUrlKeyBackendBucketSettings;
+    private final OperationCallSettings.Builder<
+            AddSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage>
+        addSignedUrlKeyBackendBucketOperationSettings;
     private final UnaryCallSettings.Builder
         deleteBackendBucketSettings;
+    private final OperationCallSettings.Builder<
+            DeleteBackendBucketHttpRequest, EmptyMessage, EmptyMessage>
+        deleteBackendBucketOperationSettings;
     private final UnaryCallSettings.Builder
         deleteSignedUrlKeyBackendBucketSettings;
+    private final OperationCallSettings.Builder<
+            DeleteSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage>
+        deleteSignedUrlKeyBackendBucketOperationSettings;
     private final UnaryCallSettings.Builder
         getBackendBucketSettings;
     private final UnaryCallSettings.Builder
         insertBackendBucketSettings;
+    private final OperationCallSettings.Builder<
+            InsertBackendBucketHttpRequest, EmptyMessage, EmptyMessage>
+        insertBackendBucketOperationSettings;
     private final PagedCallSettings.Builder<
             ListBackendBucketsHttpRequest, BackendBucketList, ListBackendBucketsPagedResponse>
         listBackendBucketsSettings;
     private final UnaryCallSettings.Builder
         patchBackendBucketSettings;
+    private final OperationCallSettings.Builder<
+            PatchBackendBucketHttpRequest, EmptyMessage, EmptyMessage>
+        patchBackendBucketOperationSettings;
     private final UnaryCallSettings.Builder
         updateBackendBucketSettings;
+    private final OperationCallSettings.Builder<
+            UpdateBackendBucketHttpRequest, EmptyMessage, EmptyMessage>
+        updateBackendBucketOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -378,20 +470,32 @@ protected Builder(ClientContext clientContext) {
 
       addSignedUrlKeyBackendBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      addSignedUrlKeyBackendBucketOperationSettings = OperationCallSettings.newBuilder();
+
       deleteBackendBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteBackendBucketOperationSettings = OperationCallSettings.newBuilder();
+
       deleteSignedUrlKeyBackendBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteSignedUrlKeyBackendBucketOperationSettings = OperationCallSettings.newBuilder();
+
       getBackendBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertBackendBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertBackendBucketOperationSettings = OperationCallSettings.newBuilder();
+
       listBackendBucketsSettings = PagedCallSettings.newBuilder(LIST_BACKEND_BUCKETS_PAGE_STR_FACT);
 
       patchBackendBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      patchBackendBucketOperationSettings = OperationCallSettings.newBuilder();
+
       updateBackendBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      updateBackendBucketOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               addSignedUrlKeyBackendBucketSettings,
@@ -456,6 +560,134 @@ private static Builder initDefaults(Builder builder) {
           .updateBackendBucketSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .addSignedUrlKeyBackendBucketOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .deleteBackendBucketOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .deleteSignedUrlKeyBackendBucketOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertBackendBucketOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .patchBackendBucketOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .updateBackendBucketOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -465,14 +697,26 @@ protected Builder(BackendBucketStubSettings settings) {
 
       addSignedUrlKeyBackendBucketSettings =
           settings.addSignedUrlKeyBackendBucketSettings.toBuilder();
+      addSignedUrlKeyBackendBucketOperationSettings =
+          settings.addSignedUrlKeyBackendBucketOperationSettings.toBuilder();
       deleteBackendBucketSettings = settings.deleteBackendBucketSettings.toBuilder();
+      deleteBackendBucketOperationSettings =
+          settings.deleteBackendBucketOperationSettings.toBuilder();
       deleteSignedUrlKeyBackendBucketSettings =
           settings.deleteSignedUrlKeyBackendBucketSettings.toBuilder();
+      deleteSignedUrlKeyBackendBucketOperationSettings =
+          settings.deleteSignedUrlKeyBackendBucketOperationSettings.toBuilder();
       getBackendBucketSettings = settings.getBackendBucketSettings.toBuilder();
       insertBackendBucketSettings = settings.insertBackendBucketSettings.toBuilder();
+      insertBackendBucketOperationSettings =
+          settings.insertBackendBucketOperationSettings.toBuilder();
       listBackendBucketsSettings = settings.listBackendBucketsSettings.toBuilder();
       patchBackendBucketSettings = settings.patchBackendBucketSettings.toBuilder();
+      patchBackendBucketOperationSettings =
+          settings.patchBackendBucketOperationSettings.toBuilder();
       updateBackendBucketSettings = settings.updateBackendBucketSettings.toBuilder();
+      updateBackendBucketOperationSettings =
+          settings.updateBackendBucketOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -508,18 +752,44 @@ public Builder applyToAllUnaryMethods(
       return addSignedUrlKeyBackendBucketSettings;
     }
 
+    /** Returns the builder for the settings used for calls to addSignedUrlKeyBackendBucket. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            AddSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage>
+        addSignedUrlKeyBackendBucketOperationSettings() {
+      return addSignedUrlKeyBackendBucketOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to deleteBackendBucket. */
     public UnaryCallSettings.Builder
         deleteBackendBucketSettings() {
       return deleteBackendBucketSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteBackendBucket. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteBackendBucketOperationSettings() {
+      return deleteBackendBucketOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to deleteSignedUrlKeyBackendBucket. */
     public UnaryCallSettings.Builder
         deleteSignedUrlKeyBackendBucketSettings() {
       return deleteSignedUrlKeyBackendBucketSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteSignedUrlKeyBackendBucket. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage>
+        deleteSignedUrlKeyBackendBucketOperationSettings() {
+      return deleteSignedUrlKeyBackendBucketOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getBackendBucket. */
     public UnaryCallSettings.Builder
         getBackendBucketSettings() {
@@ -532,6 +802,14 @@ public Builder applyToAllUnaryMethods(
       return insertBackendBucketSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertBackendBucket. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertBackendBucketOperationSettings() {
+      return insertBackendBucketOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listBackendBuckets. */
     public PagedCallSettings.Builder<
             ListBackendBucketsHttpRequest, BackendBucketList, ListBackendBucketsPagedResponse>
@@ -545,12 +823,28 @@ public Builder applyToAllUnaryMethods(
       return patchBackendBucketSettings;
     }
 
+    /** Returns the builder for the settings used for calls to patchBackendBucket. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchBackendBucketOperationSettings() {
+      return patchBackendBucketOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to updateBackendBucket. */
     public UnaryCallSettings.Builder
         updateBackendBucketSettings() {
       return updateBackendBucketSettings;
     }
 
+    /** Returns the builder for the settings used for calls to updateBackendBucket. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        updateBackendBucketOperationSettings() {
+      return updateBackendBucketOperationSettings;
+    }
+
     @Override
     public BackendBucketStubSettings build() throws IOException {
       return new BackendBucketStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStub.java
index e8463750305d..5445d72f0d13 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStub.java
@@ -20,6 +20,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.AddSignedUrlKeyBackendServiceHttpRequest;
 import com.google.cloud.compute.v1.AggregatedListBackendServicesHttpRequest;
@@ -49,6 +51,18 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class BackendServiceStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      addSignedUrlKeyBackendServiceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: addSignedUrlKeyBackendServiceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       addSignedUrlKeyBackendServiceCallable() {
@@ -71,11 +85,25 @@ public abstract class BackendServiceStub implements BackgroundResource {
         "Not implemented: aggregatedListBackendServicesCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteBackendServiceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteBackendServiceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteBackendServiceCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteBackendServiceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteSignedUrlKeyBackendServiceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteSignedUrlKeyBackendServiceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       deleteSignedUrlKeyBackendServiceCallable() {
@@ -94,6 +122,13 @@ public UnaryCallable getBackendSer
     throw new UnsupportedOperationException("Not implemented: getHealthBackendServiceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertBackendServiceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertBackendServiceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertBackendServiceCallable() {
     throw new UnsupportedOperationException("Not implemented: insertBackendServiceCallable()");
@@ -111,11 +146,25 @@ public UnaryCallable insertBackendSe
     throw new UnsupportedOperationException("Not implemented: listBackendServicesCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchBackendServiceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: patchBackendServiceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable patchBackendServiceCallable() {
     throw new UnsupportedOperationException("Not implemented: patchBackendServiceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setSecurityPolicyBackendServiceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setSecurityPolicyBackendServiceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setSecurityPolicyBackendServiceCallable() {
@@ -123,6 +172,13 @@ public UnaryCallable patchBackendServ
         "Not implemented: setSecurityPolicyBackendServiceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateBackendServiceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: updateBackendServiceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable updateBackendServiceCallable() {
     throw new UnsupportedOperationException("Not implemented: updateBackendServiceCallable()");
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStubSettings.java
index 0d9bd047475c..12f6e6e3033c 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStubSettings.java
@@ -24,13 +24,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -81,13 +86,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of addSignedUrlKeyBackendService to 30 seconds: + * example, to set the total timeout of getBackendService to 30 seconds: * *

  * 
  * BackendServiceStubSettings.Builder backendServiceSettingsBuilder =
  *     BackendServiceStubSettings.newBuilder();
- * backendServiceSettingsBuilder.addSignedUrlKeyBackendServiceSettings().getRetrySettings().toBuilder()
+ * backendServiceSettingsBuilder.getBackendServiceSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * BackendServiceStubSettings backendServiceSettings = backendServiceSettingsBuilder.build();
  * 
@@ -109,6 +114,9 @@ public class BackendServiceStubSettings extends StubSettings
       addSignedUrlKeyBackendServiceSettings;
+  private final OperationCallSettings<
+          AddSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+      addSignedUrlKeyBackendServiceOperationSettings;
   private final PagedCallSettings<
           AggregatedListBackendServicesHttpRequest,
           BackendServiceAggregatedList,
@@ -116,23 +124,37 @@ public class BackendServiceStubSettings extends StubSettings
       deleteBackendServiceSettings;
+  private final OperationCallSettings
+      deleteBackendServiceOperationSettings;
   private final UnaryCallSettings
       deleteSignedUrlKeyBackendServiceSettings;
+  private final OperationCallSettings<
+          DeleteSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+      deleteSignedUrlKeyBackendServiceOperationSettings;
   private final UnaryCallSettings
       getBackendServiceSettings;
   private final UnaryCallSettings
       getHealthBackendServiceSettings;
   private final UnaryCallSettings
       insertBackendServiceSettings;
+  private final OperationCallSettings
+      insertBackendServiceOperationSettings;
   private final PagedCallSettings<
           ListBackendServicesHttpRequest, BackendServiceList, ListBackendServicesPagedResponse>
       listBackendServicesSettings;
   private final UnaryCallSettings
       patchBackendServiceSettings;
+  private final OperationCallSettings
+      patchBackendServiceOperationSettings;
   private final UnaryCallSettings
       setSecurityPolicyBackendServiceSettings;
+  private final OperationCallSettings<
+          SetSecurityPolicyBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+      setSecurityPolicyBackendServiceOperationSettings;
   private final UnaryCallSettings
       updateBackendServiceSettings;
+  private final OperationCallSettings
+      updateBackendServiceOperationSettings;
 
   /** Returns the object with the settings used for calls to addSignedUrlKeyBackendService. */
   public UnaryCallSettings
@@ -140,6 +162,13 @@ public class BackendServiceStubSettings extends StubSettings
+      addSignedUrlKeyBackendServiceOperationSettings() {
+    return addSignedUrlKeyBackendServiceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to aggregatedListBackendServices. */
   public PagedCallSettings<
           AggregatedListBackendServicesHttpRequest,
@@ -155,12 +184,27 @@ public class BackendServiceStubSettings extends StubSettings
+      deleteBackendServiceOperationSettings() {
+    return deleteBackendServiceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to deleteSignedUrlKeyBackendService. */
   public UnaryCallSettings
       deleteSignedUrlKeyBackendServiceSettings() {
     return deleteSignedUrlKeyBackendServiceSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteSignedUrlKeyBackendService. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          DeleteSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+      deleteSignedUrlKeyBackendServiceOperationSettings() {
+    return deleteSignedUrlKeyBackendServiceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getBackendService. */
   public UnaryCallSettings
       getBackendServiceSettings() {
@@ -179,6 +223,13 @@ public class BackendServiceStubSettings extends StubSettings
+      insertBackendServiceOperationSettings() {
+    return insertBackendServiceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listBackendServices. */
   public PagedCallSettings<
           ListBackendServicesHttpRequest, BackendServiceList, ListBackendServicesPagedResponse>
@@ -192,18 +243,40 @@ public class BackendServiceStubSettings extends StubSettings
+      patchBackendServiceOperationSettings() {
+    return patchBackendServiceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setSecurityPolicyBackendService. */
   public UnaryCallSettings
       setSecurityPolicyBackendServiceSettings() {
     return setSecurityPolicyBackendServiceSettings;
   }
 
+  /** Returns the object with the settings used for calls to setSecurityPolicyBackendService. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          SetSecurityPolicyBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+      setSecurityPolicyBackendServiceOperationSettings() {
+    return setSecurityPolicyBackendServiceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to updateBackendService. */
   public UnaryCallSettings
       updateBackendServiceSettings() {
     return updateBackendServiceSettings;
   }
 
+  /** Returns the object with the settings used for calls to updateBackendService. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateBackendServiceOperationSettings() {
+    return updateBackendServiceOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public BackendServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -281,19 +354,33 @@ protected BackendServiceStubSettings(Builder settingsBuilder) throws IOException
 
     addSignedUrlKeyBackendServiceSettings =
         settingsBuilder.addSignedUrlKeyBackendServiceSettings().build();
+    addSignedUrlKeyBackendServiceOperationSettings =
+        settingsBuilder.addSignedUrlKeyBackendServiceOperationSettings().build();
     aggregatedListBackendServicesSettings =
         settingsBuilder.aggregatedListBackendServicesSettings().build();
     deleteBackendServiceSettings = settingsBuilder.deleteBackendServiceSettings().build();
+    deleteBackendServiceOperationSettings =
+        settingsBuilder.deleteBackendServiceOperationSettings().build();
     deleteSignedUrlKeyBackendServiceSettings =
         settingsBuilder.deleteSignedUrlKeyBackendServiceSettings().build();
+    deleteSignedUrlKeyBackendServiceOperationSettings =
+        settingsBuilder.deleteSignedUrlKeyBackendServiceOperationSettings().build();
     getBackendServiceSettings = settingsBuilder.getBackendServiceSettings().build();
     getHealthBackendServiceSettings = settingsBuilder.getHealthBackendServiceSettings().build();
     insertBackendServiceSettings = settingsBuilder.insertBackendServiceSettings().build();
+    insertBackendServiceOperationSettings =
+        settingsBuilder.insertBackendServiceOperationSettings().build();
     listBackendServicesSettings = settingsBuilder.listBackendServicesSettings().build();
     patchBackendServiceSettings = settingsBuilder.patchBackendServiceSettings().build();
+    patchBackendServiceOperationSettings =
+        settingsBuilder.patchBackendServiceOperationSettings().build();
     setSecurityPolicyBackendServiceSettings =
         settingsBuilder.setSecurityPolicyBackendServiceSettings().build();
+    setSecurityPolicyBackendServiceOperationSettings =
+        settingsBuilder.setSecurityPolicyBackendServiceOperationSettings().build();
     updateBackendServiceSettings = settingsBuilder.updateBackendServiceSettings().build();
+    updateBackendServiceOperationSettings =
+        settingsBuilder.updateBackendServiceOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -446,6 +533,9 @@ public static class Builder extends StubSettings.Builder
         addSignedUrlKeyBackendServiceSettings;
+    private final OperationCallSettings.Builder<
+            AddSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        addSignedUrlKeyBackendServiceOperationSettings;
     private final PagedCallSettings.Builder<
             AggregatedListBackendServicesHttpRequest,
             BackendServiceAggregatedList,
@@ -453,8 +543,14 @@ public static class Builder extends StubSettings.Builder
         deleteBackendServiceSettings;
+    private final OperationCallSettings.Builder<
+            DeleteBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        deleteBackendServiceOperationSettings;
     private final UnaryCallSettings.Builder
         deleteSignedUrlKeyBackendServiceSettings;
+    private final OperationCallSettings.Builder<
+            DeleteSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        deleteSignedUrlKeyBackendServiceOperationSettings;
     private final UnaryCallSettings.Builder
         getBackendServiceSettings;
     private final UnaryCallSettings.Builder<
@@ -462,15 +558,27 @@ public static class Builder extends StubSettings.Builder
         insertBackendServiceSettings;
+    private final OperationCallSettings.Builder<
+            InsertBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        insertBackendServiceOperationSettings;
     private final PagedCallSettings.Builder<
             ListBackendServicesHttpRequest, BackendServiceList, ListBackendServicesPagedResponse>
         listBackendServicesSettings;
     private final UnaryCallSettings.Builder
         patchBackendServiceSettings;
+    private final OperationCallSettings.Builder<
+            PatchBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        patchBackendServiceOperationSettings;
     private final UnaryCallSettings.Builder
         setSecurityPolicyBackendServiceSettings;
+    private final OperationCallSettings.Builder<
+            SetSecurityPolicyBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        setSecurityPolicyBackendServiceOperationSettings;
     private final UnaryCallSettings.Builder
         updateBackendServiceSettings;
+    private final OperationCallSettings.Builder<
+            UpdateBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        updateBackendServiceOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -515,28 +623,42 @@ protected Builder(ClientContext clientContext) {
 
       addSignedUrlKeyBackendServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      addSignedUrlKeyBackendServiceOperationSettings = OperationCallSettings.newBuilder();
+
       aggregatedListBackendServicesSettings =
           PagedCallSettings.newBuilder(AGGREGATED_LIST_BACKEND_SERVICES_PAGE_STR_FACT);
 
       deleteBackendServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteBackendServiceOperationSettings = OperationCallSettings.newBuilder();
+
       deleteSignedUrlKeyBackendServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteSignedUrlKeyBackendServiceOperationSettings = OperationCallSettings.newBuilder();
+
       getBackendServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       getHealthBackendServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertBackendServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertBackendServiceOperationSettings = OperationCallSettings.newBuilder();
+
       listBackendServicesSettings =
           PagedCallSettings.newBuilder(LIST_BACKEND_SERVICES_PAGE_STR_FACT);
 
       patchBackendServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      patchBackendServiceOperationSettings = OperationCallSettings.newBuilder();
+
       setSecurityPolicyBackendServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setSecurityPolicyBackendServiceOperationSettings = OperationCallSettings.newBuilder();
+
       updateBackendServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      updateBackendServiceOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               addSignedUrlKeyBackendServiceSettings,
@@ -619,6 +741,156 @@ private static Builder initDefaults(Builder builder) {
           .updateBackendServiceSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .addSignedUrlKeyBackendServiceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .deleteBackendServiceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .deleteSignedUrlKeyBackendServiceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertBackendServiceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .patchBackendServiceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setSecurityPolicyBackendServiceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .updateBackendServiceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -628,19 +900,33 @@ protected Builder(BackendServiceStubSettings settings) {
 
       addSignedUrlKeyBackendServiceSettings =
           settings.addSignedUrlKeyBackendServiceSettings.toBuilder();
+      addSignedUrlKeyBackendServiceOperationSettings =
+          settings.addSignedUrlKeyBackendServiceOperationSettings.toBuilder();
       aggregatedListBackendServicesSettings =
           settings.aggregatedListBackendServicesSettings.toBuilder();
       deleteBackendServiceSettings = settings.deleteBackendServiceSettings.toBuilder();
+      deleteBackendServiceOperationSettings =
+          settings.deleteBackendServiceOperationSettings.toBuilder();
       deleteSignedUrlKeyBackendServiceSettings =
           settings.deleteSignedUrlKeyBackendServiceSettings.toBuilder();
+      deleteSignedUrlKeyBackendServiceOperationSettings =
+          settings.deleteSignedUrlKeyBackendServiceOperationSettings.toBuilder();
       getBackendServiceSettings = settings.getBackendServiceSettings.toBuilder();
       getHealthBackendServiceSettings = settings.getHealthBackendServiceSettings.toBuilder();
       insertBackendServiceSettings = settings.insertBackendServiceSettings.toBuilder();
+      insertBackendServiceOperationSettings =
+          settings.insertBackendServiceOperationSettings.toBuilder();
       listBackendServicesSettings = settings.listBackendServicesSettings.toBuilder();
       patchBackendServiceSettings = settings.patchBackendServiceSettings.toBuilder();
+      patchBackendServiceOperationSettings =
+          settings.patchBackendServiceOperationSettings.toBuilder();
       setSecurityPolicyBackendServiceSettings =
           settings.setSecurityPolicyBackendServiceSettings.toBuilder();
+      setSecurityPolicyBackendServiceOperationSettings =
+          settings.setSecurityPolicyBackendServiceOperationSettings.toBuilder();
       updateBackendServiceSettings = settings.updateBackendServiceSettings.toBuilder();
+      updateBackendServiceOperationSettings =
+          settings.updateBackendServiceOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -679,6 +965,15 @@ public Builder applyToAllUnaryMethods(
       return addSignedUrlKeyBackendServiceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to addSignedUrlKeyBackendService. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            AddSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        addSignedUrlKeyBackendServiceOperationSettings() {
+      return addSignedUrlKeyBackendServiceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to aggregatedListBackendServices. */
     public PagedCallSettings.Builder<
             AggregatedListBackendServicesHttpRequest,
@@ -694,12 +989,30 @@ public Builder applyToAllUnaryMethods(
       return deleteBackendServiceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteBackendService. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        deleteBackendServiceOperationSettings() {
+      return deleteBackendServiceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to deleteSignedUrlKeyBackendService. */
     public UnaryCallSettings.Builder
         deleteSignedUrlKeyBackendServiceSettings() {
       return deleteSignedUrlKeyBackendServiceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteSignedUrlKeyBackendService. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        deleteSignedUrlKeyBackendServiceOperationSettings() {
+      return deleteSignedUrlKeyBackendServiceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getBackendService. */
     public UnaryCallSettings.Builder
         getBackendServiceSettings() {
@@ -718,6 +1031,15 @@ public Builder applyToAllUnaryMethods(
       return insertBackendServiceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertBackendService. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        insertBackendServiceOperationSettings() {
+      return insertBackendServiceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listBackendServices. */
     public PagedCallSettings.Builder<
             ListBackendServicesHttpRequest, BackendServiceList, ListBackendServicesPagedResponse>
@@ -731,18 +1053,44 @@ public Builder applyToAllUnaryMethods(
       return patchBackendServiceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to patchBackendService. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchBackendServiceOperationSettings() {
+      return patchBackendServiceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setSecurityPolicyBackendService. */
     public UnaryCallSettings.Builder
         setSecurityPolicyBackendServiceSettings() {
       return setSecurityPolicyBackendServiceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setSecurityPolicyBackendService. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetSecurityPolicyBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        setSecurityPolicyBackendServiceOperationSettings() {
+      return setSecurityPolicyBackendServiceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to updateBackendService. */
     public UnaryCallSettings.Builder
         updateBackendServiceSettings() {
       return updateBackendServiceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to updateBackendService. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            UpdateBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        updateBackendServiceOperationSettings() {
+      return updateBackendServiceOperationSettings;
+    }
+
     @Override
     public BackendServiceStubSettings build() throws IOException {
       return new BackendServiceStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStub.java
index ff83aef3950d..ee9092d13b5e 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStub.java
@@ -20,6 +20,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.AggregatedListDisksHttpRequest;
 import com.google.cloud.compute.v1.CreateSnapshotDiskHttpRequest;
@@ -50,6 +52,11 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class DiskStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
   @BetaApi
   public UnaryCallable
       aggregatedListDisksPagedCallable() {
@@ -62,11 +69,24 @@ public abstract class DiskStub implements BackgroundResource {
     throw new UnsupportedOperationException("Not implemented: aggregatedListDisksCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      createSnapshotDiskOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: createSnapshotDiskOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable createSnapshotDiskCallable() {
     throw new UnsupportedOperationException("Not implemented: createSnapshotDiskCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteDiskOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: deleteDiskOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteDiskCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteDiskCallable()");
@@ -82,6 +102,12 @@ public UnaryCallable getIamPolicyDiskCallab
     throw new UnsupportedOperationException("Not implemented: getIamPolicyDiskCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertDiskOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: insertDiskOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertDiskCallable() {
     throw new UnsupportedOperationException("Not implemented: insertDiskCallable()");
@@ -97,6 +123,12 @@ public UnaryCallable listDisksCallable() {
     throw new UnsupportedOperationException("Not implemented: listDisksCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      resizeDiskOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: resizeDiskOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable resizeDiskCallable() {
     throw new UnsupportedOperationException("Not implemented: resizeDiskCallable()");
@@ -107,6 +139,12 @@ public UnaryCallable setIamPolicyDiskCallab
     throw new UnsupportedOperationException("Not implemented: setIamPolicyDiskCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setLabelsDiskOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: setLabelsDiskOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable setLabelsDiskCallable() {
     throw new UnsupportedOperationException("Not implemented: setLabelsDiskCallable()");
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStubSettings.java
index 4e7bc404810f..6a8f146cd0da 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStubSettings.java
@@ -24,13 +24,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -82,13 +87,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of createSnapshotDisk to 30 seconds: + * example, to set the total timeout of getDisk to 30 seconds: * *

  * 
  * DiskStubSettings.Builder diskSettingsBuilder =
  *     DiskStubSettings.newBuilder();
- * diskSettingsBuilder.createSnapshotDiskSettings().getRetrySettings().toBuilder()
+ * diskSettingsBuilder.getDiskSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * DiskStubSettings diskSettings = diskSettingsBuilder.build();
  * 
@@ -113,15 +118,25 @@ public class DiskStubSettings extends StubSettings {
       aggregatedListDisksSettings;
   private final UnaryCallSettings
       createSnapshotDiskSettings;
+  private final OperationCallSettings
+      createSnapshotDiskOperationSettings;
   private final UnaryCallSettings deleteDiskSettings;
+  private final OperationCallSettings
+      deleteDiskOperationSettings;
   private final UnaryCallSettings getDiskSettings;
   private final UnaryCallSettings getIamPolicyDiskSettings;
   private final UnaryCallSettings insertDiskSettings;
+  private final OperationCallSettings
+      insertDiskOperationSettings;
   private final PagedCallSettings
       listDisksSettings;
   private final UnaryCallSettings resizeDiskSettings;
+  private final OperationCallSettings
+      resizeDiskOperationSettings;
   private final UnaryCallSettings setIamPolicyDiskSettings;
   private final UnaryCallSettings setLabelsDiskSettings;
+  private final OperationCallSettings
+      setLabelsDiskOperationSettings;
   private final UnaryCallSettings
       testIamPermissionsDiskSettings;
 
@@ -137,11 +152,25 @@ public UnaryCallSettings createSnapsho
     return createSnapshotDiskSettings;
   }
 
+  /** Returns the object with the settings used for calls to createSnapshotDisk. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      createSnapshotDiskOperationSettings() {
+    return createSnapshotDiskOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to deleteDisk. */
   public UnaryCallSettings deleteDiskSettings() {
     return deleteDiskSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteDisk. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteDiskOperationSettings() {
+    return deleteDiskOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getDisk. */
   public UnaryCallSettings getDiskSettings() {
     return getDiskSettings;
@@ -157,6 +186,13 @@ public UnaryCallSettings insertDiskSettings()
     return insertDiskSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertDisk. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertDiskOperationSettings() {
+    return insertDiskOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listDisks. */
   public PagedCallSettings
       listDisksSettings() {
@@ -168,6 +204,13 @@ public UnaryCallSettings resizeDiskSettings()
     return resizeDiskSettings;
   }
 
+  /** Returns the object with the settings used for calls to resizeDisk. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      resizeDiskOperationSettings() {
+    return resizeDiskOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setIamPolicyDisk. */
   public UnaryCallSettings setIamPolicyDiskSettings() {
     return setIamPolicyDiskSettings;
@@ -178,6 +221,13 @@ public UnaryCallSettings setLabelsDiskSetti
     return setLabelsDiskSettings;
   }
 
+  /** Returns the object with the settings used for calls to setLabelsDisk. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setLabelsDiskOperationSettings() {
+    return setLabelsDiskOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to testIamPermissionsDisk. */
   public UnaryCallSettings
       testIamPermissionsDiskSettings() {
@@ -260,14 +310,20 @@ protected DiskStubSettings(Builder settingsBuilder) throws IOException {
 
     aggregatedListDisksSettings = settingsBuilder.aggregatedListDisksSettings().build();
     createSnapshotDiskSettings = settingsBuilder.createSnapshotDiskSettings().build();
+    createSnapshotDiskOperationSettings =
+        settingsBuilder.createSnapshotDiskOperationSettings().build();
     deleteDiskSettings = settingsBuilder.deleteDiskSettings().build();
+    deleteDiskOperationSettings = settingsBuilder.deleteDiskOperationSettings().build();
     getDiskSettings = settingsBuilder.getDiskSettings().build();
     getIamPolicyDiskSettings = settingsBuilder.getIamPolicyDiskSettings().build();
     insertDiskSettings = settingsBuilder.insertDiskSettings().build();
+    insertDiskOperationSettings = settingsBuilder.insertDiskOperationSettings().build();
     listDisksSettings = settingsBuilder.listDisksSettings().build();
     resizeDiskSettings = settingsBuilder.resizeDiskSettings().build();
+    resizeDiskOperationSettings = settingsBuilder.resizeDiskOperationSettings().build();
     setIamPolicyDiskSettings = settingsBuilder.setIamPolicyDiskSettings().build();
     setLabelsDiskSettings = settingsBuilder.setLabelsDiskSettings().build();
+    setLabelsDiskOperationSettings = settingsBuilder.setLabelsDiskOperationSettings().build();
     testIamPermissionsDiskSettings = settingsBuilder.testIamPermissionsDiskSettings().build();
   }
 
@@ -395,18 +451,30 @@ public static class Builder extends StubSettings.Builder
         createSnapshotDiskSettings;
+    private final OperationCallSettings.Builder<
+            CreateSnapshotDiskHttpRequest, EmptyMessage, EmptyMessage>
+        createSnapshotDiskOperationSettings;
     private final UnaryCallSettings.Builder deleteDiskSettings;
+    private final OperationCallSettings.Builder
+        deleteDiskOperationSettings;
     private final UnaryCallSettings.Builder getDiskSettings;
     private final UnaryCallSettings.Builder
         getIamPolicyDiskSettings;
     private final UnaryCallSettings.Builder insertDiskSettings;
+    private final OperationCallSettings.Builder
+        insertDiskOperationSettings;
     private final PagedCallSettings.Builder
         listDisksSettings;
     private final UnaryCallSettings.Builder resizeDiskSettings;
+    private final OperationCallSettings.Builder
+        resizeDiskOperationSettings;
     private final UnaryCallSettings.Builder
         setIamPolicyDiskSettings;
     private final UnaryCallSettings.Builder
         setLabelsDiskSettings;
+    private final OperationCallSettings.Builder<
+            SetLabelsDiskHttpRequest, EmptyMessage, EmptyMessage>
+        setLabelsDiskOperationSettings;
     private final UnaryCallSettings.Builder<
             TestIamPermissionsDiskHttpRequest, TestPermissionsResponse>
         testIamPermissionsDiskSettings;
@@ -457,22 +525,32 @@ protected Builder(ClientContext clientContext) {
 
       createSnapshotDiskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      createSnapshotDiskOperationSettings = OperationCallSettings.newBuilder();
+
       deleteDiskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteDiskOperationSettings = OperationCallSettings.newBuilder();
+
       getDiskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       getIamPolicyDiskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertDiskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertDiskOperationSettings = OperationCallSettings.newBuilder();
+
       listDisksSettings = PagedCallSettings.newBuilder(LIST_DISKS_PAGE_STR_FACT);
 
       resizeDiskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      resizeDiskOperationSettings = OperationCallSettings.newBuilder();
+
       setIamPolicyDiskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       setLabelsDiskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setLabelsDiskOperationSettings = OperationCallSettings.newBuilder();
+
       testIamPermissionsDiskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
@@ -557,6 +635,111 @@ private static Builder initDefaults(Builder builder) {
           .testIamPermissionsDiskSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .createSnapshotDiskOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .deleteDiskOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertDiskOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .resizeDiskOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setLabelsDiskOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -566,14 +749,20 @@ protected Builder(DiskStubSettings settings) {
 
       aggregatedListDisksSettings = settings.aggregatedListDisksSettings.toBuilder();
       createSnapshotDiskSettings = settings.createSnapshotDiskSettings.toBuilder();
+      createSnapshotDiskOperationSettings =
+          settings.createSnapshotDiskOperationSettings.toBuilder();
       deleteDiskSettings = settings.deleteDiskSettings.toBuilder();
+      deleteDiskOperationSettings = settings.deleteDiskOperationSettings.toBuilder();
       getDiskSettings = settings.getDiskSettings.toBuilder();
       getIamPolicyDiskSettings = settings.getIamPolicyDiskSettings.toBuilder();
       insertDiskSettings = settings.insertDiskSettings.toBuilder();
+      insertDiskOperationSettings = settings.insertDiskOperationSettings.toBuilder();
       listDisksSettings = settings.listDisksSettings.toBuilder();
       resizeDiskSettings = settings.resizeDiskSettings.toBuilder();
+      resizeDiskOperationSettings = settings.resizeDiskOperationSettings.toBuilder();
       setIamPolicyDiskSettings = settings.setIamPolicyDiskSettings.toBuilder();
       setLabelsDiskSettings = settings.setLabelsDiskSettings.toBuilder();
+      setLabelsDiskOperationSettings = settings.setLabelsDiskOperationSettings.toBuilder();
       testIamPermissionsDiskSettings = settings.testIamPermissionsDiskSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
@@ -620,11 +809,27 @@ public Builder applyToAllUnaryMethods(
       return createSnapshotDiskSettings;
     }
 
+    /** Returns the builder for the settings used for calls to createSnapshotDisk. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        createSnapshotDiskOperationSettings() {
+      return createSnapshotDiskOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to deleteDisk. */
     public UnaryCallSettings.Builder deleteDiskSettings() {
       return deleteDiskSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteDisk. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteDiskOperationSettings() {
+      return deleteDiskOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getDisk. */
     public UnaryCallSettings.Builder getDiskSettings() {
       return getDiskSettings;
@@ -641,6 +846,14 @@ public UnaryCallSettings.Builder insertDiskSet
       return insertDiskSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertDisk. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertDiskOperationSettings() {
+      return insertDiskOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listDisks. */
     public PagedCallSettings.Builder
         listDisksSettings() {
@@ -652,6 +865,14 @@ public UnaryCallSettings.Builder resizeDiskSet
       return resizeDiskSettings;
     }
 
+    /** Returns the builder for the settings used for calls to resizeDisk. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        resizeDiskOperationSettings() {
+      return resizeDiskOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setIamPolicyDisk. */
     public UnaryCallSettings.Builder
         setIamPolicyDiskSettings() {
@@ -663,6 +884,14 @@ public UnaryCallSettings.Builder setLabelsD
       return setLabelsDiskSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setLabelsDisk. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        setLabelsDiskOperationSettings() {
+      return setLabelsDiskOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to testIamPermissionsDisk. */
     public UnaryCallSettings.Builder
         testIamPermissionsDiskSettings() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStub.java
index 543b18dea5f9..2222b8d15289 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.DeleteFirewallHttpRequest;
 import com.google.cloud.compute.v1.Firewall;
@@ -41,6 +43,17 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class FirewallStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteFirewallOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: deleteFirewallOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteFirewallCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteFirewallCallable()");
@@ -51,6 +64,12 @@ public UnaryCallable getFirewallCallable() {
     throw new UnsupportedOperationException("Not implemented: getFirewallCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertFirewallOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: insertFirewallOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertFirewallCallable() {
     throw new UnsupportedOperationException("Not implemented: insertFirewallCallable()");
@@ -67,11 +86,23 @@ public UnaryCallable listFirewallsCallab
     throw new UnsupportedOperationException("Not implemented: listFirewallsCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchFirewallOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: patchFirewallOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable patchFirewallCallable() {
     throw new UnsupportedOperationException("Not implemented: patchFirewallCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateFirewallOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: updateFirewallOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable updateFirewallCallable() {
     throw new UnsupportedOperationException("Not implemented: updateFirewallCallable()");
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStubSettings.java
index c9bc99f66b8b..cfc8c8594c8f 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -72,13 +77,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteFirewall to 30 seconds: + * example, to set the total timeout of getFirewall to 30 seconds: * *

  * 
  * FirewallStubSettings.Builder firewallSettingsBuilder =
  *     FirewallStubSettings.newBuilder();
- * firewallSettingsBuilder.deleteFirewallSettings().getRetrySettings().toBuilder()
+ * firewallSettingsBuilder.getFirewallSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * FirewallStubSettings firewallSettings = firewallSettingsBuilder.build();
  * 
@@ -99,19 +104,34 @@ public class FirewallStubSettings extends StubSettings {
           .build();
 
   private final UnaryCallSettings deleteFirewallSettings;
+  private final OperationCallSettings
+      deleteFirewallOperationSettings;
   private final UnaryCallSettings getFirewallSettings;
   private final UnaryCallSettings insertFirewallSettings;
+  private final OperationCallSettings
+      insertFirewallOperationSettings;
   private final PagedCallSettings<
           ListFirewallsHttpRequest, FirewallList, ListFirewallsPagedResponse>
       listFirewallsSettings;
   private final UnaryCallSettings patchFirewallSettings;
+  private final OperationCallSettings
+      patchFirewallOperationSettings;
   private final UnaryCallSettings updateFirewallSettings;
+  private final OperationCallSettings
+      updateFirewallOperationSettings;
 
   /** Returns the object with the settings used for calls to deleteFirewall. */
   public UnaryCallSettings deleteFirewallSettings() {
     return deleteFirewallSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteFirewall. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteFirewallOperationSettings() {
+    return deleteFirewallOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getFirewall. */
   public UnaryCallSettings getFirewallSettings() {
     return getFirewallSettings;
@@ -122,6 +142,13 @@ public UnaryCallSettings insertFirewallSet
     return insertFirewallSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertFirewall. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertFirewallOperationSettings() {
+    return insertFirewallOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listFirewalls. */
   public PagedCallSettings
       listFirewallsSettings() {
@@ -133,11 +160,25 @@ public UnaryCallSettings patchFirewallSetti
     return patchFirewallSettings;
   }
 
+  /** Returns the object with the settings used for calls to patchFirewall. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchFirewallOperationSettings() {
+    return patchFirewallOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to updateFirewall. */
   public UnaryCallSettings updateFirewallSettings() {
     return updateFirewallSettings;
   }
 
+  /** Returns the object with the settings used for calls to updateFirewall. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateFirewallOperationSettings() {
+    return updateFirewallOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public FirewallStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -213,11 +254,15 @@ protected FirewallStubSettings(Builder settingsBuilder) throws IOException {
     super(settingsBuilder);
 
     deleteFirewallSettings = settingsBuilder.deleteFirewallSettings().build();
+    deleteFirewallOperationSettings = settingsBuilder.deleteFirewallOperationSettings().build();
     getFirewallSettings = settingsBuilder.getFirewallSettings().build();
     insertFirewallSettings = settingsBuilder.insertFirewallSettings().build();
+    insertFirewallOperationSettings = settingsBuilder.insertFirewallOperationSettings().build();
     listFirewallsSettings = settingsBuilder.listFirewallsSettings().build();
     patchFirewallSettings = settingsBuilder.patchFirewallSettings().build();
+    patchFirewallOperationSettings = settingsBuilder.patchFirewallOperationSettings().build();
     updateFirewallSettings = settingsBuilder.updateFirewallSettings().build();
+    updateFirewallOperationSettings = settingsBuilder.updateFirewallOperationSettings().build();
   }
 
   private static final PagedListDescriptor
@@ -281,16 +326,28 @@ public static class Builder extends StubSettings.Builder
         deleteFirewallSettings;
+    private final OperationCallSettings.Builder<
+            DeleteFirewallHttpRequest, EmptyMessage, EmptyMessage>
+        deleteFirewallOperationSettings;
     private final UnaryCallSettings.Builder getFirewallSettings;
     private final UnaryCallSettings.Builder
         insertFirewallSettings;
+    private final OperationCallSettings.Builder<
+            InsertFirewallHttpRequest, EmptyMessage, EmptyMessage>
+        insertFirewallOperationSettings;
     private final PagedCallSettings.Builder<
             ListFirewallsHttpRequest, FirewallList, ListFirewallsPagedResponse>
         listFirewallsSettings;
     private final UnaryCallSettings.Builder
         patchFirewallSettings;
+    private final OperationCallSettings.Builder<
+            PatchFirewallHttpRequest, EmptyMessage, EmptyMessage>
+        patchFirewallOperationSettings;
     private final UnaryCallSettings.Builder
         updateFirewallSettings;
+    private final OperationCallSettings.Builder<
+            UpdateFirewallHttpRequest, EmptyMessage, EmptyMessage>
+        updateFirewallOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -335,16 +392,24 @@ protected Builder(ClientContext clientContext) {
 
       deleteFirewallSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteFirewallOperationSettings = OperationCallSettings.newBuilder();
+
       getFirewallSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertFirewallSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertFirewallOperationSettings = OperationCallSettings.newBuilder();
+
       listFirewallsSettings = PagedCallSettings.newBuilder(LIST_FIREWALLS_PAGE_STR_FACT);
 
       patchFirewallSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      patchFirewallOperationSettings = OperationCallSettings.newBuilder();
+
       updateFirewallSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      updateFirewallOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               deleteFirewallSettings,
@@ -397,6 +462,90 @@ private static Builder initDefaults(Builder builder) {
           .updateFirewallSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteFirewallOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertFirewallOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .patchFirewallOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .updateFirewallOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -405,11 +554,15 @@ protected Builder(FirewallStubSettings settings) {
       super(settings);
 
       deleteFirewallSettings = settings.deleteFirewallSettings.toBuilder();
+      deleteFirewallOperationSettings = settings.deleteFirewallOperationSettings.toBuilder();
       getFirewallSettings = settings.getFirewallSettings.toBuilder();
       insertFirewallSettings = settings.insertFirewallSettings.toBuilder();
+      insertFirewallOperationSettings = settings.insertFirewallOperationSettings.toBuilder();
       listFirewallsSettings = settings.listFirewallsSettings.toBuilder();
       patchFirewallSettings = settings.patchFirewallSettings.toBuilder();
+      patchFirewallOperationSettings = settings.patchFirewallOperationSettings.toBuilder();
       updateFirewallSettings = settings.updateFirewallSettings.toBuilder();
+      updateFirewallOperationSettings = settings.updateFirewallOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -443,6 +596,14 @@ public Builder applyToAllUnaryMethods(
       return deleteFirewallSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteFirewall. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteFirewallOperationSettings() {
+      return deleteFirewallOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getFirewall. */
     public UnaryCallSettings.Builder getFirewallSettings() {
       return getFirewallSettings;
@@ -454,6 +615,14 @@ public UnaryCallSettings.Builder getFirewallSe
       return insertFirewallSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertFirewall. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertFirewallOperationSettings() {
+      return insertFirewallOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listFirewalls. */
     public PagedCallSettings.Builder<
             ListFirewallsHttpRequest, FirewallList, ListFirewallsPagedResponse>
@@ -466,12 +635,28 @@ public UnaryCallSettings.Builder patchFirew
       return patchFirewallSettings;
     }
 
+    /** Returns the builder for the settings used for calls to patchFirewall. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchFirewallOperationSettings() {
+      return patchFirewallOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to updateFirewall. */
     public UnaryCallSettings.Builder
         updateFirewallSettings() {
       return updateFirewallSettings;
     }
 
+    /** Returns the builder for the settings used for calls to updateFirewall. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        updateFirewallOperationSettings() {
+      return updateFirewallOperationSettings;
+    }
+
     @Override
     public FirewallStubSettings build() throws IOException {
       return new FirewallStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStub.java
index 362e65f7e3f0..b62973b6f574 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStub.java
@@ -20,6 +20,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.AggregatedListForwardingRulesHttpRequest;
 import com.google.cloud.compute.v1.DeleteForwardingRuleHttpRequest;
@@ -43,6 +45,11 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class ForwardingRuleStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
   @BetaApi
   public UnaryCallable<
           AggregatedListForwardingRulesHttpRequest, AggregatedListForwardingRulesPagedResponse>
@@ -58,6 +65,13 @@ public abstract class ForwardingRuleStub implements BackgroundResource {
         "Not implemented: aggregatedListForwardingRulesCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteForwardingRuleOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteForwardingRuleOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteForwardingRuleCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteForwardingRuleCallable()");
@@ -68,6 +82,13 @@ public UnaryCallable getForwarding
     throw new UnsupportedOperationException("Not implemented: getForwardingRuleCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertForwardingRuleOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertForwardingRuleOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertForwardingRuleCallable() {
     throw new UnsupportedOperationException("Not implemented: insertForwardingRuleCallable()");
@@ -85,6 +106,13 @@ public UnaryCallable insertForwardin
     throw new UnsupportedOperationException("Not implemented: listForwardingRulesCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setTargetForwardingRuleOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setTargetForwardingRuleOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setTargetForwardingRuleCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStubSettings.java
index 04f0b0b2967e..8fe08c95f397 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStubSettings.java
@@ -24,13 +24,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -75,13 +80,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteForwardingRule to 30 seconds: + * example, to set the total timeout of getForwardingRule to 30 seconds: * *

  * 
  * ForwardingRuleStubSettings.Builder forwardingRuleSettingsBuilder =
  *     ForwardingRuleStubSettings.newBuilder();
- * forwardingRuleSettingsBuilder.deleteForwardingRuleSettings().getRetrySettings().toBuilder()
+ * forwardingRuleSettingsBuilder.getForwardingRuleSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * ForwardingRuleStubSettings forwardingRuleSettings = forwardingRuleSettingsBuilder.build();
  * 
@@ -108,15 +113,22 @@ public class ForwardingRuleStubSettings extends StubSettings
       deleteForwardingRuleSettings;
+  private final OperationCallSettings
+      deleteForwardingRuleOperationSettings;
   private final UnaryCallSettings
       getForwardingRuleSettings;
   private final UnaryCallSettings
       insertForwardingRuleSettings;
+  private final OperationCallSettings
+      insertForwardingRuleOperationSettings;
   private final PagedCallSettings<
           ListForwardingRulesHttpRequest, ForwardingRuleList, ListForwardingRulesPagedResponse>
       listForwardingRulesSettings;
   private final UnaryCallSettings
       setTargetForwardingRuleSettings;
+  private final OperationCallSettings<
+          SetTargetForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+      setTargetForwardingRuleOperationSettings;
 
   /** Returns the object with the settings used for calls to aggregatedListForwardingRules. */
   public PagedCallSettings<
@@ -133,6 +145,13 @@ public class ForwardingRuleStubSettings extends StubSettings
+      deleteForwardingRuleOperationSettings() {
+    return deleteForwardingRuleOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getForwardingRule. */
   public UnaryCallSettings
       getForwardingRuleSettings() {
@@ -145,6 +164,13 @@ public class ForwardingRuleStubSettings extends StubSettings
+      insertForwardingRuleOperationSettings() {
+    return insertForwardingRuleOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listForwardingRules. */
   public PagedCallSettings<
           ListForwardingRulesHttpRequest, ForwardingRuleList, ListForwardingRulesPagedResponse>
@@ -158,6 +184,13 @@ public class ForwardingRuleStubSettings extends StubSettings
+      setTargetForwardingRuleOperationSettings() {
+    return setTargetForwardingRuleOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public ForwardingRuleStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -236,10 +269,16 @@ protected ForwardingRuleStubSettings(Builder settingsBuilder) throws IOException
     aggregatedListForwardingRulesSettings =
         settingsBuilder.aggregatedListForwardingRulesSettings().build();
     deleteForwardingRuleSettings = settingsBuilder.deleteForwardingRuleSettings().build();
+    deleteForwardingRuleOperationSettings =
+        settingsBuilder.deleteForwardingRuleOperationSettings().build();
     getForwardingRuleSettings = settingsBuilder.getForwardingRuleSettings().build();
     insertForwardingRuleSettings = settingsBuilder.insertForwardingRuleSettings().build();
+    insertForwardingRuleOperationSettings =
+        settingsBuilder.insertForwardingRuleOperationSettings().build();
     listForwardingRulesSettings = settingsBuilder.listForwardingRulesSettings().build();
     setTargetForwardingRuleSettings = settingsBuilder.setTargetForwardingRuleSettings().build();
+    setTargetForwardingRuleOperationSettings =
+        settingsBuilder.setTargetForwardingRuleOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -397,15 +436,24 @@ public static class Builder extends StubSettings.Builder
         deleteForwardingRuleSettings;
+    private final OperationCallSettings.Builder<
+            DeleteForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+        deleteForwardingRuleOperationSettings;
     private final UnaryCallSettings.Builder
         getForwardingRuleSettings;
     private final UnaryCallSettings.Builder
         insertForwardingRuleSettings;
+    private final OperationCallSettings.Builder<
+            InsertForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+        insertForwardingRuleOperationSettings;
     private final PagedCallSettings.Builder<
             ListForwardingRulesHttpRequest, ForwardingRuleList, ListForwardingRulesPagedResponse>
         listForwardingRulesSettings;
     private final UnaryCallSettings.Builder
         setTargetForwardingRuleSettings;
+    private final OperationCallSettings.Builder<
+            SetTargetForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+        setTargetForwardingRuleOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -453,15 +501,21 @@ protected Builder(ClientContext clientContext) {
 
       deleteForwardingRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteForwardingRuleOperationSettings = OperationCallSettings.newBuilder();
+
       getForwardingRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertForwardingRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertForwardingRuleOperationSettings = OperationCallSettings.newBuilder();
+
       listForwardingRulesSettings =
           PagedCallSettings.newBuilder(LIST_FORWARDING_RULES_PAGE_STR_FACT);
 
       setTargetForwardingRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setTargetForwardingRuleOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               aggregatedListForwardingRulesSettings,
@@ -514,6 +568,70 @@ private static Builder initDefaults(Builder builder) {
           .setTargetForwardingRuleSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteForwardingRuleOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertForwardingRuleOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setTargetForwardingRuleOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -524,10 +642,16 @@ protected Builder(ForwardingRuleStubSettings settings) {
       aggregatedListForwardingRulesSettings =
           settings.aggregatedListForwardingRulesSettings.toBuilder();
       deleteForwardingRuleSettings = settings.deleteForwardingRuleSettings.toBuilder();
+      deleteForwardingRuleOperationSettings =
+          settings.deleteForwardingRuleOperationSettings.toBuilder();
       getForwardingRuleSettings = settings.getForwardingRuleSettings.toBuilder();
       insertForwardingRuleSettings = settings.insertForwardingRuleSettings.toBuilder();
+      insertForwardingRuleOperationSettings =
+          settings.insertForwardingRuleOperationSettings.toBuilder();
       listForwardingRulesSettings = settings.listForwardingRulesSettings.toBuilder();
       setTargetForwardingRuleSettings = settings.setTargetForwardingRuleSettings.toBuilder();
+      setTargetForwardingRuleOperationSettings =
+          settings.setTargetForwardingRuleOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -570,6 +694,15 @@ public Builder applyToAllUnaryMethods(
       return deleteForwardingRuleSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteForwardingRule. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+        deleteForwardingRuleOperationSettings() {
+      return deleteForwardingRuleOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getForwardingRule. */
     public UnaryCallSettings.Builder
         getForwardingRuleSettings() {
@@ -582,6 +715,15 @@ public Builder applyToAllUnaryMethods(
       return insertForwardingRuleSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertForwardingRule. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+        insertForwardingRuleOperationSettings() {
+      return insertForwardingRuleOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listForwardingRules. */
     public PagedCallSettings.Builder<
             ListForwardingRulesHttpRequest, ForwardingRuleList, ListForwardingRulesPagedResponse>
@@ -595,6 +737,15 @@ public Builder applyToAllUnaryMethods(
       return setTargetForwardingRuleSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setTargetForwardingRule. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetTargetForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+        setTargetForwardingRuleOperationSettings() {
+      return setTargetForwardingRuleOperationSettings;
+    }
+
     @Override
     public ForwardingRuleStubSettings build() throws IOException {
       return new ForwardingRuleStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStub.java
index 9082e4ff0093..d1dbfbade2b7 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.Address;
 import com.google.cloud.compute.v1.AddressList;
@@ -39,6 +41,18 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class GlobalAddressStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteGlobalAddressOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteGlobalAddressOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteGlobalAddressCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteGlobalAddressCallable()");
@@ -49,6 +63,13 @@ public UnaryCallable getGlobalAddressCalla
     throw new UnsupportedOperationException("Not implemented: getGlobalAddressCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertGlobalAddressOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertGlobalAddressOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertGlobalAddressCallable() {
     throw new UnsupportedOperationException("Not implemented: insertGlobalAddressCallable()");
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStubSettings.java
index e05c845daa68..bf27446c1ecc 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -70,13 +75,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteGlobalAddress to 30 seconds: + * example, to set the total timeout of getGlobalAddress to 30 seconds: * *

  * 
  * GlobalAddressStubSettings.Builder globalAddressSettingsBuilder =
  *     GlobalAddressStubSettings.newBuilder();
- * globalAddressSettingsBuilder.deleteGlobalAddressSettings().getRetrySettings().toBuilder()
+ * globalAddressSettingsBuilder.getGlobalAddressSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * GlobalAddressStubSettings globalAddressSettings = globalAddressSettingsBuilder.build();
  * 
@@ -98,9 +103,13 @@ public class GlobalAddressStubSettings extends StubSettings
       deleteGlobalAddressSettings;
+  private final OperationCallSettings
+      deleteGlobalAddressOperationSettings;
   private final UnaryCallSettings getGlobalAddressSettings;
   private final UnaryCallSettings
       insertGlobalAddressSettings;
+  private final OperationCallSettings
+      insertGlobalAddressOperationSettings;
   private final PagedCallSettings<
           ListGlobalAddressesHttpRequest, AddressList, ListGlobalAddressesPagedResponse>
       listGlobalAddressesSettings;
@@ -111,6 +120,13 @@ public class GlobalAddressStubSettings extends StubSettings
+      deleteGlobalAddressOperationSettings() {
+    return deleteGlobalAddressOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getGlobalAddress. */
   public UnaryCallSettings getGlobalAddressSettings() {
     return getGlobalAddressSettings;
@@ -122,6 +138,13 @@ public UnaryCallSettings getGlobalAddressS
     return insertGlobalAddressSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertGlobalAddress. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertGlobalAddressOperationSettings() {
+    return insertGlobalAddressOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listGlobalAddresses. */
   public PagedCallSettings<
           ListGlobalAddressesHttpRequest, AddressList, ListGlobalAddressesPagedResponse>
@@ -205,8 +228,12 @@ protected GlobalAddressStubSettings(Builder settingsBuilder) throws IOException
     super(settingsBuilder);
 
     deleteGlobalAddressSettings = settingsBuilder.deleteGlobalAddressSettings().build();
+    deleteGlobalAddressOperationSettings =
+        settingsBuilder.deleteGlobalAddressOperationSettings().build();
     getGlobalAddressSettings = settingsBuilder.getGlobalAddressSettings().build();
     insertGlobalAddressSettings = settingsBuilder.insertGlobalAddressSettings().build();
+    insertGlobalAddressOperationSettings =
+        settingsBuilder.insertGlobalAddressOperationSettings().build();
     listGlobalAddressesSettings = settingsBuilder.listGlobalAddressesSettings().build();
   }
 
@@ -274,10 +301,16 @@ public static class Builder extends StubSettings.Builder
         deleteGlobalAddressSettings;
+    private final OperationCallSettings.Builder<
+            DeleteGlobalAddressHttpRequest, EmptyMessage, EmptyMessage>
+        deleteGlobalAddressOperationSettings;
     private final UnaryCallSettings.Builder
         getGlobalAddressSettings;
     private final UnaryCallSettings.Builder
         insertGlobalAddressSettings;
+    private final OperationCallSettings.Builder<
+            InsertGlobalAddressHttpRequest, EmptyMessage, EmptyMessage>
+        insertGlobalAddressOperationSettings;
     private final PagedCallSettings.Builder<
             ListGlobalAddressesHttpRequest, AddressList, ListGlobalAddressesPagedResponse>
         listGlobalAddressesSettings;
@@ -325,10 +358,14 @@ protected Builder(ClientContext clientContext) {
 
       deleteGlobalAddressSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteGlobalAddressOperationSettings = OperationCallSettings.newBuilder();
+
       getGlobalAddressSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertGlobalAddressSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertGlobalAddressOperationSettings = OperationCallSettings.newBuilder();
+
       listGlobalAddressesSettings =
           PagedCallSettings.newBuilder(LIST_GLOBAL_ADDRESSES_PAGE_STR_FACT);
 
@@ -372,6 +409,48 @@ private static Builder initDefaults(Builder builder) {
           .listGlobalAddressesSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteGlobalAddressOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertGlobalAddressOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -380,8 +459,12 @@ protected Builder(GlobalAddressStubSettings settings) {
       super(settings);
 
       deleteGlobalAddressSettings = settings.deleteGlobalAddressSettings.toBuilder();
+      deleteGlobalAddressOperationSettings =
+          settings.deleteGlobalAddressOperationSettings.toBuilder();
       getGlobalAddressSettings = settings.getGlobalAddressSettings.toBuilder();
       insertGlobalAddressSettings = settings.insertGlobalAddressSettings.toBuilder();
+      insertGlobalAddressOperationSettings =
+          settings.insertGlobalAddressOperationSettings.toBuilder();
       listGlobalAddressesSettings = settings.listGlobalAddressesSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
@@ -414,6 +497,14 @@ public Builder applyToAllUnaryMethods(
       return deleteGlobalAddressSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteGlobalAddress. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteGlobalAddressOperationSettings() {
+      return deleteGlobalAddressOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getGlobalAddress. */
     public UnaryCallSettings.Builder
         getGlobalAddressSettings() {
@@ -426,6 +517,14 @@ public Builder applyToAllUnaryMethods(
       return insertGlobalAddressSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertGlobalAddress. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertGlobalAddressOperationSettings() {
+      return insertGlobalAddressOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listGlobalAddresses. */
     public PagedCallSettings.Builder<
             ListGlobalAddressesHttpRequest, AddressList, ListGlobalAddressesPagedResponse>
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStub.java
index f7adbbec36f3..3f032bbdd052 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.DeleteGlobalForwardingRuleHttpRequest;
 import com.google.cloud.compute.v1.ForwardingRule;
@@ -40,6 +42,18 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class GlobalForwardingRuleStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteGlobalForwardingRuleOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteGlobalForwardingRuleOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       deleteGlobalForwardingRuleCallable() {
@@ -53,6 +67,13 @@ public abstract class GlobalForwardingRuleStub implements BackgroundResource {
     throw new UnsupportedOperationException("Not implemented: getGlobalForwardingRuleCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertGlobalForwardingRuleOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertGlobalForwardingRuleOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       insertGlobalForwardingRuleCallable() {
@@ -73,6 +94,13 @@ public abstract class GlobalForwardingRuleStub implements BackgroundResource {
     throw new UnsupportedOperationException("Not implemented: listGlobalForwardingRulesCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setTargetGlobalForwardingRuleOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setTargetGlobalForwardingRuleOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setTargetGlobalForwardingRuleCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStubSettings.java
index 9b520926ca60..3d81e1b1bb0f 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -71,13 +76,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteGlobalForwardingRule to 30 seconds: + * example, to set the total timeout of getGlobalForwardingRule to 30 seconds: * *

  * 
  * GlobalForwardingRuleStubSettings.Builder globalForwardingRuleSettingsBuilder =
  *     GlobalForwardingRuleStubSettings.newBuilder();
- * globalForwardingRuleSettingsBuilder.deleteGlobalForwardingRuleSettings().getRetrySettings().toBuilder()
+ * globalForwardingRuleSettingsBuilder.getGlobalForwardingRuleSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * GlobalForwardingRuleStubSettings globalForwardingRuleSettings = globalForwardingRuleSettingsBuilder.build();
  * 
@@ -100,10 +105,16 @@ public class GlobalForwardingRuleStubSettings
 
   private final UnaryCallSettings
       deleteGlobalForwardingRuleSettings;
+  private final OperationCallSettings<
+          DeleteGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+      deleteGlobalForwardingRuleOperationSettings;
   private final UnaryCallSettings
       getGlobalForwardingRuleSettings;
   private final UnaryCallSettings
       insertGlobalForwardingRuleSettings;
+  private final OperationCallSettings<
+          InsertGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+      insertGlobalForwardingRuleOperationSettings;
   private final PagedCallSettings<
           ListGlobalForwardingRulesHttpRequest,
           ForwardingRuleList,
@@ -111,6 +122,9 @@ public class GlobalForwardingRuleStubSettings
       listGlobalForwardingRulesSettings;
   private final UnaryCallSettings
       setTargetGlobalForwardingRuleSettings;
+  private final OperationCallSettings<
+          SetTargetGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+      setTargetGlobalForwardingRuleOperationSettings;
 
   /** Returns the object with the settings used for calls to deleteGlobalForwardingRule. */
   public UnaryCallSettings
@@ -118,6 +132,13 @@ public class GlobalForwardingRuleStubSettings
     return deleteGlobalForwardingRuleSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteGlobalForwardingRule. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteGlobalForwardingRuleOperationSettings() {
+    return deleteGlobalForwardingRuleOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getGlobalForwardingRule. */
   public UnaryCallSettings
       getGlobalForwardingRuleSettings() {
@@ -130,6 +151,13 @@ public class GlobalForwardingRuleStubSettings
     return insertGlobalForwardingRuleSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertGlobalForwardingRule. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertGlobalForwardingRuleOperationSettings() {
+    return insertGlobalForwardingRuleOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listGlobalForwardingRules. */
   public PagedCallSettings<
           ListGlobalForwardingRulesHttpRequest,
@@ -145,6 +173,13 @@ public class GlobalForwardingRuleStubSettings
     return setTargetGlobalForwardingRuleSettings;
   }
 
+  /** Returns the object with the settings used for calls to setTargetGlobalForwardingRule. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setTargetGlobalForwardingRuleOperationSettings() {
+    return setTargetGlobalForwardingRuleOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public GlobalForwardingRuleStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -222,12 +257,18 @@ protected GlobalForwardingRuleStubSettings(Builder settingsBuilder) throws IOExc
 
     deleteGlobalForwardingRuleSettings =
         settingsBuilder.deleteGlobalForwardingRuleSettings().build();
+    deleteGlobalForwardingRuleOperationSettings =
+        settingsBuilder.deleteGlobalForwardingRuleOperationSettings().build();
     getGlobalForwardingRuleSettings = settingsBuilder.getGlobalForwardingRuleSettings().build();
     insertGlobalForwardingRuleSettings =
         settingsBuilder.insertGlobalForwardingRuleSettings().build();
+    insertGlobalForwardingRuleOperationSettings =
+        settingsBuilder.insertGlobalForwardingRuleOperationSettings().build();
     listGlobalForwardingRulesSettings = settingsBuilder.listGlobalForwardingRulesSettings().build();
     setTargetGlobalForwardingRuleSettings =
         settingsBuilder.setTargetGlobalForwardingRuleSettings().build();
+    setTargetGlobalForwardingRuleOperationSettings =
+        settingsBuilder.setTargetGlobalForwardingRuleOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -305,10 +346,16 @@ public static class Builder
 
     private final UnaryCallSettings.Builder
         deleteGlobalForwardingRuleSettings;
+    private final OperationCallSettings.Builder<
+            DeleteGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+        deleteGlobalForwardingRuleOperationSettings;
     private final UnaryCallSettings.Builder
         getGlobalForwardingRuleSettings;
     private final UnaryCallSettings.Builder
         insertGlobalForwardingRuleSettings;
+    private final OperationCallSettings.Builder<
+            InsertGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+        insertGlobalForwardingRuleOperationSettings;
     private final PagedCallSettings.Builder<
             ListGlobalForwardingRulesHttpRequest,
             ForwardingRuleList,
@@ -316,6 +363,9 @@ public static class Builder
         listGlobalForwardingRulesSettings;
     private final UnaryCallSettings.Builder
         setTargetGlobalForwardingRuleSettings;
+    private final OperationCallSettings.Builder<
+            SetTargetGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+        setTargetGlobalForwardingRuleOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -360,15 +410,21 @@ protected Builder(ClientContext clientContext) {
 
       deleteGlobalForwardingRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteGlobalForwardingRuleOperationSettings = OperationCallSettings.newBuilder();
+
       getGlobalForwardingRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertGlobalForwardingRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertGlobalForwardingRuleOperationSettings = OperationCallSettings.newBuilder();
+
       listGlobalForwardingRulesSettings =
           PagedCallSettings.newBuilder(LIST_GLOBAL_FORWARDING_RULES_PAGE_STR_FACT);
 
       setTargetGlobalForwardingRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setTargetGlobalForwardingRuleOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               deleteGlobalForwardingRuleSettings,
@@ -415,6 +471,72 @@ private static Builder initDefaults(Builder builder) {
           .setTargetGlobalForwardingRuleSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteGlobalForwardingRuleOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertGlobalForwardingRuleOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setTargetGlobalForwardingRuleOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -423,11 +545,17 @@ protected Builder(GlobalForwardingRuleStubSettings settings) {
       super(settings);
 
       deleteGlobalForwardingRuleSettings = settings.deleteGlobalForwardingRuleSettings.toBuilder();
+      deleteGlobalForwardingRuleOperationSettings =
+          settings.deleteGlobalForwardingRuleOperationSettings.toBuilder();
       getGlobalForwardingRuleSettings = settings.getGlobalForwardingRuleSettings.toBuilder();
       insertGlobalForwardingRuleSettings = settings.insertGlobalForwardingRuleSettings.toBuilder();
+      insertGlobalForwardingRuleOperationSettings =
+          settings.insertGlobalForwardingRuleOperationSettings.toBuilder();
       listGlobalForwardingRulesSettings = settings.listGlobalForwardingRulesSettings.toBuilder();
       setTargetGlobalForwardingRuleSettings =
           settings.setTargetGlobalForwardingRuleSettings.toBuilder();
+      setTargetGlobalForwardingRuleOperationSettings =
+          settings.setTargetGlobalForwardingRuleOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -460,6 +588,15 @@ public Builder applyToAllUnaryMethods(
       return deleteGlobalForwardingRuleSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteGlobalForwardingRule. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+        deleteGlobalForwardingRuleOperationSettings() {
+      return deleteGlobalForwardingRuleOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getGlobalForwardingRule. */
     public UnaryCallSettings.Builder
         getGlobalForwardingRuleSettings() {
@@ -472,6 +609,15 @@ public Builder applyToAllUnaryMethods(
       return insertGlobalForwardingRuleSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertGlobalForwardingRule. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+        insertGlobalForwardingRuleOperationSettings() {
+      return insertGlobalForwardingRuleOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listGlobalForwardingRules. */
     public PagedCallSettings.Builder<
             ListGlobalForwardingRulesHttpRequest,
@@ -487,6 +633,15 @@ public Builder applyToAllUnaryMethods(
       return setTargetGlobalForwardingRuleSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setTargetGlobalForwardingRule. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetTargetGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+        setTargetGlobalForwardingRuleOperationSettings() {
+      return setTargetGlobalForwardingRuleOperationSettings;
+    }
+
     @Override
     public GlobalForwardingRuleStubSettings build() throws IOException {
       return new GlobalForwardingRuleStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationStub.java
index 3fa9174f2d9c..e0ebbc7c2746 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationStub.java
@@ -20,6 +20,7 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.AggregatedListGlobalOperationsHttpRequest;
 import com.google.cloud.compute.v1.DeleteGlobalOperationHttpRequest;
@@ -56,7 +57,8 @@ public abstract class GlobalOperationStub implements BackgroundResource {
   }
 
   @BetaApi
-  public UnaryCallable deleteGlobalOperationCallable() {
+  public UnaryCallable
+      deleteGlobalOperationCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteGlobalOperationCallable()");
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationStubSettings.java
index 54125f13d802..620f4de081af 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalOperationStubSettings.java
@@ -24,6 +24,7 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
@@ -103,7 +104,7 @@ public class GlobalOperationStubSettings extends StubSettings
       aggregatedListGlobalOperationsSettings;
-  private final UnaryCallSettings
+  private final UnaryCallSettings
       deleteGlobalOperationSettings;
   private final UnaryCallSettings
       getGlobalOperationSettings;
@@ -121,7 +122,8 @@ public class GlobalOperationStubSettings extends StubSettings deleteGlobalOperationSettings() {
+  public UnaryCallSettings
+      deleteGlobalOperationSettings() {
     return deleteGlobalOperationSettings;
   }
 
@@ -367,7 +369,7 @@ public static class Builder extends StubSettings.Builder
         aggregatedListGlobalOperationsSettings;
-    private final UnaryCallSettings.Builder
+    private final UnaryCallSettings.Builder
         deleteGlobalOperationSettings;
     private final UnaryCallSettings.Builder
         getGlobalOperationSettings;
@@ -513,7 +515,7 @@ public Builder applyToAllUnaryMethods(
     }
 
     /** Returns the builder for the settings used for calls to deleteGlobalOperation. */
-    public UnaryCallSettings.Builder
+    public UnaryCallSettings.Builder
         deleteGlobalOperationSettings() {
       return deleteGlobalOperationSettings;
     }
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStub.java
index 9d76b2872586..a41880efe77b 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.DeleteHealthCheckHttpRequest;
 import com.google.cloud.compute.v1.GetHealthCheckHttpRequest;
@@ -41,6 +43,18 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class HealthCheckStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteHealthCheckOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteHealthCheckOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteHealthCheckCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteHealthCheckCallable()");
@@ -51,6 +65,13 @@ public UnaryCallable getHealthCheckCalla
     throw new UnsupportedOperationException("Not implemented: getHealthCheckCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertHealthCheckOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertHealthCheckOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertHealthCheckCallable() {
     throw new UnsupportedOperationException("Not implemented: insertHealthCheckCallable()");
@@ -67,11 +88,24 @@ public UnaryCallable listHealthChe
     throw new UnsupportedOperationException("Not implemented: listHealthChecksCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchHealthCheckOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: patchHealthCheckOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable patchHealthCheckCallable() {
     throw new UnsupportedOperationException("Not implemented: patchHealthCheckCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateHealthCheckOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: updateHealthCheckOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable updateHealthCheckCallable() {
     throw new UnsupportedOperationException("Not implemented: updateHealthCheckCallable()");
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStubSettings.java
index 7ee4a09758a8..58ae4d46c06e 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -72,13 +77,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteHealthCheck to 30 seconds: + * example, to set the total timeout of getHealthCheck to 30 seconds: * *

  * 
  * HealthCheckStubSettings.Builder healthCheckSettingsBuilder =
  *     HealthCheckStubSettings.newBuilder();
- * healthCheckSettingsBuilder.deleteHealthCheckSettings().getRetrySettings().toBuilder()
+ * healthCheckSettingsBuilder.getHealthCheckSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * HealthCheckStubSettings healthCheckSettings = healthCheckSettingsBuilder.build();
  * 
@@ -100,21 +105,36 @@ public class HealthCheckStubSettings extends StubSettings
       deleteHealthCheckSettings;
+  private final OperationCallSettings
+      deleteHealthCheckOperationSettings;
   private final UnaryCallSettings getHealthCheckSettings;
   private final UnaryCallSettings
       insertHealthCheckSettings;
+  private final OperationCallSettings
+      insertHealthCheckOperationSettings;
   private final PagedCallSettings<
           ListHealthChecksHttpRequest, HealthCheckList, ListHealthChecksPagedResponse>
       listHealthChecksSettings;
   private final UnaryCallSettings patchHealthCheckSettings;
+  private final OperationCallSettings
+      patchHealthCheckOperationSettings;
   private final UnaryCallSettings
       updateHealthCheckSettings;
+  private final OperationCallSettings
+      updateHealthCheckOperationSettings;
 
   /** Returns the object with the settings used for calls to deleteHealthCheck. */
   public UnaryCallSettings deleteHealthCheckSettings() {
     return deleteHealthCheckSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteHealthCheck. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteHealthCheckOperationSettings() {
+    return deleteHealthCheckOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getHealthCheck. */
   public UnaryCallSettings getHealthCheckSettings() {
     return getHealthCheckSettings;
@@ -125,6 +145,13 @@ public UnaryCallSettings insertHealthCh
     return insertHealthCheckSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertHealthCheck. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertHealthCheckOperationSettings() {
+    return insertHealthCheckOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listHealthChecks. */
   public PagedCallSettings<
           ListHealthChecksHttpRequest, HealthCheckList, ListHealthChecksPagedResponse>
@@ -137,11 +164,25 @@ public UnaryCallSettings patchHealthChec
     return patchHealthCheckSettings;
   }
 
+  /** Returns the object with the settings used for calls to patchHealthCheck. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchHealthCheckOperationSettings() {
+    return patchHealthCheckOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to updateHealthCheck. */
   public UnaryCallSettings updateHealthCheckSettings() {
     return updateHealthCheckSettings;
   }
 
+  /** Returns the object with the settings used for calls to updateHealthCheck. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateHealthCheckOperationSettings() {
+    return updateHealthCheckOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public HealthCheckStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -218,11 +259,18 @@ protected HealthCheckStubSettings(Builder settingsBuilder) throws IOException {
     super(settingsBuilder);
 
     deleteHealthCheckSettings = settingsBuilder.deleteHealthCheckSettings().build();
+    deleteHealthCheckOperationSettings =
+        settingsBuilder.deleteHealthCheckOperationSettings().build();
     getHealthCheckSettings = settingsBuilder.getHealthCheckSettings().build();
     insertHealthCheckSettings = settingsBuilder.insertHealthCheckSettings().build();
+    insertHealthCheckOperationSettings =
+        settingsBuilder.insertHealthCheckOperationSettings().build();
     listHealthChecksSettings = settingsBuilder.listHealthChecksSettings().build();
     patchHealthCheckSettings = settingsBuilder.patchHealthCheckSettings().build();
+    patchHealthCheckOperationSettings = settingsBuilder.patchHealthCheckOperationSettings().build();
     updateHealthCheckSettings = settingsBuilder.updateHealthCheckSettings().build();
+    updateHealthCheckOperationSettings =
+        settingsBuilder.updateHealthCheckOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -289,17 +337,29 @@ public static class Builder extends StubSettings.Builder
         deleteHealthCheckSettings;
+    private final OperationCallSettings.Builder<
+            DeleteHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        deleteHealthCheckOperationSettings;
     private final UnaryCallSettings.Builder
         getHealthCheckSettings;
     private final UnaryCallSettings.Builder
         insertHealthCheckSettings;
+    private final OperationCallSettings.Builder<
+            InsertHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        insertHealthCheckOperationSettings;
     private final PagedCallSettings.Builder<
             ListHealthChecksHttpRequest, HealthCheckList, ListHealthChecksPagedResponse>
         listHealthChecksSettings;
     private final UnaryCallSettings.Builder
         patchHealthCheckSettings;
+    private final OperationCallSettings.Builder<
+            PatchHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        patchHealthCheckOperationSettings;
     private final UnaryCallSettings.Builder
         updateHealthCheckSettings;
+    private final OperationCallSettings.Builder<
+            UpdateHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        updateHealthCheckOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -344,16 +404,24 @@ protected Builder(ClientContext clientContext) {
 
       deleteHealthCheckSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteHealthCheckOperationSettings = OperationCallSettings.newBuilder();
+
       getHealthCheckSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertHealthCheckSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertHealthCheckOperationSettings = OperationCallSettings.newBuilder();
+
       listHealthChecksSettings = PagedCallSettings.newBuilder(LIST_HEALTH_CHECKS_PAGE_STR_FACT);
 
       patchHealthCheckSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      patchHealthCheckOperationSettings = OperationCallSettings.newBuilder();
+
       updateHealthCheckSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      updateHealthCheckOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               deleteHealthCheckSettings,
@@ -406,6 +474,90 @@ private static Builder initDefaults(Builder builder) {
           .updateHealthCheckSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteHealthCheckOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertHealthCheckOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .patchHealthCheckOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .updateHealthCheckOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -414,11 +566,15 @@ protected Builder(HealthCheckStubSettings settings) {
       super(settings);
 
       deleteHealthCheckSettings = settings.deleteHealthCheckSettings.toBuilder();
+      deleteHealthCheckOperationSettings = settings.deleteHealthCheckOperationSettings.toBuilder();
       getHealthCheckSettings = settings.getHealthCheckSettings.toBuilder();
       insertHealthCheckSettings = settings.insertHealthCheckSettings.toBuilder();
+      insertHealthCheckOperationSettings = settings.insertHealthCheckOperationSettings.toBuilder();
       listHealthChecksSettings = settings.listHealthChecksSettings.toBuilder();
       patchHealthCheckSettings = settings.patchHealthCheckSettings.toBuilder();
+      patchHealthCheckOperationSettings = settings.patchHealthCheckOperationSettings.toBuilder();
       updateHealthCheckSettings = settings.updateHealthCheckSettings.toBuilder();
+      updateHealthCheckOperationSettings = settings.updateHealthCheckOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -452,6 +608,14 @@ public Builder applyToAllUnaryMethods(
       return deleteHealthCheckSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteHealthCheck. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteHealthCheckOperationSettings() {
+      return deleteHealthCheckOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getHealthCheck. */
     public UnaryCallSettings.Builder
         getHealthCheckSettings() {
@@ -464,6 +628,14 @@ public Builder applyToAllUnaryMethods(
       return insertHealthCheckSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertHealthCheck. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertHealthCheckOperationSettings() {
+      return insertHealthCheckOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listHealthChecks. */
     public PagedCallSettings.Builder<
             ListHealthChecksHttpRequest, HealthCheckList, ListHealthChecksPagedResponse>
@@ -477,12 +649,28 @@ public Builder applyToAllUnaryMethods(
       return patchHealthCheckSettings;
     }
 
+    /** Returns the builder for the settings used for calls to patchHealthCheck. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchHealthCheckOperationSettings() {
+      return patchHealthCheckOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to updateHealthCheck. */
     public UnaryCallSettings.Builder
         updateHealthCheckSettings() {
       return updateHealthCheckSettings;
     }
 
+    /** Returns the builder for the settings used for calls to updateHealthCheck. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        updateHealthCheckOperationSettings() {
+      return updateHealthCheckOperationSettings;
+    }
+
     @Override
     public HealthCheckStubSettings build() throws IOException {
       return new HealthCheckStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStub.java
index 8858c6194d48..939f02d2e7ff 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.DeleteHttpHealthCheckHttpRequest;
 import com.google.cloud.compute.v1.GetHttpHealthCheckHttpRequest;
@@ -41,6 +43,18 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class HttpHealthCheckStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteHttpHealthCheckOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteHttpHealthCheckOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       deleteHttpHealthCheckCallable() {
@@ -53,6 +67,13 @@ public abstract class HttpHealthCheckStub implements BackgroundResource {
     throw new UnsupportedOperationException("Not implemented: getHttpHealthCheckCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertHttpHealthCheckOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertHttpHealthCheckOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       insertHttpHealthCheckCallable() {
@@ -71,11 +92,25 @@ public abstract class HttpHealthCheckStub implements BackgroundResource {
     throw new UnsupportedOperationException("Not implemented: listHttpHealthChecksCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchHttpHealthCheckOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: patchHttpHealthCheckOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable patchHttpHealthCheckCallable() {
     throw new UnsupportedOperationException("Not implemented: patchHttpHealthCheckCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateHttpHealthCheckOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: updateHttpHealthCheckOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       updateHttpHealthCheckCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStubSettings.java
index 22a22f9b553b..edc799262140 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -72,13 +77,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteHttpHealthCheck to 30 seconds: + * example, to set the total timeout of getHttpHealthCheck to 30 seconds: * *

  * 
  * HttpHealthCheckStubSettings.Builder httpHealthCheckSettingsBuilder =
  *     HttpHealthCheckStubSettings.newBuilder();
- * httpHealthCheckSettingsBuilder.deleteHttpHealthCheckSettings().getRetrySettings().toBuilder()
+ * httpHealthCheckSettingsBuilder.getHttpHealthCheckSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * HttpHealthCheckStubSettings httpHealthCheckSettings = httpHealthCheckSettingsBuilder.build();
  * 
@@ -100,17 +105,25 @@ public class HttpHealthCheckStubSettings extends StubSettings
       deleteHttpHealthCheckSettings;
+  private final OperationCallSettings
+      deleteHttpHealthCheckOperationSettings;
   private final UnaryCallSettings
       getHttpHealthCheckSettings;
   private final UnaryCallSettings
       insertHttpHealthCheckSettings;
+  private final OperationCallSettings
+      insertHttpHealthCheckOperationSettings;
   private final PagedCallSettings<
           ListHttpHealthChecksHttpRequest, HttpHealthCheckList, ListHttpHealthChecksPagedResponse>
       listHttpHealthChecksSettings;
   private final UnaryCallSettings
       patchHttpHealthCheckSettings;
+  private final OperationCallSettings
+      patchHttpHealthCheckOperationSettings;
   private final UnaryCallSettings
       updateHttpHealthCheckSettings;
+  private final OperationCallSettings
+      updateHttpHealthCheckOperationSettings;
 
   /** Returns the object with the settings used for calls to deleteHttpHealthCheck. */
   public UnaryCallSettings
@@ -118,6 +131,13 @@ public class HttpHealthCheckStubSettings extends StubSettings
+      deleteHttpHealthCheckOperationSettings() {
+    return deleteHttpHealthCheckOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getHttpHealthCheck. */
   public UnaryCallSettings
       getHttpHealthCheckSettings() {
@@ -130,6 +150,13 @@ public class HttpHealthCheckStubSettings extends StubSettings
+      insertHttpHealthCheckOperationSettings() {
+    return insertHttpHealthCheckOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listHttpHealthChecks. */
   public PagedCallSettings<
           ListHttpHealthChecksHttpRequest, HttpHealthCheckList, ListHttpHealthChecksPagedResponse>
@@ -143,12 +170,26 @@ public class HttpHealthCheckStubSettings extends StubSettings
+      patchHttpHealthCheckOperationSettings() {
+    return patchHttpHealthCheckOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to updateHttpHealthCheck. */
   public UnaryCallSettings
       updateHttpHealthCheckSettings() {
     return updateHttpHealthCheckSettings;
   }
 
+  /** Returns the object with the settings used for calls to updateHttpHealthCheck. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateHttpHealthCheckOperationSettings() {
+    return updateHttpHealthCheckOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public HttpHealthCheckStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -225,11 +266,19 @@ protected HttpHealthCheckStubSettings(Builder settingsBuilder) throws IOExceptio
     super(settingsBuilder);
 
     deleteHttpHealthCheckSettings = settingsBuilder.deleteHttpHealthCheckSettings().build();
+    deleteHttpHealthCheckOperationSettings =
+        settingsBuilder.deleteHttpHealthCheckOperationSettings().build();
     getHttpHealthCheckSettings = settingsBuilder.getHttpHealthCheckSettings().build();
     insertHttpHealthCheckSettings = settingsBuilder.insertHttpHealthCheckSettings().build();
+    insertHttpHealthCheckOperationSettings =
+        settingsBuilder.insertHttpHealthCheckOperationSettings().build();
     listHttpHealthChecksSettings = settingsBuilder.listHttpHealthChecksSettings().build();
     patchHttpHealthCheckSettings = settingsBuilder.patchHttpHealthCheckSettings().build();
+    patchHttpHealthCheckOperationSettings =
+        settingsBuilder.patchHttpHealthCheckOperationSettings().build();
     updateHttpHealthCheckSettings = settingsBuilder.updateHttpHealthCheckSettings().build();
+    updateHttpHealthCheckOperationSettings =
+        settingsBuilder.updateHttpHealthCheckOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -303,17 +352,29 @@ public static class Builder extends StubSettings.Builder
         deleteHttpHealthCheckSettings;
+    private final OperationCallSettings.Builder<
+            DeleteHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        deleteHttpHealthCheckOperationSettings;
     private final UnaryCallSettings.Builder
         getHttpHealthCheckSettings;
     private final UnaryCallSettings.Builder
         insertHttpHealthCheckSettings;
+    private final OperationCallSettings.Builder<
+            InsertHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        insertHttpHealthCheckOperationSettings;
     private final PagedCallSettings.Builder<
             ListHttpHealthChecksHttpRequest, HttpHealthCheckList, ListHttpHealthChecksPagedResponse>
         listHttpHealthChecksSettings;
     private final UnaryCallSettings.Builder
         patchHttpHealthCheckSettings;
+    private final OperationCallSettings.Builder<
+            PatchHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        patchHttpHealthCheckOperationSettings;
     private final UnaryCallSettings.Builder
         updateHttpHealthCheckSettings;
+    private final OperationCallSettings.Builder<
+            UpdateHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        updateHttpHealthCheckOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -358,17 +419,25 @@ protected Builder(ClientContext clientContext) {
 
       deleteHttpHealthCheckSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteHttpHealthCheckOperationSettings = OperationCallSettings.newBuilder();
+
       getHttpHealthCheckSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertHttpHealthCheckSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertHttpHealthCheckOperationSettings = OperationCallSettings.newBuilder();
+
       listHttpHealthChecksSettings =
           PagedCallSettings.newBuilder(LIST_HTTP_HEALTH_CHECKS_PAGE_STR_FACT);
 
       patchHttpHealthCheckSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      patchHttpHealthCheckOperationSettings = OperationCallSettings.newBuilder();
+
       updateHttpHealthCheckSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      updateHttpHealthCheckOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               deleteHttpHealthCheckSettings,
@@ -421,6 +490,93 @@ private static Builder initDefaults(Builder builder) {
           .updateHttpHealthCheckSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteHttpHealthCheckOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertHttpHealthCheckOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .patchHttpHealthCheckOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .updateHttpHealthCheckOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -429,11 +585,19 @@ protected Builder(HttpHealthCheckStubSettings settings) {
       super(settings);
 
       deleteHttpHealthCheckSettings = settings.deleteHttpHealthCheckSettings.toBuilder();
+      deleteHttpHealthCheckOperationSettings =
+          settings.deleteHttpHealthCheckOperationSettings.toBuilder();
       getHttpHealthCheckSettings = settings.getHttpHealthCheckSettings.toBuilder();
       insertHttpHealthCheckSettings = settings.insertHttpHealthCheckSettings.toBuilder();
+      insertHttpHealthCheckOperationSettings =
+          settings.insertHttpHealthCheckOperationSettings.toBuilder();
       listHttpHealthChecksSettings = settings.listHttpHealthChecksSettings.toBuilder();
       patchHttpHealthCheckSettings = settings.patchHttpHealthCheckSettings.toBuilder();
+      patchHttpHealthCheckOperationSettings =
+          settings.patchHttpHealthCheckOperationSettings.toBuilder();
       updateHttpHealthCheckSettings = settings.updateHttpHealthCheckSettings.toBuilder();
+      updateHttpHealthCheckOperationSettings =
+          settings.updateHttpHealthCheckOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -467,6 +631,15 @@ public Builder applyToAllUnaryMethods(
       return deleteHttpHealthCheckSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteHttpHealthCheck. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        deleteHttpHealthCheckOperationSettings() {
+      return deleteHttpHealthCheckOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getHttpHealthCheck. */
     public UnaryCallSettings.Builder
         getHttpHealthCheckSettings() {
@@ -479,6 +652,15 @@ public Builder applyToAllUnaryMethods(
       return insertHttpHealthCheckSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertHttpHealthCheck. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        insertHttpHealthCheckOperationSettings() {
+      return insertHttpHealthCheckOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listHttpHealthChecks. */
     public PagedCallSettings.Builder<
             ListHttpHealthChecksHttpRequest, HttpHealthCheckList, ListHttpHealthChecksPagedResponse>
@@ -492,12 +674,30 @@ public Builder applyToAllUnaryMethods(
       return patchHttpHealthCheckSettings;
     }
 
+    /** Returns the builder for the settings used for calls to patchHttpHealthCheck. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            PatchHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        patchHttpHealthCheckOperationSettings() {
+      return patchHttpHealthCheckOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to updateHttpHealthCheck. */
     public UnaryCallSettings.Builder
         updateHttpHealthCheckSettings() {
       return updateHttpHealthCheckSettings;
     }
 
+    /** Returns the builder for the settings used for calls to updateHttpHealthCheck. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            UpdateHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        updateHttpHealthCheckOperationSettings() {
+      return updateHttpHealthCheckOperationSettings;
+    }
+
     @Override
     public HttpHealthCheckStubSettings build() throws IOException {
       return new HttpHealthCheckStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAcceleratorTypeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAcceleratorTypeCallableFactory.java
index 4cfae18316bd..5d497c9a5dbb 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAcceleratorTypeCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAcceleratorTypeCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonAcceleratorTypeCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonAcceleratorTypeCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressCallableFactory.java
index 69365a14f053..e3b34a10b1e0 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonAddressCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonAddressCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressStub.java
index 5cc0e5614938..90c8201450ab 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressStub.java
@@ -26,9 +26,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.Address;
@@ -158,6 +160,7 @@ public class HttpJsonAddressStub extends AddressStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       aggregatedListAddressesCallable;
@@ -165,8 +168,12 @@ public class HttpJsonAddressStub extends AddressStub {
           AggregatedListAddressesHttpRequest, AggregatedListAddressesPagedResponse>
       aggregatedListAddressesPagedCallable;
   private final UnaryCallable deleteAddressCallable;
+  private final OperationCallable
+      deleteAddressOperationCallable;
   private final UnaryCallable getAddressCallable;
   private final UnaryCallable insertAddressCallable;
+  private final OperationCallable
+      insertAddressOperationCallable;
   private final UnaryCallable listAddressesCallable;
   private final UnaryCallable
       listAddressesPagedCallable;
@@ -208,6 +215,7 @@ protected HttpJsonAddressStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         aggregatedListAddressesTransportSettings =
@@ -245,12 +253,24 @@ protected HttpJsonAddressStub(
     this.deleteAddressCallable =
         callableFactory.createUnaryCallable(
             deleteAddressTransportSettings, settings.deleteAddressSettings(), clientContext);
+    this.deleteAddressOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteAddressTransportSettings,
+            settings.deleteAddressOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getAddressCallable =
         callableFactory.createUnaryCallable(
             getAddressTransportSettings, settings.getAddressSettings(), clientContext);
     this.insertAddressCallable =
         callableFactory.createUnaryCallable(
             insertAddressTransportSettings, settings.insertAddressSettings(), clientContext);
+    this.insertAddressOperationCallable =
+        callableFactory.createOperationCallable(
+            insertAddressTransportSettings,
+            settings.insertAddressOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listAddressesCallable =
         callableFactory.createUnaryCallable(
             listAddressesTransportSettings, settings.listAddressesSettings(), clientContext);
@@ -261,6 +281,11 @@ protected HttpJsonAddressStub(
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
   @BetaApi
   public UnaryCallable
       aggregatedListAddressesPagedCallable() {
@@ -273,6 +298,12 @@ protected HttpJsonAddressStub(
     return aggregatedListAddressesCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteAddressOperationCallable() {
+    return deleteAddressOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteAddressCallable() {
     return deleteAddressCallable;
@@ -283,6 +314,12 @@ public UnaryCallable getAddressCallable() {
     return getAddressCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertAddressOperationCallable() {
+    return insertAddressOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertAddressCallable() {
     return insertAddressCallable;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerCallableFactory.java
index c809bd99b192..e859817c33f4 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonAutoscalerCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonAutoscalerCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerStub.java
index f0ce30433123..c9262c586253 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerStub.java
@@ -26,9 +26,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.AggregatedListAutoscalersHttpRequest;
@@ -199,6 +201,7 @@ public class HttpJsonAutoscalerStub extends AutoscalerStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       aggregatedListAutoscalersCallable;
@@ -206,13 +209,21 @@ public class HttpJsonAutoscalerStub extends AutoscalerStub {
           AggregatedListAutoscalersHttpRequest, AggregatedListAutoscalersPagedResponse>
       aggregatedListAutoscalersPagedCallable;
   private final UnaryCallable deleteAutoscalerCallable;
+  private final OperationCallable
+      deleteAutoscalerOperationCallable;
   private final UnaryCallable getAutoscalerCallable;
   private final UnaryCallable insertAutoscalerCallable;
+  private final OperationCallable
+      insertAutoscalerOperationCallable;
   private final UnaryCallable listAutoscalersCallable;
   private final UnaryCallable
       listAutoscalersPagedCallable;
   private final UnaryCallable patchAutoscalerCallable;
+  private final OperationCallable
+      patchAutoscalerOperationCallable;
   private final UnaryCallable updateAutoscalerCallable;
+  private final OperationCallable
+      updateAutoscalerOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -253,6 +264,7 @@ protected HttpJsonAutoscalerStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         aggregatedListAutoscalersTransportSettings =
@@ -299,12 +311,24 @@ protected HttpJsonAutoscalerStub(
     this.deleteAutoscalerCallable =
         callableFactory.createUnaryCallable(
             deleteAutoscalerTransportSettings, settings.deleteAutoscalerSettings(), clientContext);
+    this.deleteAutoscalerOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteAutoscalerTransportSettings,
+            settings.deleteAutoscalerOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getAutoscalerCallable =
         callableFactory.createUnaryCallable(
             getAutoscalerTransportSettings, settings.getAutoscalerSettings(), clientContext);
     this.insertAutoscalerCallable =
         callableFactory.createUnaryCallable(
             insertAutoscalerTransportSettings, settings.insertAutoscalerSettings(), clientContext);
+    this.insertAutoscalerOperationCallable =
+        callableFactory.createOperationCallable(
+            insertAutoscalerTransportSettings,
+            settings.insertAutoscalerOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listAutoscalersCallable =
         callableFactory.createUnaryCallable(
             listAutoscalersTransportSettings, settings.listAutoscalersSettings(), clientContext);
@@ -314,13 +338,30 @@ protected HttpJsonAutoscalerStub(
     this.patchAutoscalerCallable =
         callableFactory.createUnaryCallable(
             patchAutoscalerTransportSettings, settings.patchAutoscalerSettings(), clientContext);
+    this.patchAutoscalerOperationCallable =
+        callableFactory.createOperationCallable(
+            patchAutoscalerTransportSettings,
+            settings.patchAutoscalerOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.updateAutoscalerCallable =
         callableFactory.createUnaryCallable(
             updateAutoscalerTransportSettings, settings.updateAutoscalerSettings(), clientContext);
+    this.updateAutoscalerOperationCallable =
+        callableFactory.createOperationCallable(
+            updateAutoscalerTransportSettings,
+            settings.updateAutoscalerOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
   @BetaApi
   public UnaryCallable
       aggregatedListAutoscalersPagedCallable() {
@@ -333,6 +374,12 @@ protected HttpJsonAutoscalerStub(
     return aggregatedListAutoscalersCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteAutoscalerOperationCallable() {
+    return deleteAutoscalerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteAutoscalerCallable() {
     return deleteAutoscalerCallable;
@@ -343,6 +390,12 @@ public UnaryCallable getAutoscalerCallable
     return getAutoscalerCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertAutoscalerOperationCallable() {
+    return insertAutoscalerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertAutoscalerCallable() {
     return insertAutoscalerCallable;
@@ -359,11 +412,23 @@ public UnaryCallable listAutoscalers
     return listAutoscalersCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchAutoscalerOperationCallable() {
+    return patchAutoscalerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable patchAutoscalerCallable() {
     return patchAutoscalerCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateAutoscalerOperationCallable() {
+    return updateAutoscalerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable updateAutoscalerCallable() {
     return updateAutoscalerCallable;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketCallableFactory.java
index 25f2a59c0cff..c87417343e98 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonBackendBucketCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonBackendBucketCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketStub.java
index 67bce61c7446..2611c5df855b 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.AddSignedUrlKeyBackendBucketHttpRequest;
@@ -221,23 +223,38 @@ public class HttpJsonBackendBucketStub extends BackendBucketStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       addSignedUrlKeyBackendBucketCallable;
+  private final OperationCallable<
+          AddSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage>
+      addSignedUrlKeyBackendBucketOperationCallable;
   private final UnaryCallable
       deleteBackendBucketCallable;
+  private final OperationCallable
+      deleteBackendBucketOperationCallable;
   private final UnaryCallable
       deleteSignedUrlKeyBackendBucketCallable;
+  private final OperationCallable<
+          DeleteSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage>
+      deleteSignedUrlKeyBackendBucketOperationCallable;
   private final UnaryCallable getBackendBucketCallable;
   private final UnaryCallable
       insertBackendBucketCallable;
+  private final OperationCallable
+      insertBackendBucketOperationCallable;
   private final UnaryCallable
       listBackendBucketsCallable;
   private final UnaryCallable
       listBackendBucketsPagedCallable;
   private final UnaryCallable patchBackendBucketCallable;
+  private final OperationCallable
+      patchBackendBucketOperationCallable;
   private final UnaryCallable
       updateBackendBucketCallable;
+  private final OperationCallable
+      updateBackendBucketOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -279,6 +296,7 @@ protected HttpJsonBackendBucketStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         addSignedUrlKeyBackendBucketTransportSettings =
@@ -326,16 +344,34 @@ protected HttpJsonBackendBucketStub(
             addSignedUrlKeyBackendBucketTransportSettings,
             settings.addSignedUrlKeyBackendBucketSettings(),
             clientContext);
+    this.addSignedUrlKeyBackendBucketOperationCallable =
+        callableFactory.createOperationCallable(
+            addSignedUrlKeyBackendBucketTransportSettings,
+            settings.addSignedUrlKeyBackendBucketOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.deleteBackendBucketCallable =
         callableFactory.createUnaryCallable(
             deleteBackendBucketTransportSettings,
             settings.deleteBackendBucketSettings(),
             clientContext);
+    this.deleteBackendBucketOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteBackendBucketTransportSettings,
+            settings.deleteBackendBucketOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.deleteSignedUrlKeyBackendBucketCallable =
         callableFactory.createUnaryCallable(
             deleteSignedUrlKeyBackendBucketTransportSettings,
             settings.deleteSignedUrlKeyBackendBucketSettings(),
             clientContext);
+    this.deleteSignedUrlKeyBackendBucketOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteSignedUrlKeyBackendBucketTransportSettings,
+            settings.deleteSignedUrlKeyBackendBucketOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getBackendBucketCallable =
         callableFactory.createUnaryCallable(
             getBackendBucketTransportSettings, settings.getBackendBucketSettings(), clientContext);
@@ -344,6 +380,12 @@ protected HttpJsonBackendBucketStub(
             insertBackendBucketTransportSettings,
             settings.insertBackendBucketSettings(),
             clientContext);
+    this.insertBackendBucketOperationCallable =
+        callableFactory.createOperationCallable(
+            insertBackendBucketTransportSettings,
+            settings.insertBackendBucketOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listBackendBucketsCallable =
         callableFactory.createUnaryCallable(
             listBackendBucketsTransportSettings,
@@ -359,26 +401,61 @@ protected HttpJsonBackendBucketStub(
             patchBackendBucketTransportSettings,
             settings.patchBackendBucketSettings(),
             clientContext);
+    this.patchBackendBucketOperationCallable =
+        callableFactory.createOperationCallable(
+            patchBackendBucketTransportSettings,
+            settings.patchBackendBucketOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.updateBackendBucketCallable =
         callableFactory.createUnaryCallable(
             updateBackendBucketTransportSettings,
             settings.updateBackendBucketSettings(),
             clientContext);
+    this.updateBackendBucketOperationCallable =
+        callableFactory.createOperationCallable(
+            updateBackendBucketTransportSettings,
+            settings.updateBackendBucketOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      addSignedUrlKeyBackendBucketOperationCallable() {
+    return addSignedUrlKeyBackendBucketOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       addSignedUrlKeyBackendBucketCallable() {
     return addSignedUrlKeyBackendBucketCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteBackendBucketOperationCallable() {
+    return deleteBackendBucketOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteBackendBucketCallable() {
     return deleteBackendBucketCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteSignedUrlKeyBackendBucketOperationCallable() {
+    return deleteSignedUrlKeyBackendBucketOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       deleteSignedUrlKeyBackendBucketCallable() {
@@ -390,6 +467,12 @@ public UnaryCallable getBackendBucke
     return getBackendBucketCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertBackendBucketOperationCallable() {
+    return insertBackendBucketOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertBackendBucketCallable() {
     return insertBackendBucketCallable;
@@ -407,11 +490,23 @@ public UnaryCallable insertBackendBuc
     return listBackendBucketsCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchBackendBucketOperationCallable() {
+    return patchBackendBucketOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable patchBackendBucketCallable() {
     return patchBackendBucketCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateBackendBucketOperationCallable() {
+    return updateBackendBucketOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable updateBackendBucketCallable() {
     return updateBackendBucketCallable;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceCallableFactory.java
index d8c3a181ec7c..1c35c7be8092 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonBackendServiceCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonBackendServiceCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceStub.java
index e67026c332fe..93d75f461638 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceStub.java
@@ -26,9 +26,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.AddSignedUrlKeyBackendServiceHttpRequest;
@@ -295,9 +297,13 @@ public class HttpJsonBackendServiceStub extends BackendServiceStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       addSignedUrlKeyBackendServiceCallable;
+  private final OperationCallable<
+          AddSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+      addSignedUrlKeyBackendServiceOperationCallable;
   private final UnaryCallable<
           AggregatedListBackendServicesHttpRequest, BackendServiceAggregatedList>
       aggregatedListBackendServicesCallable;
@@ -306,24 +312,38 @@ public class HttpJsonBackendServiceStub extends BackendServiceStub {
       aggregatedListBackendServicesPagedCallable;
   private final UnaryCallable
       deleteBackendServiceCallable;
+  private final OperationCallable
+      deleteBackendServiceOperationCallable;
   private final UnaryCallable
       deleteSignedUrlKeyBackendServiceCallable;
+  private final OperationCallable<
+          DeleteSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+      deleteSignedUrlKeyBackendServiceOperationCallable;
   private final UnaryCallable
       getBackendServiceCallable;
   private final UnaryCallable
       getHealthBackendServiceCallable;
   private final UnaryCallable
       insertBackendServiceCallable;
+  private final OperationCallable
+      insertBackendServiceOperationCallable;
   private final UnaryCallable
       listBackendServicesCallable;
   private final UnaryCallable
       listBackendServicesPagedCallable;
   private final UnaryCallable
       patchBackendServiceCallable;
+  private final OperationCallable
+      patchBackendServiceOperationCallable;
   private final UnaryCallable
       setSecurityPolicyBackendServiceCallable;
+  private final OperationCallable<
+          SetSecurityPolicyBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+      setSecurityPolicyBackendServiceOperationCallable;
   private final UnaryCallable
       updateBackendServiceCallable;
+  private final OperationCallable
+      updateBackendServiceOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -365,6 +385,7 @@ protected HttpJsonBackendServiceStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         addSignedUrlKeyBackendServiceTransportSettings =
@@ -431,6 +452,12 @@ protected HttpJsonBackendServiceStub(
             addSignedUrlKeyBackendServiceTransportSettings,
             settings.addSignedUrlKeyBackendServiceSettings(),
             clientContext);
+    this.addSignedUrlKeyBackendServiceOperationCallable =
+        callableFactory.createOperationCallable(
+            addSignedUrlKeyBackendServiceTransportSettings,
+            settings.addSignedUrlKeyBackendServiceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.aggregatedListBackendServicesCallable =
         callableFactory.createUnaryCallable(
             aggregatedListBackendServicesTransportSettings,
@@ -446,11 +473,23 @@ protected HttpJsonBackendServiceStub(
             deleteBackendServiceTransportSettings,
             settings.deleteBackendServiceSettings(),
             clientContext);
+    this.deleteBackendServiceOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteBackendServiceTransportSettings,
+            settings.deleteBackendServiceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.deleteSignedUrlKeyBackendServiceCallable =
         callableFactory.createUnaryCallable(
             deleteSignedUrlKeyBackendServiceTransportSettings,
             settings.deleteSignedUrlKeyBackendServiceSettings(),
             clientContext);
+    this.deleteSignedUrlKeyBackendServiceOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteSignedUrlKeyBackendServiceTransportSettings,
+            settings.deleteSignedUrlKeyBackendServiceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getBackendServiceCallable =
         callableFactory.createUnaryCallable(
             getBackendServiceTransportSettings,
@@ -466,6 +505,12 @@ protected HttpJsonBackendServiceStub(
             insertBackendServiceTransportSettings,
             settings.insertBackendServiceSettings(),
             clientContext);
+    this.insertBackendServiceOperationCallable =
+        callableFactory.createOperationCallable(
+            insertBackendServiceTransportSettings,
+            settings.insertBackendServiceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listBackendServicesCallable =
         callableFactory.createUnaryCallable(
             listBackendServicesTransportSettings,
@@ -481,20 +526,49 @@ protected HttpJsonBackendServiceStub(
             patchBackendServiceTransportSettings,
             settings.patchBackendServiceSettings(),
             clientContext);
+    this.patchBackendServiceOperationCallable =
+        callableFactory.createOperationCallable(
+            patchBackendServiceTransportSettings,
+            settings.patchBackendServiceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setSecurityPolicyBackendServiceCallable =
         callableFactory.createUnaryCallable(
             setSecurityPolicyBackendServiceTransportSettings,
             settings.setSecurityPolicyBackendServiceSettings(),
             clientContext);
+    this.setSecurityPolicyBackendServiceOperationCallable =
+        callableFactory.createOperationCallable(
+            setSecurityPolicyBackendServiceTransportSettings,
+            settings.setSecurityPolicyBackendServiceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.updateBackendServiceCallable =
         callableFactory.createUnaryCallable(
             updateBackendServiceTransportSettings,
             settings.updateBackendServiceSettings(),
             clientContext);
+    this.updateBackendServiceOperationCallable =
+        callableFactory.createOperationCallable(
+            updateBackendServiceTransportSettings,
+            settings.updateBackendServiceOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      addSignedUrlKeyBackendServiceOperationCallable() {
+    return addSignedUrlKeyBackendServiceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       addSignedUrlKeyBackendServiceCallable() {
@@ -514,11 +588,23 @@ protected HttpJsonBackendServiceStub(
     return aggregatedListBackendServicesCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteBackendServiceOperationCallable() {
+    return deleteBackendServiceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteBackendServiceCallable() {
     return deleteBackendServiceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteSignedUrlKeyBackendServiceOperationCallable() {
+    return deleteSignedUrlKeyBackendServiceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       deleteSignedUrlKeyBackendServiceCallable() {
@@ -536,6 +622,12 @@ public UnaryCallable getBackendSer
     return getHealthBackendServiceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertBackendServiceOperationCallable() {
+    return insertBackendServiceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertBackendServiceCallable() {
     return insertBackendServiceCallable;
@@ -553,17 +645,35 @@ public UnaryCallable insertBackendSe
     return listBackendServicesCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchBackendServiceOperationCallable() {
+    return patchBackendServiceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable patchBackendServiceCallable() {
     return patchBackendServiceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setSecurityPolicyBackendServiceOperationCallable() {
+    return setSecurityPolicyBackendServiceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setSecurityPolicyBackendServiceCallable() {
     return setSecurityPolicyBackendServiceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateBackendServiceOperationCallable() {
+    return updateBackendServiceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable updateBackendServiceCallable() {
     return updateBackendServiceCallable;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskCallableFactory.java
index 26772348f613..feda550011ed 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonDiskCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonDiskCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskStub.java
index 689ff9876128..5ce98d567113 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskStub.java
@@ -26,9 +26,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.AggregatedListDisksHttpRequest;
@@ -288,21 +290,32 @@ public class HttpJsonDiskStub extends DiskStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       aggregatedListDisksCallable;
   private final UnaryCallable
       aggregatedListDisksPagedCallable;
   private final UnaryCallable createSnapshotDiskCallable;
+  private final OperationCallable
+      createSnapshotDiskOperationCallable;
   private final UnaryCallable deleteDiskCallable;
+  private final OperationCallable
+      deleteDiskOperationCallable;
   private final UnaryCallable getDiskCallable;
   private final UnaryCallable getIamPolicyDiskCallable;
   private final UnaryCallable insertDiskCallable;
+  private final OperationCallable
+      insertDiskOperationCallable;
   private final UnaryCallable listDisksCallable;
   private final UnaryCallable listDisksPagedCallable;
   private final UnaryCallable resizeDiskCallable;
+  private final OperationCallable
+      resizeDiskOperationCallable;
   private final UnaryCallable setIamPolicyDiskCallable;
   private final UnaryCallable setLabelsDiskCallable;
+  private final OperationCallable
+      setLabelsDiskOperationCallable;
   private final UnaryCallable
       testIamPermissionsDiskCallable;
 
@@ -341,6 +354,7 @@ protected HttpJsonDiskStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         aggregatedListDisksTransportSettings =
@@ -406,9 +420,21 @@ protected HttpJsonDiskStub(
             createSnapshotDiskTransportSettings,
             settings.createSnapshotDiskSettings(),
             clientContext);
+    this.createSnapshotDiskOperationCallable =
+        callableFactory.createOperationCallable(
+            createSnapshotDiskTransportSettings,
+            settings.createSnapshotDiskOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.deleteDiskCallable =
         callableFactory.createUnaryCallable(
             deleteDiskTransportSettings, settings.deleteDiskSettings(), clientContext);
+    this.deleteDiskOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteDiskTransportSettings,
+            settings.deleteDiskOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getDiskCallable =
         callableFactory.createUnaryCallable(
             getDiskTransportSettings, settings.getDiskSettings(), clientContext);
@@ -418,6 +444,12 @@ protected HttpJsonDiskStub(
     this.insertDiskCallable =
         callableFactory.createUnaryCallable(
             insertDiskTransportSettings, settings.insertDiskSettings(), clientContext);
+    this.insertDiskOperationCallable =
+        callableFactory.createOperationCallable(
+            insertDiskTransportSettings,
+            settings.insertDiskOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listDisksCallable =
         callableFactory.createUnaryCallable(
             listDisksTransportSettings, settings.listDisksSettings(), clientContext);
@@ -427,12 +459,24 @@ protected HttpJsonDiskStub(
     this.resizeDiskCallable =
         callableFactory.createUnaryCallable(
             resizeDiskTransportSettings, settings.resizeDiskSettings(), clientContext);
+    this.resizeDiskOperationCallable =
+        callableFactory.createOperationCallable(
+            resizeDiskTransportSettings,
+            settings.resizeDiskOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setIamPolicyDiskCallable =
         callableFactory.createUnaryCallable(
             setIamPolicyDiskTransportSettings, settings.setIamPolicyDiskSettings(), clientContext);
     this.setLabelsDiskCallable =
         callableFactory.createUnaryCallable(
             setLabelsDiskTransportSettings, settings.setLabelsDiskSettings(), clientContext);
+    this.setLabelsDiskOperationCallable =
+        callableFactory.createOperationCallable(
+            setLabelsDiskTransportSettings,
+            settings.setLabelsDiskOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.testIamPermissionsDiskCallable =
         callableFactory.createUnaryCallable(
             testIamPermissionsDiskTransportSettings,
@@ -442,6 +486,11 @@ protected HttpJsonDiskStub(
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
   @BetaApi
   public UnaryCallable
       aggregatedListDisksPagedCallable() {
@@ -454,11 +503,23 @@ protected HttpJsonDiskStub(
     return aggregatedListDisksCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      createSnapshotDiskOperationCallable() {
+    return createSnapshotDiskOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable createSnapshotDiskCallable() {
     return createSnapshotDiskCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteDiskOperationCallable() {
+    return deleteDiskOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteDiskCallable() {
     return deleteDiskCallable;
@@ -474,6 +535,12 @@ public UnaryCallable getIamPolicyDiskCallab
     return getIamPolicyDiskCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertDiskOperationCallable() {
+    return insertDiskOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertDiskCallable() {
     return insertDiskCallable;
@@ -489,6 +556,12 @@ public UnaryCallable listDisksCallable() {
     return listDisksCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      resizeDiskOperationCallable() {
+    return resizeDiskOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable resizeDiskCallable() {
     return resizeDiskCallable;
@@ -499,6 +572,12 @@ public UnaryCallable setIamPolicyDiskCallab
     return setIamPolicyDiskCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setLabelsDiskOperationCallable() {
+    return setLabelsDiskOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable setLabelsDiskCallable() {
     return setLabelsDiskCallable;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskTypeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskTypeCallableFactory.java
index 928e628b530a..888bfd7f61c1 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskTypeCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskTypeCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonDiskTypeCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonDiskTypeCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallCallableFactory.java
index 16199de782e1..98b0b6f663dc 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonFirewallCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonFirewallCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallStub.java
index f592ee9cc377..ab137d3bc0f6 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.DeleteFirewallHttpRequest;
@@ -171,15 +173,24 @@ public class HttpJsonFirewallStub extends FirewallStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable deleteFirewallCallable;
+  private final OperationCallable
+      deleteFirewallOperationCallable;
   private final UnaryCallable getFirewallCallable;
   private final UnaryCallable insertFirewallCallable;
+  private final OperationCallable
+      insertFirewallOperationCallable;
   private final UnaryCallable listFirewallsCallable;
   private final UnaryCallable
       listFirewallsPagedCallable;
   private final UnaryCallable patchFirewallCallable;
+  private final OperationCallable
+      patchFirewallOperationCallable;
   private final UnaryCallable updateFirewallCallable;
+  private final OperationCallable
+      updateFirewallOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -219,6 +230,7 @@ protected HttpJsonFirewallStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings deleteFirewallTransportSettings =
         HttpJsonCallSettings.newBuilder()
@@ -248,12 +260,24 @@ protected HttpJsonFirewallStub(
     this.deleteFirewallCallable =
         callableFactory.createUnaryCallable(
             deleteFirewallTransportSettings, settings.deleteFirewallSettings(), clientContext);
+    this.deleteFirewallOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteFirewallTransportSettings,
+            settings.deleteFirewallOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getFirewallCallable =
         callableFactory.createUnaryCallable(
             getFirewallTransportSettings, settings.getFirewallSettings(), clientContext);
     this.insertFirewallCallable =
         callableFactory.createUnaryCallable(
             insertFirewallTransportSettings, settings.insertFirewallSettings(), clientContext);
+    this.insertFirewallOperationCallable =
+        callableFactory.createOperationCallable(
+            insertFirewallTransportSettings,
+            settings.insertFirewallOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listFirewallsCallable =
         callableFactory.createUnaryCallable(
             listFirewallsTransportSettings, settings.listFirewallsSettings(), clientContext);
@@ -263,13 +287,36 @@ protected HttpJsonFirewallStub(
     this.patchFirewallCallable =
         callableFactory.createUnaryCallable(
             patchFirewallTransportSettings, settings.patchFirewallSettings(), clientContext);
+    this.patchFirewallOperationCallable =
+        callableFactory.createOperationCallable(
+            patchFirewallTransportSettings,
+            settings.patchFirewallOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.updateFirewallCallable =
         callableFactory.createUnaryCallable(
             updateFirewallTransportSettings, settings.updateFirewallSettings(), clientContext);
+    this.updateFirewallOperationCallable =
+        callableFactory.createOperationCallable(
+            updateFirewallTransportSettings,
+            settings.updateFirewallOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteFirewallOperationCallable() {
+    return deleteFirewallOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteFirewallCallable() {
     return deleteFirewallCallable;
@@ -280,6 +327,12 @@ public UnaryCallable getFirewallCallable() {
     return getFirewallCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertFirewallOperationCallable() {
+    return insertFirewallOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertFirewallCallable() {
     return insertFirewallCallable;
@@ -296,11 +349,23 @@ public UnaryCallable listFirewallsCallab
     return listFirewallsCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchFirewallOperationCallable() {
+    return patchFirewallOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable patchFirewallCallable() {
     return patchFirewallCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateFirewallOperationCallable() {
+    return updateFirewallOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable updateFirewallCallable() {
     return updateFirewallCallable;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleCallableFactory.java
index 3a4bf5f6e844..b9c88e49ba5d 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonForwardingRuleCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonForwardingRuleCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleStub.java
index 03caf5adabbb..2a480d6661ea 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleStub.java
@@ -26,9 +26,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.AggregatedListForwardingRulesHttpRequest;
@@ -186,6 +188,7 @@ public class HttpJsonForwardingRuleStub extends ForwardingRuleStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable<
           AggregatedListForwardingRulesHttpRequest, ForwardingRuleAggregatedList>
@@ -195,16 +198,22 @@ public class HttpJsonForwardingRuleStub extends ForwardingRuleStub {
       aggregatedListForwardingRulesPagedCallable;
   private final UnaryCallable
       deleteForwardingRuleCallable;
+  private final OperationCallable
+      deleteForwardingRuleOperationCallable;
   private final UnaryCallable
       getForwardingRuleCallable;
   private final UnaryCallable
       insertForwardingRuleCallable;
+  private final OperationCallable
+      insertForwardingRuleOperationCallable;
   private final UnaryCallable
       listForwardingRulesCallable;
   private final UnaryCallable
       listForwardingRulesPagedCallable;
   private final UnaryCallable
       setTargetForwardingRuleCallable;
+  private final OperationCallable
+      setTargetForwardingRuleOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -246,6 +255,7 @@ protected HttpJsonForwardingRuleStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         aggregatedListForwardingRulesTransportSettings =
@@ -295,6 +305,12 @@ protected HttpJsonForwardingRuleStub(
             deleteForwardingRuleTransportSettings,
             settings.deleteForwardingRuleSettings(),
             clientContext);
+    this.deleteForwardingRuleOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteForwardingRuleTransportSettings,
+            settings.deleteForwardingRuleOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getForwardingRuleCallable =
         callableFactory.createUnaryCallable(
             getForwardingRuleTransportSettings,
@@ -305,6 +321,12 @@ protected HttpJsonForwardingRuleStub(
             insertForwardingRuleTransportSettings,
             settings.insertForwardingRuleSettings(),
             clientContext);
+    this.insertForwardingRuleOperationCallable =
+        callableFactory.createOperationCallable(
+            insertForwardingRuleTransportSettings,
+            settings.insertForwardingRuleOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listForwardingRulesCallable =
         callableFactory.createUnaryCallable(
             listForwardingRulesTransportSettings,
@@ -320,10 +342,21 @@ protected HttpJsonForwardingRuleStub(
             setTargetForwardingRuleTransportSettings,
             settings.setTargetForwardingRuleSettings(),
             clientContext);
+    this.setTargetForwardingRuleOperationCallable =
+        callableFactory.createOperationCallable(
+            setTargetForwardingRuleTransportSettings,
+            settings.setTargetForwardingRuleOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
   @BetaApi
   public UnaryCallable<
           AggregatedListForwardingRulesHttpRequest, AggregatedListForwardingRulesPagedResponse>
@@ -337,6 +370,12 @@ protected HttpJsonForwardingRuleStub(
     return aggregatedListForwardingRulesCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteForwardingRuleOperationCallable() {
+    return deleteForwardingRuleOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteForwardingRuleCallable() {
     return deleteForwardingRuleCallable;
@@ -347,6 +386,12 @@ public UnaryCallable getForwarding
     return getForwardingRuleCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertForwardingRuleOperationCallable() {
+    return insertForwardingRuleOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertForwardingRuleCallable() {
     return insertForwardingRuleCallable;
@@ -364,6 +409,12 @@ public UnaryCallable insertForwardin
     return listForwardingRulesCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setTargetForwardingRuleOperationCallable() {
+    return setTargetForwardingRuleOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setTargetForwardingRuleCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressCallableFactory.java
index 62da914a4012..62c725035150 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonGlobalAddressCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonGlobalAddressCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressStub.java
index b22c934da4b6..09dd4a678345 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.Address;
@@ -131,12 +133,17 @@ public class HttpJsonGlobalAddressStub extends GlobalAddressStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       deleteGlobalAddressCallable;
+  private final OperationCallable
+      deleteGlobalAddressOperationCallable;
   private final UnaryCallable getGlobalAddressCallable;
   private final UnaryCallable
       insertGlobalAddressCallable;
+  private final OperationCallable
+      insertGlobalAddressOperationCallable;
   private final UnaryCallable
       listGlobalAddressesCallable;
   private final UnaryCallable
@@ -182,6 +189,7 @@ protected HttpJsonGlobalAddressStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         deleteGlobalAddressTransportSettings =
@@ -208,6 +216,12 @@ protected HttpJsonGlobalAddressStub(
             deleteGlobalAddressTransportSettings,
             settings.deleteGlobalAddressSettings(),
             clientContext);
+    this.deleteGlobalAddressOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteGlobalAddressTransportSettings,
+            settings.deleteGlobalAddressOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getGlobalAddressCallable =
         callableFactory.createUnaryCallable(
             getGlobalAddressTransportSettings, settings.getGlobalAddressSettings(), clientContext);
@@ -216,6 +230,12 @@ protected HttpJsonGlobalAddressStub(
             insertGlobalAddressTransportSettings,
             settings.insertGlobalAddressSettings(),
             clientContext);
+    this.insertGlobalAddressOperationCallable =
+        callableFactory.createOperationCallable(
+            insertGlobalAddressTransportSettings,
+            settings.insertGlobalAddressOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listGlobalAddressesCallable =
         callableFactory.createUnaryCallable(
             listGlobalAddressesTransportSettings,
@@ -230,6 +250,17 @@ protected HttpJsonGlobalAddressStub(
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteGlobalAddressOperationCallable() {
+    return deleteGlobalAddressOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteGlobalAddressCallable() {
     return deleteGlobalAddressCallable;
@@ -240,6 +271,12 @@ public UnaryCallable getGlobalAddressCalla
     return getGlobalAddressCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertGlobalAddressOperationCallable() {
+    return insertGlobalAddressOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertGlobalAddressCallable() {
     return insertGlobalAddressCallable;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleCallableFactory.java
index 584a93b0104b..57701f536ef1 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonGlobalForwardingRuleCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonGlobalForwardingRuleCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleStub.java
index 0b34f52ee443..b60aaf3c6909 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.DeleteGlobalForwardingRuleHttpRequest;
@@ -156,13 +158,18 @@ public class HttpJsonGlobalForwardingRuleStub extends GlobalForwardingRuleStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       deleteGlobalForwardingRuleCallable;
+  private final OperationCallable
+      deleteGlobalForwardingRuleOperationCallable;
   private final UnaryCallable
       getGlobalForwardingRuleCallable;
   private final UnaryCallable
       insertGlobalForwardingRuleCallable;
+  private final OperationCallable
+      insertGlobalForwardingRuleOperationCallable;
   private final UnaryCallable
       listGlobalForwardingRulesCallable;
   private final UnaryCallable<
@@ -170,6 +177,9 @@ public class HttpJsonGlobalForwardingRuleStub extends GlobalForwardingRuleStub {
       listGlobalForwardingRulesPagedCallable;
   private final UnaryCallable
       setTargetGlobalForwardingRuleCallable;
+  private final OperationCallable<
+          SetTargetGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage>
+      setTargetGlobalForwardingRuleOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -211,6 +221,7 @@ protected HttpJsonGlobalForwardingRuleStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         deleteGlobalForwardingRuleTransportSettings =
@@ -244,6 +255,12 @@ protected HttpJsonGlobalForwardingRuleStub(
             deleteGlobalForwardingRuleTransportSettings,
             settings.deleteGlobalForwardingRuleSettings(),
             clientContext);
+    this.deleteGlobalForwardingRuleOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteGlobalForwardingRuleTransportSettings,
+            settings.deleteGlobalForwardingRuleOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getGlobalForwardingRuleCallable =
         callableFactory.createUnaryCallable(
             getGlobalForwardingRuleTransportSettings,
@@ -254,6 +271,12 @@ protected HttpJsonGlobalForwardingRuleStub(
             insertGlobalForwardingRuleTransportSettings,
             settings.insertGlobalForwardingRuleSettings(),
             clientContext);
+    this.insertGlobalForwardingRuleOperationCallable =
+        callableFactory.createOperationCallable(
+            insertGlobalForwardingRuleTransportSettings,
+            settings.insertGlobalForwardingRuleOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listGlobalForwardingRulesCallable =
         callableFactory.createUnaryCallable(
             listGlobalForwardingRulesTransportSettings,
@@ -269,10 +292,27 @@ protected HttpJsonGlobalForwardingRuleStub(
             setTargetGlobalForwardingRuleTransportSettings,
             settings.setTargetGlobalForwardingRuleSettings(),
             clientContext);
+    this.setTargetGlobalForwardingRuleOperationCallable =
+        callableFactory.createOperationCallable(
+            setTargetGlobalForwardingRuleTransportSettings,
+            settings.setTargetGlobalForwardingRuleOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteGlobalForwardingRuleOperationCallable() {
+    return deleteGlobalForwardingRuleOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       deleteGlobalForwardingRuleCallable() {
@@ -285,6 +325,12 @@ protected HttpJsonGlobalForwardingRuleStub(
     return getGlobalForwardingRuleCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertGlobalForwardingRuleOperationCallable() {
+    return insertGlobalForwardingRuleOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       insertGlobalForwardingRuleCallable() {
@@ -303,6 +349,12 @@ protected HttpJsonGlobalForwardingRuleStub(
     return listGlobalForwardingRulesCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setTargetGlobalForwardingRuleOperationCallable() {
+    return setTargetGlobalForwardingRuleOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setTargetGlobalForwardingRuleCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationCallableFactory.java
index b23bc230a52f..a021b48d336e 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonGlobalOperationCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonGlobalOperationCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationStub.java
index 7f8cf57ce81c..5df7c9d663b9 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationStub.java
@@ -26,6 +26,7 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
@@ -78,9 +79,9 @@ public class HttpJsonGlobalOperationStub extends GlobalOperationStub {
               .build();
 
   @InternalApi
-  public static final ApiMethodDescriptor
+  public static final ApiMethodDescriptor
       deleteGlobalOperationMethodDescriptor =
-          ApiMethodDescriptor.newBuilder()
+          ApiMethodDescriptor.newBuilder()
               .setFullMethodName("compute.globalOperations.delete")
               .setHttpMethod(HttpMethods.DELETE)
               .setRequestFormatter(
@@ -140,7 +141,8 @@ public class HttpJsonGlobalOperationStub extends GlobalOperationStub {
   private final UnaryCallable<
           AggregatedListGlobalOperationsHttpRequest, AggregatedListGlobalOperationsPagedResponse>
       aggregatedListGlobalOperationsPagedCallable;
-  private final UnaryCallable deleteGlobalOperationCallable;
+  private final UnaryCallable
+      deleteGlobalOperationCallable;
   private final UnaryCallable getGlobalOperationCallable;
   private final UnaryCallable
       listGlobalOperationsCallable;
@@ -194,9 +196,9 @@ protected HttpJsonGlobalOperationStub(
                 .newBuilder()
                 .setMethodDescriptor(aggregatedListGlobalOperationsMethodDescriptor)
                 .build();
-    HttpJsonCallSettings
+    HttpJsonCallSettings
         deleteGlobalOperationTransportSettings =
-            HttpJsonCallSettings.newBuilder()
+            HttpJsonCallSettings.newBuilder()
                 .setMethodDescriptor(deleteGlobalOperationMethodDescriptor)
                 .build();
     HttpJsonCallSettings
@@ -258,7 +260,8 @@ protected HttpJsonGlobalOperationStub(
   }
 
   @BetaApi
-  public UnaryCallable deleteGlobalOperationCallable() {
+  public UnaryCallable
+      deleteGlobalOperationCallable() {
     return deleteGlobalOperationCallable;
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckCallableFactory.java
index 6eef2549ec3a..f96ac1e81a52 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonHealthCheckCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonHealthCheckCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckStub.java
index 8b29707770d6..42c31786ab16 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.DeleteHealthCheckHttpRequest;
@@ -175,16 +177,25 @@ public class HttpJsonHealthCheckStub extends HealthCheckStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable deleteHealthCheckCallable;
+  private final OperationCallable
+      deleteHealthCheckOperationCallable;
   private final UnaryCallable getHealthCheckCallable;
   private final UnaryCallable insertHealthCheckCallable;
+  private final OperationCallable
+      insertHealthCheckOperationCallable;
   private final UnaryCallable
       listHealthChecksCallable;
   private final UnaryCallable
       listHealthChecksPagedCallable;
   private final UnaryCallable patchHealthCheckCallable;
+  private final OperationCallable
+      patchHealthCheckOperationCallable;
   private final UnaryCallable updateHealthCheckCallable;
+  private final OperationCallable
+      updateHealthCheckOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -225,6 +236,7 @@ protected HttpJsonHealthCheckStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         deleteHealthCheckTransportSettings =
@@ -260,6 +272,12 @@ protected HttpJsonHealthCheckStub(
             deleteHealthCheckTransportSettings,
             settings.deleteHealthCheckSettings(),
             clientContext);
+    this.deleteHealthCheckOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteHealthCheckTransportSettings,
+            settings.deleteHealthCheckOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getHealthCheckCallable =
         callableFactory.createUnaryCallable(
             getHealthCheckTransportSettings, settings.getHealthCheckSettings(), clientContext);
@@ -268,6 +286,12 @@ protected HttpJsonHealthCheckStub(
             insertHealthCheckTransportSettings,
             settings.insertHealthCheckSettings(),
             clientContext);
+    this.insertHealthCheckOperationCallable =
+        callableFactory.createOperationCallable(
+            insertHealthCheckTransportSettings,
+            settings.insertHealthCheckOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listHealthChecksCallable =
         callableFactory.createUnaryCallable(
             listHealthChecksTransportSettings, settings.listHealthChecksSettings(), clientContext);
@@ -277,15 +301,38 @@ protected HttpJsonHealthCheckStub(
     this.patchHealthCheckCallable =
         callableFactory.createUnaryCallable(
             patchHealthCheckTransportSettings, settings.patchHealthCheckSettings(), clientContext);
+    this.patchHealthCheckOperationCallable =
+        callableFactory.createOperationCallable(
+            patchHealthCheckTransportSettings,
+            settings.patchHealthCheckOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.updateHealthCheckCallable =
         callableFactory.createUnaryCallable(
             updateHealthCheckTransportSettings,
             settings.updateHealthCheckSettings(),
             clientContext);
+    this.updateHealthCheckOperationCallable =
+        callableFactory.createOperationCallable(
+            updateHealthCheckTransportSettings,
+            settings.updateHealthCheckOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteHealthCheckOperationCallable() {
+    return deleteHealthCheckOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteHealthCheckCallable() {
     return deleteHealthCheckCallable;
@@ -296,6 +343,12 @@ public UnaryCallable getHealthCheckCalla
     return getHealthCheckCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertHealthCheckOperationCallable() {
+    return insertHealthCheckOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertHealthCheckCallable() {
     return insertHealthCheckCallable;
@@ -312,11 +365,23 @@ public UnaryCallable listHealthChe
     return listHealthChecksCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchHealthCheckOperationCallable() {
+    return patchHealthCheckOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable patchHealthCheckCallable() {
     return patchHealthCheckCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateHealthCheckOperationCallable() {
+    return updateHealthCheckOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable updateHealthCheckCallable() {
     return updateHealthCheckCallable;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckCallableFactory.java
index 56a61bba2c97..c0318229bd38 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonHttpHealthCheckCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonHttpHealthCheckCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckStub.java
index 8cde8bdfe4ca..f7c7643e665d 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.DeleteHttpHealthCheckHttpRequest;
@@ -179,21 +181,30 @@ public class HttpJsonHttpHealthCheckStub extends HttpHealthCheckStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       deleteHttpHealthCheckCallable;
+  private final OperationCallable
+      deleteHttpHealthCheckOperationCallable;
   private final UnaryCallable
       getHttpHealthCheckCallable;
   private final UnaryCallable
       insertHttpHealthCheckCallable;
+  private final OperationCallable
+      insertHttpHealthCheckOperationCallable;
   private final UnaryCallable
       listHttpHealthChecksCallable;
   private final UnaryCallable
       listHttpHealthChecksPagedCallable;
   private final UnaryCallable
       patchHttpHealthCheckCallable;
+  private final OperationCallable
+      patchHttpHealthCheckOperationCallable;
   private final UnaryCallable
       updateHttpHealthCheckCallable;
+  private final OperationCallable
+      updateHttpHealthCheckOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -235,6 +246,7 @@ protected HttpJsonHttpHealthCheckStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         deleteHttpHealthCheckTransportSettings =
@@ -272,6 +284,12 @@ protected HttpJsonHttpHealthCheckStub(
             deleteHttpHealthCheckTransportSettings,
             settings.deleteHttpHealthCheckSettings(),
             clientContext);
+    this.deleteHttpHealthCheckOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteHttpHealthCheckTransportSettings,
+            settings.deleteHttpHealthCheckOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getHttpHealthCheckCallable =
         callableFactory.createUnaryCallable(
             getHttpHealthCheckTransportSettings,
@@ -282,6 +300,12 @@ protected HttpJsonHttpHealthCheckStub(
             insertHttpHealthCheckTransportSettings,
             settings.insertHttpHealthCheckSettings(),
             clientContext);
+    this.insertHttpHealthCheckOperationCallable =
+        callableFactory.createOperationCallable(
+            insertHttpHealthCheckTransportSettings,
+            settings.insertHttpHealthCheckOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listHttpHealthChecksCallable =
         callableFactory.createUnaryCallable(
             listHttpHealthChecksTransportSettings,
@@ -297,15 +321,38 @@ protected HttpJsonHttpHealthCheckStub(
             patchHttpHealthCheckTransportSettings,
             settings.patchHttpHealthCheckSettings(),
             clientContext);
+    this.patchHttpHealthCheckOperationCallable =
+        callableFactory.createOperationCallable(
+            patchHttpHealthCheckTransportSettings,
+            settings.patchHttpHealthCheckOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.updateHttpHealthCheckCallable =
         callableFactory.createUnaryCallable(
             updateHttpHealthCheckTransportSettings,
             settings.updateHttpHealthCheckSettings(),
             clientContext);
+    this.updateHttpHealthCheckOperationCallable =
+        callableFactory.createOperationCallable(
+            updateHttpHealthCheckTransportSettings,
+            settings.updateHttpHealthCheckOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteHttpHealthCheckOperationCallable() {
+    return deleteHttpHealthCheckOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       deleteHttpHealthCheckCallable() {
@@ -318,6 +365,12 @@ protected HttpJsonHttpHealthCheckStub(
     return getHttpHealthCheckCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertHttpHealthCheckOperationCallable() {
+    return insertHttpHealthCheckOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       insertHttpHealthCheckCallable() {
@@ -336,11 +389,23 @@ protected HttpJsonHttpHealthCheckStub(
     return listHttpHealthChecksCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchHttpHealthCheckOperationCallable() {
+    return patchHttpHealthCheckOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable patchHttpHealthCheckCallable() {
     return patchHttpHealthCheckCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateHttpHealthCheckOperationCallable() {
+    return updateHttpHealthCheckOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       updateHttpHealthCheckCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckCallableFactory.java
index a34e901537d3..90fc80f50b1b 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonHttpsHealthCheckCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonHttpsHealthCheckCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckStub.java
index ae64022b6cf4..c552479a4c37 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.DeleteHttpsHealthCheckHttpRequest;
@@ -179,21 +181,30 @@ public class HttpJsonHttpsHealthCheckStub extends HttpsHealthCheckStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       deleteHttpsHealthCheckCallable;
+  private final OperationCallable
+      deleteHttpsHealthCheckOperationCallable;
   private final UnaryCallable
       getHttpsHealthCheckCallable;
   private final UnaryCallable
       insertHttpsHealthCheckCallable;
+  private final OperationCallable
+      insertHttpsHealthCheckOperationCallable;
   private final UnaryCallable
       listHttpsHealthChecksCallable;
   private final UnaryCallable
       listHttpsHealthChecksPagedCallable;
   private final UnaryCallable
       patchHttpsHealthCheckCallable;
+  private final OperationCallable
+      patchHttpsHealthCheckOperationCallable;
   private final UnaryCallable
       updateHttpsHealthCheckCallable;
+  private final OperationCallable
+      updateHttpsHealthCheckOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -235,6 +246,7 @@ protected HttpJsonHttpsHealthCheckStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         deleteHttpsHealthCheckTransportSettings =
@@ -273,6 +285,12 @@ protected HttpJsonHttpsHealthCheckStub(
             deleteHttpsHealthCheckTransportSettings,
             settings.deleteHttpsHealthCheckSettings(),
             clientContext);
+    this.deleteHttpsHealthCheckOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteHttpsHealthCheckTransportSettings,
+            settings.deleteHttpsHealthCheckOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getHttpsHealthCheckCallable =
         callableFactory.createUnaryCallable(
             getHttpsHealthCheckTransportSettings,
@@ -283,6 +301,12 @@ protected HttpJsonHttpsHealthCheckStub(
             insertHttpsHealthCheckTransportSettings,
             settings.insertHttpsHealthCheckSettings(),
             clientContext);
+    this.insertHttpsHealthCheckOperationCallable =
+        callableFactory.createOperationCallable(
+            insertHttpsHealthCheckTransportSettings,
+            settings.insertHttpsHealthCheckOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listHttpsHealthChecksCallable =
         callableFactory.createUnaryCallable(
             listHttpsHealthChecksTransportSettings,
@@ -298,15 +322,38 @@ protected HttpJsonHttpsHealthCheckStub(
             patchHttpsHealthCheckTransportSettings,
             settings.patchHttpsHealthCheckSettings(),
             clientContext);
+    this.patchHttpsHealthCheckOperationCallable =
+        callableFactory.createOperationCallable(
+            patchHttpsHealthCheckTransportSettings,
+            settings.patchHttpsHealthCheckOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.updateHttpsHealthCheckCallable =
         callableFactory.createUnaryCallable(
             updateHttpsHealthCheckTransportSettings,
             settings.updateHttpsHealthCheckSettings(),
             clientContext);
+    this.updateHttpsHealthCheckOperationCallable =
+        callableFactory.createOperationCallable(
+            updateHttpsHealthCheckTransportSettings,
+            settings.updateHttpsHealthCheckOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteHttpsHealthCheckOperationCallable() {
+    return deleteHttpsHealthCheckOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       deleteHttpsHealthCheckCallable() {
@@ -319,6 +366,12 @@ protected HttpJsonHttpsHealthCheckStub(
     return getHttpsHealthCheckCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertHttpsHealthCheckOperationCallable() {
+    return insertHttpsHealthCheckOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       insertHttpsHealthCheckCallable() {
@@ -337,12 +390,24 @@ protected HttpJsonHttpsHealthCheckStub(
     return listHttpsHealthChecksCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchHttpsHealthCheckOperationCallable() {
+    return patchHttpsHealthCheckOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       patchHttpsHealthCheckCallable() {
     return patchHttpsHealthCheckCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateHttpsHealthCheckOperationCallable() {
+    return updateHttpsHealthCheckOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       updateHttpsHealthCheckCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageCallableFactory.java
index 143b1de15f99..a9de3d7b86da 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonImageCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonImageCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageStub.java
index c946d32c9fce..2279b753fee9 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.DeleteImageHttpRequest;
@@ -263,18 +265,27 @@ public class HttpJsonImageStub extends ImageStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable deleteImageCallable;
+  private final OperationCallable
+      deleteImageOperationCallable;
   private final UnaryCallable deprecateImageCallable;
+  private final OperationCallable
+      deprecateImageOperationCallable;
   private final UnaryCallable getImageCallable;
   private final UnaryCallable getFromFamilyImageCallable;
   private final UnaryCallable getIamPolicyImageCallable;
   private final UnaryCallable insertImageCallable;
+  private final OperationCallable
+      insertImageOperationCallable;
   private final UnaryCallable listImagesCallable;
   private final UnaryCallable
       listImagesPagedCallable;
   private final UnaryCallable setIamPolicyImageCallable;
   private final UnaryCallable setLabelsImageCallable;
+  private final OperationCallable
+      setLabelsImageOperationCallable;
   private final UnaryCallable
       testIamPermissionsImageCallable;
 
@@ -315,6 +326,7 @@ protected HttpJsonImageStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings deleteImageTransportSettings =
         HttpJsonCallSettings.newBuilder()
@@ -362,9 +374,21 @@ protected HttpJsonImageStub(
     this.deleteImageCallable =
         callableFactory.createUnaryCallable(
             deleteImageTransportSettings, settings.deleteImageSettings(), clientContext);
+    this.deleteImageOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteImageTransportSettings,
+            settings.deleteImageOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.deprecateImageCallable =
         callableFactory.createUnaryCallable(
             deprecateImageTransportSettings, settings.deprecateImageSettings(), clientContext);
+    this.deprecateImageOperationCallable =
+        callableFactory.createOperationCallable(
+            deprecateImageTransportSettings,
+            settings.deprecateImageOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getImageCallable =
         callableFactory.createUnaryCallable(
             getImageTransportSettings, settings.getImageSettings(), clientContext);
@@ -381,6 +405,12 @@ protected HttpJsonImageStub(
     this.insertImageCallable =
         callableFactory.createUnaryCallable(
             insertImageTransportSettings, settings.insertImageSettings(), clientContext);
+    this.insertImageOperationCallable =
+        callableFactory.createOperationCallable(
+            insertImageTransportSettings,
+            settings.insertImageOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listImagesCallable =
         callableFactory.createUnaryCallable(
             listImagesTransportSettings, settings.listImagesSettings(), clientContext);
@@ -395,6 +425,12 @@ protected HttpJsonImageStub(
     this.setLabelsImageCallable =
         callableFactory.createUnaryCallable(
             setLabelsImageTransportSettings, settings.setLabelsImageSettings(), clientContext);
+    this.setLabelsImageOperationCallable =
+        callableFactory.createOperationCallable(
+            setLabelsImageTransportSettings,
+            settings.setLabelsImageOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.testIamPermissionsImageCallable =
         callableFactory.createUnaryCallable(
             testIamPermissionsImageTransportSettings,
@@ -404,11 +440,28 @@ protected HttpJsonImageStub(
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteImageOperationCallable() {
+    return deleteImageOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteImageCallable() {
     return deleteImageCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deprecateImageOperationCallable() {
+    return deprecateImageOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deprecateImageCallable() {
     return deprecateImageCallable;
@@ -429,6 +482,12 @@ public UnaryCallable getIamPolicyImageCall
     return getIamPolicyImageCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertImageOperationCallable() {
+    return insertImageOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertImageCallable() {
     return insertImageCallable;
@@ -449,6 +508,12 @@ public UnaryCallable setIamPolicyImageCall
     return setIamPolicyImageCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setLabelsImageOperationCallable() {
+    return setLabelsImageOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable setLabelsImageCallable() {
     return setLabelsImageCallable;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceCallableFactory.java
index 1c68f61d2dbf..2085598017fd 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonInstanceCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonInstanceCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupCallableFactory.java
index 8247b0fa6708..cbadda5f9f3d 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonInstanceGroupCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonInstanceGroupCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerCallableFactory.java
index 5f26d7a7eeee..947e77d2c560 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonInstanceGroupManagerCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonInstanceGroupManagerCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerStub.java
index eb51bbde5a80..f1c6b7328ad2 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerStub.java
@@ -26,9 +26,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.AbandonInstancesInstanceGroupManagerHttpRequest;
@@ -366,9 +368,13 @@ public class HttpJsonInstanceGroupManagerStub extends InstanceGroupManagerStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       abandonInstancesInstanceGroupManagerCallable;
+  private final OperationCallable<
+          AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      abandonInstancesInstanceGroupManagerOperationCallable;
   private final UnaryCallable<
           AggregatedListInstanceGroupManagersHttpRequest, InstanceGroupManagerAggregatedList>
       aggregatedListInstanceGroupManagersCallable;
@@ -378,12 +384,19 @@ public class HttpJsonInstanceGroupManagerStub extends InstanceGroupManagerStub {
       aggregatedListInstanceGroupManagersPagedCallable;
   private final UnaryCallable
       deleteInstanceGroupManagerCallable;
+  private final OperationCallable
+      deleteInstanceGroupManagerOperationCallable;
   private final UnaryCallable
       deleteInstancesInstanceGroupManagerCallable;
+  private final OperationCallable<
+          DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      deleteInstancesInstanceGroupManagerOperationCallable;
   private final UnaryCallable
       getInstanceGroupManagerCallable;
   private final UnaryCallable
       insertInstanceGroupManagerCallable;
+  private final OperationCallable
+      insertInstanceGroupManagerOperationCallable;
   private final UnaryCallable
       listInstanceGroupManagersCallable;
   private final UnaryCallable<
@@ -395,14 +408,27 @@ public class HttpJsonInstanceGroupManagerStub extends InstanceGroupManagerStub {
       listManagedInstancesInstanceGroupManagersCallable;
   private final UnaryCallable
       patchInstanceGroupManagerCallable;
+  private final OperationCallable
+      patchInstanceGroupManagerOperationCallable;
   private final UnaryCallable
       recreateInstancesInstanceGroupManagerCallable;
+  private final OperationCallable<
+          RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      recreateInstancesInstanceGroupManagerOperationCallable;
   private final UnaryCallable
       resizeInstanceGroupManagerCallable;
+  private final OperationCallable
+      resizeInstanceGroupManagerOperationCallable;
   private final UnaryCallable
       setInstanceTemplateInstanceGroupManagerCallable;
+  private final OperationCallable<
+          SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      setInstanceTemplateInstanceGroupManagerOperationCallable;
   private final UnaryCallable
       setTargetPoolsInstanceGroupManagerCallable;
+  private final OperationCallable<
+          SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      setTargetPoolsInstanceGroupManagerOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -444,6 +470,7 @@ protected HttpJsonInstanceGroupManagerStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         abandonInstancesInstanceGroupManagerTransportSettings =
@@ -532,6 +559,12 @@ protected HttpJsonInstanceGroupManagerStub(
             abandonInstancesInstanceGroupManagerTransportSettings,
             settings.abandonInstancesInstanceGroupManagerSettings(),
             clientContext);
+    this.abandonInstancesInstanceGroupManagerOperationCallable =
+        callableFactory.createOperationCallable(
+            abandonInstancesInstanceGroupManagerTransportSettings,
+            settings.abandonInstancesInstanceGroupManagerOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.aggregatedListInstanceGroupManagersCallable =
         callableFactory.createUnaryCallable(
             aggregatedListInstanceGroupManagersTransportSettings,
@@ -547,11 +580,23 @@ protected HttpJsonInstanceGroupManagerStub(
             deleteInstanceGroupManagerTransportSettings,
             settings.deleteInstanceGroupManagerSettings(),
             clientContext);
+    this.deleteInstanceGroupManagerOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteInstanceGroupManagerTransportSettings,
+            settings.deleteInstanceGroupManagerOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.deleteInstancesInstanceGroupManagerCallable =
         callableFactory.createUnaryCallable(
             deleteInstancesInstanceGroupManagerTransportSettings,
             settings.deleteInstancesInstanceGroupManagerSettings(),
             clientContext);
+    this.deleteInstancesInstanceGroupManagerOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteInstancesInstanceGroupManagerTransportSettings,
+            settings.deleteInstancesInstanceGroupManagerOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getInstanceGroupManagerCallable =
         callableFactory.createUnaryCallable(
             getInstanceGroupManagerTransportSettings,
@@ -562,6 +607,12 @@ protected HttpJsonInstanceGroupManagerStub(
             insertInstanceGroupManagerTransportSettings,
             settings.insertInstanceGroupManagerSettings(),
             clientContext);
+    this.insertInstanceGroupManagerOperationCallable =
+        callableFactory.createOperationCallable(
+            insertInstanceGroupManagerTransportSettings,
+            settings.insertInstanceGroupManagerOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listInstanceGroupManagersCallable =
         callableFactory.createUnaryCallable(
             listInstanceGroupManagersTransportSettings,
@@ -582,30 +633,72 @@ protected HttpJsonInstanceGroupManagerStub(
             patchInstanceGroupManagerTransportSettings,
             settings.patchInstanceGroupManagerSettings(),
             clientContext);
+    this.patchInstanceGroupManagerOperationCallable =
+        callableFactory.createOperationCallable(
+            patchInstanceGroupManagerTransportSettings,
+            settings.patchInstanceGroupManagerOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.recreateInstancesInstanceGroupManagerCallable =
         callableFactory.createUnaryCallable(
             recreateInstancesInstanceGroupManagerTransportSettings,
             settings.recreateInstancesInstanceGroupManagerSettings(),
             clientContext);
+    this.recreateInstancesInstanceGroupManagerOperationCallable =
+        callableFactory.createOperationCallable(
+            recreateInstancesInstanceGroupManagerTransportSettings,
+            settings.recreateInstancesInstanceGroupManagerOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.resizeInstanceGroupManagerCallable =
         callableFactory.createUnaryCallable(
             resizeInstanceGroupManagerTransportSettings,
             settings.resizeInstanceGroupManagerSettings(),
             clientContext);
+    this.resizeInstanceGroupManagerOperationCallable =
+        callableFactory.createOperationCallable(
+            resizeInstanceGroupManagerTransportSettings,
+            settings.resizeInstanceGroupManagerOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setInstanceTemplateInstanceGroupManagerCallable =
         callableFactory.createUnaryCallable(
             setInstanceTemplateInstanceGroupManagerTransportSettings,
             settings.setInstanceTemplateInstanceGroupManagerSettings(),
             clientContext);
+    this.setInstanceTemplateInstanceGroupManagerOperationCallable =
+        callableFactory.createOperationCallable(
+            setInstanceTemplateInstanceGroupManagerTransportSettings,
+            settings.setInstanceTemplateInstanceGroupManagerOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setTargetPoolsInstanceGroupManagerCallable =
         callableFactory.createUnaryCallable(
             setTargetPoolsInstanceGroupManagerTransportSettings,
             settings.setTargetPoolsInstanceGroupManagerSettings(),
             clientContext);
+    this.setTargetPoolsInstanceGroupManagerOperationCallable =
+        callableFactory.createOperationCallable(
+            setTargetPoolsInstanceGroupManagerTransportSettings,
+            settings.setTargetPoolsInstanceGroupManagerOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      abandonInstancesInstanceGroupManagerOperationCallable() {
+    return abandonInstancesInstanceGroupManagerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       abandonInstancesInstanceGroupManagerCallable() {
@@ -627,12 +720,25 @@ protected HttpJsonInstanceGroupManagerStub(
     return aggregatedListInstanceGroupManagersCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteInstanceGroupManagerOperationCallable() {
+    return deleteInstanceGroupManagerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       deleteInstanceGroupManagerCallable() {
     return deleteInstanceGroupManagerCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      deleteInstancesInstanceGroupManagerOperationCallable() {
+    return deleteInstancesInstanceGroupManagerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       deleteInstancesInstanceGroupManagerCallable() {
@@ -645,6 +751,12 @@ protected HttpJsonInstanceGroupManagerStub(
     return getInstanceGroupManagerCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertInstanceGroupManagerOperationCallable() {
+    return insertInstanceGroupManagerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       insertInstanceGroupManagerCallable() {
@@ -671,30 +783,63 @@ protected HttpJsonInstanceGroupManagerStub(
     return listManagedInstancesInstanceGroupManagersCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchInstanceGroupManagerOperationCallable() {
+    return patchInstanceGroupManagerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       patchInstanceGroupManagerCallable() {
     return patchInstanceGroupManagerCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      recreateInstancesInstanceGroupManagerOperationCallable() {
+    return recreateInstancesInstanceGroupManagerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       recreateInstancesInstanceGroupManagerCallable() {
     return recreateInstancesInstanceGroupManagerCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      resizeInstanceGroupManagerOperationCallable() {
+    return resizeInstanceGroupManagerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       resizeInstanceGroupManagerCallable() {
     return resizeInstanceGroupManagerCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      setInstanceTemplateInstanceGroupManagerOperationCallable() {
+    return setInstanceTemplateInstanceGroupManagerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setInstanceTemplateInstanceGroupManagerCallable() {
     return setInstanceTemplateInstanceGroupManagerCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      setTargetPoolsInstanceGroupManagerOperationCallable() {
+    return setTargetPoolsInstanceGroupManagerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setTargetPoolsInstanceGroupManagerCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupStub.java
index 698fa8df33b2..65852082309e 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupStub.java
@@ -27,9 +27,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.AddInstancesInstanceGroupHttpRequest;
@@ -257,9 +259,12 @@ public class HttpJsonInstanceGroupStub extends InstanceGroupStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       addInstancesInstanceGroupCallable;
+  private final OperationCallable
+      addInstancesInstanceGroupOperationCallable;
   private final UnaryCallable
       aggregatedListInstanceGroupsCallable;
   private final UnaryCallable<
@@ -267,9 +272,13 @@ public class HttpJsonInstanceGroupStub extends InstanceGroupStub {
       aggregatedListInstanceGroupsPagedCallable;
   private final UnaryCallable
       deleteInstanceGroupCallable;
+  private final OperationCallable
+      deleteInstanceGroupOperationCallable;
   private final UnaryCallable getInstanceGroupCallable;
   private final UnaryCallable
       insertInstanceGroupCallable;
+  private final OperationCallable
+      insertInstanceGroupOperationCallable;
   private final UnaryCallable
       listInstanceGroupsCallable;
   private final UnaryCallable
@@ -281,8 +290,13 @@ public class HttpJsonInstanceGroupStub extends InstanceGroupStub {
       listInstancesInstanceGroupsPagedCallable;
   private final UnaryCallable
       removeInstancesInstanceGroupCallable;
+  private final OperationCallable<
+          RemoveInstancesInstanceGroupHttpRequest, EmptyMessage, EmptyMessage>
+      removeInstancesInstanceGroupOperationCallable;
   private final UnaryCallable
       setNamedPortsInstanceGroupCallable;
+  private final OperationCallable
+      setNamedPortsInstanceGroupOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -324,6 +338,7 @@ protected HttpJsonInstanceGroupStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         addInstancesInstanceGroupTransportSettings =
@@ -378,6 +393,12 @@ protected HttpJsonInstanceGroupStub(
             addInstancesInstanceGroupTransportSettings,
             settings.addInstancesInstanceGroupSettings(),
             clientContext);
+    this.addInstancesInstanceGroupOperationCallable =
+        callableFactory.createOperationCallable(
+            addInstancesInstanceGroupTransportSettings,
+            settings.addInstancesInstanceGroupOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.aggregatedListInstanceGroupsCallable =
         callableFactory.createUnaryCallable(
             aggregatedListInstanceGroupsTransportSettings,
@@ -393,6 +414,12 @@ protected HttpJsonInstanceGroupStub(
             deleteInstanceGroupTransportSettings,
             settings.deleteInstanceGroupSettings(),
             clientContext);
+    this.deleteInstanceGroupOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteInstanceGroupTransportSettings,
+            settings.deleteInstanceGroupOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getInstanceGroupCallable =
         callableFactory.createUnaryCallable(
             getInstanceGroupTransportSettings, settings.getInstanceGroupSettings(), clientContext);
@@ -401,6 +428,12 @@ protected HttpJsonInstanceGroupStub(
             insertInstanceGroupTransportSettings,
             settings.insertInstanceGroupSettings(),
             clientContext);
+    this.insertInstanceGroupOperationCallable =
+        callableFactory.createOperationCallable(
+            insertInstanceGroupTransportSettings,
+            settings.insertInstanceGroupOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listInstanceGroupsCallable =
         callableFactory.createUnaryCallable(
             listInstanceGroupsTransportSettings,
@@ -426,15 +459,38 @@ protected HttpJsonInstanceGroupStub(
             removeInstancesInstanceGroupTransportSettings,
             settings.removeInstancesInstanceGroupSettings(),
             clientContext);
+    this.removeInstancesInstanceGroupOperationCallable =
+        callableFactory.createOperationCallable(
+            removeInstancesInstanceGroupTransportSettings,
+            settings.removeInstancesInstanceGroupOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setNamedPortsInstanceGroupCallable =
         callableFactory.createUnaryCallable(
             setNamedPortsInstanceGroupTransportSettings,
             settings.setNamedPortsInstanceGroupSettings(),
             clientContext);
+    this.setNamedPortsInstanceGroupOperationCallable =
+        callableFactory.createOperationCallable(
+            setNamedPortsInstanceGroupTransportSettings,
+            settings.setNamedPortsInstanceGroupOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      addInstancesInstanceGroupOperationCallable() {
+    return addInstancesInstanceGroupOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       addInstancesInstanceGroupCallable() {
@@ -454,6 +510,12 @@ protected HttpJsonInstanceGroupStub(
     return aggregatedListInstanceGroupsCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteInstanceGroupOperationCallable() {
+    return deleteInstanceGroupOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteInstanceGroupCallable() {
     return deleteInstanceGroupCallable;
@@ -464,6 +526,12 @@ public UnaryCallable getInstanceGrou
     return getInstanceGroupCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertInstanceGroupOperationCallable() {
+    return insertInstanceGroupOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertInstanceGroupCallable() {
     return insertInstanceGroupCallable;
@@ -494,12 +562,24 @@ public UnaryCallable insertInstanceGr
     return listInstancesInstanceGroupsCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      removeInstancesInstanceGroupOperationCallable() {
+    return removeInstancesInstanceGroupOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       removeInstancesInstanceGroupCallable() {
     return removeInstancesInstanceGroupCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setNamedPortsInstanceGroupOperationCallable() {
+    return setNamedPortsInstanceGroupOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setNamedPortsInstanceGroupCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceStub.java
index 0e54b2f419eb..7ef34761e3e9 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceStub.java
@@ -27,9 +27,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.AddAccessConfigInstanceHttpRequest;
@@ -746,24 +748,37 @@ public class HttpJsonInstanceStub extends InstanceStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       addAccessConfigInstanceCallable;
+  private final OperationCallable
+      addAccessConfigInstanceOperationCallable;
   private final UnaryCallable
       aggregatedListInstancesCallable;
   private final UnaryCallable<
           AggregatedListInstancesHttpRequest, AggregatedListInstancesPagedResponse>
       aggregatedListInstancesPagedCallable;
   private final UnaryCallable attachDiskInstanceCallable;
+  private final OperationCallable
+      attachDiskInstanceOperationCallable;
   private final UnaryCallable deleteInstanceCallable;
+  private final OperationCallable
+      deleteInstanceOperationCallable;
   private final UnaryCallable
       deleteAccessConfigInstanceCallable;
+  private final OperationCallable
+      deleteAccessConfigInstanceOperationCallable;
   private final UnaryCallable detachDiskInstanceCallable;
+  private final OperationCallable
+      detachDiskInstanceOperationCallable;
   private final UnaryCallable getInstanceCallable;
   private final UnaryCallable getIamPolicyInstanceCallable;
   private final UnaryCallable
       getSerialPortOutputInstanceCallable;
   private final UnaryCallable insertInstanceCallable;
+  private final OperationCallable
+      insertInstanceOperationCallable;
   private final UnaryCallable listInstancesCallable;
   private final UnaryCallable
       listInstancesPagedCallable;
@@ -773,37 +788,76 @@ public class HttpJsonInstanceStub extends InstanceStub {
           ListReferrersInstancesHttpRequest, ListReferrersInstancesPagedResponse>
       listReferrersInstancesPagedCallable;
   private final UnaryCallable resetInstanceCallable;
+  private final OperationCallable
+      resetInstanceOperationCallable;
   private final UnaryCallable
       setDeletionProtectionInstanceCallable;
+  private final OperationCallable<
+          SetDeletionProtectionInstanceHttpRequest, EmptyMessage, EmptyMessage>
+      setDeletionProtectionInstanceOperationCallable;
   private final UnaryCallable
       setDiskAutoDeleteInstanceCallable;
+  private final OperationCallable
+      setDiskAutoDeleteInstanceOperationCallable;
   private final UnaryCallable setIamPolicyInstanceCallable;
   private final UnaryCallable setLabelsInstanceCallable;
+  private final OperationCallable
+      setLabelsInstanceOperationCallable;
   private final UnaryCallable
       setMachineResourcesInstanceCallable;
+  private final OperationCallable<
+          SetMachineResourcesInstanceHttpRequest, EmptyMessage, EmptyMessage>
+      setMachineResourcesInstanceOperationCallable;
   private final UnaryCallable
       setMachineTypeInstanceCallable;
+  private final OperationCallable
+      setMachineTypeInstanceOperationCallable;
   private final UnaryCallable
       setMetadataInstanceCallable;
+  private final OperationCallable
+      setMetadataInstanceOperationCallable;
   private final UnaryCallable
       setMinCpuPlatformInstanceCallable;
+  private final OperationCallable
+      setMinCpuPlatformInstanceOperationCallable;
   private final UnaryCallable
       setSchedulingInstanceCallable;
+  private final OperationCallable
+      setSchedulingInstanceOperationCallable;
   private final UnaryCallable
       setServiceAccountInstanceCallable;
+  private final OperationCallable
+      setServiceAccountInstanceOperationCallable;
   private final UnaryCallable setTagsInstanceCallable;
+  private final OperationCallable
+      setTagsInstanceOperationCallable;
   private final UnaryCallable
       simulateMaintenanceEventInstanceCallable;
+  private final OperationCallable<
+          SimulateMaintenanceEventInstanceHttpRequest, EmptyMessage, EmptyMessage>
+      simulateMaintenanceEventInstanceOperationCallable;
   private final UnaryCallable startInstanceCallable;
+  private final OperationCallable
+      startInstanceOperationCallable;
   private final UnaryCallable
       startWithEncryptionKeyInstanceCallable;
+  private final OperationCallable<
+          StartWithEncryptionKeyInstanceHttpRequest, EmptyMessage, EmptyMessage>
+      startWithEncryptionKeyInstanceOperationCallable;
   private final UnaryCallable stopInstanceCallable;
+  private final OperationCallable
+      stopInstanceOperationCallable;
   private final UnaryCallable
       testIamPermissionsInstanceCallable;
   private final UnaryCallable
       updateAccessConfigInstanceCallable;
+  private final OperationCallable
+      updateAccessConfigInstanceOperationCallable;
   private final UnaryCallable
       updateNetworkInterfaceInstanceCallable;
+  private final OperationCallable<
+          UpdateNetworkInterfaceInstanceHttpRequest, EmptyMessage, EmptyMessage>
+      updateNetworkInterfaceInstanceOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -843,6 +897,7 @@ protected HttpJsonInstanceStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         addAccessConfigInstanceTransportSettings =
@@ -1002,6 +1057,12 @@ protected HttpJsonInstanceStub(
             addAccessConfigInstanceTransportSettings,
             settings.addAccessConfigInstanceSettings(),
             clientContext);
+    this.addAccessConfigInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            addAccessConfigInstanceTransportSettings,
+            settings.addAccessConfigInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.aggregatedListInstancesCallable =
         callableFactory.createUnaryCallable(
             aggregatedListInstancesTransportSettings,
@@ -1017,19 +1078,43 @@ protected HttpJsonInstanceStub(
             attachDiskInstanceTransportSettings,
             settings.attachDiskInstanceSettings(),
             clientContext);
+    this.attachDiskInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            attachDiskInstanceTransportSettings,
+            settings.attachDiskInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.deleteInstanceCallable =
         callableFactory.createUnaryCallable(
             deleteInstanceTransportSettings, settings.deleteInstanceSettings(), clientContext);
+    this.deleteInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteInstanceTransportSettings,
+            settings.deleteInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.deleteAccessConfigInstanceCallable =
         callableFactory.createUnaryCallable(
             deleteAccessConfigInstanceTransportSettings,
             settings.deleteAccessConfigInstanceSettings(),
             clientContext);
+    this.deleteAccessConfigInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteAccessConfigInstanceTransportSettings,
+            settings.deleteAccessConfigInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.detachDiskInstanceCallable =
         callableFactory.createUnaryCallable(
             detachDiskInstanceTransportSettings,
             settings.detachDiskInstanceSettings(),
             clientContext);
+    this.detachDiskInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            detachDiskInstanceTransportSettings,
+            settings.detachDiskInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getInstanceCallable =
         callableFactory.createUnaryCallable(
             getInstanceTransportSettings, settings.getInstanceSettings(), clientContext);
@@ -1046,6 +1131,12 @@ protected HttpJsonInstanceStub(
     this.insertInstanceCallable =
         callableFactory.createUnaryCallable(
             insertInstanceTransportSettings, settings.insertInstanceSettings(), clientContext);
+    this.insertInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            insertInstanceTransportSettings,
+            settings.insertInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listInstancesCallable =
         callableFactory.createUnaryCallable(
             listInstancesTransportSettings, settings.listInstancesSettings(), clientContext);
@@ -1065,16 +1156,34 @@ protected HttpJsonInstanceStub(
     this.resetInstanceCallable =
         callableFactory.createUnaryCallable(
             resetInstanceTransportSettings, settings.resetInstanceSettings(), clientContext);
+    this.resetInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            resetInstanceTransportSettings,
+            settings.resetInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setDeletionProtectionInstanceCallable =
         callableFactory.createUnaryCallable(
             setDeletionProtectionInstanceTransportSettings,
             settings.setDeletionProtectionInstanceSettings(),
             clientContext);
+    this.setDeletionProtectionInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            setDeletionProtectionInstanceTransportSettings,
+            settings.setDeletionProtectionInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setDiskAutoDeleteInstanceCallable =
         callableFactory.createUnaryCallable(
             setDiskAutoDeleteInstanceTransportSettings,
             settings.setDiskAutoDeleteInstanceSettings(),
             clientContext);
+    this.setDiskAutoDeleteInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            setDiskAutoDeleteInstanceTransportSettings,
+            settings.setDiskAutoDeleteInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setIamPolicyInstanceCallable =
         callableFactory.createUnaryCallable(
             setIamPolicyInstanceTransportSettings,
@@ -1085,55 +1194,127 @@ protected HttpJsonInstanceStub(
             setLabelsInstanceTransportSettings,
             settings.setLabelsInstanceSettings(),
             clientContext);
+    this.setLabelsInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            setLabelsInstanceTransportSettings,
+            settings.setLabelsInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setMachineResourcesInstanceCallable =
         callableFactory.createUnaryCallable(
             setMachineResourcesInstanceTransportSettings,
             settings.setMachineResourcesInstanceSettings(),
             clientContext);
+    this.setMachineResourcesInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            setMachineResourcesInstanceTransportSettings,
+            settings.setMachineResourcesInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setMachineTypeInstanceCallable =
         callableFactory.createUnaryCallable(
             setMachineTypeInstanceTransportSettings,
             settings.setMachineTypeInstanceSettings(),
             clientContext);
+    this.setMachineTypeInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            setMachineTypeInstanceTransportSettings,
+            settings.setMachineTypeInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setMetadataInstanceCallable =
         callableFactory.createUnaryCallable(
             setMetadataInstanceTransportSettings,
             settings.setMetadataInstanceSettings(),
             clientContext);
+    this.setMetadataInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            setMetadataInstanceTransportSettings,
+            settings.setMetadataInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setMinCpuPlatformInstanceCallable =
         callableFactory.createUnaryCallable(
             setMinCpuPlatformInstanceTransportSettings,
             settings.setMinCpuPlatformInstanceSettings(),
             clientContext);
+    this.setMinCpuPlatformInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            setMinCpuPlatformInstanceTransportSettings,
+            settings.setMinCpuPlatformInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setSchedulingInstanceCallable =
         callableFactory.createUnaryCallable(
             setSchedulingInstanceTransportSettings,
             settings.setSchedulingInstanceSettings(),
             clientContext);
+    this.setSchedulingInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            setSchedulingInstanceTransportSettings,
+            settings.setSchedulingInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setServiceAccountInstanceCallable =
         callableFactory.createUnaryCallable(
             setServiceAccountInstanceTransportSettings,
             settings.setServiceAccountInstanceSettings(),
             clientContext);
+    this.setServiceAccountInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            setServiceAccountInstanceTransportSettings,
+            settings.setServiceAccountInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setTagsInstanceCallable =
         callableFactory.createUnaryCallable(
             setTagsInstanceTransportSettings, settings.setTagsInstanceSettings(), clientContext);
+    this.setTagsInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            setTagsInstanceTransportSettings,
+            settings.setTagsInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.simulateMaintenanceEventInstanceCallable =
         callableFactory.createUnaryCallable(
             simulateMaintenanceEventInstanceTransportSettings,
             settings.simulateMaintenanceEventInstanceSettings(),
             clientContext);
+    this.simulateMaintenanceEventInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            simulateMaintenanceEventInstanceTransportSettings,
+            settings.simulateMaintenanceEventInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.startInstanceCallable =
         callableFactory.createUnaryCallable(
             startInstanceTransportSettings, settings.startInstanceSettings(), clientContext);
+    this.startInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            startInstanceTransportSettings,
+            settings.startInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.startWithEncryptionKeyInstanceCallable =
         callableFactory.createUnaryCallable(
             startWithEncryptionKeyInstanceTransportSettings,
             settings.startWithEncryptionKeyInstanceSettings(),
             clientContext);
+    this.startWithEncryptionKeyInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            startWithEncryptionKeyInstanceTransportSettings,
+            settings.startWithEncryptionKeyInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.stopInstanceCallable =
         callableFactory.createUnaryCallable(
             stopInstanceTransportSettings, settings.stopInstanceSettings(), clientContext);
+    this.stopInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            stopInstanceTransportSettings,
+            settings.stopInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.testIamPermissionsInstanceCallable =
         callableFactory.createUnaryCallable(
             testIamPermissionsInstanceTransportSettings,
@@ -1144,15 +1325,38 @@ protected HttpJsonInstanceStub(
             updateAccessConfigInstanceTransportSettings,
             settings.updateAccessConfigInstanceSettings(),
             clientContext);
+    this.updateAccessConfigInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            updateAccessConfigInstanceTransportSettings,
+            settings.updateAccessConfigInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.updateNetworkInterfaceInstanceCallable =
         callableFactory.createUnaryCallable(
             updateNetworkInterfaceInstanceTransportSettings,
             settings.updateNetworkInterfaceInstanceSettings(),
             clientContext);
+    this.updateNetworkInterfaceInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            updateNetworkInterfaceInstanceTransportSettings,
+            settings.updateNetworkInterfaceInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      addAccessConfigInstanceOperationCallable() {
+    return addAccessConfigInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       addAccessConfigInstanceCallable() {
@@ -1171,22 +1375,46 @@ protected HttpJsonInstanceStub(
     return aggregatedListInstancesCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      attachDiskInstanceOperationCallable() {
+    return attachDiskInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable attachDiskInstanceCallable() {
     return attachDiskInstanceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteInstanceOperationCallable() {
+    return deleteInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteInstanceCallable() {
     return deleteInstanceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteAccessConfigInstanceOperationCallable() {
+    return deleteAccessConfigInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       deleteAccessConfigInstanceCallable() {
     return deleteAccessConfigInstanceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      detachDiskInstanceOperationCallable() {
+    return detachDiskInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable detachDiskInstanceCallable() {
     return detachDiskInstanceCallable;
@@ -1208,6 +1436,12 @@ public UnaryCallable getIamPolicyInstan
     return getSerialPortOutputInstanceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertInstanceOperationCallable() {
+    return insertInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertInstanceCallable() {
     return insertInstanceCallable;
@@ -1236,17 +1470,35 @@ public UnaryCallable listInstancesCallab
     return listReferrersInstancesCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      resetInstanceOperationCallable() {
+    return resetInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable resetInstanceCallable() {
     return resetInstanceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setDeletionProtectionInstanceOperationCallable() {
+    return setDeletionProtectionInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setDeletionProtectionInstanceCallable() {
     return setDeletionProtectionInstanceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setDiskAutoDeleteInstanceOperationCallable() {
+    return setDiskAutoDeleteInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setDiskAutoDeleteInstanceCallable() {
@@ -1258,68 +1510,140 @@ public UnaryCallable setIamPolicyInstan
     return setIamPolicyInstanceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setLabelsInstanceOperationCallable() {
+    return setLabelsInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable setLabelsInstanceCallable() {
     return setLabelsInstanceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setMachineResourcesInstanceOperationCallable() {
+    return setMachineResourcesInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setMachineResourcesInstanceCallable() {
     return setMachineResourcesInstanceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setMachineTypeInstanceOperationCallable() {
+    return setMachineTypeInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setMachineTypeInstanceCallable() {
     return setMachineTypeInstanceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setMetadataInstanceOperationCallable() {
+    return setMetadataInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable setMetadataInstanceCallable() {
     return setMetadataInstanceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setMinCpuPlatformInstanceOperationCallable() {
+    return setMinCpuPlatformInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setMinCpuPlatformInstanceCallable() {
     return setMinCpuPlatformInstanceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setSchedulingInstanceOperationCallable() {
+    return setSchedulingInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setSchedulingInstanceCallable() {
     return setSchedulingInstanceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setServiceAccountInstanceOperationCallable() {
+    return setServiceAccountInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setServiceAccountInstanceCallable() {
     return setServiceAccountInstanceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setTagsInstanceOperationCallable() {
+    return setTagsInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable setTagsInstanceCallable() {
     return setTagsInstanceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      simulateMaintenanceEventInstanceOperationCallable() {
+    return simulateMaintenanceEventInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       simulateMaintenanceEventInstanceCallable() {
     return simulateMaintenanceEventInstanceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      startInstanceOperationCallable() {
+    return startInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable startInstanceCallable() {
     return startInstanceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      startWithEncryptionKeyInstanceOperationCallable() {
+    return startWithEncryptionKeyInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       startWithEncryptionKeyInstanceCallable() {
     return startWithEncryptionKeyInstanceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      stopInstanceOperationCallable() {
+    return stopInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable stopInstanceCallable() {
     return stopInstanceCallable;
@@ -1331,12 +1655,24 @@ public UnaryCallable stopInstanceCallable()
     return testIamPermissionsInstanceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateAccessConfigInstanceOperationCallable() {
+    return updateAccessConfigInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       updateAccessConfigInstanceCallable() {
     return updateAccessConfigInstanceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateNetworkInterfaceInstanceOperationCallable() {
+    return updateNetworkInterfaceInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       updateNetworkInterfaceInstanceCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateCallableFactory.java
index eb1d219984ed..eb75579585cc 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonInstanceTemplateCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonInstanceTemplateCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateStub.java
index 0a6549a48fa6..dc2b8597b4e6 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.DeleteInstanceTemplateHttpRequest;
@@ -212,15 +214,20 @@ public class HttpJsonInstanceTemplateStub extends InstanceTemplateStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       deleteInstanceTemplateCallable;
+  private final OperationCallable
+      deleteInstanceTemplateOperationCallable;
   private final UnaryCallable
       getInstanceTemplateCallable;
   private final UnaryCallable
       getIamPolicyInstanceTemplateCallable;
   private final UnaryCallable
       insertInstanceTemplateCallable;
+  private final OperationCallable
+      insertInstanceTemplateOperationCallable;
   private final UnaryCallable
       listInstanceTemplatesCallable;
   private final UnaryCallable
@@ -271,6 +278,7 @@ protected HttpJsonInstanceTemplateStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         deleteInstanceTemplateTransportSettings =
@@ -316,6 +324,12 @@ protected HttpJsonInstanceTemplateStub(
             deleteInstanceTemplateTransportSettings,
             settings.deleteInstanceTemplateSettings(),
             clientContext);
+    this.deleteInstanceTemplateOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteInstanceTemplateTransportSettings,
+            settings.deleteInstanceTemplateOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getInstanceTemplateCallable =
         callableFactory.createUnaryCallable(
             getInstanceTemplateTransportSettings,
@@ -331,6 +345,12 @@ protected HttpJsonInstanceTemplateStub(
             insertInstanceTemplateTransportSettings,
             settings.insertInstanceTemplateSettings(),
             clientContext);
+    this.insertInstanceTemplateOperationCallable =
+        callableFactory.createOperationCallable(
+            insertInstanceTemplateTransportSettings,
+            settings.insertInstanceTemplateOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listInstanceTemplatesCallable =
         callableFactory.createUnaryCallable(
             listInstanceTemplatesTransportSettings,
@@ -355,6 +375,17 @@ protected HttpJsonInstanceTemplateStub(
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteInstanceTemplateOperationCallable() {
+    return deleteInstanceTemplateOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       deleteInstanceTemplateCallable() {
@@ -373,6 +404,12 @@ protected HttpJsonInstanceTemplateStub(
     return getIamPolicyInstanceTemplateCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertInstanceTemplateOperationCallable() {
+    return insertInstanceTemplateOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       insertInstanceTemplateCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentCallableFactory.java
index 5e7ed80b7b6b..8bb7c424010a 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonInterconnectAttachmentCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonInterconnectAttachmentCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentStub.java
index cfac96c1de41..a7a6a06f5013 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentStub.java
@@ -26,9 +26,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.AggregatedListInterconnectAttachmentsHttpRequest;
@@ -198,6 +200,7 @@ public class HttpJsonInterconnectAttachmentStub extends InterconnectAttachmentSt
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable<
           AggregatedListInterconnectAttachmentsHttpRequest, InterconnectAttachmentAggregatedList>
@@ -208,10 +211,16 @@ public class HttpJsonInterconnectAttachmentStub extends InterconnectAttachmentSt
       aggregatedListInterconnectAttachmentsPagedCallable;
   private final UnaryCallable
       deleteInterconnectAttachmentCallable;
+  private final OperationCallable<
+          DeleteInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage>
+      deleteInterconnectAttachmentOperationCallable;
   private final UnaryCallable
       getInterconnectAttachmentCallable;
   private final UnaryCallable
       insertInterconnectAttachmentCallable;
+  private final OperationCallable<
+          InsertInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage>
+      insertInterconnectAttachmentOperationCallable;
   private final UnaryCallable
       listInterconnectAttachmentsCallable;
   private final UnaryCallable<
@@ -219,6 +228,9 @@ public class HttpJsonInterconnectAttachmentStub extends InterconnectAttachmentSt
       listInterconnectAttachmentsPagedCallable;
   private final UnaryCallable
       patchInterconnectAttachmentCallable;
+  private final OperationCallable<
+          PatchInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage>
+      patchInterconnectAttachmentOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -260,6 +272,7 @@ protected HttpJsonInterconnectAttachmentStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings<
             AggregatedListInterconnectAttachmentsHttpRequest, InterconnectAttachmentAggregatedList>
@@ -313,6 +326,12 @@ protected HttpJsonInterconnectAttachmentStub(
             deleteInterconnectAttachmentTransportSettings,
             settings.deleteInterconnectAttachmentSettings(),
             clientContext);
+    this.deleteInterconnectAttachmentOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteInterconnectAttachmentTransportSettings,
+            settings.deleteInterconnectAttachmentOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getInterconnectAttachmentCallable =
         callableFactory.createUnaryCallable(
             getInterconnectAttachmentTransportSettings,
@@ -323,6 +342,12 @@ protected HttpJsonInterconnectAttachmentStub(
             insertInterconnectAttachmentTransportSettings,
             settings.insertInterconnectAttachmentSettings(),
             clientContext);
+    this.insertInterconnectAttachmentOperationCallable =
+        callableFactory.createOperationCallable(
+            insertInterconnectAttachmentTransportSettings,
+            settings.insertInterconnectAttachmentOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listInterconnectAttachmentsCallable =
         callableFactory.createUnaryCallable(
             listInterconnectAttachmentsTransportSettings,
@@ -338,10 +363,21 @@ protected HttpJsonInterconnectAttachmentStub(
             patchInterconnectAttachmentTransportSettings,
             settings.patchInterconnectAttachmentSettings(),
             clientContext);
+    this.patchInterconnectAttachmentOperationCallable =
+        callableFactory.createOperationCallable(
+            patchInterconnectAttachmentTransportSettings,
+            settings.patchInterconnectAttachmentOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
   @BetaApi
   public UnaryCallable<
           AggregatedListInterconnectAttachmentsHttpRequest,
@@ -357,6 +393,12 @@ protected HttpJsonInterconnectAttachmentStub(
     return aggregatedListInterconnectAttachmentsCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteInterconnectAttachmentOperationCallable() {
+    return deleteInterconnectAttachmentOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       deleteInterconnectAttachmentCallable() {
@@ -369,6 +411,12 @@ protected HttpJsonInterconnectAttachmentStub(
     return getInterconnectAttachmentCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertInterconnectAttachmentOperationCallable() {
+    return insertInterconnectAttachmentOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       insertInterconnectAttachmentCallable() {
@@ -388,6 +436,12 @@ protected HttpJsonInterconnectAttachmentStub(
     return listInterconnectAttachmentsCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchInterconnectAttachmentOperationCallable() {
+    return patchInterconnectAttachmentOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       patchInterconnectAttachmentCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectCallableFactory.java
index 005b9bc35e25..8eada0d1b15c 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonInterconnectCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonInterconnectCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectLocationCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectLocationCallableFactory.java
index 8b8bdc9a3f46..56c57425b350 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectLocationCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectLocationCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonInterconnectLocationCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonInterconnectLocationCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectStub.java
index a3b8c7c66fea..e1beea4ef75c 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.DeleteInterconnectHttpRequest;
@@ -180,18 +182,25 @@ public class HttpJsonInterconnectStub extends InterconnectStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable deleteInterconnectCallable;
+  private final OperationCallable
+      deleteInterconnectOperationCallable;
   private final UnaryCallable getInterconnectCallable;
   private final UnaryCallable<
           GetDiagnosticsInterconnectHttpRequest, InterconnectsGetDiagnosticsResponse>
       getDiagnosticsInterconnectCallable;
   private final UnaryCallable insertInterconnectCallable;
+  private final OperationCallable
+      insertInterconnectOperationCallable;
   private final UnaryCallable
       listInterconnectsCallable;
   private final UnaryCallable
       listInterconnectsPagedCallable;
   private final UnaryCallable patchInterconnectCallable;
+  private final OperationCallable
+      patchInterconnectOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -233,6 +242,7 @@ protected HttpJsonInterconnectStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         deleteInterconnectTransportSettings =
@@ -272,6 +282,12 @@ protected HttpJsonInterconnectStub(
             deleteInterconnectTransportSettings,
             settings.deleteInterconnectSettings(),
             clientContext);
+    this.deleteInterconnectOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteInterconnectTransportSettings,
+            settings.deleteInterconnectOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getInterconnectCallable =
         callableFactory.createUnaryCallable(
             getInterconnectTransportSettings, settings.getInterconnectSettings(), clientContext);
@@ -285,6 +301,12 @@ protected HttpJsonInterconnectStub(
             insertInterconnectTransportSettings,
             settings.insertInterconnectSettings(),
             clientContext);
+    this.insertInterconnectOperationCallable =
+        callableFactory.createOperationCallable(
+            insertInterconnectTransportSettings,
+            settings.insertInterconnectOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listInterconnectsCallable =
         callableFactory.createUnaryCallable(
             listInterconnectsTransportSettings,
@@ -300,10 +322,27 @@ protected HttpJsonInterconnectStub(
             patchInterconnectTransportSettings,
             settings.patchInterconnectSettings(),
             clientContext);
+    this.patchInterconnectOperationCallable =
+        callableFactory.createOperationCallable(
+            patchInterconnectTransportSettings,
+            settings.patchInterconnectOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteInterconnectOperationCallable() {
+    return deleteInterconnectOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteInterconnectCallable() {
     return deleteInterconnectCallable;
@@ -320,6 +359,12 @@ public UnaryCallable getInterconnectCa
     return getDiagnosticsInterconnectCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertInterconnectOperationCallable() {
+    return insertInterconnectOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertInterconnectCallable() {
     return insertInterconnectCallable;
@@ -336,6 +381,12 @@ public UnaryCallable listInterco
     return listInterconnectsCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchInterconnectOperationCallable() {
+    return patchInterconnectOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable patchInterconnectCallable() {
     return patchInterconnectCallable;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCallableFactory.java
index 347d5fbe9dcd..cc5ac6e71ad2 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonLicenseCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonLicenseCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCodeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCodeCallableFactory.java
index 851adb6dc07e..f97fa4516bd8 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCodeCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCodeCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonLicenseCodeCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonLicenseCodeCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseStub.java
index 9b34a9667d73..3bf778c5524f 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.DeleteLicenseHttpRequest;
@@ -200,11 +202,16 @@ public class HttpJsonLicenseStub extends LicenseStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable deleteLicenseCallable;
+  private final OperationCallable
+      deleteLicenseOperationCallable;
   private final UnaryCallable getLicenseCallable;
   private final UnaryCallable getIamPolicyLicenseCallable;
   private final UnaryCallable insertLicenseCallable;
+  private final OperationCallable
+      insertLicenseOperationCallable;
   private final UnaryCallable listLicensesCallable;
   private final UnaryCallable
       listLicensesPagedCallable;
@@ -249,6 +256,7 @@ protected HttpJsonLicenseStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings deleteLicenseTransportSettings =
         HttpJsonCallSettings.newBuilder()
@@ -287,6 +295,12 @@ protected HttpJsonLicenseStub(
     this.deleteLicenseCallable =
         callableFactory.createUnaryCallable(
             deleteLicenseTransportSettings, settings.deleteLicenseSettings(), clientContext);
+    this.deleteLicenseOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteLicenseTransportSettings,
+            settings.deleteLicenseOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getLicenseCallable =
         callableFactory.createUnaryCallable(
             getLicenseTransportSettings, settings.getLicenseSettings(), clientContext);
@@ -298,6 +312,12 @@ protected HttpJsonLicenseStub(
     this.insertLicenseCallable =
         callableFactory.createUnaryCallable(
             insertLicenseTransportSettings, settings.insertLicenseSettings(), clientContext);
+    this.insertLicenseOperationCallable =
+        callableFactory.createOperationCallable(
+            insertLicenseTransportSettings,
+            settings.insertLicenseOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listLicensesCallable =
         callableFactory.createUnaryCallable(
             listLicensesTransportSettings, settings.listLicensesSettings(), clientContext);
@@ -318,6 +338,17 @@ protected HttpJsonLicenseStub(
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteLicenseOperationCallable() {
+    return deleteLicenseOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteLicenseCallable() {
     return deleteLicenseCallable;
@@ -333,6 +364,12 @@ public UnaryCallable getIamPolicyLicense
     return getIamPolicyLicenseCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertLicenseOperationCallable() {
+    return insertLicenseOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertLicenseCallable() {
     return insertLicenseCallable;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonMachineTypeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonMachineTypeCallableFactory.java
index cdbb974f6936..640874bad796 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonMachineTypeCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonMachineTypeCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonMachineTypeCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonMachineTypeCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkCallableFactory.java
index bf5a46c9941c..69e0b2933f3d 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonNetworkCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonNetworkCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkStub.java
index 33d352747e58..bbedb06a65d2 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.AddPeeringNetworkHttpRequest;
@@ -215,19 +217,32 @@ public class HttpJsonNetworkStub extends NetworkStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable addPeeringNetworkCallable;
+  private final OperationCallable
+      addPeeringNetworkOperationCallable;
   private final UnaryCallable deleteNetworkCallable;
+  private final OperationCallable
+      deleteNetworkOperationCallable;
   private final UnaryCallable getNetworkCallable;
   private final UnaryCallable insertNetworkCallable;
+  private final OperationCallable
+      insertNetworkOperationCallable;
   private final UnaryCallable listNetworksCallable;
   private final UnaryCallable
       listNetworksPagedCallable;
   private final UnaryCallable patchNetworkCallable;
+  private final OperationCallable
+      patchNetworkOperationCallable;
   private final UnaryCallable
       removePeeringNetworkCallable;
+  private final OperationCallable
+      removePeeringNetworkOperationCallable;
   private final UnaryCallable
       switchToCustomModeNetworkCallable;
+  private final OperationCallable
+      switchToCustomModeNetworkOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -266,6 +281,7 @@ protected HttpJsonNetworkStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         addPeeringNetworkTransportSettings =
@@ -308,15 +324,33 @@ protected HttpJsonNetworkStub(
             addPeeringNetworkTransportSettings,
             settings.addPeeringNetworkSettings(),
             clientContext);
+    this.addPeeringNetworkOperationCallable =
+        callableFactory.createOperationCallable(
+            addPeeringNetworkTransportSettings,
+            settings.addPeeringNetworkOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.deleteNetworkCallable =
         callableFactory.createUnaryCallable(
             deleteNetworkTransportSettings, settings.deleteNetworkSettings(), clientContext);
+    this.deleteNetworkOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteNetworkTransportSettings,
+            settings.deleteNetworkOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getNetworkCallable =
         callableFactory.createUnaryCallable(
             getNetworkTransportSettings, settings.getNetworkSettings(), clientContext);
     this.insertNetworkCallable =
         callableFactory.createUnaryCallable(
             insertNetworkTransportSettings, settings.insertNetworkSettings(), clientContext);
+    this.insertNetworkOperationCallable =
+        callableFactory.createOperationCallable(
+            insertNetworkTransportSettings,
+            settings.insertNetworkOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listNetworksCallable =
         callableFactory.createUnaryCallable(
             listNetworksTransportSettings, settings.listNetworksSettings(), clientContext);
@@ -326,25 +360,60 @@ protected HttpJsonNetworkStub(
     this.patchNetworkCallable =
         callableFactory.createUnaryCallable(
             patchNetworkTransportSettings, settings.patchNetworkSettings(), clientContext);
+    this.patchNetworkOperationCallable =
+        callableFactory.createOperationCallable(
+            patchNetworkTransportSettings,
+            settings.patchNetworkOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.removePeeringNetworkCallable =
         callableFactory.createUnaryCallable(
             removePeeringNetworkTransportSettings,
             settings.removePeeringNetworkSettings(),
             clientContext);
+    this.removePeeringNetworkOperationCallable =
+        callableFactory.createOperationCallable(
+            removePeeringNetworkTransportSettings,
+            settings.removePeeringNetworkOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.switchToCustomModeNetworkCallable =
         callableFactory.createUnaryCallable(
             switchToCustomModeNetworkTransportSettings,
             settings.switchToCustomModeNetworkSettings(),
             clientContext);
+    this.switchToCustomModeNetworkOperationCallable =
+        callableFactory.createOperationCallable(
+            switchToCustomModeNetworkTransportSettings,
+            settings.switchToCustomModeNetworkOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      addPeeringNetworkOperationCallable() {
+    return addPeeringNetworkOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable addPeeringNetworkCallable() {
     return addPeeringNetworkCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteNetworkOperationCallable() {
+    return deleteNetworkOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteNetworkCallable() {
     return deleteNetworkCallable;
@@ -355,6 +424,12 @@ public UnaryCallable getNetworkCallable() {
     return getNetworkCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertNetworkOperationCallable() {
+    return insertNetworkOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertNetworkCallable() {
     return insertNetworkCallable;
@@ -371,16 +446,34 @@ public UnaryCallable listNetworksCallable(
     return listNetworksCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchNetworkOperationCallable() {
+    return patchNetworkOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable patchNetworkCallable() {
     return patchNetworkCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      removePeeringNetworkOperationCallable() {
+    return removePeeringNetworkOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable removePeeringNetworkCallable() {
     return removePeeringNetworkCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      switchToCustomModeNetworkOperationCallable() {
+    return switchToCustomModeNetworkOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       switchToCustomModeNetworkCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupCallableFactory.java
index f13957c45b0c..d0e47d38d74f 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonNodeGroupCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonNodeGroupCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupStub.java
index 69e6cabc81d9..98974e880cde 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupStub.java
@@ -27,9 +27,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.AddNodesNodeGroupHttpRequest;
@@ -322,20 +324,29 @@ public class HttpJsonNodeGroupStub extends NodeGroupStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable addNodesNodeGroupCallable;
+  private final OperationCallable
+      addNodesNodeGroupOperationCallable;
   private final UnaryCallable
       aggregatedListNodeGroupsCallable;
   private final UnaryCallable<
           AggregatedListNodeGroupsHttpRequest, AggregatedListNodeGroupsPagedResponse>
       aggregatedListNodeGroupsPagedCallable;
   private final UnaryCallable deleteNodeGroupCallable;
+  private final OperationCallable
+      deleteNodeGroupOperationCallable;
   private final UnaryCallable
       deleteNodesNodeGroupCallable;
+  private final OperationCallable
+      deleteNodesNodeGroupOperationCallable;
   private final UnaryCallable getNodeGroupCallable;
   private final UnaryCallable
       getIamPolicyNodeGroupCallable;
   private final UnaryCallable insertNodeGroupCallable;
+  private final OperationCallable
+      insertNodeGroupOperationCallable;
   private final UnaryCallable listNodeGroupsCallable;
   private final UnaryCallable
       listNodeGroupsPagedCallable;
@@ -347,6 +358,8 @@ public class HttpJsonNodeGroupStub extends NodeGroupStub {
       setIamPolicyNodeGroupCallable;
   private final UnaryCallable
       setNodeTemplateNodeGroupCallable;
+  private final OperationCallable
+      setNodeTemplateNodeGroupOperationCallable;
   private final UnaryCallable
       testIamPermissionsNodeGroupCallable;
 
@@ -388,6 +401,7 @@ protected HttpJsonNodeGroupStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         addNodesNodeGroupTransportSettings =
@@ -453,6 +467,12 @@ protected HttpJsonNodeGroupStub(
             addNodesNodeGroupTransportSettings,
             settings.addNodesNodeGroupSettings(),
             clientContext);
+    this.addNodesNodeGroupOperationCallable =
+        callableFactory.createOperationCallable(
+            addNodesNodeGroupTransportSettings,
+            settings.addNodesNodeGroupOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.aggregatedListNodeGroupsCallable =
         callableFactory.createUnaryCallable(
             aggregatedListNodeGroupsTransportSettings,
@@ -466,11 +486,23 @@ protected HttpJsonNodeGroupStub(
     this.deleteNodeGroupCallable =
         callableFactory.createUnaryCallable(
             deleteNodeGroupTransportSettings, settings.deleteNodeGroupSettings(), clientContext);
+    this.deleteNodeGroupOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteNodeGroupTransportSettings,
+            settings.deleteNodeGroupOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.deleteNodesNodeGroupCallable =
         callableFactory.createUnaryCallable(
             deleteNodesNodeGroupTransportSettings,
             settings.deleteNodesNodeGroupSettings(),
             clientContext);
+    this.deleteNodesNodeGroupOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteNodesNodeGroupTransportSettings,
+            settings.deleteNodesNodeGroupOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getNodeGroupCallable =
         callableFactory.createUnaryCallable(
             getNodeGroupTransportSettings, settings.getNodeGroupSettings(), clientContext);
@@ -482,6 +514,12 @@ protected HttpJsonNodeGroupStub(
     this.insertNodeGroupCallable =
         callableFactory.createUnaryCallable(
             insertNodeGroupTransportSettings, settings.insertNodeGroupSettings(), clientContext);
+    this.insertNodeGroupOperationCallable =
+        callableFactory.createOperationCallable(
+            insertNodeGroupTransportSettings,
+            settings.insertNodeGroupOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listNodeGroupsCallable =
         callableFactory.createUnaryCallable(
             listNodeGroupsTransportSettings, settings.listNodeGroupsSettings(), clientContext);
@@ -508,6 +546,12 @@ protected HttpJsonNodeGroupStub(
             setNodeTemplateNodeGroupTransportSettings,
             settings.setNodeTemplateNodeGroupSettings(),
             clientContext);
+    this.setNodeTemplateNodeGroupOperationCallable =
+        callableFactory.createOperationCallable(
+            setNodeTemplateNodeGroupTransportSettings,
+            settings.setNodeTemplateNodeGroupOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.testIamPermissionsNodeGroupCallable =
         callableFactory.createUnaryCallable(
             testIamPermissionsNodeGroupTransportSettings,
@@ -517,6 +561,17 @@ protected HttpJsonNodeGroupStub(
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      addNodesNodeGroupOperationCallable() {
+    return addNodesNodeGroupOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable addNodesNodeGroupCallable() {
     return addNodesNodeGroupCallable;
@@ -534,11 +589,23 @@ public UnaryCallable addNodesNodeGroupC
     return aggregatedListNodeGroupsCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteNodeGroupOperationCallable() {
+    return deleteNodeGroupOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteNodeGroupCallable() {
     return deleteNodeGroupCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteNodesNodeGroupOperationCallable() {
+    return deleteNodesNodeGroupOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteNodesNodeGroupCallable() {
     return deleteNodesNodeGroupCallable;
@@ -554,6 +621,12 @@ public UnaryCallable getIamPolicyNodeG
     return getIamPolicyNodeGroupCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertNodeGroupOperationCallable() {
+    return insertNodeGroupOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertNodeGroupCallable() {
     return insertNodeGroupCallable;
@@ -587,6 +660,12 @@ public UnaryCallable setIamPolicyNodeG
     return setIamPolicyNodeGroupCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setNodeTemplateNodeGroupOperationCallable() {
+    return setNodeTemplateNodeGroupOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setNodeTemplateNodeGroupCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateCallableFactory.java
index d1945ac2207a..3ffeed250872 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonNodeTemplateCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonNodeTemplateCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateStub.java
index fdcb15ac394b..06f788bf0250 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateStub.java
@@ -26,9 +26,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.AggregatedListNodeTemplatesHttpRequest;
@@ -236,6 +238,7 @@ public class HttpJsonNodeTemplateStub extends NodeTemplateStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       aggregatedListNodeTemplatesCallable;
@@ -243,10 +246,14 @@ public class HttpJsonNodeTemplateStub extends NodeTemplateStub {
           AggregatedListNodeTemplatesHttpRequest, AggregatedListNodeTemplatesPagedResponse>
       aggregatedListNodeTemplatesPagedCallable;
   private final UnaryCallable deleteNodeTemplateCallable;
+  private final OperationCallable
+      deleteNodeTemplateOperationCallable;
   private final UnaryCallable getNodeTemplateCallable;
   private final UnaryCallable
       getIamPolicyNodeTemplateCallable;
   private final UnaryCallable insertNodeTemplateCallable;
+  private final OperationCallable
+      insertNodeTemplateOperationCallable;
   private final UnaryCallable
       listNodeTemplatesCallable;
   private final UnaryCallable
@@ -296,6 +303,7 @@ protected HttpJsonNodeTemplateStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         aggregatedListNodeTemplatesTransportSettings =
@@ -355,6 +363,12 @@ protected HttpJsonNodeTemplateStub(
             deleteNodeTemplateTransportSettings,
             settings.deleteNodeTemplateSettings(),
             clientContext);
+    this.deleteNodeTemplateOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteNodeTemplateTransportSettings,
+            settings.deleteNodeTemplateOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getNodeTemplateCallable =
         callableFactory.createUnaryCallable(
             getNodeTemplateTransportSettings, settings.getNodeTemplateSettings(), clientContext);
@@ -368,6 +382,12 @@ protected HttpJsonNodeTemplateStub(
             insertNodeTemplateTransportSettings,
             settings.insertNodeTemplateSettings(),
             clientContext);
+    this.insertNodeTemplateOperationCallable =
+        callableFactory.createOperationCallable(
+            insertNodeTemplateTransportSettings,
+            settings.insertNodeTemplateOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listNodeTemplatesCallable =
         callableFactory.createUnaryCallable(
             listNodeTemplatesTransportSettings,
@@ -392,6 +412,11 @@ protected HttpJsonNodeTemplateStub(
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
   @BetaApi
   public UnaryCallable<
           AggregatedListNodeTemplatesHttpRequest, AggregatedListNodeTemplatesPagedResponse>
@@ -405,6 +430,12 @@ protected HttpJsonNodeTemplateStub(
     return aggregatedListNodeTemplatesCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteNodeTemplateOperationCallable() {
+    return deleteNodeTemplateOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteNodeTemplateCallable() {
     return deleteNodeTemplateCallable;
@@ -421,6 +452,12 @@ public UnaryCallable getNodeTemplateCa
     return getIamPolicyNodeTemplateCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertNodeTemplateOperationCallable() {
+    return insertNodeTemplateOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertNodeTemplateCallable() {
     return insertNodeTemplateCallable;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTypeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTypeCallableFactory.java
index 3507770f5f95..30778663e65c 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTypeCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTypeCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonNodeTypeCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonNodeTypeCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectCallableFactory.java
index 8c4f2a3843ca..ee06ca22d9e9 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonProjectCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonProjectCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectStub.java
index 8c5ba3d6f86d..fa1cc1631045 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectStub.java
@@ -26,9 +26,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.DisableXpnHostProjectHttpRequest;
@@ -318,15 +320,24 @@ public class HttpJsonProjectStub extends ProjectStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       disableXpnHostProjectCallable;
+  private final OperationCallable
+      disableXpnHostProjectOperationCallable;
   private final UnaryCallable
       disableXpnResourceProjectCallable;
+  private final OperationCallable
+      disableXpnResourceProjectOperationCallable;
   private final UnaryCallable
       enableXpnHostProjectCallable;
+  private final OperationCallable
+      enableXpnHostProjectOperationCallable;
   private final UnaryCallable
       enableXpnResourceProjectCallable;
+  private final OperationCallable
+      enableXpnResourceProjectOperationCallable;
   private final UnaryCallable getProjectCallable;
   private final UnaryCallable getXpnHostProjectCallable;
   private final UnaryCallable
@@ -339,14 +350,27 @@ public class HttpJsonProjectStub extends ProjectStub {
   private final UnaryCallable
       listXpnHostsProjectsPagedCallable;
   private final UnaryCallable moveDiskProjectCallable;
+  private final OperationCallable
+      moveDiskProjectOperationCallable;
   private final UnaryCallable
       moveInstanceProjectCallable;
+  private final OperationCallable
+      moveInstanceProjectOperationCallable;
   private final UnaryCallable
       setCommonInstanceMetadataProjectCallable;
+  private final OperationCallable<
+          SetCommonInstanceMetadataProjectHttpRequest, EmptyMessage, EmptyMessage>
+      setCommonInstanceMetadataProjectOperationCallable;
   private final UnaryCallable
       setDefaultNetworkTierProjectCallable;
+  private final OperationCallable<
+          SetDefaultNetworkTierProjectHttpRequest, EmptyMessage, EmptyMessage>
+      setDefaultNetworkTierProjectOperationCallable;
   private final UnaryCallable
       setUsageExportBucketProjectCallable;
+  private final OperationCallable<
+          SetUsageExportBucketProjectHttpRequest, EmptyMessage, EmptyMessage>
+      setUsageExportBucketProjectOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -385,6 +409,7 @@ protected HttpJsonProjectStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         disableXpnHostProjectTransportSettings =
@@ -456,21 +481,45 @@ protected HttpJsonProjectStub(
             disableXpnHostProjectTransportSettings,
             settings.disableXpnHostProjectSettings(),
             clientContext);
+    this.disableXpnHostProjectOperationCallable =
+        callableFactory.createOperationCallable(
+            disableXpnHostProjectTransportSettings,
+            settings.disableXpnHostProjectOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.disableXpnResourceProjectCallable =
         callableFactory.createUnaryCallable(
             disableXpnResourceProjectTransportSettings,
             settings.disableXpnResourceProjectSettings(),
             clientContext);
+    this.disableXpnResourceProjectOperationCallable =
+        callableFactory.createOperationCallable(
+            disableXpnResourceProjectTransportSettings,
+            settings.disableXpnResourceProjectOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.enableXpnHostProjectCallable =
         callableFactory.createUnaryCallable(
             enableXpnHostProjectTransportSettings,
             settings.enableXpnHostProjectSettings(),
             clientContext);
+    this.enableXpnHostProjectOperationCallable =
+        callableFactory.createOperationCallable(
+            enableXpnHostProjectTransportSettings,
+            settings.enableXpnHostProjectOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.enableXpnResourceProjectCallable =
         callableFactory.createUnaryCallable(
             enableXpnResourceProjectTransportSettings,
             settings.enableXpnResourceProjectSettings(),
             clientContext);
+    this.enableXpnResourceProjectOperationCallable =
+        callableFactory.createOperationCallable(
+            enableXpnResourceProjectTransportSettings,
+            settings.enableXpnResourceProjectOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getProjectCallable =
         callableFactory.createUnaryCallable(
             getProjectTransportSettings, settings.getProjectSettings(), clientContext);
@@ -502,47 +551,106 @@ protected HttpJsonProjectStub(
     this.moveDiskProjectCallable =
         callableFactory.createUnaryCallable(
             moveDiskProjectTransportSettings, settings.moveDiskProjectSettings(), clientContext);
+    this.moveDiskProjectOperationCallable =
+        callableFactory.createOperationCallable(
+            moveDiskProjectTransportSettings,
+            settings.moveDiskProjectOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.moveInstanceProjectCallable =
         callableFactory.createUnaryCallable(
             moveInstanceProjectTransportSettings,
             settings.moveInstanceProjectSettings(),
             clientContext);
+    this.moveInstanceProjectOperationCallable =
+        callableFactory.createOperationCallable(
+            moveInstanceProjectTransportSettings,
+            settings.moveInstanceProjectOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setCommonInstanceMetadataProjectCallable =
         callableFactory.createUnaryCallable(
             setCommonInstanceMetadataProjectTransportSettings,
             settings.setCommonInstanceMetadataProjectSettings(),
             clientContext);
+    this.setCommonInstanceMetadataProjectOperationCallable =
+        callableFactory.createOperationCallable(
+            setCommonInstanceMetadataProjectTransportSettings,
+            settings.setCommonInstanceMetadataProjectOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setDefaultNetworkTierProjectCallable =
         callableFactory.createUnaryCallable(
             setDefaultNetworkTierProjectTransportSettings,
             settings.setDefaultNetworkTierProjectSettings(),
             clientContext);
+    this.setDefaultNetworkTierProjectOperationCallable =
+        callableFactory.createOperationCallable(
+            setDefaultNetworkTierProjectTransportSettings,
+            settings.setDefaultNetworkTierProjectOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setUsageExportBucketProjectCallable =
         callableFactory.createUnaryCallable(
             setUsageExportBucketProjectTransportSettings,
             settings.setUsageExportBucketProjectSettings(),
             clientContext);
+    this.setUsageExportBucketProjectOperationCallable =
+        callableFactory.createOperationCallable(
+            setUsageExportBucketProjectTransportSettings,
+            settings.setUsageExportBucketProjectOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      disableXpnHostProjectOperationCallable() {
+    return disableXpnHostProjectOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       disableXpnHostProjectCallable() {
     return disableXpnHostProjectCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      disableXpnResourceProjectOperationCallable() {
+    return disableXpnResourceProjectOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       disableXpnResourceProjectCallable() {
     return disableXpnResourceProjectCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      enableXpnHostProjectOperationCallable() {
+    return enableXpnHostProjectOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable enableXpnHostProjectCallable() {
     return enableXpnHostProjectCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      enableXpnResourceProjectOperationCallable() {
+    return enableXpnResourceProjectOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       enableXpnResourceProjectCallable() {
@@ -583,28 +691,58 @@ public UnaryCallable getXpnHostProjectCal
     return listXpnHostsProjectsCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      moveDiskProjectOperationCallable() {
+    return moveDiskProjectOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable moveDiskProjectCallable() {
     return moveDiskProjectCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      moveInstanceProjectOperationCallable() {
+    return moveInstanceProjectOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable moveInstanceProjectCallable() {
     return moveInstanceProjectCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setCommonInstanceMetadataProjectOperationCallable() {
+    return setCommonInstanceMetadataProjectOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setCommonInstanceMetadataProjectCallable() {
     return setCommonInstanceMetadataProjectCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setDefaultNetworkTierProjectOperationCallable() {
+    return setDefaultNetworkTierProjectOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setDefaultNetworkTierProjectCallable() {
     return setDefaultNetworkTierProjectCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setUsageExportBucketProjectOperationCallable() {
+    return setUsageExportBucketProjectOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setUsageExportBucketProjectCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java
index 24251b500b29..fb06a8897a69 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java
@@ -41,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonRegionAutoscalerCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonRegionAutoscalerCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -55,18 +56,21 @@ public  UnaryCallable createUnaryCalla
       "The surface for long-running operations is not stable yet and may change in the future.")
   @Override
   public 
-  OperationCallable createOperationCallable(
-      HttpJsonCallSettings
-          httpJsonCallSettings,
-      OperationCallSettings operationCallSettings,
-      ClientContext clientContext,
-      GlobalOperationStub operationsStub) {
-
-    UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable(httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
-    UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable);
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
     ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
-    OperationCallable operationCallable = Callables
-        .longRunningOperation(initialCallable, operationCallSettings, clientContext, longRunningClient);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
     return HttpJsonCallableFactory.createOperationCallable(
         operationCallSettings, clientContext, longRunningClient, initialCallable);
   }
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerStub.java
index bba45e3c6b1d..ee8924b97bd2 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.Autoscaler;
@@ -179,21 +181,30 @@ public class HttpJsonRegionAutoscalerStub extends RegionAutoscalerStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       deleteRegionAutoscalerCallable;
+  private final OperationCallable
+      deleteRegionAutoscalerOperationCallable;
   private final UnaryCallable
       getRegionAutoscalerCallable;
   private final UnaryCallable
       insertRegionAutoscalerCallable;
+  private final OperationCallable
+      insertRegionAutoscalerOperationCallable;
   private final UnaryCallable
       listRegionAutoscalersCallable;
   private final UnaryCallable
       listRegionAutoscalersPagedCallable;
   private final UnaryCallable
       patchRegionAutoscalerCallable;
+  private final OperationCallable
+      patchRegionAutoscalerOperationCallable;
   private final UnaryCallable
       updateRegionAutoscalerCallable;
+  private final OperationCallable
+      updateRegionAutoscalerOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -235,6 +246,7 @@ protected HttpJsonRegionAutoscalerStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         deleteRegionAutoscalerTransportSettings =
@@ -273,6 +285,12 @@ protected HttpJsonRegionAutoscalerStub(
             deleteRegionAutoscalerTransportSettings,
             settings.deleteRegionAutoscalerSettings(),
             clientContext);
+    this.deleteRegionAutoscalerOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteRegionAutoscalerTransportSettings,
+            settings.deleteRegionAutoscalerOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getRegionAutoscalerCallable =
         callableFactory.createUnaryCallable(
             getRegionAutoscalerTransportSettings,
@@ -283,6 +301,12 @@ protected HttpJsonRegionAutoscalerStub(
             insertRegionAutoscalerTransportSettings,
             settings.insertRegionAutoscalerSettings(),
             clientContext);
+    this.insertRegionAutoscalerOperationCallable =
+        callableFactory.createOperationCallable(
+            insertRegionAutoscalerTransportSettings,
+            settings.insertRegionAutoscalerOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listRegionAutoscalersCallable =
         callableFactory.createUnaryCallable(
             listRegionAutoscalersTransportSettings,
@@ -298,15 +322,38 @@ protected HttpJsonRegionAutoscalerStub(
             patchRegionAutoscalerTransportSettings,
             settings.patchRegionAutoscalerSettings(),
             clientContext);
+    this.patchRegionAutoscalerOperationCallable =
+        callableFactory.createOperationCallable(
+            patchRegionAutoscalerTransportSettings,
+            settings.patchRegionAutoscalerOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.updateRegionAutoscalerCallable =
         callableFactory.createUnaryCallable(
             updateRegionAutoscalerTransportSettings,
             settings.updateRegionAutoscalerSettings(),
             clientContext);
+    this.updateRegionAutoscalerOperationCallable =
+        callableFactory.createOperationCallable(
+            updateRegionAutoscalerTransportSettings,
+            settings.updateRegionAutoscalerOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteRegionAutoscalerOperationCallable() {
+    return deleteRegionAutoscalerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       deleteRegionAutoscalerCallable() {
@@ -318,6 +365,12 @@ public UnaryCallable getRegionAutosc
     return getRegionAutoscalerCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertRegionAutoscalerOperationCallable() {
+    return insertRegionAutoscalerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       insertRegionAutoscalerCallable() {
@@ -336,12 +389,24 @@ public UnaryCallable getRegionAutosc
     return listRegionAutoscalersCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchRegionAutoscalerOperationCallable() {
+    return patchRegionAutoscalerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       patchRegionAutoscalerCallable() {
     return patchRegionAutoscalerCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateRegionAutoscalerOperationCallable() {
+    return updateRegionAutoscalerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       updateRegionAutoscalerCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceCallableFactory.java
index 33b0dbe1575f..ae43f910c489 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonRegionBackendServiceCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonRegionBackendServiceCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceStub.java
index bba503ee377e..3577396bfce6 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.BackendService;
@@ -207,15 +209,20 @@ public class HttpJsonRegionBackendServiceStub extends RegionBackendServiceStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       deleteRegionBackendServiceCallable;
+  private final OperationCallable
+      deleteRegionBackendServiceOperationCallable;
   private final UnaryCallable
       getRegionBackendServiceCallable;
   private final UnaryCallable
       getHealthRegionBackendServiceCallable;
   private final UnaryCallable
       insertRegionBackendServiceCallable;
+  private final OperationCallable
+      insertRegionBackendServiceOperationCallable;
   private final UnaryCallable
       listRegionBackendServicesCallable;
   private final UnaryCallable<
@@ -223,8 +230,12 @@ public class HttpJsonRegionBackendServiceStub extends RegionBackendServiceStub {
       listRegionBackendServicesPagedCallable;
   private final UnaryCallable
       patchRegionBackendServiceCallable;
+  private final OperationCallable
+      patchRegionBackendServiceOperationCallable;
   private final UnaryCallable
       updateRegionBackendServiceCallable;
+  private final OperationCallable
+      updateRegionBackendServiceOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -266,6 +277,7 @@ protected HttpJsonRegionBackendServiceStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         deleteRegionBackendServiceTransportSettings =
@@ -310,6 +322,12 @@ protected HttpJsonRegionBackendServiceStub(
             deleteRegionBackendServiceTransportSettings,
             settings.deleteRegionBackendServiceSettings(),
             clientContext);
+    this.deleteRegionBackendServiceOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteRegionBackendServiceTransportSettings,
+            settings.deleteRegionBackendServiceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getRegionBackendServiceCallable =
         callableFactory.createUnaryCallable(
             getRegionBackendServiceTransportSettings,
@@ -325,6 +343,12 @@ protected HttpJsonRegionBackendServiceStub(
             insertRegionBackendServiceTransportSettings,
             settings.insertRegionBackendServiceSettings(),
             clientContext);
+    this.insertRegionBackendServiceOperationCallable =
+        callableFactory.createOperationCallable(
+            insertRegionBackendServiceTransportSettings,
+            settings.insertRegionBackendServiceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listRegionBackendServicesCallable =
         callableFactory.createUnaryCallable(
             listRegionBackendServicesTransportSettings,
@@ -340,15 +364,38 @@ protected HttpJsonRegionBackendServiceStub(
             patchRegionBackendServiceTransportSettings,
             settings.patchRegionBackendServiceSettings(),
             clientContext);
+    this.patchRegionBackendServiceOperationCallable =
+        callableFactory.createOperationCallable(
+            patchRegionBackendServiceTransportSettings,
+            settings.patchRegionBackendServiceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.updateRegionBackendServiceCallable =
         callableFactory.createUnaryCallable(
             updateRegionBackendServiceTransportSettings,
             settings.updateRegionBackendServiceSettings(),
             clientContext);
+    this.updateRegionBackendServiceOperationCallable =
+        callableFactory.createOperationCallable(
+            updateRegionBackendServiceTransportSettings,
+            settings.updateRegionBackendServiceOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteRegionBackendServiceOperationCallable() {
+    return deleteRegionBackendServiceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       deleteRegionBackendServiceCallable() {
@@ -367,6 +414,12 @@ protected HttpJsonRegionBackendServiceStub(
     return getHealthRegionBackendServiceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertRegionBackendServiceOperationCallable() {
+    return insertRegionBackendServiceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       insertRegionBackendServiceCallable() {
@@ -385,12 +438,24 @@ protected HttpJsonRegionBackendServiceStub(
     return listRegionBackendServicesCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchRegionBackendServiceOperationCallable() {
+    return patchRegionBackendServiceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       patchRegionBackendServiceCallable() {
     return patchRegionBackendServiceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateRegionBackendServiceOperationCallable() {
+    return updateRegionBackendServiceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       updateRegionBackendServiceCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCallableFactory.java
index a4f59c2af3b7..62f7576a7ed7 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonRegionCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonRegionCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentCallableFactory.java
index ee7033a26498..f310d480029f 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonRegionCommitmentCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonRegionCommitmentCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentStub.java
index f663e13f1027..c7dce3cb5827 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentStub.java
@@ -26,9 +26,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.AggregatedListRegionCommitmentsHttpRequest;
@@ -142,6 +144,7 @@ public class HttpJsonRegionCommitmentStub extends RegionCommitmentStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       aggregatedListRegionCommitmentsCallable;
@@ -152,6 +155,8 @@ public class HttpJsonRegionCommitmentStub extends RegionCommitmentStub {
       getRegionCommitmentCallable;
   private final UnaryCallable
       insertRegionCommitmentCallable;
+  private final OperationCallable
+      insertRegionCommitmentOperationCallable;
   private final UnaryCallable
       listRegionCommitmentsCallable;
   private final UnaryCallable
@@ -197,6 +202,7 @@ protected HttpJsonRegionCommitmentStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         aggregatedListRegionCommitmentsTransportSettings =
@@ -240,6 +246,12 @@ protected HttpJsonRegionCommitmentStub(
             insertRegionCommitmentTransportSettings,
             settings.insertRegionCommitmentSettings(),
             clientContext);
+    this.insertRegionCommitmentOperationCallable =
+        callableFactory.createOperationCallable(
+            insertRegionCommitmentTransportSettings,
+            settings.insertRegionCommitmentOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listRegionCommitmentsCallable =
         callableFactory.createUnaryCallable(
             listRegionCommitmentsTransportSettings,
@@ -254,6 +266,11 @@ protected HttpJsonRegionCommitmentStub(
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
   @BetaApi
   public UnaryCallable<
           AggregatedListRegionCommitmentsHttpRequest, AggregatedListRegionCommitmentsPagedResponse>
@@ -272,6 +289,12 @@ public UnaryCallable getRegionCommit
     return getRegionCommitmentCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertRegionCommitmentOperationCallable() {
+    return insertRegionCommitmentOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       insertRegionCommitmentCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskCallableFactory.java
index 75d069e610d5..cb9086334e74 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonRegionDiskCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonRegionDiskCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskStub.java
index 4acf4f0ca240..49384da8e552 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.CreateSnapshotRegionDiskHttpRequest;
@@ -225,18 +227,29 @@ public class HttpJsonRegionDiskStub extends RegionDiskStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       createSnapshotRegionDiskCallable;
+  private final OperationCallable
+      createSnapshotRegionDiskOperationCallable;
   private final UnaryCallable deleteRegionDiskCallable;
+  private final OperationCallable
+      deleteRegionDiskOperationCallable;
   private final UnaryCallable getRegionDiskCallable;
   private final UnaryCallable insertRegionDiskCallable;
+  private final OperationCallable
+      insertRegionDiskOperationCallable;
   private final UnaryCallable listRegionDisksCallable;
   private final UnaryCallable
       listRegionDisksPagedCallable;
   private final UnaryCallable resizeRegionDiskCallable;
+  private final OperationCallable
+      resizeRegionDiskOperationCallable;
   private final UnaryCallable
       setLabelsRegionDiskCallable;
+  private final OperationCallable
+      setLabelsRegionDiskOperationCallable;
   private final UnaryCallable
       testIamPermissionsRegionDiskCallable;
 
@@ -279,6 +292,7 @@ protected HttpJsonRegionDiskStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         createSnapshotRegionDiskTransportSettings =
@@ -322,15 +336,33 @@ protected HttpJsonRegionDiskStub(
             createSnapshotRegionDiskTransportSettings,
             settings.createSnapshotRegionDiskSettings(),
             clientContext);
+    this.createSnapshotRegionDiskOperationCallable =
+        callableFactory.createOperationCallable(
+            createSnapshotRegionDiskTransportSettings,
+            settings.createSnapshotRegionDiskOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.deleteRegionDiskCallable =
         callableFactory.createUnaryCallable(
             deleteRegionDiskTransportSettings, settings.deleteRegionDiskSettings(), clientContext);
+    this.deleteRegionDiskOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteRegionDiskTransportSettings,
+            settings.deleteRegionDiskOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getRegionDiskCallable =
         callableFactory.createUnaryCallable(
             getRegionDiskTransportSettings, settings.getRegionDiskSettings(), clientContext);
     this.insertRegionDiskCallable =
         callableFactory.createUnaryCallable(
             insertRegionDiskTransportSettings, settings.insertRegionDiskSettings(), clientContext);
+    this.insertRegionDiskOperationCallable =
+        callableFactory.createOperationCallable(
+            insertRegionDiskTransportSettings,
+            settings.insertRegionDiskOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listRegionDisksCallable =
         callableFactory.createUnaryCallable(
             listRegionDisksTransportSettings, settings.listRegionDisksSettings(), clientContext);
@@ -340,11 +372,23 @@ protected HttpJsonRegionDiskStub(
     this.resizeRegionDiskCallable =
         callableFactory.createUnaryCallable(
             resizeRegionDiskTransportSettings, settings.resizeRegionDiskSettings(), clientContext);
+    this.resizeRegionDiskOperationCallable =
+        callableFactory.createOperationCallable(
+            resizeRegionDiskTransportSettings,
+            settings.resizeRegionDiskOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setLabelsRegionDiskCallable =
         callableFactory.createUnaryCallable(
             setLabelsRegionDiskTransportSettings,
             settings.setLabelsRegionDiskSettings(),
             clientContext);
+    this.setLabelsRegionDiskOperationCallable =
+        callableFactory.createOperationCallable(
+            setLabelsRegionDiskTransportSettings,
+            settings.setLabelsRegionDiskOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.testIamPermissionsRegionDiskCallable =
         callableFactory.createUnaryCallable(
             testIamPermissionsRegionDiskTransportSettings,
@@ -354,12 +398,29 @@ protected HttpJsonRegionDiskStub(
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      createSnapshotRegionDiskOperationCallable() {
+    return createSnapshotRegionDiskOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       createSnapshotRegionDiskCallable() {
     return createSnapshotRegionDiskCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteRegionDiskOperationCallable() {
+    return deleteRegionDiskOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteRegionDiskCallable() {
     return deleteRegionDiskCallable;
@@ -370,6 +431,12 @@ public UnaryCallable getRegionDiskCallable() {
     return getRegionDiskCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertRegionDiskOperationCallable() {
+    return insertRegionDiskOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertRegionDiskCallable() {
     return insertRegionDiskCallable;
@@ -386,11 +453,23 @@ public UnaryCallable listRegionDisksCallab
     return listRegionDisksCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      resizeRegionDiskOperationCallable() {
+    return resizeRegionDiskOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable resizeRegionDiskCallable() {
     return resizeRegionDiskCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setLabelsRegionDiskOperationCallable() {
+    return setLabelsRegionDiskOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable setLabelsRegionDiskCallable() {
     return setLabelsRegionDiskCallable;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskTypeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskTypeCallableFactory.java
index 19cac958665a..b5bd4180beb2 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskTypeCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskTypeCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonRegionDiskTypeCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonRegionDiskTypeCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java
index f6cf1a937e52..be3767a0e20f 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonRegionInstanceGroupCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonRegionInstanceGroupCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerCallableFactory.java
index 1d3cc2486d7a..06907cbeb61f 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -35,7 +42,7 @@
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
 public class HttpJsonRegionInstanceGroupManagerCallableFactory
-    implements HttpJsonStubCallableFactory {
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -45,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerStub.java
index ef39cdfb0ef9..07a52b4488c3 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.AbandonInstancesRegionInstanceGroupManagerHttpRequest;
@@ -349,17 +351,30 @@ public class HttpJsonRegionInstanceGroupManagerStub extends RegionInstanceGroupM
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       abandonInstancesRegionInstanceGroupManagerCallable;
+  private final OperationCallable<
+          AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      abandonInstancesRegionInstanceGroupManagerOperationCallable;
   private final UnaryCallable
       deleteRegionInstanceGroupManagerCallable;
+  private final OperationCallable<
+          DeleteRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      deleteRegionInstanceGroupManagerOperationCallable;
   private final UnaryCallable
       deleteInstancesRegionInstanceGroupManagerCallable;
+  private final OperationCallable<
+          DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      deleteInstancesRegionInstanceGroupManagerOperationCallable;
   private final UnaryCallable
       getRegionInstanceGroupManagerCallable;
   private final UnaryCallable
       insertRegionInstanceGroupManagerCallable;
+  private final OperationCallable<
+          InsertRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      insertRegionInstanceGroupManagerOperationCallable;
   private final UnaryCallable<
           ListRegionInstanceGroupManagersHttpRequest, RegionInstanceGroupManagerList>
       listRegionInstanceGroupManagersCallable;
@@ -372,14 +387,29 @@ public class HttpJsonRegionInstanceGroupManagerStub extends RegionInstanceGroupM
       listManagedInstancesRegionInstanceGroupManagersCallable;
   private final UnaryCallable
       patchRegionInstanceGroupManagerCallable;
+  private final OperationCallable<
+          PatchRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      patchRegionInstanceGroupManagerOperationCallable;
   private final UnaryCallable
       recreateInstancesRegionInstanceGroupManagerCallable;
+  private final OperationCallable<
+          RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      recreateInstancesRegionInstanceGroupManagerOperationCallable;
   private final UnaryCallable
       resizeRegionInstanceGroupManagerCallable;
+  private final OperationCallable<
+          ResizeRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      resizeRegionInstanceGroupManagerOperationCallable;
   private final UnaryCallable
       setInstanceTemplateRegionInstanceGroupManagerCallable;
+  private final OperationCallable<
+          SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      setInstanceTemplateRegionInstanceGroupManagerOperationCallable;
   private final UnaryCallable
       setTargetPoolsRegionInstanceGroupManagerCallable;
+  private final OperationCallable<
+          SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      setTargetPoolsRegionInstanceGroupManagerOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -424,6 +454,7 @@ protected HttpJsonRegionInstanceGroupManagerStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         abandonInstancesRegionInstanceGroupManagerTransportSettings =
@@ -508,16 +539,34 @@ protected HttpJsonRegionInstanceGroupManagerStub(
             abandonInstancesRegionInstanceGroupManagerTransportSettings,
             settings.abandonInstancesRegionInstanceGroupManagerSettings(),
             clientContext);
+    this.abandonInstancesRegionInstanceGroupManagerOperationCallable =
+        callableFactory.createOperationCallable(
+            abandonInstancesRegionInstanceGroupManagerTransportSettings,
+            settings.abandonInstancesRegionInstanceGroupManagerOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.deleteRegionInstanceGroupManagerCallable =
         callableFactory.createUnaryCallable(
             deleteRegionInstanceGroupManagerTransportSettings,
             settings.deleteRegionInstanceGroupManagerSettings(),
             clientContext);
+    this.deleteRegionInstanceGroupManagerOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteRegionInstanceGroupManagerTransportSettings,
+            settings.deleteRegionInstanceGroupManagerOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.deleteInstancesRegionInstanceGroupManagerCallable =
         callableFactory.createUnaryCallable(
             deleteInstancesRegionInstanceGroupManagerTransportSettings,
             settings.deleteInstancesRegionInstanceGroupManagerSettings(),
             clientContext);
+    this.deleteInstancesRegionInstanceGroupManagerOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteInstancesRegionInstanceGroupManagerTransportSettings,
+            settings.deleteInstancesRegionInstanceGroupManagerOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getRegionInstanceGroupManagerCallable =
         callableFactory.createUnaryCallable(
             getRegionInstanceGroupManagerTransportSettings,
@@ -528,6 +577,12 @@ protected HttpJsonRegionInstanceGroupManagerStub(
             insertRegionInstanceGroupManagerTransportSettings,
             settings.insertRegionInstanceGroupManagerSettings(),
             clientContext);
+    this.insertRegionInstanceGroupManagerOperationCallable =
+        callableFactory.createOperationCallable(
+            insertRegionInstanceGroupManagerTransportSettings,
+            settings.insertRegionInstanceGroupManagerOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listRegionInstanceGroupManagersCallable =
         callableFactory.createUnaryCallable(
             listRegionInstanceGroupManagersTransportSettings,
@@ -548,42 +603,97 @@ protected HttpJsonRegionInstanceGroupManagerStub(
             patchRegionInstanceGroupManagerTransportSettings,
             settings.patchRegionInstanceGroupManagerSettings(),
             clientContext);
+    this.patchRegionInstanceGroupManagerOperationCallable =
+        callableFactory.createOperationCallable(
+            patchRegionInstanceGroupManagerTransportSettings,
+            settings.patchRegionInstanceGroupManagerOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.recreateInstancesRegionInstanceGroupManagerCallable =
         callableFactory.createUnaryCallable(
             recreateInstancesRegionInstanceGroupManagerTransportSettings,
             settings.recreateInstancesRegionInstanceGroupManagerSettings(),
             clientContext);
+    this.recreateInstancesRegionInstanceGroupManagerOperationCallable =
+        callableFactory.createOperationCallable(
+            recreateInstancesRegionInstanceGroupManagerTransportSettings,
+            settings.recreateInstancesRegionInstanceGroupManagerOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.resizeRegionInstanceGroupManagerCallable =
         callableFactory.createUnaryCallable(
             resizeRegionInstanceGroupManagerTransportSettings,
             settings.resizeRegionInstanceGroupManagerSettings(),
             clientContext);
+    this.resizeRegionInstanceGroupManagerOperationCallable =
+        callableFactory.createOperationCallable(
+            resizeRegionInstanceGroupManagerTransportSettings,
+            settings.resizeRegionInstanceGroupManagerOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setInstanceTemplateRegionInstanceGroupManagerCallable =
         callableFactory.createUnaryCallable(
             setInstanceTemplateRegionInstanceGroupManagerTransportSettings,
             settings.setInstanceTemplateRegionInstanceGroupManagerSettings(),
             clientContext);
+    this.setInstanceTemplateRegionInstanceGroupManagerOperationCallable =
+        callableFactory.createOperationCallable(
+            setInstanceTemplateRegionInstanceGroupManagerTransportSettings,
+            settings.setInstanceTemplateRegionInstanceGroupManagerOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setTargetPoolsRegionInstanceGroupManagerCallable =
         callableFactory.createUnaryCallable(
             setTargetPoolsRegionInstanceGroupManagerTransportSettings,
             settings.setTargetPoolsRegionInstanceGroupManagerSettings(),
             clientContext);
+    this.setTargetPoolsRegionInstanceGroupManagerOperationCallable =
+        callableFactory.createOperationCallable(
+            setTargetPoolsRegionInstanceGroupManagerTransportSettings,
+            settings.setTargetPoolsRegionInstanceGroupManagerOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      abandonInstancesRegionInstanceGroupManagerOperationCallable() {
+    return abandonInstancesRegionInstanceGroupManagerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       abandonInstancesRegionInstanceGroupManagerCallable() {
     return abandonInstancesRegionInstanceGroupManagerCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteRegionInstanceGroupManagerOperationCallable() {
+    return deleteRegionInstanceGroupManagerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       deleteRegionInstanceGroupManagerCallable() {
     return deleteRegionInstanceGroupManagerCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      deleteInstancesRegionInstanceGroupManagerOperationCallable() {
+    return deleteInstancesRegionInstanceGroupManagerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       deleteInstancesRegionInstanceGroupManagerCallable() {
@@ -596,6 +706,12 @@ protected HttpJsonRegionInstanceGroupManagerStub(
     return getRegionInstanceGroupManagerCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertRegionInstanceGroupManagerOperationCallable() {
+    return insertRegionInstanceGroupManagerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       insertRegionInstanceGroupManagerCallable() {
@@ -623,30 +739,63 @@ protected HttpJsonRegionInstanceGroupManagerStub(
     return listManagedInstancesRegionInstanceGroupManagersCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchRegionInstanceGroupManagerOperationCallable() {
+    return patchRegionInstanceGroupManagerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       patchRegionInstanceGroupManagerCallable() {
     return patchRegionInstanceGroupManagerCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      recreateInstancesRegionInstanceGroupManagerOperationCallable() {
+    return recreateInstancesRegionInstanceGroupManagerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       recreateInstancesRegionInstanceGroupManagerCallable() {
     return recreateInstancesRegionInstanceGroupManagerCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      resizeRegionInstanceGroupManagerOperationCallable() {
+    return resizeRegionInstanceGroupManagerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       resizeRegionInstanceGroupManagerCallable() {
     return resizeRegionInstanceGroupManagerCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      setInstanceTemplateRegionInstanceGroupManagerOperationCallable() {
+    return setInstanceTemplateRegionInstanceGroupManagerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setInstanceTemplateRegionInstanceGroupManagerCallable() {
     return setInstanceTemplateRegionInstanceGroupManagerCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      setTargetPoolsRegionInstanceGroupManagerOperationCallable() {
+    return setTargetPoolsRegionInstanceGroupManagerOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setTargetPoolsRegionInstanceGroupManagerCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupStub.java
index 6146a000a984..273c3956c035 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupStub.java
@@ -26,9 +26,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.GetRegionInstanceGroupHttpRequest;
@@ -148,6 +150,7 @@ public class HttpJsonRegionInstanceGroupStub extends RegionInstanceGroupStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       getRegionInstanceGroupCallable;
@@ -165,6 +168,9 @@ public class HttpJsonRegionInstanceGroupStub extends RegionInstanceGroupStub {
       listInstancesRegionInstanceGroupsPagedCallable;
   private final UnaryCallable
       setNamedPortsRegionInstanceGroupCallable;
+  private final OperationCallable<
+          SetNamedPortsRegionInstanceGroupHttpRequest, EmptyMessage, EmptyMessage>
+      setNamedPortsRegionInstanceGroupOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -206,6 +212,7 @@ protected HttpJsonRegionInstanceGroupStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         getRegionInstanceGroupTransportSettings =
@@ -263,10 +270,21 @@ protected HttpJsonRegionInstanceGroupStub(
             setNamedPortsRegionInstanceGroupTransportSettings,
             settings.setNamedPortsRegionInstanceGroupSettings(),
             clientContext);
+    this.setNamedPortsRegionInstanceGroupOperationCallable =
+        callableFactory.createOperationCallable(
+            setNamedPortsRegionInstanceGroupTransportSettings,
+            settings.setNamedPortsRegionInstanceGroupOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
   @BetaApi
   public UnaryCallable
       getRegionInstanceGroupCallable() {
@@ -300,6 +318,12 @@ protected HttpJsonRegionInstanceGroupStub(
     return listInstancesRegionInstanceGroupsCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setNamedPortsRegionInstanceGroupOperationCallable() {
+    return setNamedPortsRegionInstanceGroupOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setNamedPortsRegionInstanceGroupCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationCallableFactory.java
index 25091b74575e..9b6f7624990b 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonRegionOperationCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonRegionOperationCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationStub.java
index 45541f5760e3..bae7063c1049 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationStub.java
@@ -25,6 +25,7 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
@@ -52,9 +53,9 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public class HttpJsonRegionOperationStub extends RegionOperationStub {
   @InternalApi
-  public static final ApiMethodDescriptor
+  public static final ApiMethodDescriptor
       deleteRegionOperationMethodDescriptor =
-          ApiMethodDescriptor.newBuilder()
+          ApiMethodDescriptor.newBuilder()
               .setFullMethodName("compute.regionOperations.delete")
               .setHttpMethod(HttpMethods.DELETE)
               .setRequestFormatter(
@@ -109,7 +110,8 @@ public class HttpJsonRegionOperationStub extends RegionOperationStub {
 
   private final BackgroundResource backgroundResources;
 
-  private final UnaryCallable deleteRegionOperationCallable;
+  private final UnaryCallable
+      deleteRegionOperationCallable;
   private final UnaryCallable getRegionOperationCallable;
   private final UnaryCallable
       listRegionOperationsCallable;
@@ -157,9 +159,9 @@ protected HttpJsonRegionOperationStub(
       throws IOException {
     this.callableFactory = callableFactory;
 
-    HttpJsonCallSettings
+    HttpJsonCallSettings
         deleteRegionOperationTransportSettings =
-            HttpJsonCallSettings.newBuilder()
+            HttpJsonCallSettings.newBuilder()
                 .setMethodDescriptor(deleteRegionOperationMethodDescriptor)
                 .build();
     HttpJsonCallSettings
@@ -198,7 +200,8 @@ protected HttpJsonRegionOperationStub(
   }
 
   @BetaApi
-  public UnaryCallable deleteRegionOperationCallable() {
+  public UnaryCallable
+      deleteRegionOperationCallable() {
     return deleteRegionOperationCallable;
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteCallableFactory.java
index e8fa8bdb5b38..7e46f5afc414 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonRouteCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonRouteCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteStub.java
index 2fdf0bd0d5c8..39c70d90f464 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.DeleteRouteHttpRequest;
@@ -130,10 +132,15 @@ public class HttpJsonRouteStub extends RouteStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable deleteRouteCallable;
+  private final OperationCallable
+      deleteRouteOperationCallable;
   private final UnaryCallable getRouteCallable;
   private final UnaryCallable insertRouteCallable;
+  private final OperationCallable
+      insertRouteOperationCallable;
   private final UnaryCallable listRoutesCallable;
   private final UnaryCallable
       listRoutesPagedCallable;
@@ -175,6 +182,7 @@ protected HttpJsonRouteStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings deleteRouteTransportSettings =
         HttpJsonCallSettings.newBuilder()
@@ -196,12 +204,24 @@ protected HttpJsonRouteStub(
     this.deleteRouteCallable =
         callableFactory.createUnaryCallable(
             deleteRouteTransportSettings, settings.deleteRouteSettings(), clientContext);
+    this.deleteRouteOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteRouteTransportSettings,
+            settings.deleteRouteOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getRouteCallable =
         callableFactory.createUnaryCallable(
             getRouteTransportSettings, settings.getRouteSettings(), clientContext);
     this.insertRouteCallable =
         callableFactory.createUnaryCallable(
             insertRouteTransportSettings, settings.insertRouteSettings(), clientContext);
+    this.insertRouteOperationCallable =
+        callableFactory.createOperationCallable(
+            insertRouteTransportSettings,
+            settings.insertRouteOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listRoutesCallable =
         callableFactory.createUnaryCallable(
             listRoutesTransportSettings, settings.listRoutesSettings(), clientContext);
@@ -212,6 +232,17 @@ protected HttpJsonRouteStub(
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteRouteOperationCallable() {
+    return deleteRouteOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteRouteCallable() {
     return deleteRouteCallable;
@@ -222,6 +253,12 @@ public UnaryCallable getRouteCallable() {
     return getRouteCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertRouteOperationCallable() {
+    return insertRouteOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertRouteCallable() {
     return insertRouteCallable;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterCallableFactory.java
index b875a6777070..c37f3fc59ce4 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonRouterCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonRouterCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterStub.java
index 1fabc642a139..b76f44769067 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterStub.java
@@ -27,9 +27,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.AggregatedListRoutersHttpRequest;
@@ -271,12 +273,15 @@ public class HttpJsonRouterStub extends RouterStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       aggregatedListRoutersCallable;
   private final UnaryCallable
       aggregatedListRoutersPagedCallable;
   private final UnaryCallable deleteRouterCallable;
+  private final OperationCallable
+      deleteRouterOperationCallable;
   private final UnaryCallable getRouterCallable;
   private final UnaryCallable
       getNatMappingInfoRoutersCallable;
@@ -286,13 +291,19 @@ public class HttpJsonRouterStub extends RouterStub {
   private final UnaryCallable
       getRouterStatusRouterCallable;
   private final UnaryCallable insertRouterCallable;
+  private final OperationCallable
+      insertRouterOperationCallable;
   private final UnaryCallable listRoutersCallable;
   private final UnaryCallable
       listRoutersPagedCallable;
   private final UnaryCallable patchRouterCallable;
+  private final OperationCallable
+      patchRouterOperationCallable;
   private final UnaryCallable
       previewRouterCallable;
   private final UnaryCallable updateRouterCallable;
+  private final OperationCallable
+      updateRouterOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -331,6 +342,7 @@ protected HttpJsonRouterStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         aggregatedListRoutersTransportSettings =
@@ -393,6 +405,12 @@ protected HttpJsonRouterStub(
     this.deleteRouterCallable =
         callableFactory.createUnaryCallable(
             deleteRouterTransportSettings, settings.deleteRouterSettings(), clientContext);
+    this.deleteRouterOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteRouterTransportSettings,
+            settings.deleteRouterOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getRouterCallable =
         callableFactory.createUnaryCallable(
             getRouterTransportSettings, settings.getRouterSettings(), clientContext);
@@ -414,6 +432,12 @@ protected HttpJsonRouterStub(
     this.insertRouterCallable =
         callableFactory.createUnaryCallable(
             insertRouterTransportSettings, settings.insertRouterSettings(), clientContext);
+    this.insertRouterOperationCallable =
+        callableFactory.createOperationCallable(
+            insertRouterTransportSettings,
+            settings.insertRouterOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listRoutersCallable =
         callableFactory.createUnaryCallable(
             listRoutersTransportSettings, settings.listRoutersSettings(), clientContext);
@@ -423,16 +447,33 @@ protected HttpJsonRouterStub(
     this.patchRouterCallable =
         callableFactory.createUnaryCallable(
             patchRouterTransportSettings, settings.patchRouterSettings(), clientContext);
+    this.patchRouterOperationCallable =
+        callableFactory.createOperationCallable(
+            patchRouterTransportSettings,
+            settings.patchRouterOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.previewRouterCallable =
         callableFactory.createUnaryCallable(
             previewRouterTransportSettings, settings.previewRouterSettings(), clientContext);
     this.updateRouterCallable =
         callableFactory.createUnaryCallable(
             updateRouterTransportSettings, settings.updateRouterSettings(), clientContext);
+    this.updateRouterOperationCallable =
+        callableFactory.createOperationCallable(
+            updateRouterTransportSettings,
+            settings.updateRouterOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
   @BetaApi
   public UnaryCallable
       aggregatedListRoutersPagedCallable() {
@@ -445,6 +486,12 @@ protected HttpJsonRouterStub(
     return aggregatedListRoutersCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteRouterOperationCallable() {
+    return deleteRouterOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteRouterCallable() {
     return deleteRouterCallable;
@@ -473,6 +520,12 @@ public UnaryCallable getRouterCallable() {
     return getRouterStatusRouterCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertRouterOperationCallable() {
+    return insertRouterOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertRouterCallable() {
     return insertRouterCallable;
@@ -489,6 +542,12 @@ public UnaryCallable listRoutersCallable() {
     return listRoutersCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchRouterOperationCallable() {
+    return patchRouterOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable patchRouterCallable() {
     return patchRouterCallable;
@@ -499,6 +558,12 @@ public UnaryCallable previewRo
     return previewRouterCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateRouterOperationCallable() {
+    return updateRouterOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable updateRouterCallable() {
     return updateRouterCallable;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyCallableFactory.java
index 4a93225f5329..bcafdc9004d3 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonSecurityPolicyCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonSecurityPolicyCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyStub.java
index 088e54bd8495..4e932e4ccd1c 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.AddRuleSecurityPolicyHttpRequest;
@@ -243,27 +245,40 @@ public class HttpJsonSecurityPolicyStub extends SecurityPolicyStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       addRuleSecurityPolicyCallable;
+  private final OperationCallable
+      addRuleSecurityPolicyOperationCallable;
   private final UnaryCallable
       deleteSecurityPolicyCallable;
+  private final OperationCallable
+      deleteSecurityPolicyOperationCallable;
   private final UnaryCallable
       getSecurityPolicyCallable;
   private final UnaryCallable
       getRuleSecurityPolicyCallable;
   private final UnaryCallable
       insertSecurityPolicyCallable;
+  private final OperationCallable
+      insertSecurityPolicyOperationCallable;
   private final UnaryCallable
       listSecurityPoliciesCallable;
   private final UnaryCallable
       listSecurityPoliciesPagedCallable;
   private final UnaryCallable
       patchSecurityPolicyCallable;
+  private final OperationCallable
+      patchSecurityPolicyOperationCallable;
   private final UnaryCallable
       patchRuleSecurityPolicyCallable;
+  private final OperationCallable
+      patchRuleSecurityPolicyOperationCallable;
   private final UnaryCallable
       removeRuleSecurityPolicyCallable;
+  private final OperationCallable
+      removeRuleSecurityPolicyOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -305,6 +320,7 @@ protected HttpJsonSecurityPolicyStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         addRuleSecurityPolicyTransportSettings =
@@ -357,11 +373,23 @@ protected HttpJsonSecurityPolicyStub(
             addRuleSecurityPolicyTransportSettings,
             settings.addRuleSecurityPolicySettings(),
             clientContext);
+    this.addRuleSecurityPolicyOperationCallable =
+        callableFactory.createOperationCallable(
+            addRuleSecurityPolicyTransportSettings,
+            settings.addRuleSecurityPolicyOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.deleteSecurityPolicyCallable =
         callableFactory.createUnaryCallable(
             deleteSecurityPolicyTransportSettings,
             settings.deleteSecurityPolicySettings(),
             clientContext);
+    this.deleteSecurityPolicyOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteSecurityPolicyTransportSettings,
+            settings.deleteSecurityPolicyOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getSecurityPolicyCallable =
         callableFactory.createUnaryCallable(
             getSecurityPolicyTransportSettings,
@@ -377,6 +405,12 @@ protected HttpJsonSecurityPolicyStub(
             insertSecurityPolicyTransportSettings,
             settings.insertSecurityPolicySettings(),
             clientContext);
+    this.insertSecurityPolicyOperationCallable =
+        callableFactory.createOperationCallable(
+            insertSecurityPolicyTransportSettings,
+            settings.insertSecurityPolicyOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listSecurityPoliciesCallable =
         callableFactory.createUnaryCallable(
             listSecurityPoliciesTransportSettings,
@@ -392,26 +426,61 @@ protected HttpJsonSecurityPolicyStub(
             patchSecurityPolicyTransportSettings,
             settings.patchSecurityPolicySettings(),
             clientContext);
+    this.patchSecurityPolicyOperationCallable =
+        callableFactory.createOperationCallable(
+            patchSecurityPolicyTransportSettings,
+            settings.patchSecurityPolicyOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.patchRuleSecurityPolicyCallable =
         callableFactory.createUnaryCallable(
             patchRuleSecurityPolicyTransportSettings,
             settings.patchRuleSecurityPolicySettings(),
             clientContext);
+    this.patchRuleSecurityPolicyOperationCallable =
+        callableFactory.createOperationCallable(
+            patchRuleSecurityPolicyTransportSettings,
+            settings.patchRuleSecurityPolicyOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.removeRuleSecurityPolicyCallable =
         callableFactory.createUnaryCallable(
             removeRuleSecurityPolicyTransportSettings,
             settings.removeRuleSecurityPolicySettings(),
             clientContext);
+    this.removeRuleSecurityPolicyOperationCallable =
+        callableFactory.createOperationCallable(
+            removeRuleSecurityPolicyTransportSettings,
+            settings.removeRuleSecurityPolicyOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      addRuleSecurityPolicyOperationCallable() {
+    return addRuleSecurityPolicyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       addRuleSecurityPolicyCallable() {
     return addRuleSecurityPolicyCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteSecurityPolicyOperationCallable() {
+    return deleteSecurityPolicyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteSecurityPolicyCallable() {
     return deleteSecurityPolicyCallable;
@@ -428,6 +497,12 @@ public UnaryCallable getSecurityPo
     return getRuleSecurityPolicyCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertSecurityPolicyOperationCallable() {
+    return insertSecurityPolicyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertSecurityPolicyCallable() {
     return insertSecurityPolicyCallable;
@@ -445,17 +520,35 @@ public UnaryCallable insertSecurityP
     return listSecurityPoliciesCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchSecurityPolicyOperationCallable() {
+    return patchSecurityPolicyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable patchSecurityPolicyCallable() {
     return patchSecurityPolicyCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchRuleSecurityPolicyOperationCallable() {
+    return patchRuleSecurityPolicyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       patchRuleSecurityPolicyCallable() {
     return patchRuleSecurityPolicyCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      removeRuleSecurityPolicyOperationCallable() {
+    return removeRuleSecurityPolicyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       removeRuleSecurityPolicyCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotCallableFactory.java
index 29e105d62789..2fa0db53777b 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonSnapshotCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonSnapshotCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotStub.java
index c63bdf9ec090..d7dae853e9ac 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.DeleteSnapshotHttpRequest;
@@ -201,8 +203,11 @@ public class HttpJsonSnapshotStub extends SnapshotStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable deleteSnapshotCallable;
+  private final OperationCallable
+      deleteSnapshotOperationCallable;
   private final UnaryCallable getSnapshotCallable;
   private final UnaryCallable getIamPolicySnapshotCallable;
   private final UnaryCallable listSnapshotsCallable;
@@ -210,6 +215,8 @@ public class HttpJsonSnapshotStub extends SnapshotStub {
       listSnapshotsPagedCallable;
   private final UnaryCallable setIamPolicySnapshotCallable;
   private final UnaryCallable setLabelsSnapshotCallable;
+  private final OperationCallable
+      setLabelsSnapshotOperationCallable;
   private final UnaryCallable
       testIamPermissionsSnapshotCallable;
 
@@ -251,6 +258,7 @@ protected HttpJsonSnapshotStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings deleteSnapshotTransportSettings =
         HttpJsonCallSettings.newBuilder()
@@ -289,6 +297,12 @@ protected HttpJsonSnapshotStub(
     this.deleteSnapshotCallable =
         callableFactory.createUnaryCallable(
             deleteSnapshotTransportSettings, settings.deleteSnapshotSettings(), clientContext);
+    this.deleteSnapshotOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteSnapshotTransportSettings,
+            settings.deleteSnapshotOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getSnapshotCallable =
         callableFactory.createUnaryCallable(
             getSnapshotTransportSettings, settings.getSnapshotSettings(), clientContext);
@@ -313,6 +327,12 @@ protected HttpJsonSnapshotStub(
             setLabelsSnapshotTransportSettings,
             settings.setLabelsSnapshotSettings(),
             clientContext);
+    this.setLabelsSnapshotOperationCallable =
+        callableFactory.createOperationCallable(
+            setLabelsSnapshotTransportSettings,
+            settings.setLabelsSnapshotOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.testIamPermissionsSnapshotCallable =
         callableFactory.createUnaryCallable(
             testIamPermissionsSnapshotTransportSettings,
@@ -322,6 +342,17 @@ protected HttpJsonSnapshotStub(
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteSnapshotOperationCallable() {
+    return deleteSnapshotOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteSnapshotCallable() {
     return deleteSnapshotCallable;
@@ -353,6 +384,12 @@ public UnaryCallable setIamPolicySnapsh
     return setIamPolicySnapshotCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setLabelsSnapshotOperationCallable() {
+    return setLabelsSnapshotOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable setLabelsSnapshotCallable() {
     return setLabelsSnapshotCallable;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateCallableFactory.java
index 9adb16e4921e..5b2cde444af3 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonSslCertificateCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonSslCertificateCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateStub.java
index 302473618bce..7df368749066 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.DeleteSslCertificateHttpRequest;
@@ -133,13 +135,18 @@ public class HttpJsonSslCertificateStub extends SslCertificateStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       deleteSslCertificateCallable;
+  private final OperationCallable
+      deleteSslCertificateOperationCallable;
   private final UnaryCallable
       getSslCertificateCallable;
   private final UnaryCallable
       insertSslCertificateCallable;
+  private final OperationCallable
+      insertSslCertificateOperationCallable;
   private final UnaryCallable
       listSslCertificatesCallable;
   private final UnaryCallable
@@ -185,6 +192,7 @@ protected HttpJsonSslCertificateStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         deleteSslCertificateTransportSettings =
@@ -212,6 +220,12 @@ protected HttpJsonSslCertificateStub(
             deleteSslCertificateTransportSettings,
             settings.deleteSslCertificateSettings(),
             clientContext);
+    this.deleteSslCertificateOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteSslCertificateTransportSettings,
+            settings.deleteSslCertificateOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getSslCertificateCallable =
         callableFactory.createUnaryCallable(
             getSslCertificateTransportSettings,
@@ -222,6 +236,12 @@ protected HttpJsonSslCertificateStub(
             insertSslCertificateTransportSettings,
             settings.insertSslCertificateSettings(),
             clientContext);
+    this.insertSslCertificateOperationCallable =
+        callableFactory.createOperationCallable(
+            insertSslCertificateTransportSettings,
+            settings.insertSslCertificateOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listSslCertificatesCallable =
         callableFactory.createUnaryCallable(
             listSslCertificatesTransportSettings,
@@ -236,6 +256,17 @@ protected HttpJsonSslCertificateStub(
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteSslCertificateOperationCallable() {
+    return deleteSslCertificateOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteSslCertificateCallable() {
     return deleteSslCertificateCallable;
@@ -246,6 +277,12 @@ public UnaryCallable getSslCertifi
     return getSslCertificateCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertSslCertificateOperationCallable() {
+    return insertSslCertificateOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertSslCertificateCallable() {
     return insertSslCertificateCallable;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyCallableFactory.java
index 06b68d1c85a4..45c37aaa7140 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonSslPolicyCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonSslPolicyCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyStub.java
index eb476c418106..ba4f678d09e5 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.DeleteSslPolicyHttpRequest;
@@ -184,10 +186,15 @@ public class HttpJsonSslPolicyStub extends SslPolicyStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable deleteSslPolicyCallable;
+  private final OperationCallable
+      deleteSslPolicyOperationCallable;
   private final UnaryCallable getSslPolicyCallable;
   private final UnaryCallable insertSslPolicyCallable;
+  private final OperationCallable
+      insertSslPolicyOperationCallable;
   private final UnaryCallable listSslPoliciesCallable;
   private final UnaryCallable
       listSslPoliciesPagedCallable;
@@ -195,6 +202,8 @@ public class HttpJsonSslPolicyStub extends SslPolicyStub {
           ListAvailableFeaturesSslPoliciesHttpRequest, SslPoliciesListAvailableFeaturesResponse>
       listAvailableFeaturesSslPoliciesCallable;
   private final UnaryCallable patchSslPolicyCallable;
+  private final OperationCallable
+      patchSslPolicyOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -234,6 +243,7 @@ protected HttpJsonSslPolicyStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings deleteSslPolicyTransportSettings =
         HttpJsonCallSettings.newBuilder()
@@ -269,12 +279,24 @@ protected HttpJsonSslPolicyStub(
     this.deleteSslPolicyCallable =
         callableFactory.createUnaryCallable(
             deleteSslPolicyTransportSettings, settings.deleteSslPolicySettings(), clientContext);
+    this.deleteSslPolicyOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteSslPolicyTransportSettings,
+            settings.deleteSslPolicyOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getSslPolicyCallable =
         callableFactory.createUnaryCallable(
             getSslPolicyTransportSettings, settings.getSslPolicySettings(), clientContext);
     this.insertSslPolicyCallable =
         callableFactory.createUnaryCallable(
             insertSslPolicyTransportSettings, settings.insertSslPolicySettings(), clientContext);
+    this.insertSslPolicyOperationCallable =
+        callableFactory.createOperationCallable(
+            insertSslPolicyTransportSettings,
+            settings.insertSslPolicyOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listSslPoliciesCallable =
         callableFactory.createUnaryCallable(
             listSslPoliciesTransportSettings, settings.listSslPoliciesSettings(), clientContext);
@@ -289,10 +311,27 @@ protected HttpJsonSslPolicyStub(
     this.patchSslPolicyCallable =
         callableFactory.createUnaryCallable(
             patchSslPolicyTransportSettings, settings.patchSslPolicySettings(), clientContext);
+    this.patchSslPolicyOperationCallable =
+        callableFactory.createOperationCallable(
+            patchSslPolicyTransportSettings,
+            settings.patchSslPolicyOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteSslPolicyOperationCallable() {
+    return deleteSslPolicyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteSslPolicyCallable() {
     return deleteSslPolicyCallable;
@@ -303,6 +342,12 @@ public UnaryCallable getSslPolicyCallable()
     return getSslPolicyCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertSslPolicyOperationCallable() {
+    return insertSslPolicyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertSslPolicyCallable() {
     return insertSslPolicyCallable;
@@ -326,6 +371,12 @@ public UnaryCallable listSslPolicie
     return listAvailableFeaturesSslPoliciesCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchSslPolicyOperationCallable() {
+    return patchSslPolicyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable patchSslPolicyCallable() {
     return patchSslPolicyCallable;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkCallableFactory.java
index 47d2c1a62a63..7a6fd7add656 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonSubnetworkCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonSubnetworkCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkStub.java
index 80cad7918e47..ea563667aa2f 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkStub.java
@@ -27,9 +27,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.AggregatedListSubnetworksHttpRequest;
@@ -329,6 +331,7 @@ public class HttpJsonSubnetworkStub extends SubnetworkStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       aggregatedListSubnetworksCallable;
@@ -336,12 +339,19 @@ public class HttpJsonSubnetworkStub extends SubnetworkStub {
           AggregatedListSubnetworksHttpRequest, AggregatedListSubnetworksPagedResponse>
       aggregatedListSubnetworksPagedCallable;
   private final UnaryCallable deleteSubnetworkCallable;
+  private final OperationCallable
+      deleteSubnetworkOperationCallable;
   private final UnaryCallable
       expandIpCidrRangeSubnetworkCallable;
+  private final OperationCallable<
+          ExpandIpCidrRangeSubnetworkHttpRequest, EmptyMessage, EmptyMessage>
+      expandIpCidrRangeSubnetworkOperationCallable;
   private final UnaryCallable getSubnetworkCallable;
   private final UnaryCallable
       getIamPolicySubnetworkCallable;
   private final UnaryCallable insertSubnetworkCallable;
+  private final OperationCallable
+      insertSubnetworkOperationCallable;
   private final UnaryCallable listSubnetworksCallable;
   private final UnaryCallable
       listSubnetworksPagedCallable;
@@ -350,10 +360,15 @@ public class HttpJsonSubnetworkStub extends SubnetworkStub {
   private final UnaryCallable
       listUsableSubnetworksPagedCallable;
   private final UnaryCallable patchSubnetworkCallable;
+  private final OperationCallable
+      patchSubnetworkOperationCallable;
   private final UnaryCallable
       setIamPolicySubnetworkCallable;
   private final UnaryCallable
       setPrivateIpGoogleAccessSubnetworkCallable;
+  private final OperationCallable<
+          SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, EmptyMessage>
+      setPrivateIpGoogleAccessSubnetworkOperationCallable;
   private final UnaryCallable
       testIamPermissionsSubnetworkCallable;
 
@@ -396,6 +411,7 @@ protected HttpJsonSubnetworkStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         aggregatedListSubnetworksTransportSettings =
@@ -471,11 +487,23 @@ protected HttpJsonSubnetworkStub(
     this.deleteSubnetworkCallable =
         callableFactory.createUnaryCallable(
             deleteSubnetworkTransportSettings, settings.deleteSubnetworkSettings(), clientContext);
+    this.deleteSubnetworkOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteSubnetworkTransportSettings,
+            settings.deleteSubnetworkOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.expandIpCidrRangeSubnetworkCallable =
         callableFactory.createUnaryCallable(
             expandIpCidrRangeSubnetworkTransportSettings,
             settings.expandIpCidrRangeSubnetworkSettings(),
             clientContext);
+    this.expandIpCidrRangeSubnetworkOperationCallable =
+        callableFactory.createOperationCallable(
+            expandIpCidrRangeSubnetworkTransportSettings,
+            settings.expandIpCidrRangeSubnetworkOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getSubnetworkCallable =
         callableFactory.createUnaryCallable(
             getSubnetworkTransportSettings, settings.getSubnetworkSettings(), clientContext);
@@ -487,6 +515,12 @@ protected HttpJsonSubnetworkStub(
     this.insertSubnetworkCallable =
         callableFactory.createUnaryCallable(
             insertSubnetworkTransportSettings, settings.insertSubnetworkSettings(), clientContext);
+    this.insertSubnetworkOperationCallable =
+        callableFactory.createOperationCallable(
+            insertSubnetworkTransportSettings,
+            settings.insertSubnetworkOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listSubnetworksCallable =
         callableFactory.createUnaryCallable(
             listSubnetworksTransportSettings, settings.listSubnetworksSettings(), clientContext);
@@ -506,6 +540,12 @@ protected HttpJsonSubnetworkStub(
     this.patchSubnetworkCallable =
         callableFactory.createUnaryCallable(
             patchSubnetworkTransportSettings, settings.patchSubnetworkSettings(), clientContext);
+    this.patchSubnetworkOperationCallable =
+        callableFactory.createOperationCallable(
+            patchSubnetworkTransportSettings,
+            settings.patchSubnetworkOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setIamPolicySubnetworkCallable =
         callableFactory.createUnaryCallable(
             setIamPolicySubnetworkTransportSettings,
@@ -516,6 +556,12 @@ protected HttpJsonSubnetworkStub(
             setPrivateIpGoogleAccessSubnetworkTransportSettings,
             settings.setPrivateIpGoogleAccessSubnetworkSettings(),
             clientContext);
+    this.setPrivateIpGoogleAccessSubnetworkOperationCallable =
+        callableFactory.createOperationCallable(
+            setPrivateIpGoogleAccessSubnetworkTransportSettings,
+            settings.setPrivateIpGoogleAccessSubnetworkOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.testIamPermissionsSubnetworkCallable =
         callableFactory.createUnaryCallable(
             testIamPermissionsSubnetworkTransportSettings,
@@ -525,6 +571,11 @@ protected HttpJsonSubnetworkStub(
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
   @BetaApi
   public UnaryCallable
       aggregatedListSubnetworksPagedCallable() {
@@ -537,11 +588,23 @@ protected HttpJsonSubnetworkStub(
     return aggregatedListSubnetworksCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteSubnetworkOperationCallable() {
+    return deleteSubnetworkOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteSubnetworkCallable() {
     return deleteSubnetworkCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      expandIpCidrRangeSubnetworkOperationCallable() {
+    return expandIpCidrRangeSubnetworkOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       expandIpCidrRangeSubnetworkCallable() {
@@ -558,6 +621,12 @@ public UnaryCallable getIamPolicySubn
     return getIamPolicySubnetworkCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertSubnetworkOperationCallable() {
+    return insertSubnetworkOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertSubnetworkCallable() {
     return insertSubnetworkCallable;
@@ -586,6 +655,12 @@ public UnaryCallable listSubnetworks
     return listUsableSubnetworksCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchSubnetworkOperationCallable() {
+    return patchSubnetworkOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable patchSubnetworkCallable() {
     return patchSubnetworkCallable;
@@ -596,6 +671,13 @@ public UnaryCallable setIamPolicySubn
     return setIamPolicySubnetworkCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, EmptyMessage>
+      setPrivateIpGoogleAccessSubnetworkOperationCallable() {
+    return setPrivateIpGoogleAccessSubnetworkOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setPrivateIpGoogleAccessSubnetworkCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyCallableFactory.java
index 7f5fae37970a..d3ce47672342 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonTargetHttpProxyCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonTargetHttpProxyCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyStub.java
index 44ed155a14f6..e86723b311e9 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.DeleteTargetHttpProxyHttpRequest;
@@ -158,19 +160,26 @@ public class HttpJsonTargetHttpProxyStub extends TargetHttpProxyStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       deleteTargetHttpProxyCallable;
+  private final OperationCallable
+      deleteTargetHttpProxyOperationCallable;
   private final UnaryCallable
       getTargetHttpProxyCallable;
   private final UnaryCallable
       insertTargetHttpProxyCallable;
+  private final OperationCallable
+      insertTargetHttpProxyOperationCallable;
   private final UnaryCallable
       listTargetHttpProxiesCallable;
   private final UnaryCallable
       listTargetHttpProxiesPagedCallable;
   private final UnaryCallable
       setUrlMapTargetHttpProxyCallable;
+  private final OperationCallable
+      setUrlMapTargetHttpProxyOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -212,6 +221,7 @@ protected HttpJsonTargetHttpProxyStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         deleteTargetHttpProxyTransportSettings =
@@ -244,6 +254,12 @@ protected HttpJsonTargetHttpProxyStub(
             deleteTargetHttpProxyTransportSettings,
             settings.deleteTargetHttpProxySettings(),
             clientContext);
+    this.deleteTargetHttpProxyOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteTargetHttpProxyTransportSettings,
+            settings.deleteTargetHttpProxyOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getTargetHttpProxyCallable =
         callableFactory.createUnaryCallable(
             getTargetHttpProxyTransportSettings,
@@ -254,6 +270,12 @@ protected HttpJsonTargetHttpProxyStub(
             insertTargetHttpProxyTransportSettings,
             settings.insertTargetHttpProxySettings(),
             clientContext);
+    this.insertTargetHttpProxyOperationCallable =
+        callableFactory.createOperationCallable(
+            insertTargetHttpProxyTransportSettings,
+            settings.insertTargetHttpProxyOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listTargetHttpProxiesCallable =
         callableFactory.createUnaryCallable(
             listTargetHttpProxiesTransportSettings,
@@ -269,10 +291,27 @@ protected HttpJsonTargetHttpProxyStub(
             setUrlMapTargetHttpProxyTransportSettings,
             settings.setUrlMapTargetHttpProxySettings(),
             clientContext);
+    this.setUrlMapTargetHttpProxyOperationCallable =
+        callableFactory.createOperationCallable(
+            setUrlMapTargetHttpProxyTransportSettings,
+            settings.setUrlMapTargetHttpProxyOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteTargetHttpProxyOperationCallable() {
+    return deleteTargetHttpProxyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       deleteTargetHttpProxyCallable() {
@@ -285,6 +324,12 @@ protected HttpJsonTargetHttpProxyStub(
     return getTargetHttpProxyCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertTargetHttpProxyOperationCallable() {
+    return insertTargetHttpProxyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       insertTargetHttpProxyCallable() {
@@ -303,6 +348,12 @@ protected HttpJsonTargetHttpProxyStub(
     return listTargetHttpProxiesCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setUrlMapTargetHttpProxyOperationCallable() {
+    return setUrlMapTargetHttpProxyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setUrlMapTargetHttpProxyCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyCallableFactory.java
index d1901422ed86..d7f85ead361e 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonTargetHttpsProxyCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonTargetHttpsProxyCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyStub.java
index 3fbe48b0d04c..7dff2e1eb2b6 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.DeleteTargetHttpsProxyHttpRequest;
@@ -227,13 +229,18 @@ public class HttpJsonTargetHttpsProxyStub extends TargetHttpsProxyStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       deleteTargetHttpsProxyCallable;
+  private final OperationCallable
+      deleteTargetHttpsProxyOperationCallable;
   private final UnaryCallable
       getTargetHttpsProxyCallable;
   private final UnaryCallable
       insertTargetHttpsProxyCallable;
+  private final OperationCallable
+      insertTargetHttpsProxyOperationCallable;
   private final UnaryCallable
       listTargetHttpsProxiesCallable;
   private final UnaryCallable<
@@ -241,12 +248,23 @@ public class HttpJsonTargetHttpsProxyStub extends TargetHttpsProxyStub {
       listTargetHttpsProxiesPagedCallable;
   private final UnaryCallable
       setQuicOverrideTargetHttpsProxyCallable;
+  private final OperationCallable<
+          SetQuicOverrideTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setQuicOverrideTargetHttpsProxyOperationCallable;
   private final UnaryCallable
       setSslCertificatesTargetHttpsProxyCallable;
+  private final OperationCallable<
+          SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setSslCertificatesTargetHttpsProxyOperationCallable;
   private final UnaryCallable
       setSslPolicyTargetHttpsProxyCallable;
+  private final OperationCallable<
+          SetSslPolicyTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setSslPolicyTargetHttpsProxyOperationCallable;
   private final UnaryCallable
       setUrlMapTargetHttpsProxyCallable;
+  private final OperationCallable
+      setUrlMapTargetHttpsProxyOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -288,6 +306,7 @@ protected HttpJsonTargetHttpsProxyStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         deleteTargetHttpsProxyTransportSettings =
@@ -337,6 +356,12 @@ protected HttpJsonTargetHttpsProxyStub(
             deleteTargetHttpsProxyTransportSettings,
             settings.deleteTargetHttpsProxySettings(),
             clientContext);
+    this.deleteTargetHttpsProxyOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteTargetHttpsProxyTransportSettings,
+            settings.deleteTargetHttpsProxyOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getTargetHttpsProxyCallable =
         callableFactory.createUnaryCallable(
             getTargetHttpsProxyTransportSettings,
@@ -347,6 +372,12 @@ protected HttpJsonTargetHttpsProxyStub(
             insertTargetHttpsProxyTransportSettings,
             settings.insertTargetHttpsProxySettings(),
             clientContext);
+    this.insertTargetHttpsProxyOperationCallable =
+        callableFactory.createOperationCallable(
+            insertTargetHttpsProxyTransportSettings,
+            settings.insertTargetHttpsProxyOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listTargetHttpsProxiesCallable =
         callableFactory.createUnaryCallable(
             listTargetHttpsProxiesTransportSettings,
@@ -362,25 +393,60 @@ protected HttpJsonTargetHttpsProxyStub(
             setQuicOverrideTargetHttpsProxyTransportSettings,
             settings.setQuicOverrideTargetHttpsProxySettings(),
             clientContext);
+    this.setQuicOverrideTargetHttpsProxyOperationCallable =
+        callableFactory.createOperationCallable(
+            setQuicOverrideTargetHttpsProxyTransportSettings,
+            settings.setQuicOverrideTargetHttpsProxyOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setSslCertificatesTargetHttpsProxyCallable =
         callableFactory.createUnaryCallable(
             setSslCertificatesTargetHttpsProxyTransportSettings,
             settings.setSslCertificatesTargetHttpsProxySettings(),
             clientContext);
+    this.setSslCertificatesTargetHttpsProxyOperationCallable =
+        callableFactory.createOperationCallable(
+            setSslCertificatesTargetHttpsProxyTransportSettings,
+            settings.setSslCertificatesTargetHttpsProxyOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setSslPolicyTargetHttpsProxyCallable =
         callableFactory.createUnaryCallable(
             setSslPolicyTargetHttpsProxyTransportSettings,
             settings.setSslPolicyTargetHttpsProxySettings(),
             clientContext);
+    this.setSslPolicyTargetHttpsProxyOperationCallable =
+        callableFactory.createOperationCallable(
+            setSslPolicyTargetHttpsProxyTransportSettings,
+            settings.setSslPolicyTargetHttpsProxyOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setUrlMapTargetHttpsProxyCallable =
         callableFactory.createUnaryCallable(
             setUrlMapTargetHttpsProxyTransportSettings,
             settings.setUrlMapTargetHttpsProxySettings(),
             clientContext);
+    this.setUrlMapTargetHttpsProxyOperationCallable =
+        callableFactory.createOperationCallable(
+            setUrlMapTargetHttpsProxyTransportSettings,
+            settings.setUrlMapTargetHttpsProxyOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteTargetHttpsProxyOperationCallable() {
+    return deleteTargetHttpsProxyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       deleteTargetHttpsProxyCallable() {
@@ -393,6 +459,12 @@ protected HttpJsonTargetHttpsProxyStub(
     return getTargetHttpsProxyCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertTargetHttpsProxyOperationCallable() {
+    return insertTargetHttpsProxyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       insertTargetHttpsProxyCallable() {
@@ -411,24 +483,49 @@ protected HttpJsonTargetHttpsProxyStub(
     return listTargetHttpsProxiesCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setQuicOverrideTargetHttpsProxyOperationCallable() {
+    return setQuicOverrideTargetHttpsProxyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setQuicOverrideTargetHttpsProxyCallable() {
     return setQuicOverrideTargetHttpsProxyCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setSslCertificatesTargetHttpsProxyOperationCallable() {
+    return setSslCertificatesTargetHttpsProxyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setSslCertificatesTargetHttpsProxyCallable() {
     return setSslCertificatesTargetHttpsProxyCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setSslPolicyTargetHttpsProxyOperationCallable() {
+    return setSslPolicyTargetHttpsProxyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setSslPolicyTargetHttpsProxyCallable() {
     return setSslPolicyTargetHttpsProxyCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setUrlMapTargetHttpsProxyOperationCallable() {
+    return setUrlMapTargetHttpsProxyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setUrlMapTargetHttpsProxyCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceCallableFactory.java
index f7edec6f9894..9f2f536fe7e2 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonTargetInstanceCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonTargetInstanceCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceStub.java
index 016b8839ef02..8dd7e1b6c34f 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceStub.java
@@ -26,9 +26,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.AggregatedListTargetInstancesHttpRequest;
@@ -164,6 +166,7 @@ public class HttpJsonTargetInstanceStub extends TargetInstanceStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable<
           AggregatedListTargetInstancesHttpRequest, TargetInstanceAggregatedList>
@@ -173,10 +176,14 @@ public class HttpJsonTargetInstanceStub extends TargetInstanceStub {
       aggregatedListTargetInstancesPagedCallable;
   private final UnaryCallable
       deleteTargetInstanceCallable;
+  private final OperationCallable
+      deleteTargetInstanceOperationCallable;
   private final UnaryCallable
       getTargetInstanceCallable;
   private final UnaryCallable
       insertTargetInstanceCallable;
+  private final OperationCallable
+      insertTargetInstanceOperationCallable;
   private final UnaryCallable
       listTargetInstancesCallable;
   private final UnaryCallable
@@ -222,6 +229,7 @@ protected HttpJsonTargetInstanceStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         aggregatedListTargetInstancesTransportSettings =
@@ -266,6 +274,12 @@ protected HttpJsonTargetInstanceStub(
             deleteTargetInstanceTransportSettings,
             settings.deleteTargetInstanceSettings(),
             clientContext);
+    this.deleteTargetInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteTargetInstanceTransportSettings,
+            settings.deleteTargetInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getTargetInstanceCallable =
         callableFactory.createUnaryCallable(
             getTargetInstanceTransportSettings,
@@ -276,6 +290,12 @@ protected HttpJsonTargetInstanceStub(
             insertTargetInstanceTransportSettings,
             settings.insertTargetInstanceSettings(),
             clientContext);
+    this.insertTargetInstanceOperationCallable =
+        callableFactory.createOperationCallable(
+            insertTargetInstanceTransportSettings,
+            settings.insertTargetInstanceOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listTargetInstancesCallable =
         callableFactory.createUnaryCallable(
             listTargetInstancesTransportSettings,
@@ -290,6 +310,11 @@ protected HttpJsonTargetInstanceStub(
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
   @BetaApi
   public UnaryCallable<
           AggregatedListTargetInstancesHttpRequest, AggregatedListTargetInstancesPagedResponse>
@@ -303,6 +328,12 @@ protected HttpJsonTargetInstanceStub(
     return aggregatedListTargetInstancesCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteTargetInstanceOperationCallable() {
+    return deleteTargetInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteTargetInstanceCallable() {
     return deleteTargetInstanceCallable;
@@ -313,6 +344,12 @@ public UnaryCallable getTargetInst
     return getTargetInstanceCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertTargetInstanceOperationCallable() {
+    return insertTargetInstanceOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertTargetInstanceCallable() {
     return insertTargetInstanceCallable;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolCallableFactory.java
index 5b81d1ea2886..6a529d5b4385 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonTargetPoolCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonTargetPoolCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolStub.java
index 0ff9945df4eb..898d25adf919 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolStub.java
@@ -26,9 +26,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.AddHealthCheckTargetPoolHttpRequest;
@@ -297,30 +299,46 @@ public class HttpJsonTargetPoolStub extends TargetPoolStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       addHealthCheckTargetPoolCallable;
+  private final OperationCallable
+      addHealthCheckTargetPoolOperationCallable;
   private final UnaryCallable
       addInstanceTargetPoolCallable;
+  private final OperationCallable
+      addInstanceTargetPoolOperationCallable;
   private final UnaryCallable
       aggregatedListTargetPoolsCallable;
   private final UnaryCallable<
           AggregatedListTargetPoolsHttpRequest, AggregatedListTargetPoolsPagedResponse>
       aggregatedListTargetPoolsPagedCallable;
   private final UnaryCallable deleteTargetPoolCallable;
+  private final OperationCallable
+      deleteTargetPoolOperationCallable;
   private final UnaryCallable getTargetPoolCallable;
   private final UnaryCallable
       getHealthTargetPoolCallable;
   private final UnaryCallable insertTargetPoolCallable;
+  private final OperationCallable
+      insertTargetPoolOperationCallable;
   private final UnaryCallable listTargetPoolsCallable;
   private final UnaryCallable
       listTargetPoolsPagedCallable;
   private final UnaryCallable
       removeHealthCheckTargetPoolCallable;
+  private final OperationCallable<
+          RemoveHealthCheckTargetPoolHttpRequest, EmptyMessage, EmptyMessage>
+      removeHealthCheckTargetPoolOperationCallable;
   private final UnaryCallable
       removeInstanceTargetPoolCallable;
+  private final OperationCallable
+      removeInstanceTargetPoolOperationCallable;
   private final UnaryCallable
       setBackupTargetPoolCallable;
+  private final OperationCallable
+      setBackupTargetPoolOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -361,6 +379,7 @@ protected HttpJsonTargetPoolStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         addHealthCheckTargetPoolTransportSettings =
@@ -422,11 +441,23 @@ protected HttpJsonTargetPoolStub(
             addHealthCheckTargetPoolTransportSettings,
             settings.addHealthCheckTargetPoolSettings(),
             clientContext);
+    this.addHealthCheckTargetPoolOperationCallable =
+        callableFactory.createOperationCallable(
+            addHealthCheckTargetPoolTransportSettings,
+            settings.addHealthCheckTargetPoolOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.addInstanceTargetPoolCallable =
         callableFactory.createUnaryCallable(
             addInstanceTargetPoolTransportSettings,
             settings.addInstanceTargetPoolSettings(),
             clientContext);
+    this.addInstanceTargetPoolOperationCallable =
+        callableFactory.createOperationCallable(
+            addInstanceTargetPoolTransportSettings,
+            settings.addInstanceTargetPoolOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.aggregatedListTargetPoolsCallable =
         callableFactory.createUnaryCallable(
             aggregatedListTargetPoolsTransportSettings,
@@ -440,6 +471,12 @@ protected HttpJsonTargetPoolStub(
     this.deleteTargetPoolCallable =
         callableFactory.createUnaryCallable(
             deleteTargetPoolTransportSettings, settings.deleteTargetPoolSettings(), clientContext);
+    this.deleteTargetPoolOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteTargetPoolTransportSettings,
+            settings.deleteTargetPoolOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getTargetPoolCallable =
         callableFactory.createUnaryCallable(
             getTargetPoolTransportSettings, settings.getTargetPoolSettings(), clientContext);
@@ -451,6 +488,12 @@ protected HttpJsonTargetPoolStub(
     this.insertTargetPoolCallable =
         callableFactory.createUnaryCallable(
             insertTargetPoolTransportSettings, settings.insertTargetPoolSettings(), clientContext);
+    this.insertTargetPoolOperationCallable =
+        callableFactory.createOperationCallable(
+            insertTargetPoolTransportSettings,
+            settings.insertTargetPoolOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listTargetPoolsCallable =
         callableFactory.createUnaryCallable(
             listTargetPoolsTransportSettings, settings.listTargetPoolsSettings(), clientContext);
@@ -462,26 +505,61 @@ protected HttpJsonTargetPoolStub(
             removeHealthCheckTargetPoolTransportSettings,
             settings.removeHealthCheckTargetPoolSettings(),
             clientContext);
+    this.removeHealthCheckTargetPoolOperationCallable =
+        callableFactory.createOperationCallable(
+            removeHealthCheckTargetPoolTransportSettings,
+            settings.removeHealthCheckTargetPoolOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.removeInstanceTargetPoolCallable =
         callableFactory.createUnaryCallable(
             removeInstanceTargetPoolTransportSettings,
             settings.removeInstanceTargetPoolSettings(),
             clientContext);
+    this.removeInstanceTargetPoolOperationCallable =
+        callableFactory.createOperationCallable(
+            removeInstanceTargetPoolTransportSettings,
+            settings.removeInstanceTargetPoolOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setBackupTargetPoolCallable =
         callableFactory.createUnaryCallable(
             setBackupTargetPoolTransportSettings,
             settings.setBackupTargetPoolSettings(),
             clientContext);
+    this.setBackupTargetPoolOperationCallable =
+        callableFactory.createOperationCallable(
+            setBackupTargetPoolTransportSettings,
+            settings.setBackupTargetPoolOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      addHealthCheckTargetPoolOperationCallable() {
+    return addHealthCheckTargetPoolOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       addHealthCheckTargetPoolCallable() {
     return addHealthCheckTargetPoolCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      addInstanceTargetPoolOperationCallable() {
+    return addInstanceTargetPoolOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       addInstanceTargetPoolCallable() {
@@ -500,6 +578,12 @@ protected HttpJsonTargetPoolStub(
     return aggregatedListTargetPoolsCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteTargetPoolOperationCallable() {
+    return deleteTargetPoolOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteTargetPoolCallable() {
     return deleteTargetPoolCallable;
@@ -516,6 +600,12 @@ public UnaryCallable getTargetPoolCallable
     return getHealthTargetPoolCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertTargetPoolOperationCallable() {
+    return insertTargetPoolOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertTargetPoolCallable() {
     return insertTargetPoolCallable;
@@ -532,18 +622,36 @@ public UnaryCallable listTargetPools
     return listTargetPoolsCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      removeHealthCheckTargetPoolOperationCallable() {
+    return removeHealthCheckTargetPoolOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       removeHealthCheckTargetPoolCallable() {
     return removeHealthCheckTargetPoolCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      removeInstanceTargetPoolOperationCallable() {
+    return removeInstanceTargetPoolOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       removeInstanceTargetPoolCallable() {
     return removeInstanceTargetPoolCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setBackupTargetPoolOperationCallable() {
+    return setBackupTargetPoolOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable setBackupTargetPoolCallable() {
     return setBackupTargetPoolCallable;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyCallableFactory.java
index e666655bc1c2..41a460976c75 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonTargetSslProxyCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonTargetSslProxyCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyStub.java
index 12e1ef4be84c..1e86f7e7757a 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.DeleteTargetSslProxyHttpRequest;
@@ -224,25 +226,41 @@ public class HttpJsonTargetSslProxyStub extends TargetSslProxyStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       deleteTargetSslProxyCallable;
+  private final OperationCallable
+      deleteTargetSslProxyOperationCallable;
   private final UnaryCallable
       getTargetSslProxyCallable;
   private final UnaryCallable
       insertTargetSslProxyCallable;
+  private final OperationCallable
+      insertTargetSslProxyOperationCallable;
   private final UnaryCallable
       listTargetSslProxiesCallable;
   private final UnaryCallable
       listTargetSslProxiesPagedCallable;
   private final UnaryCallable
       setBackendServiceTargetSslProxyCallable;
+  private final OperationCallable<
+          SetBackendServiceTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setBackendServiceTargetSslProxyOperationCallable;
   private final UnaryCallable
       setProxyHeaderTargetSslProxyCallable;
+  private final OperationCallable<
+          SetProxyHeaderTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setProxyHeaderTargetSslProxyOperationCallable;
   private final UnaryCallable
       setSslCertificatesTargetSslProxyCallable;
+  private final OperationCallable<
+          SetSslCertificatesTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setSslCertificatesTargetSslProxyOperationCallable;
   private final UnaryCallable
       setSslPolicyTargetSslProxyCallable;
+  private final OperationCallable
+      setSslPolicyTargetSslProxyOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -284,6 +302,7 @@ protected HttpJsonTargetSslProxyStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         deleteTargetSslProxyTransportSettings =
@@ -332,6 +351,12 @@ protected HttpJsonTargetSslProxyStub(
             deleteTargetSslProxyTransportSettings,
             settings.deleteTargetSslProxySettings(),
             clientContext);
+    this.deleteTargetSslProxyOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteTargetSslProxyTransportSettings,
+            settings.deleteTargetSslProxyOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getTargetSslProxyCallable =
         callableFactory.createUnaryCallable(
             getTargetSslProxyTransportSettings,
@@ -342,6 +367,12 @@ protected HttpJsonTargetSslProxyStub(
             insertTargetSslProxyTransportSettings,
             settings.insertTargetSslProxySettings(),
             clientContext);
+    this.insertTargetSslProxyOperationCallable =
+        callableFactory.createOperationCallable(
+            insertTargetSslProxyTransportSettings,
+            settings.insertTargetSslProxyOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listTargetSslProxiesCallable =
         callableFactory.createUnaryCallable(
             listTargetSslProxiesTransportSettings,
@@ -357,25 +388,60 @@ protected HttpJsonTargetSslProxyStub(
             setBackendServiceTargetSslProxyTransportSettings,
             settings.setBackendServiceTargetSslProxySettings(),
             clientContext);
+    this.setBackendServiceTargetSslProxyOperationCallable =
+        callableFactory.createOperationCallable(
+            setBackendServiceTargetSslProxyTransportSettings,
+            settings.setBackendServiceTargetSslProxyOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setProxyHeaderTargetSslProxyCallable =
         callableFactory.createUnaryCallable(
             setProxyHeaderTargetSslProxyTransportSettings,
             settings.setProxyHeaderTargetSslProxySettings(),
             clientContext);
+    this.setProxyHeaderTargetSslProxyOperationCallable =
+        callableFactory.createOperationCallable(
+            setProxyHeaderTargetSslProxyTransportSettings,
+            settings.setProxyHeaderTargetSslProxyOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setSslCertificatesTargetSslProxyCallable =
         callableFactory.createUnaryCallable(
             setSslCertificatesTargetSslProxyTransportSettings,
             settings.setSslCertificatesTargetSslProxySettings(),
             clientContext);
+    this.setSslCertificatesTargetSslProxyOperationCallable =
+        callableFactory.createOperationCallable(
+            setSslCertificatesTargetSslProxyTransportSettings,
+            settings.setSslCertificatesTargetSslProxyOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setSslPolicyTargetSslProxyCallable =
         callableFactory.createUnaryCallable(
             setSslPolicyTargetSslProxyTransportSettings,
             settings.setSslPolicyTargetSslProxySettings(),
             clientContext);
+    this.setSslPolicyTargetSslProxyOperationCallable =
+        callableFactory.createOperationCallable(
+            setSslPolicyTargetSslProxyTransportSettings,
+            settings.setSslPolicyTargetSslProxyOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteTargetSslProxyOperationCallable() {
+    return deleteTargetSslProxyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteTargetSslProxyCallable() {
     return deleteTargetSslProxyCallable;
@@ -386,6 +452,12 @@ public UnaryCallable getTargetSslP
     return getTargetSslProxyCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertTargetSslProxyOperationCallable() {
+    return insertTargetSslProxyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertTargetSslProxyCallable() {
     return insertTargetSslProxyCallable;
@@ -403,24 +475,48 @@ public UnaryCallable insertTargetSsl
     return listTargetSslProxiesCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setBackendServiceTargetSslProxyOperationCallable() {
+    return setBackendServiceTargetSslProxyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setBackendServiceTargetSslProxyCallable() {
     return setBackendServiceTargetSslProxyCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setProxyHeaderTargetSslProxyOperationCallable() {
+    return setProxyHeaderTargetSslProxyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setProxyHeaderTargetSslProxyCallable() {
     return setProxyHeaderTargetSslProxyCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setSslCertificatesTargetSslProxyOperationCallable() {
+    return setSslCertificatesTargetSslProxyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setSslCertificatesTargetSslProxyCallable() {
     return setSslCertificatesTargetSslProxyCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setSslPolicyTargetSslProxyOperationCallable() {
+    return setSslPolicyTargetSslProxyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setSslPolicyTargetSslProxyCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyCallableFactory.java
index f355beddcac3..c1c9880fea1f 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonTargetTcpProxyCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonTargetTcpProxyCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyStub.java
index 5fe962bde06f..c4e684760109 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.DeleteTargetTcpProxyHttpRequest;
@@ -179,21 +181,32 @@ public class HttpJsonTargetTcpProxyStub extends TargetTcpProxyStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       deleteTargetTcpProxyCallable;
+  private final OperationCallable
+      deleteTargetTcpProxyOperationCallable;
   private final UnaryCallable
       getTargetTcpProxyCallable;
   private final UnaryCallable
       insertTargetTcpProxyCallable;
+  private final OperationCallable
+      insertTargetTcpProxyOperationCallable;
   private final UnaryCallable
       listTargetTcpProxiesCallable;
   private final UnaryCallable
       listTargetTcpProxiesPagedCallable;
   private final UnaryCallable
       setBackendServiceTargetTcpProxyCallable;
+  private final OperationCallable<
+          SetBackendServiceTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setBackendServiceTargetTcpProxyOperationCallable;
   private final UnaryCallable
       setProxyHeaderTargetTcpProxyCallable;
+  private final OperationCallable<
+          SetProxyHeaderTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setProxyHeaderTargetTcpProxyOperationCallable;
 
   private final HttpJsonStubCallableFactory callableFactory;
 
@@ -235,6 +248,7 @@ protected HttpJsonTargetTcpProxyStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         deleteTargetTcpProxyTransportSettings =
@@ -272,6 +286,12 @@ protected HttpJsonTargetTcpProxyStub(
             deleteTargetTcpProxyTransportSettings,
             settings.deleteTargetTcpProxySettings(),
             clientContext);
+    this.deleteTargetTcpProxyOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteTargetTcpProxyTransportSettings,
+            settings.deleteTargetTcpProxyOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getTargetTcpProxyCallable =
         callableFactory.createUnaryCallable(
             getTargetTcpProxyTransportSettings,
@@ -282,6 +302,12 @@ protected HttpJsonTargetTcpProxyStub(
             insertTargetTcpProxyTransportSettings,
             settings.insertTargetTcpProxySettings(),
             clientContext);
+    this.insertTargetTcpProxyOperationCallable =
+        callableFactory.createOperationCallable(
+            insertTargetTcpProxyTransportSettings,
+            settings.insertTargetTcpProxyOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listTargetTcpProxiesCallable =
         callableFactory.createUnaryCallable(
             listTargetTcpProxiesTransportSettings,
@@ -297,15 +323,38 @@ protected HttpJsonTargetTcpProxyStub(
             setBackendServiceTargetTcpProxyTransportSettings,
             settings.setBackendServiceTargetTcpProxySettings(),
             clientContext);
+    this.setBackendServiceTargetTcpProxyOperationCallable =
+        callableFactory.createOperationCallable(
+            setBackendServiceTargetTcpProxyTransportSettings,
+            settings.setBackendServiceTargetTcpProxyOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.setProxyHeaderTargetTcpProxyCallable =
         callableFactory.createUnaryCallable(
             setProxyHeaderTargetTcpProxyTransportSettings,
             settings.setProxyHeaderTargetTcpProxySettings(),
             clientContext);
+    this.setProxyHeaderTargetTcpProxyOperationCallable =
+        callableFactory.createOperationCallable(
+            setProxyHeaderTargetTcpProxyTransportSettings,
+            settings.setProxyHeaderTargetTcpProxyOperationSettings(),
+            clientContext,
+            this.operationsStub);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteTargetTcpProxyOperationCallable() {
+    return deleteTargetTcpProxyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteTargetTcpProxyCallable() {
     return deleteTargetTcpProxyCallable;
@@ -316,6 +365,12 @@ public UnaryCallable getTargetTcpP
     return getTargetTcpProxyCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertTargetTcpProxyOperationCallable() {
+    return insertTargetTcpProxyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertTargetTcpProxyCallable() {
     return insertTargetTcpProxyCallable;
@@ -333,12 +388,24 @@ public UnaryCallable insertTargetTcp
     return listTargetTcpProxiesCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setBackendServiceTargetTcpProxyOperationCallable() {
+    return setBackendServiceTargetTcpProxyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setBackendServiceTargetTcpProxyCallable() {
     return setBackendServiceTargetTcpProxyCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setProxyHeaderTargetTcpProxyOperationCallable() {
+    return setProxyHeaderTargetTcpProxyOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       setProxyHeaderTargetTcpProxyCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayCallableFactory.java
index 46b4a202bd21..93a20e2f2631 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonTargetVpnGatewayCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonTargetVpnGatewayCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayStub.java
index acad41daa6da..0125641742a4 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayStub.java
@@ -26,9 +26,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysHttpRequest;
@@ -166,6 +168,7 @@ public class HttpJsonTargetVpnGatewayStub extends TargetVpnGatewayStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable<
           AggregatedListTargetVpnGatewaysHttpRequest, TargetVpnGatewayAggregatedList>
@@ -175,10 +178,14 @@ public class HttpJsonTargetVpnGatewayStub extends TargetVpnGatewayStub {
       aggregatedListTargetVpnGatewaysPagedCallable;
   private final UnaryCallable
       deleteTargetVpnGatewayCallable;
+  private final OperationCallable
+      deleteTargetVpnGatewayOperationCallable;
   private final UnaryCallable
       getTargetVpnGatewayCallable;
   private final UnaryCallable
       insertTargetVpnGatewayCallable;
+  private final OperationCallable
+      insertTargetVpnGatewayOperationCallable;
   private final UnaryCallable
       listTargetVpnGatewaysCallable;
   private final UnaryCallable
@@ -224,6 +231,7 @@ protected HttpJsonTargetVpnGatewayStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         aggregatedListTargetVpnGatewaysTransportSettings =
@@ -269,6 +277,12 @@ protected HttpJsonTargetVpnGatewayStub(
             deleteTargetVpnGatewayTransportSettings,
             settings.deleteTargetVpnGatewaySettings(),
             clientContext);
+    this.deleteTargetVpnGatewayOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteTargetVpnGatewayTransportSettings,
+            settings.deleteTargetVpnGatewayOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getTargetVpnGatewayCallable =
         callableFactory.createUnaryCallable(
             getTargetVpnGatewayTransportSettings,
@@ -279,6 +293,12 @@ protected HttpJsonTargetVpnGatewayStub(
             insertTargetVpnGatewayTransportSettings,
             settings.insertTargetVpnGatewaySettings(),
             clientContext);
+    this.insertTargetVpnGatewayOperationCallable =
+        callableFactory.createOperationCallable(
+            insertTargetVpnGatewayTransportSettings,
+            settings.insertTargetVpnGatewayOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listTargetVpnGatewaysCallable =
         callableFactory.createUnaryCallable(
             listTargetVpnGatewaysTransportSettings,
@@ -293,6 +313,11 @@ protected HttpJsonTargetVpnGatewayStub(
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
   @BetaApi
   public UnaryCallable<
           AggregatedListTargetVpnGatewaysHttpRequest, AggregatedListTargetVpnGatewaysPagedResponse>
@@ -306,6 +331,12 @@ protected HttpJsonTargetVpnGatewayStub(
     return aggregatedListTargetVpnGatewaysCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteTargetVpnGatewayOperationCallable() {
+    return deleteTargetVpnGatewayOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       deleteTargetVpnGatewayCallable() {
@@ -318,6 +349,12 @@ protected HttpJsonTargetVpnGatewayStub(
     return getTargetVpnGatewayCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertTargetVpnGatewayOperationCallable() {
+    return insertTargetVpnGatewayOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       insertTargetVpnGatewayCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapCallableFactory.java
index ab9bd4cbe8e9..5c7cc2167570 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonUrlMapCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonUrlMapCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapStub.java
index d5bbf9fa0bfb..ca8ae6181819 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapStub.java
@@ -25,9 +25,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.DeleteUrlMapHttpRequest;
@@ -213,17 +215,28 @@ public class HttpJsonUrlMapStub extends UrlMapStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable deleteUrlMapCallable;
+  private final OperationCallable
+      deleteUrlMapOperationCallable;
   private final UnaryCallable getUrlMapCallable;
   private final UnaryCallable insertUrlMapCallable;
+  private final OperationCallable
+      insertUrlMapOperationCallable;
   private final UnaryCallable
       invalidateCacheUrlMapCallable;
+  private final OperationCallable
+      invalidateCacheUrlMapOperationCallable;
   private final UnaryCallable listUrlMapsCallable;
   private final UnaryCallable
       listUrlMapsPagedCallable;
   private final UnaryCallable patchUrlMapCallable;
+  private final OperationCallable
+      patchUrlMapOperationCallable;
   private final UnaryCallable updateUrlMapCallable;
+  private final OperationCallable
+      updateUrlMapOperationCallable;
   private final UnaryCallable
       validateUrlMapCallable;
 
@@ -264,6 +277,7 @@ protected HttpJsonUrlMapStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings deleteUrlMapTransportSettings =
         HttpJsonCallSettings.newBuilder()
@@ -303,17 +317,35 @@ protected HttpJsonUrlMapStub(
     this.deleteUrlMapCallable =
         callableFactory.createUnaryCallable(
             deleteUrlMapTransportSettings, settings.deleteUrlMapSettings(), clientContext);
+    this.deleteUrlMapOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteUrlMapTransportSettings,
+            settings.deleteUrlMapOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getUrlMapCallable =
         callableFactory.createUnaryCallable(
             getUrlMapTransportSettings, settings.getUrlMapSettings(), clientContext);
     this.insertUrlMapCallable =
         callableFactory.createUnaryCallable(
             insertUrlMapTransportSettings, settings.insertUrlMapSettings(), clientContext);
+    this.insertUrlMapOperationCallable =
+        callableFactory.createOperationCallable(
+            insertUrlMapTransportSettings,
+            settings.insertUrlMapOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.invalidateCacheUrlMapCallable =
         callableFactory.createUnaryCallable(
             invalidateCacheUrlMapTransportSettings,
             settings.invalidateCacheUrlMapSettings(),
             clientContext);
+    this.invalidateCacheUrlMapOperationCallable =
+        callableFactory.createOperationCallable(
+            invalidateCacheUrlMapTransportSettings,
+            settings.invalidateCacheUrlMapOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listUrlMapsCallable =
         callableFactory.createUnaryCallable(
             listUrlMapsTransportSettings, settings.listUrlMapsSettings(), clientContext);
@@ -323,9 +355,21 @@ protected HttpJsonUrlMapStub(
     this.patchUrlMapCallable =
         callableFactory.createUnaryCallable(
             patchUrlMapTransportSettings, settings.patchUrlMapSettings(), clientContext);
+    this.patchUrlMapOperationCallable =
+        callableFactory.createOperationCallable(
+            patchUrlMapTransportSettings,
+            settings.patchUrlMapOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.updateUrlMapCallable =
         callableFactory.createUnaryCallable(
             updateUrlMapTransportSettings, settings.updateUrlMapSettings(), clientContext);
+    this.updateUrlMapOperationCallable =
+        callableFactory.createOperationCallable(
+            updateUrlMapTransportSettings,
+            settings.updateUrlMapOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.validateUrlMapCallable =
         callableFactory.createUnaryCallable(
             validateUrlMapTransportSettings, settings.validateUrlMapSettings(), clientContext);
@@ -333,6 +377,17 @@ protected HttpJsonUrlMapStub(
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteUrlMapOperationCallable() {
+    return deleteUrlMapOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteUrlMapCallable() {
     return deleteUrlMapCallable;
@@ -343,11 +398,23 @@ public UnaryCallable getUrlMapCallable() {
     return getUrlMapCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertUrlMapOperationCallable() {
+    return insertUrlMapOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertUrlMapCallable() {
     return insertUrlMapCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      invalidateCacheUrlMapOperationCallable() {
+    return invalidateCacheUrlMapOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable
       invalidateCacheUrlMapCallable() {
@@ -365,11 +432,23 @@ public UnaryCallable listUrlMapsCallable() {
     return listUrlMapsCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchUrlMapOperationCallable() {
+    return patchUrlMapOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable patchUrlMapCallable() {
     return patchUrlMapCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateUrlMapOperationCallable() {
+    return updateUrlMapOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable updateUrlMapCallable() {
     return updateUrlMapCallable;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelCallableFactory.java
index 96616805bbbe..386574ec508a 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonVpnTunnelCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonVpnTunnelCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelStub.java
index 05812a8a9ff4..1e7044ed03fa 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelStub.java
@@ -26,9 +26,11 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.api.pathtemplate.PathTemplate;
 import com.google.cloud.compute.v1.AggregatedListVpnTunnelsHttpRequest;
@@ -159,6 +161,7 @@ public class HttpJsonVpnTunnelStub extends VpnTunnelStub {
               .build();
 
   private final BackgroundResource backgroundResources;
+  private final HttpJsonGlobalOperationStub operationsStub;
 
   private final UnaryCallable
       aggregatedListVpnTunnelsCallable;
@@ -166,8 +169,12 @@ public class HttpJsonVpnTunnelStub extends VpnTunnelStub {
           AggregatedListVpnTunnelsHttpRequest, AggregatedListVpnTunnelsPagedResponse>
       aggregatedListVpnTunnelsPagedCallable;
   private final UnaryCallable deleteVpnTunnelCallable;
+  private final OperationCallable
+      deleteVpnTunnelOperationCallable;
   private final UnaryCallable getVpnTunnelCallable;
   private final UnaryCallable insertVpnTunnelCallable;
+  private final OperationCallable
+      insertVpnTunnelOperationCallable;
   private final UnaryCallable listVpnTunnelsCallable;
   private final UnaryCallable
       listVpnTunnelsPagedCallable;
@@ -210,6 +217,7 @@ protected HttpJsonVpnTunnelStub(
       HttpJsonStubCallableFactory callableFactory)
       throws IOException {
     this.callableFactory = callableFactory;
+    this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory);
 
     HttpJsonCallSettings
         aggregatedListVpnTunnelsTransportSettings =
@@ -247,12 +255,24 @@ protected HttpJsonVpnTunnelStub(
     this.deleteVpnTunnelCallable =
         callableFactory.createUnaryCallable(
             deleteVpnTunnelTransportSettings, settings.deleteVpnTunnelSettings(), clientContext);
+    this.deleteVpnTunnelOperationCallable =
+        callableFactory.createOperationCallable(
+            deleteVpnTunnelTransportSettings,
+            settings.deleteVpnTunnelOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.getVpnTunnelCallable =
         callableFactory.createUnaryCallable(
             getVpnTunnelTransportSettings, settings.getVpnTunnelSettings(), clientContext);
     this.insertVpnTunnelCallable =
         callableFactory.createUnaryCallable(
             insertVpnTunnelTransportSettings, settings.insertVpnTunnelSettings(), clientContext);
+    this.insertVpnTunnelOperationCallable =
+        callableFactory.createOperationCallable(
+            insertVpnTunnelTransportSettings,
+            settings.insertVpnTunnelOperationSettings(),
+            clientContext,
+            this.operationsStub);
     this.listVpnTunnelsCallable =
         callableFactory.createUnaryCallable(
             listVpnTunnelsTransportSettings, settings.listVpnTunnelsSettings(), clientContext);
@@ -263,6 +283,11 @@ protected HttpJsonVpnTunnelStub(
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public HttpJsonGlobalOperationStub getOperationsStub() {
+    return operationsStub;
+  }
+
   @BetaApi
   public UnaryCallable
       aggregatedListVpnTunnelsPagedCallable() {
@@ -275,6 +300,12 @@ protected HttpJsonVpnTunnelStub(
     return aggregatedListVpnTunnelsCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteVpnTunnelOperationCallable() {
+    return deleteVpnTunnelOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable deleteVpnTunnelCallable() {
     return deleteVpnTunnelCallable;
@@ -285,6 +316,12 @@ public UnaryCallable getVpnTunnelCallable()
     return getVpnTunnelCallable;
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertVpnTunnelOperationCallable() {
+    return insertVpnTunnelOperationCallable;
+  }
+
   @BetaApi
   public UnaryCallable insertVpnTunnelCallable() {
     return insertVpnTunnelCallable;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneCallableFactory.java
index c48aee25f81c..f2b59bb6a2f0 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonZoneCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonZoneCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationCallableFactory.java
index 572e3f39edba..e36d4f1fd238 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationCallableFactory.java
@@ -19,11 +19,18 @@
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonCallableFactory;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
+import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -34,7 +41,8 @@
  */
 @Generated("by gapic-generator")
 @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
-public class HttpJsonZoneOperationCallableFactory implements HttpJsonStubCallableFactory {
+public class HttpJsonZoneOperationCallableFactory
+    implements HttpJsonStubCallableFactory {
   @Override
   public  UnaryCallable createUnaryCallable(
       HttpJsonCallSettings httpJsonCallSettings,
@@ -44,6 +52,29 @@ public  UnaryCallable createUnaryCalla
         httpJsonCallSettings, callSettings, clientContext);
   }
 
+  @BetaApi(
+      "The surface for long-running operations is not stable yet and may change in the future.")
+  @Override
+  public 
+      OperationCallable createOperationCallable(
+          HttpJsonCallSettings
+              httpJsonCallSettings,
+          OperationCallSettings operationCallSettings,
+          ClientContext clientContext,
+          GlobalOperationStub operationsStub) {
+    UnaryCallable initialHttpCallable =
+        HttpJsonCallableFactory.createBaseUnaryCallable(
+            httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
+    UnaryCallable initialCallable =
+        new OperationSnapshotCallable<>(initialHttpCallable);
+    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    OperationCallable operationCallable =
+        Callables.longRunningOperation(
+            initialCallable, operationCallSettings, clientContext, longRunningClient);
+    return HttpJsonCallableFactory.createOperationCallable(
+        operationCallSettings, clientContext, longRunningClient, initialCallable);
+  }
+
   @Override
   public 
       UnaryCallable createPagedCallable(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationStub.java
index 755fa09a8df5..4cdb774c0b02 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationStub.java
@@ -25,6 +25,7 @@
 import com.google.api.gax.httpjson.ApiMessageHttpRequestFormatter;
 import com.google.api.gax.httpjson.ApiMessageHttpResponseParser;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.HttpJsonCallSettings;
 import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
 import com.google.api.gax.rpc.ClientContext;
@@ -52,9 +53,9 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public class HttpJsonZoneOperationStub extends ZoneOperationStub {
   @InternalApi
-  public static final ApiMethodDescriptor
+  public static final ApiMethodDescriptor
       deleteZoneOperationMethodDescriptor =
-          ApiMethodDescriptor.newBuilder()
+          ApiMethodDescriptor.newBuilder()
               .setFullMethodName("compute.zoneOperations.delete")
               .setHttpMethod(HttpMethods.DELETE)
               .setRequestFormatter(
@@ -109,7 +110,8 @@ public class HttpJsonZoneOperationStub extends ZoneOperationStub {
 
   private final BackgroundResource backgroundResources;
 
-  private final UnaryCallable deleteZoneOperationCallable;
+  private final UnaryCallable
+      deleteZoneOperationCallable;
   private final UnaryCallable getZoneOperationCallable;
   private final UnaryCallable
       listZoneOperationsCallable;
@@ -157,9 +159,9 @@ protected HttpJsonZoneOperationStub(
       throws IOException {
     this.callableFactory = callableFactory;
 
-    HttpJsonCallSettings
+    HttpJsonCallSettings
         deleteZoneOperationTransportSettings =
-            HttpJsonCallSettings.newBuilder()
+            HttpJsonCallSettings.newBuilder()
                 .setMethodDescriptor(deleteZoneOperationMethodDescriptor)
                 .build();
     HttpJsonCallSettings getZoneOperationTransportSettings =
@@ -195,7 +197,7 @@ protected HttpJsonZoneOperationStub(
   }
 
   @BetaApi
-  public UnaryCallable deleteZoneOperationCallable() {
+  public UnaryCallable deleteZoneOperationCallable() {
     return deleteZoneOperationCallable;
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStub.java
index c3b6218c1139..1b23858b1d91 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.DeleteHttpsHealthCheckHttpRequest;
 import com.google.cloud.compute.v1.GetHttpsHealthCheckHttpRequest;
@@ -41,6 +43,18 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class HttpsHealthCheckStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteHttpsHealthCheckOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteHttpsHealthCheckOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       deleteHttpsHealthCheckCallable() {
@@ -53,6 +67,13 @@ public abstract class HttpsHealthCheckStub implements BackgroundResource {
     throw new UnsupportedOperationException("Not implemented: getHttpsHealthCheckCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertHttpsHealthCheckOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertHttpsHealthCheckOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       insertHttpsHealthCheckCallable() {
@@ -72,12 +93,26 @@ public abstract class HttpsHealthCheckStub implements BackgroundResource {
     throw new UnsupportedOperationException("Not implemented: listHttpsHealthChecksCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchHttpsHealthCheckOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: patchHttpsHealthCheckOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       patchHttpsHealthCheckCallable() {
     throw new UnsupportedOperationException("Not implemented: patchHttpsHealthCheckCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateHttpsHealthCheckOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: updateHttpsHealthCheckOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       updateHttpsHealthCheckCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStubSettings.java
index 3dc2a7f4be90..9b9805a4ae9d 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -72,13 +77,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteHttpsHealthCheck to 30 seconds: + * example, to set the total timeout of getHttpsHealthCheck to 30 seconds: * *

  * 
  * HttpsHealthCheckStubSettings.Builder httpsHealthCheckSettingsBuilder =
  *     HttpsHealthCheckStubSettings.newBuilder();
- * httpsHealthCheckSettingsBuilder.deleteHttpsHealthCheckSettings().getRetrySettings().toBuilder()
+ * httpsHealthCheckSettingsBuilder.getHttpsHealthCheckSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * HttpsHealthCheckStubSettings httpsHealthCheckSettings = httpsHealthCheckSettingsBuilder.build();
  * 
@@ -100,10 +105,14 @@ public class HttpsHealthCheckStubSettings extends StubSettings
       deleteHttpsHealthCheckSettings;
+  private final OperationCallSettings
+      deleteHttpsHealthCheckOperationSettings;
   private final UnaryCallSettings
       getHttpsHealthCheckSettings;
   private final UnaryCallSettings
       insertHttpsHealthCheckSettings;
+  private final OperationCallSettings
+      insertHttpsHealthCheckOperationSettings;
   private final PagedCallSettings<
           ListHttpsHealthChecksHttpRequest,
           HttpsHealthCheckList,
@@ -111,8 +120,12 @@ public class HttpsHealthCheckStubSettings extends StubSettings
       patchHttpsHealthCheckSettings;
+  private final OperationCallSettings
+      patchHttpsHealthCheckOperationSettings;
   private final UnaryCallSettings
       updateHttpsHealthCheckSettings;
+  private final OperationCallSettings
+      updateHttpsHealthCheckOperationSettings;
 
   /** Returns the object with the settings used for calls to deleteHttpsHealthCheck. */
   public UnaryCallSettings
@@ -120,6 +133,13 @@ public class HttpsHealthCheckStubSettings extends StubSettings
+      deleteHttpsHealthCheckOperationSettings() {
+    return deleteHttpsHealthCheckOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getHttpsHealthCheck. */
   public UnaryCallSettings
       getHttpsHealthCheckSettings() {
@@ -132,6 +152,13 @@ public class HttpsHealthCheckStubSettings extends StubSettings
+      insertHttpsHealthCheckOperationSettings() {
+    return insertHttpsHealthCheckOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listHttpsHealthChecks. */
   public PagedCallSettings<
           ListHttpsHealthChecksHttpRequest,
@@ -147,12 +174,26 @@ public class HttpsHealthCheckStubSettings extends StubSettings
+      patchHttpsHealthCheckOperationSettings() {
+    return patchHttpsHealthCheckOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to updateHttpsHealthCheck. */
   public UnaryCallSettings
       updateHttpsHealthCheckSettings() {
     return updateHttpsHealthCheckSettings;
   }
 
+  /** Returns the object with the settings used for calls to updateHttpsHealthCheck. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateHttpsHealthCheckOperationSettings() {
+    return updateHttpsHealthCheckOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public HttpsHealthCheckStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -229,11 +270,19 @@ protected HttpsHealthCheckStubSettings(Builder settingsBuilder) throws IOExcepti
     super(settingsBuilder);
 
     deleteHttpsHealthCheckSettings = settingsBuilder.deleteHttpsHealthCheckSettings().build();
+    deleteHttpsHealthCheckOperationSettings =
+        settingsBuilder.deleteHttpsHealthCheckOperationSettings().build();
     getHttpsHealthCheckSettings = settingsBuilder.getHttpsHealthCheckSettings().build();
     insertHttpsHealthCheckSettings = settingsBuilder.insertHttpsHealthCheckSettings().build();
+    insertHttpsHealthCheckOperationSettings =
+        settingsBuilder.insertHttpsHealthCheckOperationSettings().build();
     listHttpsHealthChecksSettings = settingsBuilder.listHttpsHealthChecksSettings().build();
     patchHttpsHealthCheckSettings = settingsBuilder.patchHttpsHealthCheckSettings().build();
+    patchHttpsHealthCheckOperationSettings =
+        settingsBuilder.patchHttpsHealthCheckOperationSettings().build();
     updateHttpsHealthCheckSettings = settingsBuilder.updateHttpsHealthCheckSettings().build();
+    updateHttpsHealthCheckOperationSettings =
+        settingsBuilder.updateHttpsHealthCheckOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -309,10 +358,16 @@ public static class Builder extends StubSettings.Builder
         deleteHttpsHealthCheckSettings;
+    private final OperationCallSettings.Builder<
+            DeleteHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        deleteHttpsHealthCheckOperationSettings;
     private final UnaryCallSettings.Builder
         getHttpsHealthCheckSettings;
     private final UnaryCallSettings.Builder
         insertHttpsHealthCheckSettings;
+    private final OperationCallSettings.Builder<
+            InsertHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        insertHttpsHealthCheckOperationSettings;
     private final PagedCallSettings.Builder<
             ListHttpsHealthChecksHttpRequest,
             HttpsHealthCheckList,
@@ -320,8 +375,14 @@ public static class Builder extends StubSettings.Builder
         patchHttpsHealthCheckSettings;
+    private final OperationCallSettings.Builder<
+            PatchHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        patchHttpsHealthCheckOperationSettings;
     private final UnaryCallSettings.Builder
         updateHttpsHealthCheckSettings;
+    private final OperationCallSettings.Builder<
+            UpdateHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        updateHttpsHealthCheckOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -366,17 +427,25 @@ protected Builder(ClientContext clientContext) {
 
       deleteHttpsHealthCheckSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteHttpsHealthCheckOperationSettings = OperationCallSettings.newBuilder();
+
       getHttpsHealthCheckSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertHttpsHealthCheckSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertHttpsHealthCheckOperationSettings = OperationCallSettings.newBuilder();
+
       listHttpsHealthChecksSettings =
           PagedCallSettings.newBuilder(LIST_HTTPS_HEALTH_CHECKS_PAGE_STR_FACT);
 
       patchHttpsHealthCheckSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      patchHttpsHealthCheckOperationSettings = OperationCallSettings.newBuilder();
+
       updateHttpsHealthCheckSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      updateHttpsHealthCheckOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               deleteHttpsHealthCheckSettings,
@@ -429,6 +498,94 @@ private static Builder initDefaults(Builder builder) {
           .updateHttpsHealthCheckSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteHttpsHealthCheckOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertHttpsHealthCheckOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .patchHttpsHealthCheckOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .updateHttpsHealthCheckOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -437,11 +594,19 @@ protected Builder(HttpsHealthCheckStubSettings settings) {
       super(settings);
 
       deleteHttpsHealthCheckSettings = settings.deleteHttpsHealthCheckSettings.toBuilder();
+      deleteHttpsHealthCheckOperationSettings =
+          settings.deleteHttpsHealthCheckOperationSettings.toBuilder();
       getHttpsHealthCheckSettings = settings.getHttpsHealthCheckSettings.toBuilder();
       insertHttpsHealthCheckSettings = settings.insertHttpsHealthCheckSettings.toBuilder();
+      insertHttpsHealthCheckOperationSettings =
+          settings.insertHttpsHealthCheckOperationSettings.toBuilder();
       listHttpsHealthChecksSettings = settings.listHttpsHealthChecksSettings.toBuilder();
       patchHttpsHealthCheckSettings = settings.patchHttpsHealthCheckSettings.toBuilder();
+      patchHttpsHealthCheckOperationSettings =
+          settings.patchHttpsHealthCheckOperationSettings.toBuilder();
       updateHttpsHealthCheckSettings = settings.updateHttpsHealthCheckSettings.toBuilder();
+      updateHttpsHealthCheckOperationSettings =
+          settings.updateHttpsHealthCheckOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -475,6 +640,15 @@ public Builder applyToAllUnaryMethods(
       return deleteHttpsHealthCheckSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteHttpsHealthCheck. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        deleteHttpsHealthCheckOperationSettings() {
+      return deleteHttpsHealthCheckOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getHttpsHealthCheck. */
     public UnaryCallSettings.Builder
         getHttpsHealthCheckSettings() {
@@ -487,6 +661,15 @@ public Builder applyToAllUnaryMethods(
       return insertHttpsHealthCheckSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertHttpsHealthCheck. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        insertHttpsHealthCheckOperationSettings() {
+      return insertHttpsHealthCheckOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listHttpsHealthChecks. */
     public PagedCallSettings.Builder<
             ListHttpsHealthChecksHttpRequest,
@@ -502,12 +685,30 @@ public Builder applyToAllUnaryMethods(
       return patchHttpsHealthCheckSettings;
     }
 
+    /** Returns the builder for the settings used for calls to patchHttpsHealthCheck. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            PatchHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        patchHttpsHealthCheckOperationSettings() {
+      return patchHttpsHealthCheckOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to updateHttpsHealthCheck. */
     public UnaryCallSettings.Builder
         updateHttpsHealthCheckSettings() {
       return updateHttpsHealthCheckSettings;
     }
 
+    /** Returns the builder for the settings used for calls to updateHttpsHealthCheck. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            UpdateHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage>
+        updateHttpsHealthCheckOperationSettings() {
+      return updateHttpsHealthCheckOperationSettings;
+    }
+
     @Override
     public HttpsHealthCheckStubSettings build() throws IOException {
       return new HttpsHealthCheckStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStub.java
index d9ba6a8583a0..2bd52b44dfdf 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.DeleteImageHttpRequest;
 import com.google.cloud.compute.v1.DeprecateImageHttpRequest;
@@ -47,11 +49,28 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class ImageStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteImageOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: deleteImageOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteImageCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteImageCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deprecateImageOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: deprecateImageOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deprecateImageCallable() {
     throw new UnsupportedOperationException("Not implemented: deprecateImageCallable()");
@@ -72,6 +91,12 @@ public UnaryCallable getIamPolicyImageCall
     throw new UnsupportedOperationException("Not implemented: getIamPolicyImageCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertImageOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: insertImageOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertImageCallable() {
     throw new UnsupportedOperationException("Not implemented: insertImageCallable()");
@@ -92,6 +117,12 @@ public UnaryCallable setIamPolicyImageCall
     throw new UnsupportedOperationException("Not implemented: setIamPolicyImageCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setLabelsImageOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: setLabelsImageOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable setLabelsImageCallable() {
     throw new UnsupportedOperationException("Not implemented: setLabelsImageCallable()");
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStubSettings.java
index aa939c97d53c..4bd3ad7f8a18 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -78,13 +83,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteImage to 30 seconds: + * example, to set the total timeout of getImage to 30 seconds: * *

  * 
  * ImageStubSettings.Builder imageSettingsBuilder =
  *     ImageStubSettings.newBuilder();
- * imageSettingsBuilder.deleteImageSettings().getRetrySettings().toBuilder()
+ * imageSettingsBuilder.getImageSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * ImageStubSettings imageSettings = imageSettingsBuilder.build();
  * 
@@ -105,15 +110,23 @@ public class ImageStubSettings extends StubSettings {
           .build();
 
   private final UnaryCallSettings deleteImageSettings;
+  private final OperationCallSettings
+      deleteImageOperationSettings;
   private final UnaryCallSettings deprecateImageSettings;
+  private final OperationCallSettings
+      deprecateImageOperationSettings;
   private final UnaryCallSettings getImageSettings;
   private final UnaryCallSettings getFromFamilyImageSettings;
   private final UnaryCallSettings getIamPolicyImageSettings;
   private final UnaryCallSettings insertImageSettings;
+  private final OperationCallSettings
+      insertImageOperationSettings;
   private final PagedCallSettings
       listImagesSettings;
   private final UnaryCallSettings setIamPolicyImageSettings;
   private final UnaryCallSettings setLabelsImageSettings;
+  private final OperationCallSettings
+      setLabelsImageOperationSettings;
   private final UnaryCallSettings
       testIamPermissionsImageSettings;
 
@@ -122,11 +135,25 @@ public UnaryCallSettings deleteImageSettings(
     return deleteImageSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteImage. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteImageOperationSettings() {
+    return deleteImageOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to deprecateImage. */
   public UnaryCallSettings deprecateImageSettings() {
     return deprecateImageSettings;
   }
 
+  /** Returns the object with the settings used for calls to deprecateImage. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deprecateImageOperationSettings() {
+    return deprecateImageOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getImage. */
   public UnaryCallSettings getImageSettings() {
     return getImageSettings;
@@ -147,6 +174,13 @@ public UnaryCallSettings insertImageSettings(
     return insertImageSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertImage. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertImageOperationSettings() {
+    return insertImageOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listImages. */
   public PagedCallSettings
       listImagesSettings() {
@@ -163,6 +197,13 @@ public UnaryCallSettings setLabelsImageSet
     return setLabelsImageSettings;
   }
 
+  /** Returns the object with the settings used for calls to setLabelsImage. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setLabelsImageOperationSettings() {
+    return setLabelsImageOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to testIamPermissionsImage. */
   public UnaryCallSettings
       testIamPermissionsImageSettings() {
@@ -244,14 +285,18 @@ protected ImageStubSettings(Builder settingsBuilder) throws IOException {
     super(settingsBuilder);
 
     deleteImageSettings = settingsBuilder.deleteImageSettings().build();
+    deleteImageOperationSettings = settingsBuilder.deleteImageOperationSettings().build();
     deprecateImageSettings = settingsBuilder.deprecateImageSettings().build();
+    deprecateImageOperationSettings = settingsBuilder.deprecateImageOperationSettings().build();
     getImageSettings = settingsBuilder.getImageSettings().build();
     getFromFamilyImageSettings = settingsBuilder.getFromFamilyImageSettings().build();
     getIamPolicyImageSettings = settingsBuilder.getIamPolicyImageSettings().build();
     insertImageSettings = settingsBuilder.insertImageSettings().build();
+    insertImageOperationSettings = settingsBuilder.insertImageOperationSettings().build();
     listImagesSettings = settingsBuilder.listImagesSettings().build();
     setIamPolicyImageSettings = settingsBuilder.setIamPolicyImageSettings().build();
     setLabelsImageSettings = settingsBuilder.setLabelsImageSettings().build();
+    setLabelsImageOperationSettings = settingsBuilder.setLabelsImageOperationSettings().build();
     testIamPermissionsImageSettings = settingsBuilder.testIamPermissionsImageSettings().build();
   }
 
@@ -314,14 +359,21 @@ public static class Builder extends StubSettings.Builder> unaryMethodSettingsBuilders;
 
     private final UnaryCallSettings.Builder deleteImageSettings;
+    private final OperationCallSettings.Builder
+        deleteImageOperationSettings;
     private final UnaryCallSettings.Builder
         deprecateImageSettings;
+    private final OperationCallSettings.Builder<
+            DeprecateImageHttpRequest, EmptyMessage, EmptyMessage>
+        deprecateImageOperationSettings;
     private final UnaryCallSettings.Builder getImageSettings;
     private final UnaryCallSettings.Builder
         getFromFamilyImageSettings;
     private final UnaryCallSettings.Builder
         getIamPolicyImageSettings;
     private final UnaryCallSettings.Builder insertImageSettings;
+    private final OperationCallSettings.Builder
+        insertImageOperationSettings;
     private final PagedCallSettings.Builder<
             ListImagesHttpRequest, ImageList, ListImagesPagedResponse>
         listImagesSettings;
@@ -329,6 +381,9 @@ public static class Builder extends StubSettings.Builder
         setLabelsImageSettings;
+    private final OperationCallSettings.Builder<
+            SetLabelsImageHttpRequest, EmptyMessage, EmptyMessage>
+        setLabelsImageOperationSettings;
     private final UnaryCallSettings.Builder<
             TestIamPermissionsImageHttpRequest, TestPermissionsResponse>
         testIamPermissionsImageSettings;
@@ -376,8 +431,12 @@ protected Builder(ClientContext clientContext) {
 
       deleteImageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteImageOperationSettings = OperationCallSettings.newBuilder();
+
       deprecateImageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deprecateImageOperationSettings = OperationCallSettings.newBuilder();
+
       getImageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       getFromFamilyImageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -386,12 +445,16 @@ protected Builder(ClientContext clientContext) {
 
       insertImageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertImageOperationSettings = OperationCallSettings.newBuilder();
+
       listImagesSettings = PagedCallSettings.newBuilder(LIST_IMAGES_PAGE_STR_FACT);
 
       setIamPolicyImageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       setLabelsImageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setLabelsImageOperationSettings = OperationCallSettings.newBuilder();
+
       testIamPermissionsImageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
@@ -470,6 +533,90 @@ private static Builder initDefaults(Builder builder) {
           .testIamPermissionsImageSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteImageOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .deprecateImageOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertImageOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setLabelsImageOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -478,14 +625,18 @@ protected Builder(ImageStubSettings settings) {
       super(settings);
 
       deleteImageSettings = settings.deleteImageSettings.toBuilder();
+      deleteImageOperationSettings = settings.deleteImageOperationSettings.toBuilder();
       deprecateImageSettings = settings.deprecateImageSettings.toBuilder();
+      deprecateImageOperationSettings = settings.deprecateImageOperationSettings.toBuilder();
       getImageSettings = settings.getImageSettings.toBuilder();
       getFromFamilyImageSettings = settings.getFromFamilyImageSettings.toBuilder();
       getIamPolicyImageSettings = settings.getIamPolicyImageSettings.toBuilder();
       insertImageSettings = settings.insertImageSettings.toBuilder();
+      insertImageOperationSettings = settings.insertImageOperationSettings.toBuilder();
       listImagesSettings = settings.listImagesSettings.toBuilder();
       setIamPolicyImageSettings = settings.setIamPolicyImageSettings.toBuilder();
       setLabelsImageSettings = settings.setLabelsImageSettings.toBuilder();
+      setLabelsImageOperationSettings = settings.setLabelsImageOperationSettings.toBuilder();
       testIamPermissionsImageSettings = settings.testIamPermissionsImageSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
@@ -523,12 +674,28 @@ public UnaryCallSettings.Builder deleteImageS
       return deleteImageSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteImage. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteImageOperationSettings() {
+      return deleteImageOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to deprecateImage. */
     public UnaryCallSettings.Builder
         deprecateImageSettings() {
       return deprecateImageSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deprecateImage. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deprecateImageOperationSettings() {
+      return deprecateImageOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getImage. */
     public UnaryCallSettings.Builder getImageSettings() {
       return getImageSettings;
@@ -551,6 +718,14 @@ public UnaryCallSettings.Builder insertImageS
       return insertImageSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertImage. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertImageOperationSettings() {
+      return insertImageOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listImages. */
     public PagedCallSettings.Builder
         listImagesSettings() {
@@ -569,6 +744,14 @@ public UnaryCallSettings.Builder insertImageS
       return setLabelsImageSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setLabelsImage. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        setLabelsImageOperationSettings() {
+      return setLabelsImageOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to testIamPermissionsImage. */
     public UnaryCallSettings.Builder
         testIamPermissionsImageSettings() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStub.java
index 52517c11d822..143fb3101164 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStub.java
@@ -20,6 +20,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.AbandonInstancesInstanceGroupManagerHttpRequest;
 import com.google.cloud.compute.v1.AggregatedListInstanceGroupManagersHttpRequest;
@@ -51,6 +53,19 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class InstanceGroupManagerStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      abandonInstancesInstanceGroupManagerOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: abandonInstancesInstanceGroupManagerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       abandonInstancesInstanceGroupManagerCallable() {
@@ -75,6 +90,13 @@ public abstract class InstanceGroupManagerStub implements BackgroundResource {
         "Not implemented: aggregatedListInstanceGroupManagersCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteInstanceGroupManagerOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteInstanceGroupManagerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       deleteInstanceGroupManagerCallable() {
@@ -82,6 +104,14 @@ public abstract class InstanceGroupManagerStub implements BackgroundResource {
         "Not implemented: deleteInstanceGroupManagerCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      deleteInstancesInstanceGroupManagerOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteInstancesInstanceGroupManagerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       deleteInstancesInstanceGroupManagerCallable() {
@@ -95,6 +125,13 @@ public abstract class InstanceGroupManagerStub implements BackgroundResource {
     throw new UnsupportedOperationException("Not implemented: getInstanceGroupManagerCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertInstanceGroupManagerOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertInstanceGroupManagerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       insertInstanceGroupManagerCallable() {
@@ -124,12 +161,27 @@ public abstract class InstanceGroupManagerStub implements BackgroundResource {
         "Not implemented: listManagedInstancesInstanceGroupManagersCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchInstanceGroupManagerOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: patchInstanceGroupManagerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       patchInstanceGroupManagerCallable() {
     throw new UnsupportedOperationException("Not implemented: patchInstanceGroupManagerCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      recreateInstancesInstanceGroupManagerOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: recreateInstancesInstanceGroupManagerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       recreateInstancesInstanceGroupManagerCallable() {
@@ -137,6 +189,13 @@ public abstract class InstanceGroupManagerStub implements BackgroundResource {
         "Not implemented: recreateInstancesInstanceGroupManagerCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      resizeInstanceGroupManagerOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: resizeInstanceGroupManagerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       resizeInstanceGroupManagerCallable() {
@@ -144,6 +203,14 @@ public abstract class InstanceGroupManagerStub implements BackgroundResource {
         "Not implemented: resizeInstanceGroupManagerCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      setInstanceTemplateInstanceGroupManagerOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setInstanceTemplateInstanceGroupManagerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setInstanceTemplateInstanceGroupManagerCallable() {
@@ -151,6 +218,14 @@ public abstract class InstanceGroupManagerStub implements BackgroundResource {
         "Not implemented: setInstanceTemplateInstanceGroupManagerCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      setTargetPoolsInstanceGroupManagerOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setTargetPoolsInstanceGroupManagerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setTargetPoolsInstanceGroupManagerCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStubSettings.java
index 0e1aad903d62..352bf72db14e 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStubSettings.java
@@ -24,13 +24,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -83,13 +88,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of abandonInstancesInstanceGroupManager to 30 seconds: + * example, to set the total timeout of getInstanceGroupManager to 30 seconds: * *

  * 
  * InstanceGroupManagerStubSettings.Builder instanceGroupManagerSettingsBuilder =
  *     InstanceGroupManagerStubSettings.newBuilder();
- * instanceGroupManagerSettingsBuilder.abandonInstancesInstanceGroupManagerSettings().getRetrySettings().toBuilder()
+ * instanceGroupManagerSettingsBuilder.getInstanceGroupManagerSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * InstanceGroupManagerStubSettings instanceGroupManagerSettings = instanceGroupManagerSettingsBuilder.build();
  * 
@@ -112,6 +117,9 @@ public class InstanceGroupManagerStubSettings
 
   private final UnaryCallSettings
       abandonInstancesInstanceGroupManagerSettings;
+  private final OperationCallSettings<
+          AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      abandonInstancesInstanceGroupManagerOperationSettings;
   private final PagedCallSettings<
           AggregatedListInstanceGroupManagersHttpRequest,
           InstanceGroupManagerAggregatedList,
@@ -119,12 +127,21 @@ public class InstanceGroupManagerStubSettings
       aggregatedListInstanceGroupManagersSettings;
   private final UnaryCallSettings
       deleteInstanceGroupManagerSettings;
+  private final OperationCallSettings<
+          DeleteInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      deleteInstanceGroupManagerOperationSettings;
   private final UnaryCallSettings
       deleteInstancesInstanceGroupManagerSettings;
+  private final OperationCallSettings<
+          DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      deleteInstancesInstanceGroupManagerOperationSettings;
   private final UnaryCallSettings
       getInstanceGroupManagerSettings;
   private final UnaryCallSettings
       insertInstanceGroupManagerSettings;
+  private final OperationCallSettings<
+          InsertInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      insertInstanceGroupManagerOperationSettings;
   private final PagedCallSettings<
           ListInstanceGroupManagersHttpRequest,
           InstanceGroupManagerList,
@@ -136,14 +153,29 @@ public class InstanceGroupManagerStubSettings
       listManagedInstancesInstanceGroupManagersSettings;
   private final UnaryCallSettings
       patchInstanceGroupManagerSettings;
+  private final OperationCallSettings<
+          PatchInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      patchInstanceGroupManagerOperationSettings;
   private final UnaryCallSettings
       recreateInstancesInstanceGroupManagerSettings;
+  private final OperationCallSettings<
+          RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      recreateInstancesInstanceGroupManagerOperationSettings;
   private final UnaryCallSettings
       resizeInstanceGroupManagerSettings;
+  private final OperationCallSettings<
+          ResizeInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      resizeInstanceGroupManagerOperationSettings;
   private final UnaryCallSettings
       setInstanceTemplateInstanceGroupManagerSettings;
+  private final OperationCallSettings<
+          SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      setInstanceTemplateInstanceGroupManagerOperationSettings;
   private final UnaryCallSettings
       setTargetPoolsInstanceGroupManagerSettings;
+  private final OperationCallSettings<
+          SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      setTargetPoolsInstanceGroupManagerOperationSettings;
 
   /**
    * Returns the object with the settings used for calls to abandonInstancesInstanceGroupManager.
@@ -153,6 +185,16 @@ public class InstanceGroupManagerStubSettings
     return abandonInstancesInstanceGroupManagerSettings;
   }
 
+  /**
+   * Returns the object with the settings used for calls to abandonInstancesInstanceGroupManager.
+   */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      abandonInstancesInstanceGroupManagerOperationSettings() {
+    return abandonInstancesInstanceGroupManagerOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to aggregatedListInstanceGroupManagers. */
   public PagedCallSettings<
           AggregatedListInstanceGroupManagersHttpRequest,
@@ -168,12 +210,27 @@ public class InstanceGroupManagerStubSettings
     return deleteInstanceGroupManagerSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteInstanceGroupManager. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteInstanceGroupManagerOperationSettings() {
+    return deleteInstanceGroupManagerOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to deleteInstancesInstanceGroupManager. */
   public UnaryCallSettings
       deleteInstancesInstanceGroupManagerSettings() {
     return deleteInstancesInstanceGroupManagerSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteInstancesInstanceGroupManager. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      deleteInstancesInstanceGroupManagerOperationSettings() {
+    return deleteInstancesInstanceGroupManagerOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getInstanceGroupManager. */
   public UnaryCallSettings
       getInstanceGroupManagerSettings() {
@@ -186,6 +243,13 @@ public class InstanceGroupManagerStubSettings
     return insertInstanceGroupManagerSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertInstanceGroupManager. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertInstanceGroupManagerOperationSettings() {
+    return insertInstanceGroupManagerOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listInstanceGroupManagers. */
   public PagedCallSettings<
           ListInstanceGroupManagersHttpRequest,
@@ -212,6 +276,13 @@ public class InstanceGroupManagerStubSettings
     return patchInstanceGroupManagerSettings;
   }
 
+  /** Returns the object with the settings used for calls to patchInstanceGroupManager. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchInstanceGroupManagerOperationSettings() {
+    return patchInstanceGroupManagerOperationSettings;
+  }
+
   /**
    * Returns the object with the settings used for calls to recreateInstancesInstanceGroupManager.
    */
@@ -220,12 +291,29 @@ public class InstanceGroupManagerStubSettings
     return recreateInstancesInstanceGroupManagerSettings;
   }
 
+  /**
+   * Returns the object with the settings used for calls to recreateInstancesInstanceGroupManager.
+   */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      recreateInstancesInstanceGroupManagerOperationSettings() {
+    return recreateInstancesInstanceGroupManagerOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to resizeInstanceGroupManager. */
   public UnaryCallSettings
       resizeInstanceGroupManagerSettings() {
     return resizeInstanceGroupManagerSettings;
   }
 
+  /** Returns the object with the settings used for calls to resizeInstanceGroupManager. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      resizeInstanceGroupManagerOperationSettings() {
+    return resizeInstanceGroupManagerOperationSettings;
+  }
+
   /**
    * Returns the object with the settings used for calls to setInstanceTemplateInstanceGroupManager.
    */
@@ -234,12 +322,30 @@ public class InstanceGroupManagerStubSettings
     return setInstanceTemplateInstanceGroupManagerSettings;
   }
 
+  /**
+   * Returns the object with the settings used for calls to setInstanceTemplateInstanceGroupManager.
+   */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      setInstanceTemplateInstanceGroupManagerOperationSettings() {
+    return setInstanceTemplateInstanceGroupManagerOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setTargetPoolsInstanceGroupManager. */
   public UnaryCallSettings
       setTargetPoolsInstanceGroupManagerSettings() {
     return setTargetPoolsInstanceGroupManagerSettings;
   }
 
+  /** Returns the object with the settings used for calls to setTargetPoolsInstanceGroupManager. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      setTargetPoolsInstanceGroupManagerOperationSettings() {
+    return setTargetPoolsInstanceGroupManagerOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public InstanceGroupManagerStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -317,27 +423,45 @@ protected InstanceGroupManagerStubSettings(Builder settingsBuilder) throws IOExc
 
     abandonInstancesInstanceGroupManagerSettings =
         settingsBuilder.abandonInstancesInstanceGroupManagerSettings().build();
+    abandonInstancesInstanceGroupManagerOperationSettings =
+        settingsBuilder.abandonInstancesInstanceGroupManagerOperationSettings().build();
     aggregatedListInstanceGroupManagersSettings =
         settingsBuilder.aggregatedListInstanceGroupManagersSettings().build();
     deleteInstanceGroupManagerSettings =
         settingsBuilder.deleteInstanceGroupManagerSettings().build();
+    deleteInstanceGroupManagerOperationSettings =
+        settingsBuilder.deleteInstanceGroupManagerOperationSettings().build();
     deleteInstancesInstanceGroupManagerSettings =
         settingsBuilder.deleteInstancesInstanceGroupManagerSettings().build();
+    deleteInstancesInstanceGroupManagerOperationSettings =
+        settingsBuilder.deleteInstancesInstanceGroupManagerOperationSettings().build();
     getInstanceGroupManagerSettings = settingsBuilder.getInstanceGroupManagerSettings().build();
     insertInstanceGroupManagerSettings =
         settingsBuilder.insertInstanceGroupManagerSettings().build();
+    insertInstanceGroupManagerOperationSettings =
+        settingsBuilder.insertInstanceGroupManagerOperationSettings().build();
     listInstanceGroupManagersSettings = settingsBuilder.listInstanceGroupManagersSettings().build();
     listManagedInstancesInstanceGroupManagersSettings =
         settingsBuilder.listManagedInstancesInstanceGroupManagersSettings().build();
     patchInstanceGroupManagerSettings = settingsBuilder.patchInstanceGroupManagerSettings().build();
+    patchInstanceGroupManagerOperationSettings =
+        settingsBuilder.patchInstanceGroupManagerOperationSettings().build();
     recreateInstancesInstanceGroupManagerSettings =
         settingsBuilder.recreateInstancesInstanceGroupManagerSettings().build();
+    recreateInstancesInstanceGroupManagerOperationSettings =
+        settingsBuilder.recreateInstancesInstanceGroupManagerOperationSettings().build();
     resizeInstanceGroupManagerSettings =
         settingsBuilder.resizeInstanceGroupManagerSettings().build();
+    resizeInstanceGroupManagerOperationSettings =
+        settingsBuilder.resizeInstanceGroupManagerOperationSettings().build();
     setInstanceTemplateInstanceGroupManagerSettings =
         settingsBuilder.setInstanceTemplateInstanceGroupManagerSettings().build();
+    setInstanceTemplateInstanceGroupManagerOperationSettings =
+        settingsBuilder.setInstanceTemplateInstanceGroupManagerOperationSettings().build();
     setTargetPoolsInstanceGroupManagerSettings =
         settingsBuilder.setTargetPoolsInstanceGroupManagerSettings().build();
+    setTargetPoolsInstanceGroupManagerOperationSettings =
+        settingsBuilder.setTargetPoolsInstanceGroupManagerOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -506,6 +630,9 @@ public static class Builder
     private final UnaryCallSettings.Builder<
             AbandonInstancesInstanceGroupManagerHttpRequest, Operation>
         abandonInstancesInstanceGroupManagerSettings;
+    private final OperationCallSettings.Builder<
+            AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        abandonInstancesInstanceGroupManagerOperationSettings;
     private final PagedCallSettings.Builder<
             AggregatedListInstanceGroupManagersHttpRequest,
             InstanceGroupManagerAggregatedList,
@@ -513,14 +640,23 @@ public static class Builder
         aggregatedListInstanceGroupManagersSettings;
     private final UnaryCallSettings.Builder
         deleteInstanceGroupManagerSettings;
+    private final OperationCallSettings.Builder<
+            DeleteInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        deleteInstanceGroupManagerOperationSettings;
     private final UnaryCallSettings.Builder<
             DeleteInstancesInstanceGroupManagerHttpRequest, Operation>
         deleteInstancesInstanceGroupManagerSettings;
+    private final OperationCallSettings.Builder<
+            DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        deleteInstancesInstanceGroupManagerOperationSettings;
     private final UnaryCallSettings.Builder<
             GetInstanceGroupManagerHttpRequest, InstanceGroupManager>
         getInstanceGroupManagerSettings;
     private final UnaryCallSettings.Builder
         insertInstanceGroupManagerSettings;
+    private final OperationCallSettings.Builder<
+            InsertInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        insertInstanceGroupManagerOperationSettings;
     private final PagedCallSettings.Builder<
             ListInstanceGroupManagersHttpRequest,
             InstanceGroupManagerList,
@@ -532,17 +668,32 @@ public static class Builder
         listManagedInstancesInstanceGroupManagersSettings;
     private final UnaryCallSettings.Builder
         patchInstanceGroupManagerSettings;
+    private final OperationCallSettings.Builder<
+            PatchInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        patchInstanceGroupManagerOperationSettings;
     private final UnaryCallSettings.Builder<
             RecreateInstancesInstanceGroupManagerHttpRequest, Operation>
         recreateInstancesInstanceGroupManagerSettings;
+    private final OperationCallSettings.Builder<
+            RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        recreateInstancesInstanceGroupManagerOperationSettings;
     private final UnaryCallSettings.Builder
         resizeInstanceGroupManagerSettings;
+    private final OperationCallSettings.Builder<
+            ResizeInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        resizeInstanceGroupManagerOperationSettings;
     private final UnaryCallSettings.Builder<
             SetInstanceTemplateInstanceGroupManagerHttpRequest, Operation>
         setInstanceTemplateInstanceGroupManagerSettings;
+    private final OperationCallSettings.Builder<
+            SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        setInstanceTemplateInstanceGroupManagerOperationSettings;
     private final UnaryCallSettings.Builder<
             SetTargetPoolsInstanceGroupManagerHttpRequest, Operation>
         setTargetPoolsInstanceGroupManagerSettings;
+    private final OperationCallSettings.Builder<
+            SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        setTargetPoolsInstanceGroupManagerOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -588,17 +739,25 @@ protected Builder(ClientContext clientContext) {
       abandonInstancesInstanceGroupManagerSettings =
           UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      abandonInstancesInstanceGroupManagerOperationSettings = OperationCallSettings.newBuilder();
+
       aggregatedListInstanceGroupManagersSettings =
           PagedCallSettings.newBuilder(AGGREGATED_LIST_INSTANCE_GROUP_MANAGERS_PAGE_STR_FACT);
 
       deleteInstanceGroupManagerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteInstanceGroupManagerOperationSettings = OperationCallSettings.newBuilder();
+
       deleteInstancesInstanceGroupManagerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteInstancesInstanceGroupManagerOperationSettings = OperationCallSettings.newBuilder();
+
       getInstanceGroupManagerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertInstanceGroupManagerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertInstanceGroupManagerOperationSettings = OperationCallSettings.newBuilder();
+
       listInstanceGroupManagersSettings =
           PagedCallSettings.newBuilder(LIST_INSTANCE_GROUP_MANAGERS_PAGE_STR_FACT);
 
@@ -607,16 +766,26 @@ protected Builder(ClientContext clientContext) {
 
       patchInstanceGroupManagerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      patchInstanceGroupManagerOperationSettings = OperationCallSettings.newBuilder();
+
       recreateInstancesInstanceGroupManagerSettings =
           UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      recreateInstancesInstanceGroupManagerOperationSettings = OperationCallSettings.newBuilder();
+
       resizeInstanceGroupManagerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      resizeInstanceGroupManagerOperationSettings = OperationCallSettings.newBuilder();
+
       setInstanceTemplateInstanceGroupManagerSettings =
           UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setInstanceTemplateInstanceGroupManagerOperationSettings = OperationCallSettings.newBuilder();
+
       setTargetPoolsInstanceGroupManagerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setTargetPoolsInstanceGroupManagerOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               abandonInstancesInstanceGroupManagerSettings,
@@ -711,6 +880,204 @@ private static Builder initDefaults(Builder builder) {
           .setTargetPoolsInstanceGroupManagerSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .abandonInstancesInstanceGroupManagerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .deleteInstanceGroupManagerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .deleteInstancesInstanceGroupManagerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertInstanceGroupManagerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .patchInstanceGroupManagerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .recreateInstancesInstanceGroupManagerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .resizeInstanceGroupManagerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setInstanceTemplateInstanceGroupManagerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setTargetPoolsInstanceGroupManagerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -720,24 +1087,42 @@ protected Builder(InstanceGroupManagerStubSettings settings) {
 
       abandonInstancesInstanceGroupManagerSettings =
           settings.abandonInstancesInstanceGroupManagerSettings.toBuilder();
+      abandonInstancesInstanceGroupManagerOperationSettings =
+          settings.abandonInstancesInstanceGroupManagerOperationSettings.toBuilder();
       aggregatedListInstanceGroupManagersSettings =
           settings.aggregatedListInstanceGroupManagersSettings.toBuilder();
       deleteInstanceGroupManagerSettings = settings.deleteInstanceGroupManagerSettings.toBuilder();
+      deleteInstanceGroupManagerOperationSettings =
+          settings.deleteInstanceGroupManagerOperationSettings.toBuilder();
       deleteInstancesInstanceGroupManagerSettings =
           settings.deleteInstancesInstanceGroupManagerSettings.toBuilder();
+      deleteInstancesInstanceGroupManagerOperationSettings =
+          settings.deleteInstancesInstanceGroupManagerOperationSettings.toBuilder();
       getInstanceGroupManagerSettings = settings.getInstanceGroupManagerSettings.toBuilder();
       insertInstanceGroupManagerSettings = settings.insertInstanceGroupManagerSettings.toBuilder();
+      insertInstanceGroupManagerOperationSettings =
+          settings.insertInstanceGroupManagerOperationSettings.toBuilder();
       listInstanceGroupManagersSettings = settings.listInstanceGroupManagersSettings.toBuilder();
       listManagedInstancesInstanceGroupManagersSettings =
           settings.listManagedInstancesInstanceGroupManagersSettings.toBuilder();
       patchInstanceGroupManagerSettings = settings.patchInstanceGroupManagerSettings.toBuilder();
+      patchInstanceGroupManagerOperationSettings =
+          settings.patchInstanceGroupManagerOperationSettings.toBuilder();
       recreateInstancesInstanceGroupManagerSettings =
           settings.recreateInstancesInstanceGroupManagerSettings.toBuilder();
+      recreateInstancesInstanceGroupManagerOperationSettings =
+          settings.recreateInstancesInstanceGroupManagerOperationSettings.toBuilder();
       resizeInstanceGroupManagerSettings = settings.resizeInstanceGroupManagerSettings.toBuilder();
+      resizeInstanceGroupManagerOperationSettings =
+          settings.resizeInstanceGroupManagerOperationSettings.toBuilder();
       setInstanceTemplateInstanceGroupManagerSettings =
           settings.setInstanceTemplateInstanceGroupManagerSettings.toBuilder();
+      setInstanceTemplateInstanceGroupManagerOperationSettings =
+          settings.setInstanceTemplateInstanceGroupManagerOperationSettings.toBuilder();
       setTargetPoolsInstanceGroupManagerSettings =
           settings.setTargetPoolsInstanceGroupManagerSettings.toBuilder();
+      setTargetPoolsInstanceGroupManagerOperationSettings =
+          settings.setTargetPoolsInstanceGroupManagerOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -780,6 +1165,17 @@ public Builder applyToAllUnaryMethods(
       return abandonInstancesInstanceGroupManagerSettings;
     }
 
+    /**
+     * Returns the builder for the settings used for calls to abandonInstancesInstanceGroupManager.
+     */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        abandonInstancesInstanceGroupManagerOperationSettings() {
+      return abandonInstancesInstanceGroupManagerOperationSettings;
+    }
+
     /**
      * Returns the builder for the settings used for calls to aggregatedListInstanceGroupManagers.
      */
@@ -797,6 +1193,15 @@ public Builder applyToAllUnaryMethods(
       return deleteInstanceGroupManagerSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteInstanceGroupManager. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        deleteInstanceGroupManagerOperationSettings() {
+      return deleteInstanceGroupManagerOperationSettings;
+    }
+
     /**
      * Returns the builder for the settings used for calls to deleteInstancesInstanceGroupManager.
      */
@@ -805,6 +1210,17 @@ public Builder applyToAllUnaryMethods(
       return deleteInstancesInstanceGroupManagerSettings;
     }
 
+    /**
+     * Returns the builder for the settings used for calls to deleteInstancesInstanceGroupManager.
+     */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        deleteInstancesInstanceGroupManagerOperationSettings() {
+      return deleteInstancesInstanceGroupManagerOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getInstanceGroupManager. */
     public UnaryCallSettings.Builder
         getInstanceGroupManagerSettings() {
@@ -817,6 +1233,15 @@ public Builder applyToAllUnaryMethods(
       return insertInstanceGroupManagerSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertInstanceGroupManager. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        insertInstanceGroupManagerOperationSettings() {
+      return insertInstanceGroupManagerOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listInstanceGroupManagers. */
     public PagedCallSettings.Builder<
             ListInstanceGroupManagersHttpRequest,
@@ -843,6 +1268,15 @@ public Builder applyToAllUnaryMethods(
       return patchInstanceGroupManagerSettings;
     }
 
+    /** Returns the builder for the settings used for calls to patchInstanceGroupManager. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            PatchInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        patchInstanceGroupManagerOperationSettings() {
+      return patchInstanceGroupManagerOperationSettings;
+    }
+
     /**
      * Returns the builder for the settings used for calls to recreateInstancesInstanceGroupManager.
      */
@@ -851,12 +1285,32 @@ public Builder applyToAllUnaryMethods(
       return recreateInstancesInstanceGroupManagerSettings;
     }
 
+    /**
+     * Returns the builder for the settings used for calls to recreateInstancesInstanceGroupManager.
+     */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        recreateInstancesInstanceGroupManagerOperationSettings() {
+      return recreateInstancesInstanceGroupManagerOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to resizeInstanceGroupManager. */
     public UnaryCallSettings.Builder
         resizeInstanceGroupManagerSettings() {
       return resizeInstanceGroupManagerSettings;
     }
 
+    /** Returns the builder for the settings used for calls to resizeInstanceGroupManager. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            ResizeInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        resizeInstanceGroupManagerOperationSettings() {
+      return resizeInstanceGroupManagerOperationSettings;
+    }
+
     /**
      * Returns the builder for the settings used for calls to
      * setInstanceTemplateInstanceGroupManager.
@@ -866,6 +1320,18 @@ public Builder applyToAllUnaryMethods(
       return setInstanceTemplateInstanceGroupManagerSettings;
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * setInstanceTemplateInstanceGroupManager.
+     */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        setInstanceTemplateInstanceGroupManagerOperationSettings() {
+      return setInstanceTemplateInstanceGroupManagerOperationSettings;
+    }
+
     /**
      * Returns the builder for the settings used for calls to setTargetPoolsInstanceGroupManager.
      */
@@ -874,6 +1340,17 @@ public Builder applyToAllUnaryMethods(
       return setTargetPoolsInstanceGroupManagerSettings;
     }
 
+    /**
+     * Returns the builder for the settings used for calls to setTargetPoolsInstanceGroupManager.
+     */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        setTargetPoolsInstanceGroupManagerOperationSettings() {
+      return setTargetPoolsInstanceGroupManagerOperationSettings;
+    }
+
     @Override
     public InstanceGroupManagerStubSettings build() throws IOException {
       return new InstanceGroupManagerStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStub.java
index b2cca5bba6fd..5b5b7e57cc26 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStub.java
@@ -21,6 +21,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.AddInstancesInstanceGroupHttpRequest;
 import com.google.cloud.compute.v1.AggregatedListInstanceGroupsHttpRequest;
@@ -48,6 +50,18 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class InstanceGroupStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      addInstancesInstanceGroupOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: addInstancesInstanceGroupOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       addInstancesInstanceGroupCallable() {
@@ -69,6 +83,13 @@ public abstract class InstanceGroupStub implements BackgroundResource {
         "Not implemented: aggregatedListInstanceGroupsCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteInstanceGroupOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteInstanceGroupOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteInstanceGroupCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteInstanceGroupCallable()");
@@ -79,6 +100,13 @@ public UnaryCallable getInstanceGrou
     throw new UnsupportedOperationException("Not implemented: getInstanceGroupCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertInstanceGroupOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertInstanceGroupOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertInstanceGroupCallable() {
     throw new UnsupportedOperationException("Not implemented: insertInstanceGroupCallable()");
@@ -111,6 +139,13 @@ public UnaryCallable insertInstanceGr
         "Not implemented: listInstancesInstanceGroupsCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      removeInstancesInstanceGroupOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: removeInstancesInstanceGroupOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       removeInstancesInstanceGroupCallable() {
@@ -118,6 +153,13 @@ public UnaryCallable insertInstanceGr
         "Not implemented: removeInstancesInstanceGroupCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setNamedPortsInstanceGroupOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setNamedPortsInstanceGroupOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setNamedPortsInstanceGroupCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStubSettings.java
index a7d55573eb55..a8167d7cd103 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStubSettings.java
@@ -25,13 +25,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -81,13 +86,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of addInstancesInstanceGroup to 30 seconds: + * example, to set the total timeout of getInstanceGroup to 30 seconds: * *

  * 
  * InstanceGroupStubSettings.Builder instanceGroupSettingsBuilder =
  *     InstanceGroupStubSettings.newBuilder();
- * instanceGroupSettingsBuilder.addInstancesInstanceGroupSettings().getRetrySettings().toBuilder()
+ * instanceGroupSettingsBuilder.getInstanceGroupSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * InstanceGroupStubSettings instanceGroupSettings = instanceGroupSettingsBuilder.build();
  * 
@@ -109,6 +114,9 @@ public class InstanceGroupStubSettings extends StubSettings
       addInstancesInstanceGroupSettings;
+  private final OperationCallSettings<
+          AddInstancesInstanceGroupHttpRequest, EmptyMessage, EmptyMessage>
+      addInstancesInstanceGroupOperationSettings;
   private final PagedCallSettings<
           AggregatedListInstanceGroupsHttpRequest,
           InstanceGroupAggregatedList,
@@ -116,10 +124,14 @@ public class InstanceGroupStubSettings extends StubSettings
       deleteInstanceGroupSettings;
+  private final OperationCallSettings
+      deleteInstanceGroupOperationSettings;
   private final UnaryCallSettings
       getInstanceGroupSettings;
   private final UnaryCallSettings
       insertInstanceGroupSettings;
+  private final OperationCallSettings
+      insertInstanceGroupOperationSettings;
   private final PagedCallSettings<
           ListInstanceGroupsHttpRequest, InstanceGroupList, ListInstanceGroupsPagedResponse>
       listInstanceGroupsSettings;
@@ -130,8 +142,14 @@ public class InstanceGroupStubSettings extends StubSettings
       removeInstancesInstanceGroupSettings;
+  private final OperationCallSettings<
+          RemoveInstancesInstanceGroupHttpRequest, EmptyMessage, EmptyMessage>
+      removeInstancesInstanceGroupOperationSettings;
   private final UnaryCallSettings
       setNamedPortsInstanceGroupSettings;
+  private final OperationCallSettings<
+          SetNamedPortsInstanceGroupHttpRequest, EmptyMessage, EmptyMessage>
+      setNamedPortsInstanceGroupOperationSettings;
 
   /** Returns the object with the settings used for calls to addInstancesInstanceGroup. */
   public UnaryCallSettings
@@ -139,6 +157,13 @@ public class InstanceGroupStubSettings extends StubSettings
+      addInstancesInstanceGroupOperationSettings() {
+    return addInstancesInstanceGroupOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to aggregatedListInstanceGroups. */
   public PagedCallSettings<
           AggregatedListInstanceGroupsHttpRequest,
@@ -154,6 +179,13 @@ public class InstanceGroupStubSettings extends StubSettings
+      deleteInstanceGroupOperationSettings() {
+    return deleteInstanceGroupOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getInstanceGroup. */
   public UnaryCallSettings getInstanceGroupSettings() {
     return getInstanceGroupSettings;
@@ -165,6 +197,13 @@ public UnaryCallSettings getInstance
     return insertInstanceGroupSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertInstanceGroup. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertInstanceGroupOperationSettings() {
+    return insertInstanceGroupOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listInstanceGroups. */
   public PagedCallSettings<
           ListInstanceGroupsHttpRequest, InstanceGroupList, ListInstanceGroupsPagedResponse>
@@ -187,12 +226,26 @@ public UnaryCallSettings getInstance
     return removeInstancesInstanceGroupSettings;
   }
 
+  /** Returns the object with the settings used for calls to removeInstancesInstanceGroup. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      removeInstancesInstanceGroupOperationSettings() {
+    return removeInstancesInstanceGroupOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setNamedPortsInstanceGroup. */
   public UnaryCallSettings
       setNamedPortsInstanceGroupSettings() {
     return setNamedPortsInstanceGroupSettings;
   }
 
+  /** Returns the object with the settings used for calls to setNamedPortsInstanceGroup. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setNamedPortsInstanceGroupOperationSettings() {
+    return setNamedPortsInstanceGroupOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public InstanceGroupStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -269,18 +322,28 @@ protected InstanceGroupStubSettings(Builder settingsBuilder) throws IOException
     super(settingsBuilder);
 
     addInstancesInstanceGroupSettings = settingsBuilder.addInstancesInstanceGroupSettings().build();
+    addInstancesInstanceGroupOperationSettings =
+        settingsBuilder.addInstancesInstanceGroupOperationSettings().build();
     aggregatedListInstanceGroupsSettings =
         settingsBuilder.aggregatedListInstanceGroupsSettings().build();
     deleteInstanceGroupSettings = settingsBuilder.deleteInstanceGroupSettings().build();
+    deleteInstanceGroupOperationSettings =
+        settingsBuilder.deleteInstanceGroupOperationSettings().build();
     getInstanceGroupSettings = settingsBuilder.getInstanceGroupSettings().build();
     insertInstanceGroupSettings = settingsBuilder.insertInstanceGroupSettings().build();
+    insertInstanceGroupOperationSettings =
+        settingsBuilder.insertInstanceGroupOperationSettings().build();
     listInstanceGroupsSettings = settingsBuilder.listInstanceGroupsSettings().build();
     listInstancesInstanceGroupsSettings =
         settingsBuilder.listInstancesInstanceGroupsSettings().build();
     removeInstancesInstanceGroupSettings =
         settingsBuilder.removeInstancesInstanceGroupSettings().build();
+    removeInstancesInstanceGroupOperationSettings =
+        settingsBuilder.removeInstancesInstanceGroupOperationSettings().build();
     setNamedPortsInstanceGroupSettings =
         settingsBuilder.setNamedPortsInstanceGroupSettings().build();
+    setNamedPortsInstanceGroupOperationSettings =
+        settingsBuilder.setNamedPortsInstanceGroupOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -507,6 +570,9 @@ public static class Builder extends StubSettings.Builder
         addInstancesInstanceGroupSettings;
+    private final OperationCallSettings.Builder<
+            AddInstancesInstanceGroupHttpRequest, EmptyMessage, EmptyMessage>
+        addInstancesInstanceGroupOperationSettings;
     private final PagedCallSettings.Builder<
             AggregatedListInstanceGroupsHttpRequest,
             InstanceGroupAggregatedList,
@@ -514,10 +580,16 @@ public static class Builder extends StubSettings.Builder
         deleteInstanceGroupSettings;
+    private final OperationCallSettings.Builder<
+            DeleteInstanceGroupHttpRequest, EmptyMessage, EmptyMessage>
+        deleteInstanceGroupOperationSettings;
     private final UnaryCallSettings.Builder
         getInstanceGroupSettings;
     private final UnaryCallSettings.Builder
         insertInstanceGroupSettings;
+    private final OperationCallSettings.Builder<
+            InsertInstanceGroupHttpRequest, EmptyMessage, EmptyMessage>
+        insertInstanceGroupOperationSettings;
     private final PagedCallSettings.Builder<
             ListInstanceGroupsHttpRequest, InstanceGroupList, ListInstanceGroupsPagedResponse>
         listInstanceGroupsSettings;
@@ -528,8 +600,14 @@ public static class Builder extends StubSettings.Builder
         removeInstancesInstanceGroupSettings;
+    private final OperationCallSettings.Builder<
+            RemoveInstancesInstanceGroupHttpRequest, EmptyMessage, EmptyMessage>
+        removeInstancesInstanceGroupOperationSettings;
     private final UnaryCallSettings.Builder
         setNamedPortsInstanceGroupSettings;
+    private final OperationCallSettings.Builder<
+            SetNamedPortsInstanceGroupHttpRequest, EmptyMessage, EmptyMessage>
+        setNamedPortsInstanceGroupOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -574,15 +652,21 @@ protected Builder(ClientContext clientContext) {
 
       addInstancesInstanceGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      addInstancesInstanceGroupOperationSettings = OperationCallSettings.newBuilder();
+
       aggregatedListInstanceGroupsSettings =
           PagedCallSettings.newBuilder(AGGREGATED_LIST_INSTANCE_GROUPS_PAGE_STR_FACT);
 
       deleteInstanceGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteInstanceGroupOperationSettings = OperationCallSettings.newBuilder();
+
       getInstanceGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertInstanceGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertInstanceGroupOperationSettings = OperationCallSettings.newBuilder();
+
       listInstanceGroupsSettings = PagedCallSettings.newBuilder(LIST_INSTANCE_GROUPS_PAGE_STR_FACT);
 
       listInstancesInstanceGroupsSettings =
@@ -590,8 +674,12 @@ protected Builder(ClientContext clientContext) {
 
       removeInstancesInstanceGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      removeInstancesInstanceGroupOperationSettings = OperationCallSettings.newBuilder();
+
       setNamedPortsInstanceGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setNamedPortsInstanceGroupOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               addInstancesInstanceGroupSettings,
@@ -662,6 +750,114 @@ private static Builder initDefaults(Builder builder) {
           .setNamedPortsInstanceGroupSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .addInstancesInstanceGroupOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .deleteInstanceGroupOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertInstanceGroupOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .removeInstancesInstanceGroupOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setNamedPortsInstanceGroupOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -670,17 +866,27 @@ protected Builder(InstanceGroupStubSettings settings) {
       super(settings);
 
       addInstancesInstanceGroupSettings = settings.addInstancesInstanceGroupSettings.toBuilder();
+      addInstancesInstanceGroupOperationSettings =
+          settings.addInstancesInstanceGroupOperationSettings.toBuilder();
       aggregatedListInstanceGroupsSettings =
           settings.aggregatedListInstanceGroupsSettings.toBuilder();
       deleteInstanceGroupSettings = settings.deleteInstanceGroupSettings.toBuilder();
+      deleteInstanceGroupOperationSettings =
+          settings.deleteInstanceGroupOperationSettings.toBuilder();
       getInstanceGroupSettings = settings.getInstanceGroupSettings.toBuilder();
       insertInstanceGroupSettings = settings.insertInstanceGroupSettings.toBuilder();
+      insertInstanceGroupOperationSettings =
+          settings.insertInstanceGroupOperationSettings.toBuilder();
       listInstanceGroupsSettings = settings.listInstanceGroupsSettings.toBuilder();
       listInstancesInstanceGroupsSettings =
           settings.listInstancesInstanceGroupsSettings.toBuilder();
       removeInstancesInstanceGroupSettings =
           settings.removeInstancesInstanceGroupSettings.toBuilder();
+      removeInstancesInstanceGroupOperationSettings =
+          settings.removeInstancesInstanceGroupOperationSettings.toBuilder();
       setNamedPortsInstanceGroupSettings = settings.setNamedPortsInstanceGroupSettings.toBuilder();
+      setNamedPortsInstanceGroupOperationSettings =
+          settings.setNamedPortsInstanceGroupOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -717,6 +923,15 @@ public Builder applyToAllUnaryMethods(
       return addInstancesInstanceGroupSettings;
     }
 
+    /** Returns the builder for the settings used for calls to addInstancesInstanceGroup. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            AddInstancesInstanceGroupHttpRequest, EmptyMessage, EmptyMessage>
+        addInstancesInstanceGroupOperationSettings() {
+      return addInstancesInstanceGroupOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to aggregatedListInstanceGroups. */
     public PagedCallSettings.Builder<
             AggregatedListInstanceGroupsHttpRequest,
@@ -732,6 +947,14 @@ public Builder applyToAllUnaryMethods(
       return deleteInstanceGroupSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteInstanceGroup. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteInstanceGroupOperationSettings() {
+      return deleteInstanceGroupOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getInstanceGroup. */
     public UnaryCallSettings.Builder
         getInstanceGroupSettings() {
@@ -744,6 +967,14 @@ public Builder applyToAllUnaryMethods(
       return insertInstanceGroupSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertInstanceGroup. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertInstanceGroupOperationSettings() {
+      return insertInstanceGroupOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listInstanceGroups. */
     public PagedCallSettings.Builder<
             ListInstanceGroupsHttpRequest, InstanceGroupList, ListInstanceGroupsPagedResponse>
@@ -766,12 +997,30 @@ public Builder applyToAllUnaryMethods(
       return removeInstancesInstanceGroupSettings;
     }
 
+    /** Returns the builder for the settings used for calls to removeInstancesInstanceGroup. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            RemoveInstancesInstanceGroupHttpRequest, EmptyMessage, EmptyMessage>
+        removeInstancesInstanceGroupOperationSettings() {
+      return removeInstancesInstanceGroupOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setNamedPortsInstanceGroup. */
     public UnaryCallSettings.Builder
         setNamedPortsInstanceGroupSettings() {
       return setNamedPortsInstanceGroupSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setNamedPortsInstanceGroup. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetNamedPortsInstanceGroupHttpRequest, EmptyMessage, EmptyMessage>
+        setNamedPortsInstanceGroupOperationSettings() {
+      return setNamedPortsInstanceGroupOperationSettings;
+    }
+
     @Override
     public InstanceGroupStubSettings build() throws IOException {
       return new InstanceGroupStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStub.java
index e06e430fa527..727c2cb9bafe 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStub.java
@@ -21,6 +21,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.AddAccessConfigInstanceHttpRequest;
 import com.google.cloud.compute.v1.AggregatedListInstancesHttpRequest;
@@ -73,6 +75,18 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class InstanceStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      addAccessConfigInstanceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: addAccessConfigInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       addAccessConfigInstanceCallable() {
@@ -92,16 +106,36 @@ public abstract class InstanceStub implements BackgroundResource {
     throw new UnsupportedOperationException("Not implemented: aggregatedListInstancesCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      attachDiskInstanceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: attachDiskInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable attachDiskInstanceCallable() {
     throw new UnsupportedOperationException("Not implemented: attachDiskInstanceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteInstanceOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: deleteInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteInstanceCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteInstanceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteAccessConfigInstanceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteAccessConfigInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       deleteAccessConfigInstanceCallable() {
@@ -109,6 +143,13 @@ public UnaryCallable deleteInstanceCallabl
         "Not implemented: deleteAccessConfigInstanceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      detachDiskInstanceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: detachDiskInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable detachDiskInstanceCallable() {
     throw new UnsupportedOperationException("Not implemented: detachDiskInstanceCallable()");
@@ -131,6 +172,12 @@ public UnaryCallable getIamPolicyInstan
         "Not implemented: getSerialPortOutputInstanceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertInstanceOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: insertInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertInstanceCallable() {
     throw new UnsupportedOperationException("Not implemented: insertInstanceCallable()");
@@ -160,11 +207,24 @@ public UnaryCallable listInstancesCallab
     throw new UnsupportedOperationException("Not implemented: listReferrersInstancesCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      resetInstanceOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: resetInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable resetInstanceCallable() {
     throw new UnsupportedOperationException("Not implemented: resetInstanceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setDeletionProtectionInstanceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setDeletionProtectionInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setDeletionProtectionInstanceCallable() {
@@ -172,6 +232,13 @@ public UnaryCallable resetInstanceCallable(
         "Not implemented: setDeletionProtectionInstanceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setDiskAutoDeleteInstanceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setDiskAutoDeleteInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setDiskAutoDeleteInstanceCallable() {
@@ -183,11 +250,25 @@ public UnaryCallable setIamPolicyInstan
     throw new UnsupportedOperationException("Not implemented: setIamPolicyInstanceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setLabelsInstanceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setLabelsInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable setLabelsInstanceCallable() {
     throw new UnsupportedOperationException("Not implemented: setLabelsInstanceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setMachineResourcesInstanceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setMachineResourcesInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setMachineResourcesInstanceCallable() {
@@ -195,40 +276,88 @@ public UnaryCallable setLabelsInstanceC
         "Not implemented: setMachineResourcesInstanceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setMachineTypeInstanceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setMachineTypeInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setMachineTypeInstanceCallable() {
     throw new UnsupportedOperationException("Not implemented: setMachineTypeInstanceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setMetadataInstanceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setMetadataInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable setMetadataInstanceCallable() {
     throw new UnsupportedOperationException("Not implemented: setMetadataInstanceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setMinCpuPlatformInstanceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setMinCpuPlatformInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setMinCpuPlatformInstanceCallable() {
     throw new UnsupportedOperationException("Not implemented: setMinCpuPlatformInstanceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setSchedulingInstanceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setSchedulingInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setSchedulingInstanceCallable() {
     throw new UnsupportedOperationException("Not implemented: setSchedulingInstanceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setServiceAccountInstanceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setServiceAccountInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setServiceAccountInstanceCallable() {
     throw new UnsupportedOperationException("Not implemented: setServiceAccountInstanceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setTagsInstanceOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: setTagsInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable setTagsInstanceCallable() {
     throw new UnsupportedOperationException("Not implemented: setTagsInstanceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      simulateMaintenanceEventInstanceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: simulateMaintenanceEventInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       simulateMaintenanceEventInstanceCallable() {
@@ -236,11 +365,24 @@ public UnaryCallable setTagsInstanceCalla
         "Not implemented: simulateMaintenanceEventInstanceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      startInstanceOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: startInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable startInstanceCallable() {
     throw new UnsupportedOperationException("Not implemented: startInstanceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      startWithEncryptionKeyInstanceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: startWithEncryptionKeyInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       startWithEncryptionKeyInstanceCallable() {
@@ -248,6 +390,12 @@ public UnaryCallable startInstanceCallable(
         "Not implemented: startWithEncryptionKeyInstanceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      stopInstanceOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: stopInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable stopInstanceCallable() {
     throw new UnsupportedOperationException("Not implemented: stopInstanceCallable()");
@@ -260,6 +408,13 @@ public UnaryCallable stopInstanceCallable()
         "Not implemented: testIamPermissionsInstanceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateAccessConfigInstanceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: updateAccessConfigInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       updateAccessConfigInstanceCallable() {
@@ -267,6 +422,13 @@ public UnaryCallable stopInstanceCallable()
         "Not implemented: updateAccessConfigInstanceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateNetworkInterfaceInstanceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: updateNetworkInterfaceInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       updateNetworkInterfaceInstanceCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStubSettings.java
index 89dc19dc04e1..7947e06aeb2f 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStubSettings.java
@@ -25,13 +25,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -106,13 +111,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of addAccessConfigInstance to 30 seconds: + * example, to set the total timeout of getInstance to 30 seconds: * *

  * 
  * InstanceStubSettings.Builder instanceSettingsBuilder =
  *     InstanceStubSettings.newBuilder();
- * instanceSettingsBuilder.addAccessConfigInstanceSettings().getRetrySettings().toBuilder()
+ * instanceSettingsBuilder.getInstanceSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * InstanceStubSettings instanceSettings = instanceSettingsBuilder.build();
  * 
@@ -134,6 +139,9 @@ public class InstanceStubSettings extends StubSettings {
 
   private final UnaryCallSettings
       addAccessConfigInstanceSettings;
+  private final OperationCallSettings<
+          AddAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage>
+      addAccessConfigInstanceOperationSettings;
   private final PagedCallSettings<
           AggregatedListInstancesHttpRequest,
           InstanceAggregatedList,
@@ -141,17 +149,28 @@ public class InstanceStubSettings extends StubSettings {
       aggregatedListInstancesSettings;
   private final UnaryCallSettings
       attachDiskInstanceSettings;
+  private final OperationCallSettings
+      attachDiskInstanceOperationSettings;
   private final UnaryCallSettings deleteInstanceSettings;
+  private final OperationCallSettings
+      deleteInstanceOperationSettings;
   private final UnaryCallSettings
       deleteAccessConfigInstanceSettings;
+  private final OperationCallSettings<
+          DeleteAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage>
+      deleteAccessConfigInstanceOperationSettings;
   private final UnaryCallSettings
       detachDiskInstanceSettings;
+  private final OperationCallSettings
+      detachDiskInstanceOperationSettings;
   private final UnaryCallSettings getInstanceSettings;
   private final UnaryCallSettings
       getIamPolicyInstanceSettings;
   private final UnaryCallSettings
       getSerialPortOutputInstanceSettings;
   private final UnaryCallSettings insertInstanceSettings;
+  private final OperationCallSettings
+      insertInstanceOperationSettings;
   private final PagedCallSettings<
           ListInstancesHttpRequest, InstanceList, ListInstancesPagedResponse>
       listInstancesSettings;
@@ -161,39 +180,82 @@ public class InstanceStubSettings extends StubSettings {
           ListReferrersInstancesPagedResponse>
       listReferrersInstancesSettings;
   private final UnaryCallSettings resetInstanceSettings;
+  private final OperationCallSettings
+      resetInstanceOperationSettings;
   private final UnaryCallSettings
       setDeletionProtectionInstanceSettings;
+  private final OperationCallSettings<
+          SetDeletionProtectionInstanceHttpRequest, EmptyMessage, EmptyMessage>
+      setDeletionProtectionInstanceOperationSettings;
   private final UnaryCallSettings
       setDiskAutoDeleteInstanceSettings;
+  private final OperationCallSettings<
+          SetDiskAutoDeleteInstanceHttpRequest, EmptyMessage, EmptyMessage>
+      setDiskAutoDeleteInstanceOperationSettings;
   private final UnaryCallSettings
       setIamPolicyInstanceSettings;
   private final UnaryCallSettings
       setLabelsInstanceSettings;
+  private final OperationCallSettings
+      setLabelsInstanceOperationSettings;
   private final UnaryCallSettings
       setMachineResourcesInstanceSettings;
+  private final OperationCallSettings<
+          SetMachineResourcesInstanceHttpRequest, EmptyMessage, EmptyMessage>
+      setMachineResourcesInstanceOperationSettings;
   private final UnaryCallSettings
       setMachineTypeInstanceSettings;
+  private final OperationCallSettings
+      setMachineTypeInstanceOperationSettings;
   private final UnaryCallSettings
       setMetadataInstanceSettings;
+  private final OperationCallSettings
+      setMetadataInstanceOperationSettings;
   private final UnaryCallSettings
       setMinCpuPlatformInstanceSettings;
+  private final OperationCallSettings<
+          SetMinCpuPlatformInstanceHttpRequest, EmptyMessage, EmptyMessage>
+      setMinCpuPlatformInstanceOperationSettings;
   private final UnaryCallSettings
       setSchedulingInstanceSettings;
+  private final OperationCallSettings
+      setSchedulingInstanceOperationSettings;
   private final UnaryCallSettings
       setServiceAccountInstanceSettings;
+  private final OperationCallSettings<
+          SetServiceAccountInstanceHttpRequest, EmptyMessage, EmptyMessage>
+      setServiceAccountInstanceOperationSettings;
   private final UnaryCallSettings setTagsInstanceSettings;
+  private final OperationCallSettings
+      setTagsInstanceOperationSettings;
   private final UnaryCallSettings
       simulateMaintenanceEventInstanceSettings;
+  private final OperationCallSettings<
+          SimulateMaintenanceEventInstanceHttpRequest, EmptyMessage, EmptyMessage>
+      simulateMaintenanceEventInstanceOperationSettings;
   private final UnaryCallSettings startInstanceSettings;
+  private final OperationCallSettings
+      startInstanceOperationSettings;
   private final UnaryCallSettings
       startWithEncryptionKeyInstanceSettings;
+  private final OperationCallSettings<
+          StartWithEncryptionKeyInstanceHttpRequest, EmptyMessage, EmptyMessage>
+      startWithEncryptionKeyInstanceOperationSettings;
   private final UnaryCallSettings stopInstanceSettings;
+  private final OperationCallSettings
+      stopInstanceOperationSettings;
   private final UnaryCallSettings
       testIamPermissionsInstanceSettings;
   private final UnaryCallSettings
       updateAccessConfigInstanceSettings;
+  private final OperationCallSettings<
+          UpdateAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage>
+      updateAccessConfigInstanceOperationSettings;
   private final UnaryCallSettings
       updateNetworkInterfaceInstanceSettings;
+  private final OperationCallSettings<
+          UpdateNetworkInterfaceInstanceHttpRequest, EmptyMessage, EmptyMessage>
+      updateNetworkInterfaceInstanceOperationSettings;
 
   /** Returns the object with the settings used for calls to addAccessConfigInstance. */
   public UnaryCallSettings
@@ -201,6 +263,13 @@ public class InstanceStubSettings extends StubSettings {
     return addAccessConfigInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to addAccessConfigInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      addAccessConfigInstanceOperationSettings() {
+    return addAccessConfigInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to aggregatedListInstances. */
   public PagedCallSettings<
           AggregatedListInstancesHttpRequest,
@@ -215,22 +284,50 @@ public UnaryCallSettings attachDiskIns
     return attachDiskInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to attachDiskInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      attachDiskInstanceOperationSettings() {
+    return attachDiskInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to deleteInstance. */
   public UnaryCallSettings deleteInstanceSettings() {
     return deleteInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteInstanceOperationSettings() {
+    return deleteInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to deleteAccessConfigInstance. */
   public UnaryCallSettings
       deleteAccessConfigInstanceSettings() {
     return deleteAccessConfigInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteAccessConfigInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteAccessConfigInstanceOperationSettings() {
+    return deleteAccessConfigInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to detachDiskInstance. */
   public UnaryCallSettings detachDiskInstanceSettings() {
     return detachDiskInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to detachDiskInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      detachDiskInstanceOperationSettings() {
+    return detachDiskInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getInstance. */
   public UnaryCallSettings getInstanceSettings() {
     return getInstanceSettings;
@@ -252,6 +349,13 @@ public UnaryCallSettings insertInstanceSet
     return insertInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertInstanceOperationSettings() {
+    return insertInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listInstances. */
   public PagedCallSettings
       listInstancesSettings() {
@@ -272,18 +376,39 @@ public UnaryCallSettings resetInstanceSetti
     return resetInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to resetInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      resetInstanceOperationSettings() {
+    return resetInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setDeletionProtectionInstance. */
   public UnaryCallSettings
       setDeletionProtectionInstanceSettings() {
     return setDeletionProtectionInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to setDeletionProtectionInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setDeletionProtectionInstanceOperationSettings() {
+    return setDeletionProtectionInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setDiskAutoDeleteInstance. */
   public UnaryCallSettings
       setDiskAutoDeleteInstanceSettings() {
     return setDiskAutoDeleteInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to setDiskAutoDeleteInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setDiskAutoDeleteInstanceOperationSettings() {
+    return setDiskAutoDeleteInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setIamPolicyInstance. */
   public UnaryCallSettings setIamPolicyInstanceSettings() {
     return setIamPolicyInstanceSettings;
@@ -294,69 +419,155 @@ public UnaryCallSettings setLabelsInsta
     return setLabelsInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to setLabelsInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setLabelsInstanceOperationSettings() {
+    return setLabelsInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setMachineResourcesInstance. */
   public UnaryCallSettings
       setMachineResourcesInstanceSettings() {
     return setMachineResourcesInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to setMachineResourcesInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setMachineResourcesInstanceOperationSettings() {
+    return setMachineResourcesInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setMachineTypeInstance. */
   public UnaryCallSettings
       setMachineTypeInstanceSettings() {
     return setMachineTypeInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to setMachineTypeInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setMachineTypeInstanceOperationSettings() {
+    return setMachineTypeInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setMetadataInstance. */
   public UnaryCallSettings
       setMetadataInstanceSettings() {
     return setMetadataInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to setMetadataInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setMetadataInstanceOperationSettings() {
+    return setMetadataInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setMinCpuPlatformInstance. */
   public UnaryCallSettings
       setMinCpuPlatformInstanceSettings() {
     return setMinCpuPlatformInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to setMinCpuPlatformInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setMinCpuPlatformInstanceOperationSettings() {
+    return setMinCpuPlatformInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setSchedulingInstance. */
   public UnaryCallSettings
       setSchedulingInstanceSettings() {
     return setSchedulingInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to setSchedulingInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setSchedulingInstanceOperationSettings() {
+    return setSchedulingInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setServiceAccountInstance. */
   public UnaryCallSettings
       setServiceAccountInstanceSettings() {
     return setServiceAccountInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to setServiceAccountInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setServiceAccountInstanceOperationSettings() {
+    return setServiceAccountInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setTagsInstance. */
   public UnaryCallSettings setTagsInstanceSettings() {
     return setTagsInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to setTagsInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setTagsInstanceOperationSettings() {
+    return setTagsInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to simulateMaintenanceEventInstance. */
   public UnaryCallSettings
       simulateMaintenanceEventInstanceSettings() {
     return simulateMaintenanceEventInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to simulateMaintenanceEventInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          SimulateMaintenanceEventInstanceHttpRequest, EmptyMessage, EmptyMessage>
+      simulateMaintenanceEventInstanceOperationSettings() {
+    return simulateMaintenanceEventInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to startInstance. */
   public UnaryCallSettings startInstanceSettings() {
     return startInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to startInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      startInstanceOperationSettings() {
+    return startInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to startWithEncryptionKeyInstance. */
   public UnaryCallSettings
       startWithEncryptionKeyInstanceSettings() {
     return startWithEncryptionKeyInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to startWithEncryptionKeyInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          StartWithEncryptionKeyInstanceHttpRequest, EmptyMessage, EmptyMessage>
+      startWithEncryptionKeyInstanceOperationSettings() {
+    return startWithEncryptionKeyInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to stopInstance. */
   public UnaryCallSettings stopInstanceSettings() {
     return stopInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to stopInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      stopInstanceOperationSettings() {
+    return stopInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to testIamPermissionsInstance. */
   public UnaryCallSettings
       testIamPermissionsInstanceSettings() {
@@ -369,12 +580,27 @@ public UnaryCallSettings stopInstanceSetting
     return updateAccessConfigInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to updateAccessConfigInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateAccessConfigInstanceOperationSettings() {
+    return updateAccessConfigInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to updateNetworkInterfaceInstance. */
   public UnaryCallSettings
       updateNetworkInterfaceInstanceSettings() {
     return updateNetworkInterfaceInstanceSettings;
   }
 
+  /** Returns the object with the settings used for calls to updateNetworkInterfaceInstance. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          UpdateNetworkInterfaceInstanceHttpRequest, EmptyMessage, EmptyMessage>
+      updateNetworkInterfaceInstanceOperationSettings() {
+    return updateNetworkInterfaceInstanceOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public InstanceStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -450,45 +676,85 @@ protected InstanceStubSettings(Builder settingsBuilder) throws IOException {
     super(settingsBuilder);
 
     addAccessConfigInstanceSettings = settingsBuilder.addAccessConfigInstanceSettings().build();
+    addAccessConfigInstanceOperationSettings =
+        settingsBuilder.addAccessConfigInstanceOperationSettings().build();
     aggregatedListInstancesSettings = settingsBuilder.aggregatedListInstancesSettings().build();
     attachDiskInstanceSettings = settingsBuilder.attachDiskInstanceSettings().build();
+    attachDiskInstanceOperationSettings =
+        settingsBuilder.attachDiskInstanceOperationSettings().build();
     deleteInstanceSettings = settingsBuilder.deleteInstanceSettings().build();
+    deleteInstanceOperationSettings = settingsBuilder.deleteInstanceOperationSettings().build();
     deleteAccessConfigInstanceSettings =
         settingsBuilder.deleteAccessConfigInstanceSettings().build();
+    deleteAccessConfigInstanceOperationSettings =
+        settingsBuilder.deleteAccessConfigInstanceOperationSettings().build();
     detachDiskInstanceSettings = settingsBuilder.detachDiskInstanceSettings().build();
+    detachDiskInstanceOperationSettings =
+        settingsBuilder.detachDiskInstanceOperationSettings().build();
     getInstanceSettings = settingsBuilder.getInstanceSettings().build();
     getIamPolicyInstanceSettings = settingsBuilder.getIamPolicyInstanceSettings().build();
     getSerialPortOutputInstanceSettings =
         settingsBuilder.getSerialPortOutputInstanceSettings().build();
     insertInstanceSettings = settingsBuilder.insertInstanceSettings().build();
+    insertInstanceOperationSettings = settingsBuilder.insertInstanceOperationSettings().build();
     listInstancesSettings = settingsBuilder.listInstancesSettings().build();
     listReferrersInstancesSettings = settingsBuilder.listReferrersInstancesSettings().build();
     resetInstanceSettings = settingsBuilder.resetInstanceSettings().build();
+    resetInstanceOperationSettings = settingsBuilder.resetInstanceOperationSettings().build();
     setDeletionProtectionInstanceSettings =
         settingsBuilder.setDeletionProtectionInstanceSettings().build();
+    setDeletionProtectionInstanceOperationSettings =
+        settingsBuilder.setDeletionProtectionInstanceOperationSettings().build();
     setDiskAutoDeleteInstanceSettings = settingsBuilder.setDiskAutoDeleteInstanceSettings().build();
+    setDiskAutoDeleteInstanceOperationSettings =
+        settingsBuilder.setDiskAutoDeleteInstanceOperationSettings().build();
     setIamPolicyInstanceSettings = settingsBuilder.setIamPolicyInstanceSettings().build();
     setLabelsInstanceSettings = settingsBuilder.setLabelsInstanceSettings().build();
+    setLabelsInstanceOperationSettings =
+        settingsBuilder.setLabelsInstanceOperationSettings().build();
     setMachineResourcesInstanceSettings =
         settingsBuilder.setMachineResourcesInstanceSettings().build();
+    setMachineResourcesInstanceOperationSettings =
+        settingsBuilder.setMachineResourcesInstanceOperationSettings().build();
     setMachineTypeInstanceSettings = settingsBuilder.setMachineTypeInstanceSettings().build();
+    setMachineTypeInstanceOperationSettings =
+        settingsBuilder.setMachineTypeInstanceOperationSettings().build();
     setMetadataInstanceSettings = settingsBuilder.setMetadataInstanceSettings().build();
+    setMetadataInstanceOperationSettings =
+        settingsBuilder.setMetadataInstanceOperationSettings().build();
     setMinCpuPlatformInstanceSettings = settingsBuilder.setMinCpuPlatformInstanceSettings().build();
+    setMinCpuPlatformInstanceOperationSettings =
+        settingsBuilder.setMinCpuPlatformInstanceOperationSettings().build();
     setSchedulingInstanceSettings = settingsBuilder.setSchedulingInstanceSettings().build();
+    setSchedulingInstanceOperationSettings =
+        settingsBuilder.setSchedulingInstanceOperationSettings().build();
     setServiceAccountInstanceSettings = settingsBuilder.setServiceAccountInstanceSettings().build();
+    setServiceAccountInstanceOperationSettings =
+        settingsBuilder.setServiceAccountInstanceOperationSettings().build();
     setTagsInstanceSettings = settingsBuilder.setTagsInstanceSettings().build();
+    setTagsInstanceOperationSettings = settingsBuilder.setTagsInstanceOperationSettings().build();
     simulateMaintenanceEventInstanceSettings =
         settingsBuilder.simulateMaintenanceEventInstanceSettings().build();
+    simulateMaintenanceEventInstanceOperationSettings =
+        settingsBuilder.simulateMaintenanceEventInstanceOperationSettings().build();
     startInstanceSettings = settingsBuilder.startInstanceSettings().build();
+    startInstanceOperationSettings = settingsBuilder.startInstanceOperationSettings().build();
     startWithEncryptionKeyInstanceSettings =
         settingsBuilder.startWithEncryptionKeyInstanceSettings().build();
+    startWithEncryptionKeyInstanceOperationSettings =
+        settingsBuilder.startWithEncryptionKeyInstanceOperationSettings().build();
     stopInstanceSettings = settingsBuilder.stopInstanceSettings().build();
+    stopInstanceOperationSettings = settingsBuilder.stopInstanceOperationSettings().build();
     testIamPermissionsInstanceSettings =
         settingsBuilder.testIamPermissionsInstanceSettings().build();
     updateAccessConfigInstanceSettings =
         settingsBuilder.updateAccessConfigInstanceSettings().build();
+    updateAccessConfigInstanceOperationSettings =
+        settingsBuilder.updateAccessConfigInstanceOperationSettings().build();
     updateNetworkInterfaceInstanceSettings =
         settingsBuilder.updateNetworkInterfaceInstanceSettings().build();
+    updateNetworkInterfaceInstanceOperationSettings =
+        settingsBuilder.updateNetworkInterfaceInstanceOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -689,6 +955,9 @@ public static class Builder extends StubSettings.Builder
         addAccessConfigInstanceSettings;
+    private final OperationCallSettings.Builder<
+            AddAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        addAccessConfigInstanceOperationSettings;
     private final PagedCallSettings.Builder<
             AggregatedListInstancesHttpRequest,
             InstanceAggregatedList,
@@ -696,12 +965,24 @@ public static class Builder extends StubSettings.Builder
         attachDiskInstanceSettings;
+    private final OperationCallSettings.Builder<
+            AttachDiskInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        attachDiskInstanceOperationSettings;
     private final UnaryCallSettings.Builder
         deleteInstanceSettings;
+    private final OperationCallSettings.Builder<
+            DeleteInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        deleteInstanceOperationSettings;
     private final UnaryCallSettings.Builder
         deleteAccessConfigInstanceSettings;
+    private final OperationCallSettings.Builder<
+            DeleteAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        deleteAccessConfigInstanceOperationSettings;
     private final UnaryCallSettings.Builder
         detachDiskInstanceSettings;
+    private final OperationCallSettings.Builder<
+            DetachDiskInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        detachDiskInstanceOperationSettings;
     private final UnaryCallSettings.Builder getInstanceSettings;
     private final UnaryCallSettings.Builder
         getIamPolicyInstanceSettings;
@@ -710,6 +991,9 @@ public static class Builder extends StubSettings.Builder
         insertInstanceSettings;
+    private final OperationCallSettings.Builder<
+            InsertInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        insertInstanceOperationSettings;
     private final PagedCallSettings.Builder<
             ListInstancesHttpRequest, InstanceList, ListInstancesPagedResponse>
         listInstancesSettings;
@@ -720,43 +1004,93 @@ public static class Builder extends StubSettings.Builder
         resetInstanceSettings;
+    private final OperationCallSettings.Builder<
+            ResetInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        resetInstanceOperationSettings;
     private final UnaryCallSettings.Builder
         setDeletionProtectionInstanceSettings;
+    private final OperationCallSettings.Builder<
+            SetDeletionProtectionInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setDeletionProtectionInstanceOperationSettings;
     private final UnaryCallSettings.Builder
         setDiskAutoDeleteInstanceSettings;
+    private final OperationCallSettings.Builder<
+            SetDiskAutoDeleteInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setDiskAutoDeleteInstanceOperationSettings;
     private final UnaryCallSettings.Builder
         setIamPolicyInstanceSettings;
     private final UnaryCallSettings.Builder
         setLabelsInstanceSettings;
+    private final OperationCallSettings.Builder<
+            SetLabelsInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setLabelsInstanceOperationSettings;
     private final UnaryCallSettings.Builder
         setMachineResourcesInstanceSettings;
+    private final OperationCallSettings.Builder<
+            SetMachineResourcesInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setMachineResourcesInstanceOperationSettings;
     private final UnaryCallSettings.Builder
         setMachineTypeInstanceSettings;
+    private final OperationCallSettings.Builder<
+            SetMachineTypeInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setMachineTypeInstanceOperationSettings;
     private final UnaryCallSettings.Builder
         setMetadataInstanceSettings;
+    private final OperationCallSettings.Builder<
+            SetMetadataInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setMetadataInstanceOperationSettings;
     private final UnaryCallSettings.Builder
         setMinCpuPlatformInstanceSettings;
+    private final OperationCallSettings.Builder<
+            SetMinCpuPlatformInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setMinCpuPlatformInstanceOperationSettings;
     private final UnaryCallSettings.Builder
         setSchedulingInstanceSettings;
+    private final OperationCallSettings.Builder<
+            SetSchedulingInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setSchedulingInstanceOperationSettings;
     private final UnaryCallSettings.Builder
         setServiceAccountInstanceSettings;
+    private final OperationCallSettings.Builder<
+            SetServiceAccountInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setServiceAccountInstanceOperationSettings;
     private final UnaryCallSettings.Builder
         setTagsInstanceSettings;
+    private final OperationCallSettings.Builder<
+            SetTagsInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setTagsInstanceOperationSettings;
     private final UnaryCallSettings.Builder
         simulateMaintenanceEventInstanceSettings;
+    private final OperationCallSettings.Builder<
+            SimulateMaintenanceEventInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        simulateMaintenanceEventInstanceOperationSettings;
     private final UnaryCallSettings.Builder
         startInstanceSettings;
+    private final OperationCallSettings.Builder<
+            StartInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        startInstanceOperationSettings;
     private final UnaryCallSettings.Builder
         startWithEncryptionKeyInstanceSettings;
+    private final OperationCallSettings.Builder<
+            StartWithEncryptionKeyInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        startWithEncryptionKeyInstanceOperationSettings;
     private final UnaryCallSettings.Builder
         stopInstanceSettings;
+    private final OperationCallSettings.Builder
+        stopInstanceOperationSettings;
     private final UnaryCallSettings.Builder<
             TestIamPermissionsInstanceHttpRequest, TestPermissionsResponse>
         testIamPermissionsInstanceSettings;
     private final UnaryCallSettings.Builder
         updateAccessConfigInstanceSettings;
+    private final OperationCallSettings.Builder<
+            UpdateAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        updateAccessConfigInstanceOperationSettings;
     private final UnaryCallSettings.Builder
         updateNetworkInterfaceInstanceSettings;
+    private final OperationCallSettings.Builder<
+            UpdateNetworkInterfaceInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        updateNetworkInterfaceInstanceOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -801,17 +1135,27 @@ protected Builder(ClientContext clientContext) {
 
       addAccessConfigInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      addAccessConfigInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       aggregatedListInstancesSettings =
           PagedCallSettings.newBuilder(AGGREGATED_LIST_INSTANCES_PAGE_STR_FACT);
 
       attachDiskInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      attachDiskInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       deleteInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       deleteAccessConfigInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteAccessConfigInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       detachDiskInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      detachDiskInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       getInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       getIamPolicyInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -820,6 +1164,8 @@ protected Builder(ClientContext clientContext) {
 
       insertInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT);
 
       listReferrersInstancesSettings =
@@ -827,42 +1173,76 @@ protected Builder(ClientContext clientContext) {
 
       resetInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      resetInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       setDeletionProtectionInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setDeletionProtectionInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       setDiskAutoDeleteInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setDiskAutoDeleteInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       setIamPolicyInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       setLabelsInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setLabelsInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       setMachineResourcesInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setMachineResourcesInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       setMachineTypeInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setMachineTypeInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       setMetadataInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setMetadataInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       setMinCpuPlatformInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setMinCpuPlatformInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       setSchedulingInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setSchedulingInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       setServiceAccountInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setServiceAccountInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       setTagsInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setTagsInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       simulateMaintenanceEventInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      simulateMaintenanceEventInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       startInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      startInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       startWithEncryptionKeyInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      startWithEncryptionKeyInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       stopInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      stopInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       testIamPermissionsInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       updateAccessConfigInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      updateAccessConfigInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       updateNetworkInterfaceInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      updateNetworkInterfaceInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               addAccessConfigInstanceSettings,
@@ -1065,6 +1445,502 @@ private static Builder initDefaults(Builder builder) {
           .updateNetworkInterfaceInstanceSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .addAccessConfigInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .attachDiskInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .deleteInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .deleteAccessConfigInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .detachDiskInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .resetInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setDeletionProtectionInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setDiskAutoDeleteInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setLabelsInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setMachineResourcesInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setMachineTypeInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setMetadataInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setMinCpuPlatformInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setSchedulingInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setServiceAccountInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setTagsInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .simulateMaintenanceEventInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .startInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .startWithEncryptionKeyInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .stopInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .updateAccessConfigInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .updateNetworkInterfaceInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -1073,42 +1949,81 @@ protected Builder(InstanceStubSettings settings) {
       super(settings);
 
       addAccessConfigInstanceSettings = settings.addAccessConfigInstanceSettings.toBuilder();
+      addAccessConfigInstanceOperationSettings =
+          settings.addAccessConfigInstanceOperationSettings.toBuilder();
       aggregatedListInstancesSettings = settings.aggregatedListInstancesSettings.toBuilder();
       attachDiskInstanceSettings = settings.attachDiskInstanceSettings.toBuilder();
+      attachDiskInstanceOperationSettings =
+          settings.attachDiskInstanceOperationSettings.toBuilder();
       deleteInstanceSettings = settings.deleteInstanceSettings.toBuilder();
+      deleteInstanceOperationSettings = settings.deleteInstanceOperationSettings.toBuilder();
       deleteAccessConfigInstanceSettings = settings.deleteAccessConfigInstanceSettings.toBuilder();
+      deleteAccessConfigInstanceOperationSettings =
+          settings.deleteAccessConfigInstanceOperationSettings.toBuilder();
       detachDiskInstanceSettings = settings.detachDiskInstanceSettings.toBuilder();
+      detachDiskInstanceOperationSettings =
+          settings.detachDiskInstanceOperationSettings.toBuilder();
       getInstanceSettings = settings.getInstanceSettings.toBuilder();
       getIamPolicyInstanceSettings = settings.getIamPolicyInstanceSettings.toBuilder();
       getSerialPortOutputInstanceSettings =
           settings.getSerialPortOutputInstanceSettings.toBuilder();
       insertInstanceSettings = settings.insertInstanceSettings.toBuilder();
+      insertInstanceOperationSettings = settings.insertInstanceOperationSettings.toBuilder();
       listInstancesSettings = settings.listInstancesSettings.toBuilder();
       listReferrersInstancesSettings = settings.listReferrersInstancesSettings.toBuilder();
       resetInstanceSettings = settings.resetInstanceSettings.toBuilder();
+      resetInstanceOperationSettings = settings.resetInstanceOperationSettings.toBuilder();
       setDeletionProtectionInstanceSettings =
           settings.setDeletionProtectionInstanceSettings.toBuilder();
+      setDeletionProtectionInstanceOperationSettings =
+          settings.setDeletionProtectionInstanceOperationSettings.toBuilder();
       setDiskAutoDeleteInstanceSettings = settings.setDiskAutoDeleteInstanceSettings.toBuilder();
+      setDiskAutoDeleteInstanceOperationSettings =
+          settings.setDiskAutoDeleteInstanceOperationSettings.toBuilder();
       setIamPolicyInstanceSettings = settings.setIamPolicyInstanceSettings.toBuilder();
       setLabelsInstanceSettings = settings.setLabelsInstanceSettings.toBuilder();
+      setLabelsInstanceOperationSettings = settings.setLabelsInstanceOperationSettings.toBuilder();
       setMachineResourcesInstanceSettings =
           settings.setMachineResourcesInstanceSettings.toBuilder();
+      setMachineResourcesInstanceOperationSettings =
+          settings.setMachineResourcesInstanceOperationSettings.toBuilder();
       setMachineTypeInstanceSettings = settings.setMachineTypeInstanceSettings.toBuilder();
+      setMachineTypeInstanceOperationSettings =
+          settings.setMachineTypeInstanceOperationSettings.toBuilder();
       setMetadataInstanceSettings = settings.setMetadataInstanceSettings.toBuilder();
+      setMetadataInstanceOperationSettings =
+          settings.setMetadataInstanceOperationSettings.toBuilder();
       setMinCpuPlatformInstanceSettings = settings.setMinCpuPlatformInstanceSettings.toBuilder();
+      setMinCpuPlatformInstanceOperationSettings =
+          settings.setMinCpuPlatformInstanceOperationSettings.toBuilder();
       setSchedulingInstanceSettings = settings.setSchedulingInstanceSettings.toBuilder();
+      setSchedulingInstanceOperationSettings =
+          settings.setSchedulingInstanceOperationSettings.toBuilder();
       setServiceAccountInstanceSettings = settings.setServiceAccountInstanceSettings.toBuilder();
+      setServiceAccountInstanceOperationSettings =
+          settings.setServiceAccountInstanceOperationSettings.toBuilder();
       setTagsInstanceSettings = settings.setTagsInstanceSettings.toBuilder();
+      setTagsInstanceOperationSettings = settings.setTagsInstanceOperationSettings.toBuilder();
       simulateMaintenanceEventInstanceSettings =
           settings.simulateMaintenanceEventInstanceSettings.toBuilder();
+      simulateMaintenanceEventInstanceOperationSettings =
+          settings.simulateMaintenanceEventInstanceOperationSettings.toBuilder();
       startInstanceSettings = settings.startInstanceSettings.toBuilder();
+      startInstanceOperationSettings = settings.startInstanceOperationSettings.toBuilder();
       startWithEncryptionKeyInstanceSettings =
           settings.startWithEncryptionKeyInstanceSettings.toBuilder();
+      startWithEncryptionKeyInstanceOperationSettings =
+          settings.startWithEncryptionKeyInstanceOperationSettings.toBuilder();
       stopInstanceSettings = settings.stopInstanceSettings.toBuilder();
+      stopInstanceOperationSettings = settings.stopInstanceOperationSettings.toBuilder();
       testIamPermissionsInstanceSettings = settings.testIamPermissionsInstanceSettings.toBuilder();
       updateAccessConfigInstanceSettings = settings.updateAccessConfigInstanceSettings.toBuilder();
+      updateAccessConfigInstanceOperationSettings =
+          settings.updateAccessConfigInstanceOperationSettings.toBuilder();
       updateNetworkInterfaceInstanceSettings =
           settings.updateNetworkInterfaceInstanceSettings.toBuilder();
+      updateNetworkInterfaceInstanceOperationSettings =
+          settings.updateNetworkInterfaceInstanceOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -1167,6 +2082,15 @@ public Builder applyToAllUnaryMethods(
       return addAccessConfigInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to addAccessConfigInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            AddAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        addAccessConfigInstanceOperationSettings() {
+      return addAccessConfigInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to aggregatedListInstances. */
     public PagedCallSettings.Builder<
             AggregatedListInstancesHttpRequest,
@@ -1182,24 +2106,57 @@ public Builder applyToAllUnaryMethods(
       return attachDiskInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to attachDiskInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        attachDiskInstanceOperationSettings() {
+      return attachDiskInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to deleteInstance. */
     public UnaryCallSettings.Builder
         deleteInstanceSettings() {
       return deleteInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteInstanceOperationSettings() {
+      return deleteInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to deleteAccessConfigInstance. */
     public UnaryCallSettings.Builder
         deleteAccessConfigInstanceSettings() {
       return deleteAccessConfigInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteAccessConfigInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        deleteAccessConfigInstanceOperationSettings() {
+      return deleteAccessConfigInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to detachDiskInstance. */
     public UnaryCallSettings.Builder
         detachDiskInstanceSettings() {
       return detachDiskInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to detachDiskInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        detachDiskInstanceOperationSettings() {
+      return detachDiskInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getInstance. */
     public UnaryCallSettings.Builder getInstanceSettings() {
       return getInstanceSettings;
@@ -1223,6 +2180,14 @@ public UnaryCallSettings.Builder getInstanceSe
       return insertInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertInstanceOperationSettings() {
+      return insertInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listInstances. */
     public PagedCallSettings.Builder<
             ListInstancesHttpRequest, InstanceList, ListInstancesPagedResponse>
@@ -1244,18 +2209,44 @@ public UnaryCallSettings.Builder resetInsta
       return resetInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to resetInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        resetInstanceOperationSettings() {
+      return resetInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setDeletionProtectionInstance. */
     public UnaryCallSettings.Builder
         setDeletionProtectionInstanceSettings() {
       return setDeletionProtectionInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setDeletionProtectionInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetDeletionProtectionInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setDeletionProtectionInstanceOperationSettings() {
+      return setDeletionProtectionInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setDiskAutoDeleteInstance. */
     public UnaryCallSettings.Builder
         setDiskAutoDeleteInstanceSettings() {
       return setDiskAutoDeleteInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setDiskAutoDeleteInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetDiskAutoDeleteInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setDiskAutoDeleteInstanceOperationSettings() {
+      return setDiskAutoDeleteInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setIamPolicyInstance. */
     public UnaryCallSettings.Builder
         setIamPolicyInstanceSettings() {
@@ -1268,70 +2259,173 @@ public UnaryCallSettings.Builder resetInsta
       return setLabelsInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setLabelsInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        setLabelsInstanceOperationSettings() {
+      return setLabelsInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setMachineResourcesInstance. */
     public UnaryCallSettings.Builder
         setMachineResourcesInstanceSettings() {
       return setMachineResourcesInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setMachineResourcesInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetMachineResourcesInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setMachineResourcesInstanceOperationSettings() {
+      return setMachineResourcesInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setMachineTypeInstance. */
     public UnaryCallSettings.Builder
         setMachineTypeInstanceSettings() {
       return setMachineTypeInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setMachineTypeInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetMachineTypeInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setMachineTypeInstanceOperationSettings() {
+      return setMachineTypeInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setMetadataInstance. */
     public UnaryCallSettings.Builder
         setMetadataInstanceSettings() {
       return setMetadataInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setMetadataInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        setMetadataInstanceOperationSettings() {
+      return setMetadataInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setMinCpuPlatformInstance. */
     public UnaryCallSettings.Builder
         setMinCpuPlatformInstanceSettings() {
       return setMinCpuPlatformInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setMinCpuPlatformInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetMinCpuPlatformInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setMinCpuPlatformInstanceOperationSettings() {
+      return setMinCpuPlatformInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setSchedulingInstance. */
     public UnaryCallSettings.Builder
         setSchedulingInstanceSettings() {
       return setSchedulingInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setSchedulingInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetSchedulingInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setSchedulingInstanceOperationSettings() {
+      return setSchedulingInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setServiceAccountInstance. */
     public UnaryCallSettings.Builder
         setServiceAccountInstanceSettings() {
       return setServiceAccountInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setServiceAccountInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetServiceAccountInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        setServiceAccountInstanceOperationSettings() {
+      return setServiceAccountInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setTagsInstance. */
     public UnaryCallSettings.Builder
         setTagsInstanceSettings() {
       return setTagsInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setTagsInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        setTagsInstanceOperationSettings() {
+      return setTagsInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to simulateMaintenanceEventInstance. */
     public UnaryCallSettings.Builder
         simulateMaintenanceEventInstanceSettings() {
       return simulateMaintenanceEventInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to simulateMaintenanceEventInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SimulateMaintenanceEventInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        simulateMaintenanceEventInstanceOperationSettings() {
+      return simulateMaintenanceEventInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to startInstance. */
     public UnaryCallSettings.Builder startInstanceSettings() {
       return startInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to startInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        startInstanceOperationSettings() {
+      return startInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to startWithEncryptionKeyInstance. */
     public UnaryCallSettings.Builder
         startWithEncryptionKeyInstanceSettings() {
       return startWithEncryptionKeyInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to startWithEncryptionKeyInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            StartWithEncryptionKeyInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        startWithEncryptionKeyInstanceOperationSettings() {
+      return startWithEncryptionKeyInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to stopInstance. */
     public UnaryCallSettings.Builder stopInstanceSettings() {
       return stopInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to stopInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        stopInstanceOperationSettings() {
+      return stopInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to testIamPermissionsInstance. */
     public UnaryCallSettings.Builder
         testIamPermissionsInstanceSettings() {
@@ -1344,12 +2438,30 @@ public UnaryCallSettings.Builder stopInstanc
       return updateAccessConfigInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to updateAccessConfigInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            UpdateAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        updateAccessConfigInstanceOperationSettings() {
+      return updateAccessConfigInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to updateNetworkInterfaceInstance. */
     public UnaryCallSettings.Builder
         updateNetworkInterfaceInstanceSettings() {
       return updateNetworkInterfaceInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to updateNetworkInterfaceInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            UpdateNetworkInterfaceInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        updateNetworkInterfaceInstanceOperationSettings() {
+      return updateNetworkInterfaceInstanceOperationSettings;
+    }
+
     @Override
     public InstanceStubSettings build() throws IOException {
       return new InstanceStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStub.java
index c92f7c018a8f..44dab5b1d148 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.DeleteInstanceTemplateHttpRequest;
 import com.google.cloud.compute.v1.GetIamPolicyInstanceTemplateHttpRequest;
@@ -44,6 +46,18 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class InstanceTemplateStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteInstanceTemplateOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteInstanceTemplateOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       deleteInstanceTemplateCallable() {
@@ -63,6 +77,13 @@ public abstract class InstanceTemplateStub implements BackgroundResource {
         "Not implemented: getIamPolicyInstanceTemplateCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertInstanceTemplateOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertInstanceTemplateOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       insertInstanceTemplateCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStubSettings.java
index 929ef444f52f..8c3ae22cdef1 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -75,13 +80,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteInstanceTemplate to 30 seconds: + * example, to set the total timeout of getInstanceTemplate to 30 seconds: * *

  * 
  * InstanceTemplateStubSettings.Builder instanceTemplateSettingsBuilder =
  *     InstanceTemplateStubSettings.newBuilder();
- * instanceTemplateSettingsBuilder.deleteInstanceTemplateSettings().getRetrySettings().toBuilder()
+ * instanceTemplateSettingsBuilder.getInstanceTemplateSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * InstanceTemplateStubSettings instanceTemplateSettings = instanceTemplateSettingsBuilder.build();
  * 
@@ -103,12 +108,16 @@ public class InstanceTemplateStubSettings extends StubSettings
       deleteInstanceTemplateSettings;
+  private final OperationCallSettings
+      deleteInstanceTemplateOperationSettings;
   private final UnaryCallSettings
       getInstanceTemplateSettings;
   private final UnaryCallSettings
       getIamPolicyInstanceTemplateSettings;
   private final UnaryCallSettings
       insertInstanceTemplateSettings;
+  private final OperationCallSettings
+      insertInstanceTemplateOperationSettings;
   private final PagedCallSettings<
           ListInstanceTemplatesHttpRequest,
           InstanceTemplateList,
@@ -126,6 +135,13 @@ public class InstanceTemplateStubSettings extends StubSettings
+      deleteInstanceTemplateOperationSettings() {
+    return deleteInstanceTemplateOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getInstanceTemplate. */
   public UnaryCallSettings
       getInstanceTemplateSettings() {
@@ -144,6 +160,13 @@ public class InstanceTemplateStubSettings extends StubSettings
+      insertInstanceTemplateOperationSettings() {
+    return insertInstanceTemplateOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listInstanceTemplates. */
   public PagedCallSettings<
           ListInstanceTemplatesHttpRequest,
@@ -241,10 +264,14 @@ protected InstanceTemplateStubSettings(Builder settingsBuilder) throws IOExcepti
     super(settingsBuilder);
 
     deleteInstanceTemplateSettings = settingsBuilder.deleteInstanceTemplateSettings().build();
+    deleteInstanceTemplateOperationSettings =
+        settingsBuilder.deleteInstanceTemplateOperationSettings().build();
     getInstanceTemplateSettings = settingsBuilder.getInstanceTemplateSettings().build();
     getIamPolicyInstanceTemplateSettings =
         settingsBuilder.getIamPolicyInstanceTemplateSettings().build();
     insertInstanceTemplateSettings = settingsBuilder.insertInstanceTemplateSettings().build();
+    insertInstanceTemplateOperationSettings =
+        settingsBuilder.insertInstanceTemplateOperationSettings().build();
     listInstanceTemplatesSettings = settingsBuilder.listInstanceTemplatesSettings().build();
     setIamPolicyInstanceTemplateSettings =
         settingsBuilder.setIamPolicyInstanceTemplateSettings().build();
@@ -325,12 +352,18 @@ public static class Builder extends StubSettings.Builder
         deleteInstanceTemplateSettings;
+    private final OperationCallSettings.Builder<
+            DeleteInstanceTemplateHttpRequest, EmptyMessage, EmptyMessage>
+        deleteInstanceTemplateOperationSettings;
     private final UnaryCallSettings.Builder
         getInstanceTemplateSettings;
     private final UnaryCallSettings.Builder
         getIamPolicyInstanceTemplateSettings;
     private final UnaryCallSettings.Builder
         insertInstanceTemplateSettings;
+    private final OperationCallSettings.Builder<
+            InsertInstanceTemplateHttpRequest, EmptyMessage, EmptyMessage>
+        insertInstanceTemplateOperationSettings;
     private final PagedCallSettings.Builder<
             ListInstanceTemplatesHttpRequest,
             InstanceTemplateList,
@@ -385,12 +418,16 @@ protected Builder(ClientContext clientContext) {
 
       deleteInstanceTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteInstanceTemplateOperationSettings = OperationCallSettings.newBuilder();
+
       getInstanceTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       getIamPolicyInstanceTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertInstanceTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertInstanceTemplateOperationSettings = OperationCallSettings.newBuilder();
+
       listInstanceTemplatesSettings =
           PagedCallSettings.newBuilder(LIST_INSTANCE_TEMPLATES_PAGE_STR_FACT);
 
@@ -456,6 +493,50 @@ private static Builder initDefaults(Builder builder) {
           .testIamPermissionsInstanceTemplateSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteInstanceTemplateOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertInstanceTemplateOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -464,10 +545,14 @@ protected Builder(InstanceTemplateStubSettings settings) {
       super(settings);
 
       deleteInstanceTemplateSettings = settings.deleteInstanceTemplateSettings.toBuilder();
+      deleteInstanceTemplateOperationSettings =
+          settings.deleteInstanceTemplateOperationSettings.toBuilder();
       getInstanceTemplateSettings = settings.getInstanceTemplateSettings.toBuilder();
       getIamPolicyInstanceTemplateSettings =
           settings.getIamPolicyInstanceTemplateSettings.toBuilder();
       insertInstanceTemplateSettings = settings.insertInstanceTemplateSettings.toBuilder();
+      insertInstanceTemplateOperationSettings =
+          settings.insertInstanceTemplateOperationSettings.toBuilder();
       listInstanceTemplatesSettings = settings.listInstanceTemplatesSettings.toBuilder();
       setIamPolicyInstanceTemplateSettings =
           settings.setIamPolicyInstanceTemplateSettings.toBuilder();
@@ -507,6 +592,15 @@ public Builder applyToAllUnaryMethods(
       return deleteInstanceTemplateSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteInstanceTemplate. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteInstanceTemplateHttpRequest, EmptyMessage, EmptyMessage>
+        deleteInstanceTemplateOperationSettings() {
+      return deleteInstanceTemplateOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getInstanceTemplate. */
     public UnaryCallSettings.Builder
         getInstanceTemplateSettings() {
@@ -525,6 +619,15 @@ public Builder applyToAllUnaryMethods(
       return insertInstanceTemplateSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertInstanceTemplate. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertInstanceTemplateHttpRequest, EmptyMessage, EmptyMessage>
+        insertInstanceTemplateOperationSettings() {
+      return insertInstanceTemplateOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listInstanceTemplates. */
     public PagedCallSettings.Builder<
             ListInstanceTemplatesHttpRequest,
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStub.java
index 1b0da50e79bc..624b712beba4 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStub.java
@@ -20,6 +20,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.AggregatedListInterconnectAttachmentsHttpRequest;
 import com.google.cloud.compute.v1.DeleteInterconnectAttachmentHttpRequest;
@@ -43,6 +45,11 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class InterconnectAttachmentStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
   @BetaApi
   public UnaryCallable<
           AggregatedListInterconnectAttachmentsHttpRequest,
@@ -60,6 +67,13 @@ public abstract class InterconnectAttachmentStub implements BackgroundResource {
         "Not implemented: aggregatedListInterconnectAttachmentsCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteInterconnectAttachmentOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteInterconnectAttachmentOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       deleteInterconnectAttachmentCallable() {
@@ -73,6 +87,13 @@ public abstract class InterconnectAttachmentStub implements BackgroundResource {
     throw new UnsupportedOperationException("Not implemented: getInterconnectAttachmentCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertInterconnectAttachmentOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertInterconnectAttachmentOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       insertInterconnectAttachmentCallable() {
@@ -95,6 +116,13 @@ public abstract class InterconnectAttachmentStub implements BackgroundResource {
         "Not implemented: listInterconnectAttachmentsCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchInterconnectAttachmentOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: patchInterconnectAttachmentOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       patchInterconnectAttachmentCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStubSettings.java
index 314631ec2407..891668e4b862 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStubSettings.java
@@ -24,13 +24,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -75,13 +80,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteInterconnectAttachment to 30 seconds: + * example, to set the total timeout of getInterconnectAttachment to 30 seconds: * *

  * 
  * InterconnectAttachmentStubSettings.Builder interconnectAttachmentSettingsBuilder =
  *     InterconnectAttachmentStubSettings.newBuilder();
- * interconnectAttachmentSettingsBuilder.deleteInterconnectAttachmentSettings().getRetrySettings().toBuilder()
+ * interconnectAttachmentSettingsBuilder.getInterconnectAttachmentSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * InterconnectAttachmentStubSettings interconnectAttachmentSettings = interconnectAttachmentSettingsBuilder.build();
  * 
@@ -109,10 +114,16 @@ public class InterconnectAttachmentStubSettings
       aggregatedListInterconnectAttachmentsSettings;
   private final UnaryCallSettings
       deleteInterconnectAttachmentSettings;
+  private final OperationCallSettings<
+          DeleteInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage>
+      deleteInterconnectAttachmentOperationSettings;
   private final UnaryCallSettings
       getInterconnectAttachmentSettings;
   private final UnaryCallSettings
       insertInterconnectAttachmentSettings;
+  private final OperationCallSettings<
+          InsertInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage>
+      insertInterconnectAttachmentOperationSettings;
   private final PagedCallSettings<
           ListInterconnectAttachmentsHttpRequest,
           InterconnectAttachmentList,
@@ -120,6 +131,9 @@ public class InterconnectAttachmentStubSettings
       listInterconnectAttachmentsSettings;
   private final UnaryCallSettings
       patchInterconnectAttachmentSettings;
+  private final OperationCallSettings<
+          PatchInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage>
+      patchInterconnectAttachmentOperationSettings;
 
   /**
    * Returns the object with the settings used for calls to aggregatedListInterconnectAttachments.
@@ -138,6 +152,13 @@ public class InterconnectAttachmentStubSettings
     return deleteInterconnectAttachmentSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteInterconnectAttachment. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteInterconnectAttachmentOperationSettings() {
+    return deleteInterconnectAttachmentOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getInterconnectAttachment. */
   public UnaryCallSettings
       getInterconnectAttachmentSettings() {
@@ -150,6 +171,13 @@ public class InterconnectAttachmentStubSettings
     return insertInterconnectAttachmentSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertInterconnectAttachment. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertInterconnectAttachmentOperationSettings() {
+    return insertInterconnectAttachmentOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listInterconnectAttachments. */
   public PagedCallSettings<
           ListInterconnectAttachmentsHttpRequest,
@@ -165,6 +193,13 @@ public class InterconnectAttachmentStubSettings
     return patchInterconnectAttachmentSettings;
   }
 
+  /** Returns the object with the settings used for calls to patchInterconnectAttachment. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchInterconnectAttachmentOperationSettings() {
+    return patchInterconnectAttachmentOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public InterconnectAttachmentStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -244,13 +279,19 @@ protected InterconnectAttachmentStubSettings(Builder settingsBuilder) throws IOE
         settingsBuilder.aggregatedListInterconnectAttachmentsSettings().build();
     deleteInterconnectAttachmentSettings =
         settingsBuilder.deleteInterconnectAttachmentSettings().build();
+    deleteInterconnectAttachmentOperationSettings =
+        settingsBuilder.deleteInterconnectAttachmentOperationSettings().build();
     getInterconnectAttachmentSettings = settingsBuilder.getInterconnectAttachmentSettings().build();
     insertInterconnectAttachmentSettings =
         settingsBuilder.insertInterconnectAttachmentSettings().build();
+    insertInterconnectAttachmentOperationSettings =
+        settingsBuilder.insertInterconnectAttachmentOperationSettings().build();
     listInterconnectAttachmentsSettings =
         settingsBuilder.listInterconnectAttachmentsSettings().build();
     patchInterconnectAttachmentSettings =
         settingsBuilder.patchInterconnectAttachmentSettings().build();
+    patchInterconnectAttachmentOperationSettings =
+        settingsBuilder.patchInterconnectAttachmentOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -426,11 +467,17 @@ public static class Builder
         aggregatedListInterconnectAttachmentsSettings;
     private final UnaryCallSettings.Builder
         deleteInterconnectAttachmentSettings;
+    private final OperationCallSettings.Builder<
+            DeleteInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage>
+        deleteInterconnectAttachmentOperationSettings;
     private final UnaryCallSettings.Builder<
             GetInterconnectAttachmentHttpRequest, InterconnectAttachment>
         getInterconnectAttachmentSettings;
     private final UnaryCallSettings.Builder
         insertInterconnectAttachmentSettings;
+    private final OperationCallSettings.Builder<
+            InsertInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage>
+        insertInterconnectAttachmentOperationSettings;
     private final PagedCallSettings.Builder<
             ListInterconnectAttachmentsHttpRequest,
             InterconnectAttachmentList,
@@ -438,6 +485,9 @@ public static class Builder
         listInterconnectAttachmentsSettings;
     private final UnaryCallSettings.Builder
         patchInterconnectAttachmentSettings;
+    private final OperationCallSettings.Builder<
+            PatchInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage>
+        patchInterconnectAttachmentOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -485,15 +535,21 @@ protected Builder(ClientContext clientContext) {
 
       deleteInterconnectAttachmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteInterconnectAttachmentOperationSettings = OperationCallSettings.newBuilder();
+
       getInterconnectAttachmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertInterconnectAttachmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertInterconnectAttachmentOperationSettings = OperationCallSettings.newBuilder();
+
       listInterconnectAttachmentsSettings =
           PagedCallSettings.newBuilder(LIST_INTERCONNECT_ATTACHMENTS_PAGE_STR_FACT);
 
       patchInterconnectAttachmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      patchInterconnectAttachmentOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               aggregatedListInterconnectAttachmentsSettings,
@@ -546,6 +602,72 @@ private static Builder initDefaults(Builder builder) {
           .patchInterconnectAttachmentSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteInterconnectAttachmentOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertInterconnectAttachmentOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .patchInterconnectAttachmentOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -557,13 +679,19 @@ protected Builder(InterconnectAttachmentStubSettings settings) {
           settings.aggregatedListInterconnectAttachmentsSettings.toBuilder();
       deleteInterconnectAttachmentSettings =
           settings.deleteInterconnectAttachmentSettings.toBuilder();
+      deleteInterconnectAttachmentOperationSettings =
+          settings.deleteInterconnectAttachmentOperationSettings.toBuilder();
       getInterconnectAttachmentSettings = settings.getInterconnectAttachmentSettings.toBuilder();
       insertInterconnectAttachmentSettings =
           settings.insertInterconnectAttachmentSettings.toBuilder();
+      insertInterconnectAttachmentOperationSettings =
+          settings.insertInterconnectAttachmentOperationSettings.toBuilder();
       listInterconnectAttachmentsSettings =
           settings.listInterconnectAttachmentsSettings.toBuilder();
       patchInterconnectAttachmentSettings =
           settings.patchInterconnectAttachmentSettings.toBuilder();
+      patchInterconnectAttachmentOperationSettings =
+          settings.patchInterconnectAttachmentOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -608,6 +736,15 @@ public Builder applyToAllUnaryMethods(
       return deleteInterconnectAttachmentSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteInterconnectAttachment. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage>
+        deleteInterconnectAttachmentOperationSettings() {
+      return deleteInterconnectAttachmentOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getInterconnectAttachment. */
     public UnaryCallSettings.Builder
         getInterconnectAttachmentSettings() {
@@ -620,6 +757,15 @@ public Builder applyToAllUnaryMethods(
       return insertInterconnectAttachmentSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertInterconnectAttachment. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage>
+        insertInterconnectAttachmentOperationSettings() {
+      return insertInterconnectAttachmentOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listInterconnectAttachments. */
     public PagedCallSettings.Builder<
             ListInterconnectAttachmentsHttpRequest,
@@ -635,6 +781,15 @@ public Builder applyToAllUnaryMethods(
       return patchInterconnectAttachmentSettings;
     }
 
+    /** Returns the builder for the settings used for calls to patchInterconnectAttachment. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            PatchInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage>
+        patchInterconnectAttachmentOperationSettings() {
+      return patchInterconnectAttachmentOperationSettings;
+    }
+
     @Override
     public InterconnectAttachmentStubSettings build() throws IOException {
       return new InterconnectAttachmentStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStub.java
index c2f7c771b9a6..8445f8929529 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.DeleteInterconnectHttpRequest;
 import com.google.cloud.compute.v1.GetDiagnosticsInterconnectHttpRequest;
@@ -42,6 +44,18 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class InterconnectStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteInterconnectOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteInterconnectOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteInterconnectCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteInterconnectCallable()");
@@ -59,6 +73,13 @@ public UnaryCallable getInterconnectCa
         "Not implemented: getDiagnosticsInterconnectCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertInterconnectOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertInterconnectOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertInterconnectCallable() {
     throw new UnsupportedOperationException("Not implemented: insertInterconnectCallable()");
@@ -75,6 +96,13 @@ public UnaryCallable listInterco
     throw new UnsupportedOperationException("Not implemented: listInterconnectsCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchInterconnectOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: patchInterconnectOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable patchInterconnectCallable() {
     throw new UnsupportedOperationException("Not implemented: patchInterconnectCallable()");
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStubSettings.java
index d1654a486734..86de3ae99114 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -73,13 +78,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteInterconnect to 30 seconds: + * example, to set the total timeout of getInterconnect to 30 seconds: * *

  * 
  * InterconnectStubSettings.Builder interconnectSettingsBuilder =
  *     InterconnectStubSettings.newBuilder();
- * interconnectSettingsBuilder.deleteInterconnectSettings().getRetrySettings().toBuilder()
+ * interconnectSettingsBuilder.getInterconnectSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * InterconnectStubSettings interconnectSettings = interconnectSettingsBuilder.build();
  * 
@@ -101,23 +106,36 @@ public class InterconnectStubSettings extends StubSettings
       deleteInterconnectSettings;
+  private final OperationCallSettings
+      deleteInterconnectOperationSettings;
   private final UnaryCallSettings getInterconnectSettings;
   private final UnaryCallSettings<
           GetDiagnosticsInterconnectHttpRequest, InterconnectsGetDiagnosticsResponse>
       getDiagnosticsInterconnectSettings;
   private final UnaryCallSettings
       insertInterconnectSettings;
+  private final OperationCallSettings
+      insertInterconnectOperationSettings;
   private final PagedCallSettings<
           ListInterconnectsHttpRequest, InterconnectList, ListInterconnectsPagedResponse>
       listInterconnectsSettings;
   private final UnaryCallSettings
       patchInterconnectSettings;
+  private final OperationCallSettings
+      patchInterconnectOperationSettings;
 
   /** Returns the object with the settings used for calls to deleteInterconnect. */
   public UnaryCallSettings deleteInterconnectSettings() {
     return deleteInterconnectSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteInterconnect. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteInterconnectOperationSettings() {
+    return deleteInterconnectOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getInterconnect. */
   public UnaryCallSettings getInterconnectSettings() {
     return getInterconnectSettings;
@@ -135,6 +153,13 @@ public UnaryCallSettings insertInterco
     return insertInterconnectSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertInterconnect. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertInterconnectOperationSettings() {
+    return insertInterconnectOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listInterconnects. */
   public PagedCallSettings<
           ListInterconnectsHttpRequest, InterconnectList, ListInterconnectsPagedResponse>
@@ -147,6 +172,13 @@ public UnaryCallSettings patchInterconn
     return patchInterconnectSettings;
   }
 
+  /** Returns the object with the settings used for calls to patchInterconnect. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchInterconnectOperationSettings() {
+    return patchInterconnectOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public InterconnectStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -223,12 +255,18 @@ protected InterconnectStubSettings(Builder settingsBuilder) throws IOException {
     super(settingsBuilder);
 
     deleteInterconnectSettings = settingsBuilder.deleteInterconnectSettings().build();
+    deleteInterconnectOperationSettings =
+        settingsBuilder.deleteInterconnectOperationSettings().build();
     getInterconnectSettings = settingsBuilder.getInterconnectSettings().build();
     getDiagnosticsInterconnectSettings =
         settingsBuilder.getDiagnosticsInterconnectSettings().build();
     insertInterconnectSettings = settingsBuilder.insertInterconnectSettings().build();
+    insertInterconnectOperationSettings =
+        settingsBuilder.insertInterconnectOperationSettings().build();
     listInterconnectsSettings = settingsBuilder.listInterconnectsSettings().build();
     patchInterconnectSettings = settingsBuilder.patchInterconnectSettings().build();
+    patchInterconnectOperationSettings =
+        settingsBuilder.patchInterconnectOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -297,6 +335,9 @@ public static class Builder extends StubSettings.Builder
         deleteInterconnectSettings;
+    private final OperationCallSettings.Builder<
+            DeleteInterconnectHttpRequest, EmptyMessage, EmptyMessage>
+        deleteInterconnectOperationSettings;
     private final UnaryCallSettings.Builder
         getInterconnectSettings;
     private final UnaryCallSettings.Builder<
@@ -304,11 +345,17 @@ public static class Builder extends StubSettings.Builder
         insertInterconnectSettings;
+    private final OperationCallSettings.Builder<
+            InsertInterconnectHttpRequest, EmptyMessage, EmptyMessage>
+        insertInterconnectOperationSettings;
     private final PagedCallSettings.Builder<
             ListInterconnectsHttpRequest, InterconnectList, ListInterconnectsPagedResponse>
         listInterconnectsSettings;
     private final UnaryCallSettings.Builder
         patchInterconnectSettings;
+    private final OperationCallSettings.Builder<
+            PatchInterconnectHttpRequest, EmptyMessage, EmptyMessage>
+        patchInterconnectOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -353,16 +400,22 @@ protected Builder(ClientContext clientContext) {
 
       deleteInterconnectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteInterconnectOperationSettings = OperationCallSettings.newBuilder();
+
       getInterconnectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       getDiagnosticsInterconnectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertInterconnectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertInterconnectOperationSettings = OperationCallSettings.newBuilder();
+
       listInterconnectsSettings = PagedCallSettings.newBuilder(LIST_INTERCONNECTS_PAGE_STR_FACT);
 
       patchInterconnectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      patchInterconnectOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               deleteInterconnectSettings,
@@ -415,6 +468,69 @@ private static Builder initDefaults(Builder builder) {
           .patchInterconnectSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteInterconnectOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertInterconnectOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .patchInterconnectOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -423,11 +539,16 @@ protected Builder(InterconnectStubSettings settings) {
       super(settings);
 
       deleteInterconnectSettings = settings.deleteInterconnectSettings.toBuilder();
+      deleteInterconnectOperationSettings =
+          settings.deleteInterconnectOperationSettings.toBuilder();
       getInterconnectSettings = settings.getInterconnectSettings.toBuilder();
       getDiagnosticsInterconnectSettings = settings.getDiagnosticsInterconnectSettings.toBuilder();
       insertInterconnectSettings = settings.insertInterconnectSettings.toBuilder();
+      insertInterconnectOperationSettings =
+          settings.insertInterconnectOperationSettings.toBuilder();
       listInterconnectsSettings = settings.listInterconnectsSettings.toBuilder();
       patchInterconnectSettings = settings.patchInterconnectSettings.toBuilder();
+      patchInterconnectOperationSettings = settings.patchInterconnectOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -461,6 +582,14 @@ public Builder applyToAllUnaryMethods(
       return deleteInterconnectSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteInterconnect. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteInterconnectOperationSettings() {
+      return deleteInterconnectOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getInterconnect. */
     public UnaryCallSettings.Builder
         getInterconnectSettings() {
@@ -480,6 +609,14 @@ public Builder applyToAllUnaryMethods(
       return insertInterconnectSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertInterconnect. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertInterconnectOperationSettings() {
+      return insertInterconnectOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listInterconnects. */
     public PagedCallSettings.Builder<
             ListInterconnectsHttpRequest, InterconnectList, ListInterconnectsPagedResponse>
@@ -493,6 +630,14 @@ public Builder applyToAllUnaryMethods(
       return patchInterconnectSettings;
     }
 
+    /** Returns the builder for the settings used for calls to patchInterconnect. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchInterconnectOperationSettings() {
+      return patchInterconnectOperationSettings;
+    }
+
     @Override
     public InterconnectStubSettings build() throws IOException {
       return new InterconnectStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStub.java
index 72a9eb167991..65c8b6254ada 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.DeleteLicenseHttpRequest;
 import com.google.cloud.compute.v1.GetIamPolicyLicenseHttpRequest;
@@ -44,6 +46,17 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class LicenseStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteLicenseOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: deleteLicenseOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteLicenseCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteLicenseCallable()");
@@ -59,6 +72,12 @@ public UnaryCallable getIamPolicyLicense
     throw new UnsupportedOperationException("Not implemented: getIamPolicyLicenseCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertLicenseOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: insertLicenseOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertLicenseCallable() {
     throw new UnsupportedOperationException("Not implemented: insertLicenseCallable()");
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStubSettings.java
index dcae267c4ab3..86ebe8ce2cca 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -75,13 +80,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteLicense to 30 seconds: + * example, to set the total timeout of getLicense to 30 seconds: * *

  * 
  * LicenseStubSettings.Builder licenseSettingsBuilder =
  *     LicenseStubSettings.newBuilder();
- * licenseSettingsBuilder.deleteLicenseSettings().getRetrySettings().toBuilder()
+ * licenseSettingsBuilder.getLicenseSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * LicenseStubSettings licenseSettings = licenseSettingsBuilder.build();
  * 
@@ -102,10 +107,14 @@ public class LicenseStubSettings extends StubSettings {
           .build();
 
   private final UnaryCallSettings deleteLicenseSettings;
+  private final OperationCallSettings
+      deleteLicenseOperationSettings;
   private final UnaryCallSettings getLicenseSettings;
   private final UnaryCallSettings
       getIamPolicyLicenseSettings;
   private final UnaryCallSettings insertLicenseSettings;
+  private final OperationCallSettings
+      insertLicenseOperationSettings;
   private final PagedCallSettings<
           ListLicensesHttpRequest, LicensesListResponse, ListLicensesPagedResponse>
       listLicensesSettings;
@@ -119,6 +128,13 @@ public UnaryCallSettings deleteLicenseSetti
     return deleteLicenseSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteLicense. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteLicenseOperationSettings() {
+    return deleteLicenseOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getLicense. */
   public UnaryCallSettings getLicenseSettings() {
     return getLicenseSettings;
@@ -134,6 +150,13 @@ public UnaryCallSettings insertLicenseSetti
     return insertLicenseSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertLicense. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertLicenseOperationSettings() {
+    return insertLicenseOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listLicenses. */
   public PagedCallSettings
       listLicensesSettings() {
@@ -226,9 +249,11 @@ protected LicenseStubSettings(Builder settingsBuilder) throws IOException {
     super(settingsBuilder);
 
     deleteLicenseSettings = settingsBuilder.deleteLicenseSettings().build();
+    deleteLicenseOperationSettings = settingsBuilder.deleteLicenseOperationSettings().build();
     getLicenseSettings = settingsBuilder.getLicenseSettings().build();
     getIamPolicyLicenseSettings = settingsBuilder.getIamPolicyLicenseSettings().build();
     insertLicenseSettings = settingsBuilder.insertLicenseSettings().build();
+    insertLicenseOperationSettings = settingsBuilder.insertLicenseOperationSettings().build();
     listLicensesSettings = settingsBuilder.listLicensesSettings().build();
     setIamPolicyLicenseSettings = settingsBuilder.setIamPolicyLicenseSettings().build();
     testIamPermissionsLicenseSettings = settingsBuilder.testIamPermissionsLicenseSettings().build();
@@ -295,11 +320,17 @@ public static class Builder extends StubSettings.Builder
         deleteLicenseSettings;
+    private final OperationCallSettings.Builder<
+            DeleteLicenseHttpRequest, EmptyMessage, EmptyMessage>
+        deleteLicenseOperationSettings;
     private final UnaryCallSettings.Builder getLicenseSettings;
     private final UnaryCallSettings.Builder
         getIamPolicyLicenseSettings;
     private final UnaryCallSettings.Builder
         insertLicenseSettings;
+    private final OperationCallSettings.Builder<
+            InsertLicenseHttpRequest, EmptyMessage, EmptyMessage>
+        insertLicenseOperationSettings;
     private final PagedCallSettings.Builder<
             ListLicensesHttpRequest, LicensesListResponse, ListLicensesPagedResponse>
         listLicensesSettings;
@@ -352,12 +383,16 @@ protected Builder(ClientContext clientContext) {
 
       deleteLicenseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteLicenseOperationSettings = OperationCallSettings.newBuilder();
+
       getLicenseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       getIamPolicyLicenseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertLicenseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertLicenseOperationSettings = OperationCallSettings.newBuilder();
+
       listLicensesSettings = PagedCallSettings.newBuilder(LIST_LICENSES_PAGE_STR_FACT);
 
       setIamPolicyLicenseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -422,6 +457,48 @@ private static Builder initDefaults(Builder builder) {
           .testIamPermissionsLicenseSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteLicenseOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertLicenseOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -430,9 +507,11 @@ protected Builder(LicenseStubSettings settings) {
       super(settings);
 
       deleteLicenseSettings = settings.deleteLicenseSettings.toBuilder();
+      deleteLicenseOperationSettings = settings.deleteLicenseOperationSettings.toBuilder();
       getLicenseSettings = settings.getLicenseSettings.toBuilder();
       getIamPolicyLicenseSettings = settings.getIamPolicyLicenseSettings.toBuilder();
       insertLicenseSettings = settings.insertLicenseSettings.toBuilder();
+      insertLicenseOperationSettings = settings.insertLicenseOperationSettings.toBuilder();
       listLicensesSettings = settings.listLicensesSettings.toBuilder();
       setIamPolicyLicenseSettings = settings.setIamPolicyLicenseSettings.toBuilder();
       testIamPermissionsLicenseSettings = settings.testIamPermissionsLicenseSettings.toBuilder();
@@ -469,6 +548,14 @@ public UnaryCallSettings.Builder deleteLice
       return deleteLicenseSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteLicense. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteLicenseOperationSettings() {
+      return deleteLicenseOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getLicense. */
     public UnaryCallSettings.Builder getLicenseSettings() {
       return getLicenseSettings;
@@ -485,6 +572,14 @@ public UnaryCallSettings.Builder insertLice
       return insertLicenseSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertLicense. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertLicenseOperationSettings() {
+      return insertLicenseOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listLicenses. */
     public PagedCallSettings.Builder<
             ListLicensesHttpRequest, LicensesListResponse, ListLicensesPagedResponse>
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStub.java
index 0209b2a07de1..f791643faa87 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.AddPeeringNetworkHttpRequest;
 import com.google.cloud.compute.v1.DeleteNetworkHttpRequest;
@@ -43,11 +45,29 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class NetworkStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      addPeeringNetworkOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: addPeeringNetworkOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable addPeeringNetworkCallable() {
     throw new UnsupportedOperationException("Not implemented: addPeeringNetworkCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteNetworkOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: deleteNetworkOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteNetworkCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteNetworkCallable()");
@@ -58,6 +78,12 @@ public UnaryCallable getNetworkCallable() {
     throw new UnsupportedOperationException("Not implemented: getNetworkCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertNetworkOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: insertNetworkOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertNetworkCallable() {
     throw new UnsupportedOperationException("Not implemented: insertNetworkCallable()");
@@ -74,16 +100,36 @@ public UnaryCallable listNetworksCallable(
     throw new UnsupportedOperationException("Not implemented: listNetworksCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchNetworkOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: patchNetworkOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable patchNetworkCallable() {
     throw new UnsupportedOperationException("Not implemented: patchNetworkCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      removePeeringNetworkOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: removePeeringNetworkOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable removePeeringNetworkCallable() {
     throw new UnsupportedOperationException("Not implemented: removePeeringNetworkCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      switchToCustomModeNetworkOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: switchToCustomModeNetworkOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       switchToCustomModeNetworkCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStubSettings.java
index bf57d324473c..3e60c474ba0d 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -74,13 +79,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of addPeeringNetwork to 30 seconds: + * example, to set the total timeout of getNetwork to 30 seconds: * *

  * 
  * NetworkStubSettings.Builder networkSettingsBuilder =
  *     NetworkStubSettings.newBuilder();
- * networkSettingsBuilder.addPeeringNetworkSettings().getRetrySettings().toBuilder()
+ * networkSettingsBuilder.getNetworkSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * NetworkStubSettings networkSettings = networkSettingsBuilder.build();
  * 
@@ -102,27 +107,54 @@ public class NetworkStubSettings extends StubSettings {
 
   private final UnaryCallSettings
       addPeeringNetworkSettings;
+  private final OperationCallSettings
+      addPeeringNetworkOperationSettings;
   private final UnaryCallSettings deleteNetworkSettings;
+  private final OperationCallSettings
+      deleteNetworkOperationSettings;
   private final UnaryCallSettings getNetworkSettings;
   private final UnaryCallSettings insertNetworkSettings;
+  private final OperationCallSettings
+      insertNetworkOperationSettings;
   private final PagedCallSettings
       listNetworksSettings;
   private final UnaryCallSettings patchNetworkSettings;
+  private final OperationCallSettings
+      patchNetworkOperationSettings;
   private final UnaryCallSettings
       removePeeringNetworkSettings;
+  private final OperationCallSettings
+      removePeeringNetworkOperationSettings;
   private final UnaryCallSettings
       switchToCustomModeNetworkSettings;
+  private final OperationCallSettings<
+          SwitchToCustomModeNetworkHttpRequest, EmptyMessage, EmptyMessage>
+      switchToCustomModeNetworkOperationSettings;
 
   /** Returns the object with the settings used for calls to addPeeringNetwork. */
   public UnaryCallSettings addPeeringNetworkSettings() {
     return addPeeringNetworkSettings;
   }
 
+  /** Returns the object with the settings used for calls to addPeeringNetwork. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      addPeeringNetworkOperationSettings() {
+    return addPeeringNetworkOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to deleteNetwork. */
   public UnaryCallSettings deleteNetworkSettings() {
     return deleteNetworkSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteNetwork. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteNetworkOperationSettings() {
+    return deleteNetworkOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getNetwork. */
   public UnaryCallSettings getNetworkSettings() {
     return getNetworkSettings;
@@ -133,6 +165,13 @@ public UnaryCallSettings insertNetworkSetti
     return insertNetworkSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertNetwork. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertNetworkOperationSettings() {
+    return insertNetworkOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listNetworks. */
   public PagedCallSettings
       listNetworksSettings() {
@@ -144,18 +183,39 @@ public UnaryCallSettings patchNetworkSetting
     return patchNetworkSettings;
   }
 
+  /** Returns the object with the settings used for calls to patchNetwork. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchNetworkOperationSettings() {
+    return patchNetworkOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to removePeeringNetwork. */
   public UnaryCallSettings
       removePeeringNetworkSettings() {
     return removePeeringNetworkSettings;
   }
 
+  /** Returns the object with the settings used for calls to removePeeringNetwork. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      removePeeringNetworkOperationSettings() {
+    return removePeeringNetworkOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to switchToCustomModeNetwork. */
   public UnaryCallSettings
       switchToCustomModeNetworkSettings() {
     return switchToCustomModeNetworkSettings;
   }
 
+  /** Returns the object with the settings used for calls to switchToCustomModeNetwork. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      switchToCustomModeNetworkOperationSettings() {
+    return switchToCustomModeNetworkOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public NetworkStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -231,13 +291,22 @@ protected NetworkStubSettings(Builder settingsBuilder) throws IOException {
     super(settingsBuilder);
 
     addPeeringNetworkSettings = settingsBuilder.addPeeringNetworkSettings().build();
+    addPeeringNetworkOperationSettings =
+        settingsBuilder.addPeeringNetworkOperationSettings().build();
     deleteNetworkSettings = settingsBuilder.deleteNetworkSettings().build();
+    deleteNetworkOperationSettings = settingsBuilder.deleteNetworkOperationSettings().build();
     getNetworkSettings = settingsBuilder.getNetworkSettings().build();
     insertNetworkSettings = settingsBuilder.insertNetworkSettings().build();
+    insertNetworkOperationSettings = settingsBuilder.insertNetworkOperationSettings().build();
     listNetworksSettings = settingsBuilder.listNetworksSettings().build();
     patchNetworkSettings = settingsBuilder.patchNetworkSettings().build();
+    patchNetworkOperationSettings = settingsBuilder.patchNetworkOperationSettings().build();
     removePeeringNetworkSettings = settingsBuilder.removePeeringNetworkSettings().build();
+    removePeeringNetworkOperationSettings =
+        settingsBuilder.removePeeringNetworkOperationSettings().build();
     switchToCustomModeNetworkSettings = settingsBuilder.switchToCustomModeNetworkSettings().build();
+    switchToCustomModeNetworkOperationSettings =
+        settingsBuilder.switchToCustomModeNetworkOperationSettings().build();
   }
 
   private static final PagedListDescriptor
@@ -301,20 +370,37 @@ public static class Builder extends StubSettings.Builder
         addPeeringNetworkSettings;
+    private final OperationCallSettings.Builder<
+            AddPeeringNetworkHttpRequest, EmptyMessage, EmptyMessage>
+        addPeeringNetworkOperationSettings;
     private final UnaryCallSettings.Builder
         deleteNetworkSettings;
+    private final OperationCallSettings.Builder<
+            DeleteNetworkHttpRequest, EmptyMessage, EmptyMessage>
+        deleteNetworkOperationSettings;
     private final UnaryCallSettings.Builder getNetworkSettings;
     private final UnaryCallSettings.Builder
         insertNetworkSettings;
+    private final OperationCallSettings.Builder<
+            InsertNetworkHttpRequest, EmptyMessage, EmptyMessage>
+        insertNetworkOperationSettings;
     private final PagedCallSettings.Builder<
             ListNetworksHttpRequest, NetworkList, ListNetworksPagedResponse>
         listNetworksSettings;
     private final UnaryCallSettings.Builder
         patchNetworkSettings;
+    private final OperationCallSettings.Builder
+        patchNetworkOperationSettings;
     private final UnaryCallSettings.Builder
         removePeeringNetworkSettings;
+    private final OperationCallSettings.Builder<
+            RemovePeeringNetworkHttpRequest, EmptyMessage, EmptyMessage>
+        removePeeringNetworkOperationSettings;
     private final UnaryCallSettings.Builder
         switchToCustomModeNetworkSettings;
+    private final OperationCallSettings.Builder<
+            SwitchToCustomModeNetworkHttpRequest, EmptyMessage, EmptyMessage>
+        switchToCustomModeNetworkOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -359,20 +445,32 @@ protected Builder(ClientContext clientContext) {
 
       addPeeringNetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      addPeeringNetworkOperationSettings = OperationCallSettings.newBuilder();
+
       deleteNetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteNetworkOperationSettings = OperationCallSettings.newBuilder();
+
       getNetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertNetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertNetworkOperationSettings = OperationCallSettings.newBuilder();
+
       listNetworksSettings = PagedCallSettings.newBuilder(LIST_NETWORKS_PAGE_STR_FACT);
 
       patchNetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      patchNetworkOperationSettings = OperationCallSettings.newBuilder();
+
       removePeeringNetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      removePeeringNetworkOperationSettings = OperationCallSettings.newBuilder();
+
       switchToCustomModeNetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      switchToCustomModeNetworkOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               addPeeringNetworkSettings,
@@ -437,6 +535,133 @@ private static Builder initDefaults(Builder builder) {
           .switchToCustomModeNetworkSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .addPeeringNetworkOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .deleteNetworkOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertNetworkOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .patchNetworkOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .removePeeringNetworkOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .switchToCustomModeNetworkOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -445,13 +670,21 @@ protected Builder(NetworkStubSettings settings) {
       super(settings);
 
       addPeeringNetworkSettings = settings.addPeeringNetworkSettings.toBuilder();
+      addPeeringNetworkOperationSettings = settings.addPeeringNetworkOperationSettings.toBuilder();
       deleteNetworkSettings = settings.deleteNetworkSettings.toBuilder();
+      deleteNetworkOperationSettings = settings.deleteNetworkOperationSettings.toBuilder();
       getNetworkSettings = settings.getNetworkSettings.toBuilder();
       insertNetworkSettings = settings.insertNetworkSettings.toBuilder();
+      insertNetworkOperationSettings = settings.insertNetworkOperationSettings.toBuilder();
       listNetworksSettings = settings.listNetworksSettings.toBuilder();
       patchNetworkSettings = settings.patchNetworkSettings.toBuilder();
+      patchNetworkOperationSettings = settings.patchNetworkOperationSettings.toBuilder();
       removePeeringNetworkSettings = settings.removePeeringNetworkSettings.toBuilder();
+      removePeeringNetworkOperationSettings =
+          settings.removePeeringNetworkOperationSettings.toBuilder();
       switchToCustomModeNetworkSettings = settings.switchToCustomModeNetworkSettings.toBuilder();
+      switchToCustomModeNetworkOperationSettings =
+          settings.switchToCustomModeNetworkOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -487,11 +720,27 @@ public Builder applyToAllUnaryMethods(
       return addPeeringNetworkSettings;
     }
 
+    /** Returns the builder for the settings used for calls to addPeeringNetwork. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        addPeeringNetworkOperationSettings() {
+      return addPeeringNetworkOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to deleteNetwork. */
     public UnaryCallSettings.Builder deleteNetworkSettings() {
       return deleteNetworkSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteNetwork. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteNetworkOperationSettings() {
+      return deleteNetworkOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getNetwork. */
     public UnaryCallSettings.Builder getNetworkSettings() {
       return getNetworkSettings;
@@ -502,6 +751,14 @@ public UnaryCallSettings.Builder insertNetw
       return insertNetworkSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertNetwork. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertNetworkOperationSettings() {
+      return insertNetworkOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listNetworks. */
     public PagedCallSettings.Builder<
             ListNetworksHttpRequest, NetworkList, ListNetworksPagedResponse>
@@ -514,18 +771,44 @@ public UnaryCallSettings.Builder patchNetwor
       return patchNetworkSettings;
     }
 
+    /** Returns the builder for the settings used for calls to patchNetwork. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchNetworkOperationSettings() {
+      return patchNetworkOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to removePeeringNetwork. */
     public UnaryCallSettings.Builder
         removePeeringNetworkSettings() {
       return removePeeringNetworkSettings;
     }
 
+    /** Returns the builder for the settings used for calls to removePeeringNetwork. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            RemovePeeringNetworkHttpRequest, EmptyMessage, EmptyMessage>
+        removePeeringNetworkOperationSettings() {
+      return removePeeringNetworkOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to switchToCustomModeNetwork. */
     public UnaryCallSettings.Builder
         switchToCustomModeNetworkSettings() {
       return switchToCustomModeNetworkSettings;
     }
 
+    /** Returns the builder for the settings used for calls to switchToCustomModeNetwork. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SwitchToCustomModeNetworkHttpRequest, EmptyMessage, EmptyMessage>
+        switchToCustomModeNetworkOperationSettings() {
+      return switchToCustomModeNetworkOperationSettings;
+    }
+
     @Override
     public NetworkStubSettings build() throws IOException {
       return new NetworkStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStub.java
index 8960e25088d4..242c8abd330b 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStub.java
@@ -21,6 +21,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.AddNodesNodeGroupHttpRequest;
 import com.google.cloud.compute.v1.AggregatedListNodeGroupsHttpRequest;
@@ -53,6 +55,18 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class NodeGroupStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      addNodesNodeGroupOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: addNodesNodeGroupOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable addNodesNodeGroupCallable() {
     throw new UnsupportedOperationException("Not implemented: addNodesNodeGroupCallable()");
@@ -71,11 +85,24 @@ public UnaryCallable addNodesNodeGroupC
     throw new UnsupportedOperationException("Not implemented: aggregatedListNodeGroupsCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteNodeGroupOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: deleteNodeGroupOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteNodeGroupCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteNodeGroupCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteNodesNodeGroupOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteNodesNodeGroupOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteNodesNodeGroupCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteNodesNodeGroupCallable()");
@@ -91,6 +118,12 @@ public UnaryCallable getIamPolicyNodeG
     throw new UnsupportedOperationException("Not implemented: getIamPolicyNodeGroupCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertNodeGroupOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: insertNodeGroupOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertNodeGroupCallable() {
     throw new UnsupportedOperationException("Not implemented: insertNodeGroupCallable()");
@@ -124,6 +157,13 @@ public UnaryCallable setIamPolicyNodeG
     throw new UnsupportedOperationException("Not implemented: setIamPolicyNodeGroupCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setNodeTemplateNodeGroupOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setNodeTemplateNodeGroupOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setNodeTemplateNodeGroupCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStubSettings.java
index d3efef6d7dc1..ff2db5d81bdb 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStubSettings.java
@@ -25,13 +25,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -86,13 +91,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of addNodesNodeGroup to 30 seconds: + * example, to set the total timeout of getNodeGroup to 30 seconds: * *

  * 
  * NodeGroupStubSettings.Builder nodeGroupSettingsBuilder =
  *     NodeGroupStubSettings.newBuilder();
- * nodeGroupSettingsBuilder.addNodesNodeGroupSettings().getRetrySettings().toBuilder()
+ * nodeGroupSettingsBuilder.getNodeGroupSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * NodeGroupStubSettings nodeGroupSettings = nodeGroupSettingsBuilder.build();
  * 
@@ -114,18 +119,26 @@ public class NodeGroupStubSettings extends StubSettings {
 
   private final UnaryCallSettings
       addNodesNodeGroupSettings;
+  private final OperationCallSettings
+      addNodesNodeGroupOperationSettings;
   private final PagedCallSettings<
           AggregatedListNodeGroupsHttpRequest,
           NodeGroupAggregatedList,
           AggregatedListNodeGroupsPagedResponse>
       aggregatedListNodeGroupsSettings;
   private final UnaryCallSettings deleteNodeGroupSettings;
+  private final OperationCallSettings
+      deleteNodeGroupOperationSettings;
   private final UnaryCallSettings
       deleteNodesNodeGroupSettings;
+  private final OperationCallSettings
+      deleteNodesNodeGroupOperationSettings;
   private final UnaryCallSettings getNodeGroupSettings;
   private final UnaryCallSettings
       getIamPolicyNodeGroupSettings;
   private final UnaryCallSettings insertNodeGroupSettings;
+  private final OperationCallSettings
+      insertNodeGroupOperationSettings;
   private final PagedCallSettings<
           ListNodeGroupsHttpRequest, NodeGroupList, ListNodeGroupsPagedResponse>
       listNodeGroupsSettings;
@@ -136,6 +149,9 @@ public class NodeGroupStubSettings extends StubSettings {
       setIamPolicyNodeGroupSettings;
   private final UnaryCallSettings
       setNodeTemplateNodeGroupSettings;
+  private final OperationCallSettings<
+          SetNodeTemplateNodeGroupHttpRequest, EmptyMessage, EmptyMessage>
+      setNodeTemplateNodeGroupOperationSettings;
   private final UnaryCallSettings
       testIamPermissionsNodeGroupSettings;
 
@@ -144,6 +160,13 @@ public UnaryCallSettings addNodesNodeGr
     return addNodesNodeGroupSettings;
   }
 
+  /** Returns the object with the settings used for calls to addNodesNodeGroup. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      addNodesNodeGroupOperationSettings() {
+    return addNodesNodeGroupOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to aggregatedListNodeGroups. */
   public PagedCallSettings<
           AggregatedListNodeGroupsHttpRequest,
@@ -158,12 +181,26 @@ public UnaryCallSettings deleteNodeGroupS
     return deleteNodeGroupSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteNodeGroup. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteNodeGroupOperationSettings() {
+    return deleteNodeGroupOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to deleteNodesNodeGroup. */
   public UnaryCallSettings
       deleteNodesNodeGroupSettings() {
     return deleteNodesNodeGroupSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteNodesNodeGroup. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteNodesNodeGroupOperationSettings() {
+    return deleteNodesNodeGroupOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getNodeGroup. */
   public UnaryCallSettings getNodeGroupSettings() {
     return getNodeGroupSettings;
@@ -180,6 +217,13 @@ public UnaryCallSettings insertNodeGroupS
     return insertNodeGroupSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertNodeGroup. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertNodeGroupOperationSettings() {
+    return insertNodeGroupOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listNodeGroups. */
   public PagedCallSettings
       listNodeGroupsSettings() {
@@ -205,6 +249,13 @@ public UnaryCallSettings insertNodeGroupS
     return setNodeTemplateNodeGroupSettings;
   }
 
+  /** Returns the object with the settings used for calls to setNodeTemplateNodeGroup. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setNodeTemplateNodeGroupOperationSettings() {
+    return setNodeTemplateNodeGroupOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to testIamPermissionsNodeGroup. */
   public UnaryCallSettings
       testIamPermissionsNodeGroupSettings() {
@@ -286,16 +337,24 @@ protected NodeGroupStubSettings(Builder settingsBuilder) throws IOException {
     super(settingsBuilder);
 
     addNodesNodeGroupSettings = settingsBuilder.addNodesNodeGroupSettings().build();
+    addNodesNodeGroupOperationSettings =
+        settingsBuilder.addNodesNodeGroupOperationSettings().build();
     aggregatedListNodeGroupsSettings = settingsBuilder.aggregatedListNodeGroupsSettings().build();
     deleteNodeGroupSettings = settingsBuilder.deleteNodeGroupSettings().build();
+    deleteNodeGroupOperationSettings = settingsBuilder.deleteNodeGroupOperationSettings().build();
     deleteNodesNodeGroupSettings = settingsBuilder.deleteNodesNodeGroupSettings().build();
+    deleteNodesNodeGroupOperationSettings =
+        settingsBuilder.deleteNodesNodeGroupOperationSettings().build();
     getNodeGroupSettings = settingsBuilder.getNodeGroupSettings().build();
     getIamPolicyNodeGroupSettings = settingsBuilder.getIamPolicyNodeGroupSettings().build();
     insertNodeGroupSettings = settingsBuilder.insertNodeGroupSettings().build();
+    insertNodeGroupOperationSettings = settingsBuilder.insertNodeGroupOperationSettings().build();
     listNodeGroupsSettings = settingsBuilder.listNodeGroupsSettings().build();
     listNodesNodeGroupsSettings = settingsBuilder.listNodesNodeGroupsSettings().build();
     setIamPolicyNodeGroupSettings = settingsBuilder.setIamPolicyNodeGroupSettings().build();
     setNodeTemplateNodeGroupSettings = settingsBuilder.setNodeTemplateNodeGroupSettings().build();
+    setNodeTemplateNodeGroupOperationSettings =
+        settingsBuilder.setNodeTemplateNodeGroupOperationSettings().build();
     testIamPermissionsNodeGroupSettings =
         settingsBuilder.testIamPermissionsNodeGroupSettings().build();
   }
@@ -498,6 +557,9 @@ public static class Builder extends StubSettings.Builder
         addNodesNodeGroupSettings;
+    private final OperationCallSettings.Builder<
+            AddNodesNodeGroupHttpRequest, EmptyMessage, EmptyMessage>
+        addNodesNodeGroupOperationSettings;
     private final PagedCallSettings.Builder<
             AggregatedListNodeGroupsHttpRequest,
             NodeGroupAggregatedList,
@@ -505,14 +567,23 @@ public static class Builder extends StubSettings.Builder
         deleteNodeGroupSettings;
+    private final OperationCallSettings.Builder<
+            DeleteNodeGroupHttpRequest, EmptyMessage, EmptyMessage>
+        deleteNodeGroupOperationSettings;
     private final UnaryCallSettings.Builder
         deleteNodesNodeGroupSettings;
+    private final OperationCallSettings.Builder<
+            DeleteNodesNodeGroupHttpRequest, EmptyMessage, EmptyMessage>
+        deleteNodesNodeGroupOperationSettings;
     private final UnaryCallSettings.Builder
         getNodeGroupSettings;
     private final UnaryCallSettings.Builder
         getIamPolicyNodeGroupSettings;
     private final UnaryCallSettings.Builder
         insertNodeGroupSettings;
+    private final OperationCallSettings.Builder<
+            InsertNodeGroupHttpRequest, EmptyMessage, EmptyMessage>
+        insertNodeGroupOperationSettings;
     private final PagedCallSettings.Builder<
             ListNodeGroupsHttpRequest, NodeGroupList, ListNodeGroupsPagedResponse>
         listNodeGroupsSettings;
@@ -523,6 +594,9 @@ public static class Builder extends StubSettings.Builder
         setNodeTemplateNodeGroupSettings;
+    private final OperationCallSettings.Builder<
+            SetNodeTemplateNodeGroupHttpRequest, EmptyMessage, EmptyMessage>
+        setNodeTemplateNodeGroupOperationSettings;
     private final UnaryCallSettings.Builder<
             TestIamPermissionsNodeGroupHttpRequest, TestPermissionsResponse>
         testIamPermissionsNodeGroupSettings;
@@ -570,19 +644,27 @@ protected Builder(ClientContext clientContext) {
 
       addNodesNodeGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      addNodesNodeGroupOperationSettings = OperationCallSettings.newBuilder();
+
       aggregatedListNodeGroupsSettings =
           PagedCallSettings.newBuilder(AGGREGATED_LIST_NODE_GROUPS_PAGE_STR_FACT);
 
       deleteNodeGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteNodeGroupOperationSettings = OperationCallSettings.newBuilder();
+
       deleteNodesNodeGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteNodesNodeGroupOperationSettings = OperationCallSettings.newBuilder();
+
       getNodeGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       getIamPolicyNodeGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertNodeGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertNodeGroupOperationSettings = OperationCallSettings.newBuilder();
+
       listNodeGroupsSettings = PagedCallSettings.newBuilder(LIST_NODE_GROUPS_PAGE_STR_FACT);
 
       listNodesNodeGroupsSettings =
@@ -592,6 +674,8 @@ protected Builder(ClientContext clientContext) {
 
       setNodeTemplateNodeGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setNodeTemplateNodeGroupOperationSettings = OperationCallSettings.newBuilder();
+
       testIamPermissionsNodeGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
@@ -682,6 +766,112 @@ private static Builder initDefaults(Builder builder) {
           .testIamPermissionsNodeGroupSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .addNodesNodeGroupOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .deleteNodeGroupOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .deleteNodesNodeGroupOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertNodeGroupOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setNodeTemplateNodeGroupOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -690,16 +880,23 @@ protected Builder(NodeGroupStubSettings settings) {
       super(settings);
 
       addNodesNodeGroupSettings = settings.addNodesNodeGroupSettings.toBuilder();
+      addNodesNodeGroupOperationSettings = settings.addNodesNodeGroupOperationSettings.toBuilder();
       aggregatedListNodeGroupsSettings = settings.aggregatedListNodeGroupsSettings.toBuilder();
       deleteNodeGroupSettings = settings.deleteNodeGroupSettings.toBuilder();
+      deleteNodeGroupOperationSettings = settings.deleteNodeGroupOperationSettings.toBuilder();
       deleteNodesNodeGroupSettings = settings.deleteNodesNodeGroupSettings.toBuilder();
+      deleteNodesNodeGroupOperationSettings =
+          settings.deleteNodesNodeGroupOperationSettings.toBuilder();
       getNodeGroupSettings = settings.getNodeGroupSettings.toBuilder();
       getIamPolicyNodeGroupSettings = settings.getIamPolicyNodeGroupSettings.toBuilder();
       insertNodeGroupSettings = settings.insertNodeGroupSettings.toBuilder();
+      insertNodeGroupOperationSettings = settings.insertNodeGroupOperationSettings.toBuilder();
       listNodeGroupsSettings = settings.listNodeGroupsSettings.toBuilder();
       listNodesNodeGroupsSettings = settings.listNodesNodeGroupsSettings.toBuilder();
       setIamPolicyNodeGroupSettings = settings.setIamPolicyNodeGroupSettings.toBuilder();
       setNodeTemplateNodeGroupSettings = settings.setNodeTemplateNodeGroupSettings.toBuilder();
+      setNodeTemplateNodeGroupOperationSettings =
+          settings.setNodeTemplateNodeGroupOperationSettings.toBuilder();
       testIamPermissionsNodeGroupSettings =
           settings.testIamPermissionsNodeGroupSettings.toBuilder();
 
@@ -741,6 +938,14 @@ public Builder applyToAllUnaryMethods(
       return addNodesNodeGroupSettings;
     }
 
+    /** Returns the builder for the settings used for calls to addNodesNodeGroup. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        addNodesNodeGroupOperationSettings() {
+      return addNodesNodeGroupOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to aggregatedListNodeGroups. */
     public PagedCallSettings.Builder<
             AggregatedListNodeGroupsHttpRequest,
@@ -756,12 +961,29 @@ public Builder applyToAllUnaryMethods(
       return deleteNodeGroupSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteNodeGroup. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteNodeGroupOperationSettings() {
+      return deleteNodeGroupOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to deleteNodesNodeGroup. */
     public UnaryCallSettings.Builder
         deleteNodesNodeGroupSettings() {
       return deleteNodesNodeGroupSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteNodesNodeGroup. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteNodesNodeGroupHttpRequest, EmptyMessage, EmptyMessage>
+        deleteNodesNodeGroupOperationSettings() {
+      return deleteNodesNodeGroupOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getNodeGroup. */
     public UnaryCallSettings.Builder getNodeGroupSettings() {
       return getNodeGroupSettings;
@@ -779,6 +1001,14 @@ public UnaryCallSettings.Builder getNodeGrou
       return insertNodeGroupSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertNodeGroup. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertNodeGroupOperationSettings() {
+      return insertNodeGroupOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listNodeGroups. */
     public PagedCallSettings.Builder<
             ListNodeGroupsHttpRequest, NodeGroupList, ListNodeGroupsPagedResponse>
@@ -805,6 +1035,15 @@ public UnaryCallSettings.Builder getNodeGrou
       return setNodeTemplateNodeGroupSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setNodeTemplateNodeGroup. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetNodeTemplateNodeGroupHttpRequest, EmptyMessage, EmptyMessage>
+        setNodeTemplateNodeGroupOperationSettings() {
+      return setNodeTemplateNodeGroupOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to testIamPermissionsNodeGroup. */
     public UnaryCallSettings.Builder<
             TestIamPermissionsNodeGroupHttpRequest, TestPermissionsResponse>
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStub.java
index b85f5710d2d7..0a92ce30969a 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStub.java
@@ -20,6 +20,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.AggregatedListNodeTemplatesHttpRequest;
 import com.google.cloud.compute.v1.DeleteNodeTemplateHttpRequest;
@@ -47,6 +49,11 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class NodeTemplateStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
   @BetaApi
   public UnaryCallable<
           AggregatedListNodeTemplatesHttpRequest, AggregatedListNodeTemplatesPagedResponse>
@@ -62,6 +69,13 @@ public abstract class NodeTemplateStub implements BackgroundResource {
         "Not implemented: aggregatedListNodeTemplatesCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteNodeTemplateOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteNodeTemplateOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteNodeTemplateCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteNodeTemplateCallable()");
@@ -78,6 +92,13 @@ public UnaryCallable getNodeTemplateCa
     throw new UnsupportedOperationException("Not implemented: getIamPolicyNodeTemplateCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertNodeTemplateOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertNodeTemplateOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertNodeTemplateCallable() {
     throw new UnsupportedOperationException("Not implemented: insertNodeTemplateCallable()");
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStubSettings.java
index 63f18b45a8c2..293ff1913295 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStubSettings.java
@@ -24,13 +24,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -79,13 +84,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteNodeTemplate to 30 seconds: + * example, to set the total timeout of getNodeTemplate to 30 seconds: * *

  * 
  * NodeTemplateStubSettings.Builder nodeTemplateSettingsBuilder =
  *     NodeTemplateStubSettings.newBuilder();
- * nodeTemplateSettingsBuilder.deleteNodeTemplateSettings().getRetrySettings().toBuilder()
+ * nodeTemplateSettingsBuilder.getNodeTemplateSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * NodeTemplateStubSettings nodeTemplateSettings = nodeTemplateSettingsBuilder.build();
  * 
@@ -112,11 +117,15 @@ public class NodeTemplateStubSettings extends StubSettings
       deleteNodeTemplateSettings;
+  private final OperationCallSettings
+      deleteNodeTemplateOperationSettings;
   private final UnaryCallSettings getNodeTemplateSettings;
   private final UnaryCallSettings
       getIamPolicyNodeTemplateSettings;
   private final UnaryCallSettings
       insertNodeTemplateSettings;
+  private final OperationCallSettings
+      insertNodeTemplateOperationSettings;
   private final PagedCallSettings<
           ListNodeTemplatesHttpRequest, NodeTemplateList, ListNodeTemplatesPagedResponse>
       listNodeTemplatesSettings;
@@ -140,6 +149,13 @@ public UnaryCallSettings deleteNodeTem
     return deleteNodeTemplateSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteNodeTemplate. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteNodeTemplateOperationSettings() {
+    return deleteNodeTemplateOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getNodeTemplate. */
   public UnaryCallSettings getNodeTemplateSettings() {
     return getNodeTemplateSettings;
@@ -156,6 +172,13 @@ public UnaryCallSettings insertNodeTem
     return insertNodeTemplateSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertNodeTemplate. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertNodeTemplateOperationSettings() {
+    return insertNodeTemplateOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listNodeTemplates. */
   public PagedCallSettings<
           ListNodeTemplatesHttpRequest, NodeTemplateList, ListNodeTemplatesPagedResponse>
@@ -253,9 +276,13 @@ protected NodeTemplateStubSettings(Builder settingsBuilder) throws IOException {
     aggregatedListNodeTemplatesSettings =
         settingsBuilder.aggregatedListNodeTemplatesSettings().build();
     deleteNodeTemplateSettings = settingsBuilder.deleteNodeTemplateSettings().build();
+    deleteNodeTemplateOperationSettings =
+        settingsBuilder.deleteNodeTemplateOperationSettings().build();
     getNodeTemplateSettings = settingsBuilder.getNodeTemplateSettings().build();
     getIamPolicyNodeTemplateSettings = settingsBuilder.getIamPolicyNodeTemplateSettings().build();
     insertNodeTemplateSettings = settingsBuilder.insertNodeTemplateSettings().build();
+    insertNodeTemplateOperationSettings =
+        settingsBuilder.insertNodeTemplateOperationSettings().build();
     listNodeTemplatesSettings = settingsBuilder.listNodeTemplatesSettings().build();
     setIamPolicyNodeTemplateSettings = settingsBuilder.setIamPolicyNodeTemplateSettings().build();
     testIamPermissionsNodeTemplateSettings =
@@ -410,12 +437,18 @@ public static class Builder extends StubSettings.Builder
         deleteNodeTemplateSettings;
+    private final OperationCallSettings.Builder<
+            DeleteNodeTemplateHttpRequest, EmptyMessage, EmptyMessage>
+        deleteNodeTemplateOperationSettings;
     private final UnaryCallSettings.Builder
         getNodeTemplateSettings;
     private final UnaryCallSettings.Builder
         getIamPolicyNodeTemplateSettings;
     private final UnaryCallSettings.Builder
         insertNodeTemplateSettings;
+    private final OperationCallSettings.Builder<
+            InsertNodeTemplateHttpRequest, EmptyMessage, EmptyMessage>
+        insertNodeTemplateOperationSettings;
     private final PagedCallSettings.Builder<
             ListNodeTemplatesHttpRequest, NodeTemplateList, ListNodeTemplatesPagedResponse>
         listNodeTemplatesSettings;
@@ -471,12 +504,16 @@ protected Builder(ClientContext clientContext) {
 
       deleteNodeTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteNodeTemplateOperationSettings = OperationCallSettings.newBuilder();
+
       getNodeTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       getIamPolicyNodeTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertNodeTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertNodeTemplateOperationSettings = OperationCallSettings.newBuilder();
+
       listNodeTemplatesSettings = PagedCallSettings.newBuilder(LIST_NODE_TEMPLATES_PAGE_STR_FACT);
 
       setIamPolicyNodeTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -547,6 +584,48 @@ private static Builder initDefaults(Builder builder) {
           .testIamPermissionsNodeTemplateSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteNodeTemplateOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertNodeTemplateOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -557,9 +636,13 @@ protected Builder(NodeTemplateStubSettings settings) {
       aggregatedListNodeTemplatesSettings =
           settings.aggregatedListNodeTemplatesSettings.toBuilder();
       deleteNodeTemplateSettings = settings.deleteNodeTemplateSettings.toBuilder();
+      deleteNodeTemplateOperationSettings =
+          settings.deleteNodeTemplateOperationSettings.toBuilder();
       getNodeTemplateSettings = settings.getNodeTemplateSettings.toBuilder();
       getIamPolicyNodeTemplateSettings = settings.getIamPolicyNodeTemplateSettings.toBuilder();
       insertNodeTemplateSettings = settings.insertNodeTemplateSettings.toBuilder();
+      insertNodeTemplateOperationSettings =
+          settings.insertNodeTemplateOperationSettings.toBuilder();
       listNodeTemplatesSettings = settings.listNodeTemplatesSettings.toBuilder();
       setIamPolicyNodeTemplateSettings = settings.setIamPolicyNodeTemplateSettings.toBuilder();
       testIamPermissionsNodeTemplateSettings =
@@ -608,6 +691,14 @@ public Builder applyToAllUnaryMethods(
       return deleteNodeTemplateSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteNodeTemplate. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteNodeTemplateOperationSettings() {
+      return deleteNodeTemplateOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getNodeTemplate. */
     public UnaryCallSettings.Builder
         getNodeTemplateSettings() {
@@ -626,6 +717,14 @@ public Builder applyToAllUnaryMethods(
       return insertNodeTemplateSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertNodeTemplate. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertNodeTemplateOperationSettings() {
+      return insertNodeTemplateOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listNodeTemplates. */
     public PagedCallSettings.Builder<
             ListNodeTemplatesHttpRequest, NodeTemplateList, ListNodeTemplatesPagedResponse>
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStub.java
index a5afbd05c9ee..28106fc418fe 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStub.java
@@ -20,6 +20,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.DisableXpnHostProjectHttpRequest;
 import com.google.cloud.compute.v1.DisableXpnResourceProjectHttpRequest;
@@ -50,23 +52,56 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class ProjectStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      disableXpnHostProjectOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: disableXpnHostProjectOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       disableXpnHostProjectCallable() {
     throw new UnsupportedOperationException("Not implemented: disableXpnHostProjectCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      disableXpnResourceProjectOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: disableXpnResourceProjectOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       disableXpnResourceProjectCallable() {
     throw new UnsupportedOperationException("Not implemented: disableXpnResourceProjectCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      enableXpnHostProjectOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: enableXpnHostProjectOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable enableXpnHostProjectCallable() {
     throw new UnsupportedOperationException("Not implemented: enableXpnHostProjectCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      enableXpnResourceProjectOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: enableXpnResourceProjectOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       enableXpnResourceProjectCallable() {
@@ -108,16 +143,36 @@ public UnaryCallable getXpnHostProjectCal
     throw new UnsupportedOperationException("Not implemented: listXpnHostsProjectsCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      moveDiskProjectOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: moveDiskProjectOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable moveDiskProjectCallable() {
     throw new UnsupportedOperationException("Not implemented: moveDiskProjectCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      moveInstanceProjectOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: moveInstanceProjectOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable moveInstanceProjectCallable() {
     throw new UnsupportedOperationException("Not implemented: moveInstanceProjectCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setCommonInstanceMetadataProjectOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setCommonInstanceMetadataProjectOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setCommonInstanceMetadataProjectCallable() {
@@ -125,6 +180,13 @@ public UnaryCallable moveInstanceProj
         "Not implemented: setCommonInstanceMetadataProjectCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setDefaultNetworkTierProjectOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setDefaultNetworkTierProjectOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setDefaultNetworkTierProjectCallable() {
@@ -132,6 +194,13 @@ public UnaryCallable moveInstanceProj
         "Not implemented: setDefaultNetworkTierProjectCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setUsageExportBucketProjectOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setUsageExportBucketProjectOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setUsageExportBucketProjectCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStubSettings.java
index 2bac85100c40..badb7c50912e 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStubSettings.java
@@ -24,13 +24,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -82,13 +87,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of disableXpnHostProject to 30 seconds: + * example, to set the total timeout of getProject to 30 seconds: * *

  * 
  * ProjectStubSettings.Builder projectSettingsBuilder =
  *     ProjectStubSettings.newBuilder();
- * projectSettingsBuilder.disableXpnHostProjectSettings().getRetrySettings().toBuilder()
+ * projectSettingsBuilder.getProjectSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * ProjectStubSettings projectSettings = projectSettingsBuilder.build();
  * 
@@ -110,12 +115,22 @@ public class ProjectStubSettings extends StubSettings {
 
   private final UnaryCallSettings
       disableXpnHostProjectSettings;
+  private final OperationCallSettings
+      disableXpnHostProjectOperationSettings;
   private final UnaryCallSettings
       disableXpnResourceProjectSettings;
+  private final OperationCallSettings<
+          DisableXpnResourceProjectHttpRequest, EmptyMessage, EmptyMessage>
+      disableXpnResourceProjectOperationSettings;
   private final UnaryCallSettings
       enableXpnHostProjectSettings;
+  private final OperationCallSettings
+      enableXpnHostProjectOperationSettings;
   private final UnaryCallSettings
       enableXpnResourceProjectSettings;
+  private final OperationCallSettings<
+          EnableXpnResourceProjectHttpRequest, EmptyMessage, EmptyMessage>
+      enableXpnResourceProjectOperationSettings;
   private final UnaryCallSettings getProjectSettings;
   private final UnaryCallSettings getXpnHostProjectSettings;
   private final PagedCallSettings<
@@ -127,14 +142,27 @@ public class ProjectStubSettings extends StubSettings {
           ListXpnHostsProjectsHttpRequest, XpnHostList, ListXpnHostsProjectsPagedResponse>
       listXpnHostsProjectsSettings;
   private final UnaryCallSettings moveDiskProjectSettings;
+  private final OperationCallSettings
+      moveDiskProjectOperationSettings;
   private final UnaryCallSettings
       moveInstanceProjectSettings;
+  private final OperationCallSettings
+      moveInstanceProjectOperationSettings;
   private final UnaryCallSettings
       setCommonInstanceMetadataProjectSettings;
+  private final OperationCallSettings<
+          SetCommonInstanceMetadataProjectHttpRequest, EmptyMessage, EmptyMessage>
+      setCommonInstanceMetadataProjectOperationSettings;
   private final UnaryCallSettings
       setDefaultNetworkTierProjectSettings;
+  private final OperationCallSettings<
+          SetDefaultNetworkTierProjectHttpRequest, EmptyMessage, EmptyMessage>
+      setDefaultNetworkTierProjectOperationSettings;
   private final UnaryCallSettings
       setUsageExportBucketProjectSettings;
+  private final OperationCallSettings<
+          SetUsageExportBucketProjectHttpRequest, EmptyMessage, EmptyMessage>
+      setUsageExportBucketProjectOperationSettings;
 
   /** Returns the object with the settings used for calls to disableXpnHostProject. */
   public UnaryCallSettings
@@ -142,24 +170,52 @@ public class ProjectStubSettings extends StubSettings {
     return disableXpnHostProjectSettings;
   }
 
+  /** Returns the object with the settings used for calls to disableXpnHostProject. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      disableXpnHostProjectOperationSettings() {
+    return disableXpnHostProjectOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to disableXpnResourceProject. */
   public UnaryCallSettings
       disableXpnResourceProjectSettings() {
     return disableXpnResourceProjectSettings;
   }
 
+  /** Returns the object with the settings used for calls to disableXpnResourceProject. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      disableXpnResourceProjectOperationSettings() {
+    return disableXpnResourceProjectOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to enableXpnHostProject. */
   public UnaryCallSettings
       enableXpnHostProjectSettings() {
     return enableXpnHostProjectSettings;
   }
 
+  /** Returns the object with the settings used for calls to enableXpnHostProject. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      enableXpnHostProjectOperationSettings() {
+    return enableXpnHostProjectOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to enableXpnResourceProject. */
   public UnaryCallSettings
       enableXpnResourceProjectSettings() {
     return enableXpnResourceProjectSettings;
   }
 
+  /** Returns the object with the settings used for calls to enableXpnResourceProject. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      enableXpnResourceProjectOperationSettings() {
+    return enableXpnResourceProjectOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getProject. */
   public UnaryCallSettings getProjectSettings() {
     return getProjectSettings;
@@ -191,30 +247,66 @@ public UnaryCallSettings moveDiskProjectS
     return moveDiskProjectSettings;
   }
 
+  /** Returns the object with the settings used for calls to moveDiskProject. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      moveDiskProjectOperationSettings() {
+    return moveDiskProjectOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to moveInstanceProject. */
   public UnaryCallSettings
       moveInstanceProjectSettings() {
     return moveInstanceProjectSettings;
   }
 
+  /** Returns the object with the settings used for calls to moveInstanceProject. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      moveInstanceProjectOperationSettings() {
+    return moveInstanceProjectOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setCommonInstanceMetadataProject. */
   public UnaryCallSettings
       setCommonInstanceMetadataProjectSettings() {
     return setCommonInstanceMetadataProjectSettings;
   }
 
+  /** Returns the object with the settings used for calls to setCommonInstanceMetadataProject. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          SetCommonInstanceMetadataProjectHttpRequest, EmptyMessage, EmptyMessage>
+      setCommonInstanceMetadataProjectOperationSettings() {
+    return setCommonInstanceMetadataProjectOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setDefaultNetworkTierProject. */
   public UnaryCallSettings
       setDefaultNetworkTierProjectSettings() {
     return setDefaultNetworkTierProjectSettings;
   }
 
+  /** Returns the object with the settings used for calls to setDefaultNetworkTierProject. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setDefaultNetworkTierProjectOperationSettings() {
+    return setDefaultNetworkTierProjectOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setUsageExportBucketProject. */
   public UnaryCallSettings
       setUsageExportBucketProjectSettings() {
     return setUsageExportBucketProjectSettings;
   }
 
+  /** Returns the object with the settings used for calls to setUsageExportBucketProject. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setUsageExportBucketProjectOperationSettings() {
+    return setUsageExportBucketProjectOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public ProjectStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -290,21 +382,38 @@ protected ProjectStubSettings(Builder settingsBuilder) throws IOException {
     super(settingsBuilder);
 
     disableXpnHostProjectSettings = settingsBuilder.disableXpnHostProjectSettings().build();
+    disableXpnHostProjectOperationSettings =
+        settingsBuilder.disableXpnHostProjectOperationSettings().build();
     disableXpnResourceProjectSettings = settingsBuilder.disableXpnResourceProjectSettings().build();
+    disableXpnResourceProjectOperationSettings =
+        settingsBuilder.disableXpnResourceProjectOperationSettings().build();
     enableXpnHostProjectSettings = settingsBuilder.enableXpnHostProjectSettings().build();
+    enableXpnHostProjectOperationSettings =
+        settingsBuilder.enableXpnHostProjectOperationSettings().build();
     enableXpnResourceProjectSettings = settingsBuilder.enableXpnResourceProjectSettings().build();
+    enableXpnResourceProjectOperationSettings =
+        settingsBuilder.enableXpnResourceProjectOperationSettings().build();
     getProjectSettings = settingsBuilder.getProjectSettings().build();
     getXpnHostProjectSettings = settingsBuilder.getXpnHostProjectSettings().build();
     getXpnResourcesProjectsSettings = settingsBuilder.getXpnResourcesProjectsSettings().build();
     listXpnHostsProjectsSettings = settingsBuilder.listXpnHostsProjectsSettings().build();
     moveDiskProjectSettings = settingsBuilder.moveDiskProjectSettings().build();
+    moveDiskProjectOperationSettings = settingsBuilder.moveDiskProjectOperationSettings().build();
     moveInstanceProjectSettings = settingsBuilder.moveInstanceProjectSettings().build();
+    moveInstanceProjectOperationSettings =
+        settingsBuilder.moveInstanceProjectOperationSettings().build();
     setCommonInstanceMetadataProjectSettings =
         settingsBuilder.setCommonInstanceMetadataProjectSettings().build();
+    setCommonInstanceMetadataProjectOperationSettings =
+        settingsBuilder.setCommonInstanceMetadataProjectOperationSettings().build();
     setDefaultNetworkTierProjectSettings =
         settingsBuilder.setDefaultNetworkTierProjectSettings().build();
+    setDefaultNetworkTierProjectOperationSettings =
+        settingsBuilder.setDefaultNetworkTierProjectOperationSettings().build();
     setUsageExportBucketProjectSettings =
         settingsBuilder.setUsageExportBucketProjectSettings().build();
+    setUsageExportBucketProjectOperationSettings =
+        settingsBuilder.setUsageExportBucketProjectOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -441,12 +550,24 @@ public static class Builder extends StubSettings.Builder
         disableXpnHostProjectSettings;
+    private final OperationCallSettings.Builder<
+            DisableXpnHostProjectHttpRequest, EmptyMessage, EmptyMessage>
+        disableXpnHostProjectOperationSettings;
     private final UnaryCallSettings.Builder
         disableXpnResourceProjectSettings;
+    private final OperationCallSettings.Builder<
+            DisableXpnResourceProjectHttpRequest, EmptyMessage, EmptyMessage>
+        disableXpnResourceProjectOperationSettings;
     private final UnaryCallSettings.Builder
         enableXpnHostProjectSettings;
+    private final OperationCallSettings.Builder<
+            EnableXpnHostProjectHttpRequest, EmptyMessage, EmptyMessage>
+        enableXpnHostProjectOperationSettings;
     private final UnaryCallSettings.Builder
         enableXpnResourceProjectSettings;
+    private final OperationCallSettings.Builder<
+            EnableXpnResourceProjectHttpRequest, EmptyMessage, EmptyMessage>
+        enableXpnResourceProjectOperationSettings;
     private final UnaryCallSettings.Builder getProjectSettings;
     private final UnaryCallSettings.Builder
         getXpnHostProjectSettings;
@@ -460,14 +581,29 @@ public static class Builder extends StubSettings.Builder
         moveDiskProjectSettings;
+    private final OperationCallSettings.Builder<
+            MoveDiskProjectHttpRequest, EmptyMessage, EmptyMessage>
+        moveDiskProjectOperationSettings;
     private final UnaryCallSettings.Builder
         moveInstanceProjectSettings;
+    private final OperationCallSettings.Builder<
+            MoveInstanceProjectHttpRequest, EmptyMessage, EmptyMessage>
+        moveInstanceProjectOperationSettings;
     private final UnaryCallSettings.Builder
         setCommonInstanceMetadataProjectSettings;
+    private final OperationCallSettings.Builder<
+            SetCommonInstanceMetadataProjectHttpRequest, EmptyMessage, EmptyMessage>
+        setCommonInstanceMetadataProjectOperationSettings;
     private final UnaryCallSettings.Builder
         setDefaultNetworkTierProjectSettings;
+    private final OperationCallSettings.Builder<
+            SetDefaultNetworkTierProjectHttpRequest, EmptyMessage, EmptyMessage>
+        setDefaultNetworkTierProjectOperationSettings;
     private final UnaryCallSettings.Builder
         setUsageExportBucketProjectSettings;
+    private final OperationCallSettings.Builder<
+            SetUsageExportBucketProjectHttpRequest, EmptyMessage, EmptyMessage>
+        setUsageExportBucketProjectOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -512,12 +648,20 @@ protected Builder(ClientContext clientContext) {
 
       disableXpnHostProjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      disableXpnHostProjectOperationSettings = OperationCallSettings.newBuilder();
+
       disableXpnResourceProjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      disableXpnResourceProjectOperationSettings = OperationCallSettings.newBuilder();
+
       enableXpnHostProjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      enableXpnHostProjectOperationSettings = OperationCallSettings.newBuilder();
+
       enableXpnResourceProjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      enableXpnResourceProjectOperationSettings = OperationCallSettings.newBuilder();
+
       getProjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       getXpnHostProjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -530,14 +674,24 @@ protected Builder(ClientContext clientContext) {
 
       moveDiskProjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      moveDiskProjectOperationSettings = OperationCallSettings.newBuilder();
+
       moveInstanceProjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      moveInstanceProjectOperationSettings = OperationCallSettings.newBuilder();
+
       setCommonInstanceMetadataProjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setCommonInstanceMetadataProjectOperationSettings = OperationCallSettings.newBuilder();
+
       setDefaultNetworkTierProjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setDefaultNetworkTierProjectOperationSettings = OperationCallSettings.newBuilder();
+
       setUsageExportBucketProjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setUsageExportBucketProjectOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               disableXpnHostProjectSettings,
@@ -632,6 +786,201 @@ private static Builder initDefaults(Builder builder) {
           .setUsageExportBucketProjectSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .disableXpnHostProjectOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .disableXpnResourceProjectOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .enableXpnHostProjectOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .enableXpnResourceProjectOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .moveDiskProjectOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .moveInstanceProjectOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setCommonInstanceMetadataProjectOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setDefaultNetworkTierProjectOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setUsageExportBucketProjectOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -640,21 +989,38 @@ protected Builder(ProjectStubSettings settings) {
       super(settings);
 
       disableXpnHostProjectSettings = settings.disableXpnHostProjectSettings.toBuilder();
+      disableXpnHostProjectOperationSettings =
+          settings.disableXpnHostProjectOperationSettings.toBuilder();
       disableXpnResourceProjectSettings = settings.disableXpnResourceProjectSettings.toBuilder();
+      disableXpnResourceProjectOperationSettings =
+          settings.disableXpnResourceProjectOperationSettings.toBuilder();
       enableXpnHostProjectSettings = settings.enableXpnHostProjectSettings.toBuilder();
+      enableXpnHostProjectOperationSettings =
+          settings.enableXpnHostProjectOperationSettings.toBuilder();
       enableXpnResourceProjectSettings = settings.enableXpnResourceProjectSettings.toBuilder();
+      enableXpnResourceProjectOperationSettings =
+          settings.enableXpnResourceProjectOperationSettings.toBuilder();
       getProjectSettings = settings.getProjectSettings.toBuilder();
       getXpnHostProjectSettings = settings.getXpnHostProjectSettings.toBuilder();
       getXpnResourcesProjectsSettings = settings.getXpnResourcesProjectsSettings.toBuilder();
       listXpnHostsProjectsSettings = settings.listXpnHostsProjectsSettings.toBuilder();
       moveDiskProjectSettings = settings.moveDiskProjectSettings.toBuilder();
+      moveDiskProjectOperationSettings = settings.moveDiskProjectOperationSettings.toBuilder();
       moveInstanceProjectSettings = settings.moveInstanceProjectSettings.toBuilder();
+      moveInstanceProjectOperationSettings =
+          settings.moveInstanceProjectOperationSettings.toBuilder();
       setCommonInstanceMetadataProjectSettings =
           settings.setCommonInstanceMetadataProjectSettings.toBuilder();
+      setCommonInstanceMetadataProjectOperationSettings =
+          settings.setCommonInstanceMetadataProjectOperationSettings.toBuilder();
       setDefaultNetworkTierProjectSettings =
           settings.setDefaultNetworkTierProjectSettings.toBuilder();
+      setDefaultNetworkTierProjectOperationSettings =
+          settings.setDefaultNetworkTierProjectOperationSettings.toBuilder();
       setUsageExportBucketProjectSettings =
           settings.setUsageExportBucketProjectSettings.toBuilder();
+      setUsageExportBucketProjectOperationSettings =
+          settings.setUsageExportBucketProjectOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -695,24 +1061,60 @@ public Builder applyToAllUnaryMethods(
       return disableXpnHostProjectSettings;
     }
 
+    /** Returns the builder for the settings used for calls to disableXpnHostProject. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DisableXpnHostProjectHttpRequest, EmptyMessage, EmptyMessage>
+        disableXpnHostProjectOperationSettings() {
+      return disableXpnHostProjectOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to disableXpnResourceProject. */
     public UnaryCallSettings.Builder
         disableXpnResourceProjectSettings() {
       return disableXpnResourceProjectSettings;
     }
 
+    /** Returns the builder for the settings used for calls to disableXpnResourceProject. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DisableXpnResourceProjectHttpRequest, EmptyMessage, EmptyMessage>
+        disableXpnResourceProjectOperationSettings() {
+      return disableXpnResourceProjectOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to enableXpnHostProject. */
     public UnaryCallSettings.Builder
         enableXpnHostProjectSettings() {
       return enableXpnHostProjectSettings;
     }
 
+    /** Returns the builder for the settings used for calls to enableXpnHostProject. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            EnableXpnHostProjectHttpRequest, EmptyMessage, EmptyMessage>
+        enableXpnHostProjectOperationSettings() {
+      return enableXpnHostProjectOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to enableXpnResourceProject. */
     public UnaryCallSettings.Builder
         enableXpnResourceProjectSettings() {
       return enableXpnResourceProjectSettings;
     }
 
+    /** Returns the builder for the settings used for calls to enableXpnResourceProject. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            EnableXpnResourceProjectHttpRequest, EmptyMessage, EmptyMessage>
+        enableXpnResourceProjectOperationSettings() {
+      return enableXpnResourceProjectOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getProject. */
     public UnaryCallSettings.Builder getProjectSettings() {
       return getProjectSettings;
@@ -746,30 +1148,73 @@ public UnaryCallSettings.Builder getProjectSetti
       return moveDiskProjectSettings;
     }
 
+    /** Returns the builder for the settings used for calls to moveDiskProject. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        moveDiskProjectOperationSettings() {
+      return moveDiskProjectOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to moveInstanceProject. */
     public UnaryCallSettings.Builder
         moveInstanceProjectSettings() {
       return moveInstanceProjectSettings;
     }
 
+    /** Returns the builder for the settings used for calls to moveInstanceProject. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        moveInstanceProjectOperationSettings() {
+      return moveInstanceProjectOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setCommonInstanceMetadataProject. */
     public UnaryCallSettings.Builder
         setCommonInstanceMetadataProjectSettings() {
       return setCommonInstanceMetadataProjectSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setCommonInstanceMetadataProject. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetCommonInstanceMetadataProjectHttpRequest, EmptyMessage, EmptyMessage>
+        setCommonInstanceMetadataProjectOperationSettings() {
+      return setCommonInstanceMetadataProjectOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setDefaultNetworkTierProject. */
     public UnaryCallSettings.Builder
         setDefaultNetworkTierProjectSettings() {
       return setDefaultNetworkTierProjectSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setDefaultNetworkTierProject. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetDefaultNetworkTierProjectHttpRequest, EmptyMessage, EmptyMessage>
+        setDefaultNetworkTierProjectOperationSettings() {
+      return setDefaultNetworkTierProjectOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setUsageExportBucketProject. */
     public UnaryCallSettings.Builder
         setUsageExportBucketProjectSettings() {
       return setUsageExportBucketProjectSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setUsageExportBucketProject. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetUsageExportBucketProjectHttpRequest, EmptyMessage, EmptyMessage>
+        setUsageExportBucketProjectOperationSettings() {
+      return setUsageExportBucketProjectOperationSettings;
+    }
+
     @Override
     public ProjectStubSettings build() throws IOException {
       return new ProjectStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStub.java
index 8db346166822..cbe63b79dd98 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.Autoscaler;
 import com.google.cloud.compute.v1.DeleteRegionAutoscalerHttpRequest;
@@ -41,6 +43,18 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class RegionAutoscalerStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteRegionAutoscalerOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteRegionAutoscalerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       deleteRegionAutoscalerCallable() {
@@ -52,6 +66,13 @@ public UnaryCallable getRegionAutosc
     throw new UnsupportedOperationException("Not implemented: getRegionAutoscalerCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertRegionAutoscalerOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertRegionAutoscalerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       insertRegionAutoscalerCallable() {
@@ -71,12 +92,26 @@ public UnaryCallable getRegionAutosc
     throw new UnsupportedOperationException("Not implemented: listRegionAutoscalersCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchRegionAutoscalerOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: patchRegionAutoscalerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       patchRegionAutoscalerCallable() {
     throw new UnsupportedOperationException("Not implemented: patchRegionAutoscalerCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateRegionAutoscalerOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: updateRegionAutoscalerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       updateRegionAutoscalerCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStubSettings.java
index bbcd2eb3d03a..89fbf786374d 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -72,13 +77,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteRegionAutoscaler to 30 seconds: + * example, to set the total timeout of getRegionAutoscaler to 30 seconds: * *

  * 
  * RegionAutoscalerStubSettings.Builder regionAutoscalerSettingsBuilder =
  *     RegionAutoscalerStubSettings.newBuilder();
- * regionAutoscalerSettingsBuilder.deleteRegionAutoscalerSettings().getRetrySettings().toBuilder()
+ * regionAutoscalerSettingsBuilder.getRegionAutoscalerSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * RegionAutoscalerStubSettings regionAutoscalerSettings = regionAutoscalerSettingsBuilder.build();
  * 
@@ -100,10 +105,14 @@ public class RegionAutoscalerStubSettings extends StubSettings
       deleteRegionAutoscalerSettings;
+  private final OperationCallSettings
+      deleteRegionAutoscalerOperationSettings;
   private final UnaryCallSettings
       getRegionAutoscalerSettings;
   private final UnaryCallSettings
       insertRegionAutoscalerSettings;
+  private final OperationCallSettings
+      insertRegionAutoscalerOperationSettings;
   private final PagedCallSettings<
           ListRegionAutoscalersHttpRequest,
           RegionAutoscalerList,
@@ -111,8 +120,12 @@ public class RegionAutoscalerStubSettings extends StubSettings
       patchRegionAutoscalerSettings;
+  private final OperationCallSettings
+      patchRegionAutoscalerOperationSettings;
   private final UnaryCallSettings
       updateRegionAutoscalerSettings;
+  private final OperationCallSettings
+      updateRegionAutoscalerOperationSettings;
 
   /** Returns the object with the settings used for calls to deleteRegionAutoscaler. */
   public UnaryCallSettings
@@ -120,6 +133,13 @@ public class RegionAutoscalerStubSettings extends StubSettings
+      deleteRegionAutoscalerOperationSettings() {
+    return deleteRegionAutoscalerOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getRegionAutoscaler. */
   public UnaryCallSettings
       getRegionAutoscalerSettings() {
@@ -132,6 +152,13 @@ public class RegionAutoscalerStubSettings extends StubSettings
+      insertRegionAutoscalerOperationSettings() {
+    return insertRegionAutoscalerOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listRegionAutoscalers. */
   public PagedCallSettings<
           ListRegionAutoscalersHttpRequest,
@@ -147,12 +174,26 @@ public class RegionAutoscalerStubSettings extends StubSettings
+      patchRegionAutoscalerOperationSettings() {
+    return patchRegionAutoscalerOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to updateRegionAutoscaler. */
   public UnaryCallSettings
       updateRegionAutoscalerSettings() {
     return updateRegionAutoscalerSettings;
   }
 
+  /** Returns the object with the settings used for calls to updateRegionAutoscaler. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateRegionAutoscalerOperationSettings() {
+    return updateRegionAutoscalerOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public RegionAutoscalerStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -229,11 +270,19 @@ protected RegionAutoscalerStubSettings(Builder settingsBuilder) throws IOExcepti
     super(settingsBuilder);
 
     deleteRegionAutoscalerSettings = settingsBuilder.deleteRegionAutoscalerSettings().build();
+    deleteRegionAutoscalerOperationSettings =
+        settingsBuilder.deleteRegionAutoscalerOperationSettings().build();
     getRegionAutoscalerSettings = settingsBuilder.getRegionAutoscalerSettings().build();
     insertRegionAutoscalerSettings = settingsBuilder.insertRegionAutoscalerSettings().build();
+    insertRegionAutoscalerOperationSettings =
+        settingsBuilder.insertRegionAutoscalerOperationSettings().build();
     listRegionAutoscalersSettings = settingsBuilder.listRegionAutoscalersSettings().build();
     patchRegionAutoscalerSettings = settingsBuilder.patchRegionAutoscalerSettings().build();
+    patchRegionAutoscalerOperationSettings =
+        settingsBuilder.patchRegionAutoscalerOperationSettings().build();
     updateRegionAutoscalerSettings = settingsBuilder.updateRegionAutoscalerSettings().build();
+    updateRegionAutoscalerOperationSettings =
+        settingsBuilder.updateRegionAutoscalerOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -309,10 +358,16 @@ public static class Builder extends StubSettings.Builder
         deleteRegionAutoscalerSettings;
+    private final OperationCallSettings.Builder<
+            DeleteRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage>
+        deleteRegionAutoscalerOperationSettings;
     private final UnaryCallSettings.Builder
         getRegionAutoscalerSettings;
     private final UnaryCallSettings.Builder
         insertRegionAutoscalerSettings;
+    private final OperationCallSettings.Builder<
+            InsertRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage>
+        insertRegionAutoscalerOperationSettings;
     private final PagedCallSettings.Builder<
             ListRegionAutoscalersHttpRequest,
             RegionAutoscalerList,
@@ -320,8 +375,14 @@ public static class Builder extends StubSettings.Builder
         patchRegionAutoscalerSettings;
+    private final OperationCallSettings.Builder<
+            PatchRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage>
+        patchRegionAutoscalerOperationSettings;
     private final UnaryCallSettings.Builder
         updateRegionAutoscalerSettings;
+    private final OperationCallSettings.Builder<
+            UpdateRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage>
+        updateRegionAutoscalerOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -366,17 +427,25 @@ protected Builder(ClientContext clientContext) {
 
       deleteRegionAutoscalerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteRegionAutoscalerOperationSettings = OperationCallSettings.newBuilder();
+
       getRegionAutoscalerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertRegionAutoscalerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertRegionAutoscalerOperationSettings = OperationCallSettings.newBuilder();
+
       listRegionAutoscalersSettings =
           PagedCallSettings.newBuilder(LIST_REGION_AUTOSCALERS_PAGE_STR_FACT);
 
       patchRegionAutoscalerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      patchRegionAutoscalerOperationSettings = OperationCallSettings.newBuilder();
+
       updateRegionAutoscalerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      updateRegionAutoscalerOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               deleteRegionAutoscalerSettings,
@@ -429,6 +498,94 @@ private static Builder initDefaults(Builder builder) {
           .updateRegionAutoscalerSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteRegionAutoscalerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertRegionAutoscalerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .patchRegionAutoscalerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .updateRegionAutoscalerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -437,11 +594,19 @@ protected Builder(RegionAutoscalerStubSettings settings) {
       super(settings);
 
       deleteRegionAutoscalerSettings = settings.deleteRegionAutoscalerSettings.toBuilder();
+      deleteRegionAutoscalerOperationSettings =
+          settings.deleteRegionAutoscalerOperationSettings.toBuilder();
       getRegionAutoscalerSettings = settings.getRegionAutoscalerSettings.toBuilder();
       insertRegionAutoscalerSettings = settings.insertRegionAutoscalerSettings.toBuilder();
+      insertRegionAutoscalerOperationSettings =
+          settings.insertRegionAutoscalerOperationSettings.toBuilder();
       listRegionAutoscalersSettings = settings.listRegionAutoscalersSettings.toBuilder();
       patchRegionAutoscalerSettings = settings.patchRegionAutoscalerSettings.toBuilder();
+      patchRegionAutoscalerOperationSettings =
+          settings.patchRegionAutoscalerOperationSettings.toBuilder();
       updateRegionAutoscalerSettings = settings.updateRegionAutoscalerSettings.toBuilder();
+      updateRegionAutoscalerOperationSettings =
+          settings.updateRegionAutoscalerOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -475,6 +640,15 @@ public Builder applyToAllUnaryMethods(
       return deleteRegionAutoscalerSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteRegionAutoscaler. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage>
+        deleteRegionAutoscalerOperationSettings() {
+      return deleteRegionAutoscalerOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getRegionAutoscaler. */
     public UnaryCallSettings.Builder
         getRegionAutoscalerSettings() {
@@ -487,6 +661,15 @@ public Builder applyToAllUnaryMethods(
       return insertRegionAutoscalerSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertRegionAutoscaler. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage>
+        insertRegionAutoscalerOperationSettings() {
+      return insertRegionAutoscalerOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listRegionAutoscalers. */
     public PagedCallSettings.Builder<
             ListRegionAutoscalersHttpRequest,
@@ -502,12 +685,30 @@ public Builder applyToAllUnaryMethods(
       return patchRegionAutoscalerSettings;
     }
 
+    /** Returns the builder for the settings used for calls to patchRegionAutoscaler. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            PatchRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage>
+        patchRegionAutoscalerOperationSettings() {
+      return patchRegionAutoscalerOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to updateRegionAutoscaler. */
     public UnaryCallSettings.Builder
         updateRegionAutoscalerSettings() {
       return updateRegionAutoscalerSettings;
     }
 
+    /** Returns the builder for the settings used for calls to updateRegionAutoscaler. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            UpdateRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage>
+        updateRegionAutoscalerOperationSettings() {
+      return updateRegionAutoscalerOperationSettings;
+    }
+
     @Override
     public RegionAutoscalerStubSettings build() throws IOException {
       return new RegionAutoscalerStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStub.java
index 4b725dfe9527..9a4e4465dd58 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.BackendService;
 import com.google.cloud.compute.v1.BackendServiceGroupHealth;
@@ -43,6 +45,18 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class RegionBackendServiceStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteRegionBackendServiceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteRegionBackendServiceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       deleteRegionBackendServiceCallable() {
@@ -63,6 +77,13 @@ public abstract class RegionBackendServiceStub implements BackgroundResource {
         "Not implemented: getHealthRegionBackendServiceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertRegionBackendServiceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertRegionBackendServiceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       insertRegionBackendServiceCallable() {
@@ -83,12 +104,26 @@ public abstract class RegionBackendServiceStub implements BackgroundResource {
     throw new UnsupportedOperationException("Not implemented: listRegionBackendServicesCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchRegionBackendServiceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: patchRegionBackendServiceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       patchRegionBackendServiceCallable() {
     throw new UnsupportedOperationException("Not implemented: patchRegionBackendServiceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateRegionBackendServiceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: updateRegionBackendServiceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       updateRegionBackendServiceCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStubSettings.java
index 8c6f3090b032..848a42f04c29 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -74,13 +79,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteRegionBackendService to 30 seconds: + * example, to set the total timeout of getRegionBackendService to 30 seconds: * *

  * 
  * RegionBackendServiceStubSettings.Builder regionBackendServiceSettingsBuilder =
  *     RegionBackendServiceStubSettings.newBuilder();
- * regionBackendServiceSettingsBuilder.deleteRegionBackendServiceSettings().getRetrySettings().toBuilder()
+ * regionBackendServiceSettingsBuilder.getRegionBackendServiceSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * RegionBackendServiceStubSettings regionBackendServiceSettings = regionBackendServiceSettingsBuilder.build();
  * 
@@ -103,6 +108,9 @@ public class RegionBackendServiceStubSettings
 
   private final UnaryCallSettings
       deleteRegionBackendServiceSettings;
+  private final OperationCallSettings<
+          DeleteRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+      deleteRegionBackendServiceOperationSettings;
   private final UnaryCallSettings
       getRegionBackendServiceSettings;
   private final UnaryCallSettings<
@@ -110,6 +118,9 @@ public class RegionBackendServiceStubSettings
       getHealthRegionBackendServiceSettings;
   private final UnaryCallSettings
       insertRegionBackendServiceSettings;
+  private final OperationCallSettings<
+          InsertRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+      insertRegionBackendServiceOperationSettings;
   private final PagedCallSettings<
           ListRegionBackendServicesHttpRequest,
           BackendServiceList,
@@ -117,8 +128,14 @@ public class RegionBackendServiceStubSettings
       listRegionBackendServicesSettings;
   private final UnaryCallSettings
       patchRegionBackendServiceSettings;
+  private final OperationCallSettings<
+          PatchRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+      patchRegionBackendServiceOperationSettings;
   private final UnaryCallSettings
       updateRegionBackendServiceSettings;
+  private final OperationCallSettings<
+          UpdateRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+      updateRegionBackendServiceOperationSettings;
 
   /** Returns the object with the settings used for calls to deleteRegionBackendService. */
   public UnaryCallSettings
@@ -126,6 +143,13 @@ public class RegionBackendServiceStubSettings
     return deleteRegionBackendServiceSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteRegionBackendService. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteRegionBackendServiceOperationSettings() {
+    return deleteRegionBackendServiceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getRegionBackendService. */
   public UnaryCallSettings
       getRegionBackendServiceSettings() {
@@ -144,6 +168,13 @@ public class RegionBackendServiceStubSettings
     return insertRegionBackendServiceSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertRegionBackendService. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertRegionBackendServiceOperationSettings() {
+    return insertRegionBackendServiceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listRegionBackendServices. */
   public PagedCallSettings<
           ListRegionBackendServicesHttpRequest,
@@ -159,12 +190,26 @@ public class RegionBackendServiceStubSettings
     return patchRegionBackendServiceSettings;
   }
 
+  /** Returns the object with the settings used for calls to patchRegionBackendService. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchRegionBackendServiceOperationSettings() {
+    return patchRegionBackendServiceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to updateRegionBackendService. */
   public UnaryCallSettings
       updateRegionBackendServiceSettings() {
     return updateRegionBackendServiceSettings;
   }
 
+  /** Returns the object with the settings used for calls to updateRegionBackendService. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateRegionBackendServiceOperationSettings() {
+    return updateRegionBackendServiceOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public RegionBackendServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -242,15 +287,23 @@ protected RegionBackendServiceStubSettings(Builder settingsBuilder) throws IOExc
 
     deleteRegionBackendServiceSettings =
         settingsBuilder.deleteRegionBackendServiceSettings().build();
+    deleteRegionBackendServiceOperationSettings =
+        settingsBuilder.deleteRegionBackendServiceOperationSettings().build();
     getRegionBackendServiceSettings = settingsBuilder.getRegionBackendServiceSettings().build();
     getHealthRegionBackendServiceSettings =
         settingsBuilder.getHealthRegionBackendServiceSettings().build();
     insertRegionBackendServiceSettings =
         settingsBuilder.insertRegionBackendServiceSettings().build();
+    insertRegionBackendServiceOperationSettings =
+        settingsBuilder.insertRegionBackendServiceOperationSettings().build();
     listRegionBackendServicesSettings = settingsBuilder.listRegionBackendServicesSettings().build();
     patchRegionBackendServiceSettings = settingsBuilder.patchRegionBackendServiceSettings().build();
+    patchRegionBackendServiceOperationSettings =
+        settingsBuilder.patchRegionBackendServiceOperationSettings().build();
     updateRegionBackendServiceSettings =
         settingsBuilder.updateRegionBackendServiceSettings().build();
+    updateRegionBackendServiceOperationSettings =
+        settingsBuilder.updateRegionBackendServiceOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -328,6 +381,9 @@ public static class Builder
 
     private final UnaryCallSettings.Builder
         deleteRegionBackendServiceSettings;
+    private final OperationCallSettings.Builder<
+            DeleteRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        deleteRegionBackendServiceOperationSettings;
     private final UnaryCallSettings.Builder
         getRegionBackendServiceSettings;
     private final UnaryCallSettings.Builder<
@@ -335,6 +391,9 @@ public static class Builder
         getHealthRegionBackendServiceSettings;
     private final UnaryCallSettings.Builder
         insertRegionBackendServiceSettings;
+    private final OperationCallSettings.Builder<
+            InsertRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        insertRegionBackendServiceOperationSettings;
     private final PagedCallSettings.Builder<
             ListRegionBackendServicesHttpRequest,
             BackendServiceList,
@@ -342,8 +401,14 @@ public static class Builder
         listRegionBackendServicesSettings;
     private final UnaryCallSettings.Builder
         patchRegionBackendServiceSettings;
+    private final OperationCallSettings.Builder<
+            PatchRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        patchRegionBackendServiceOperationSettings;
     private final UnaryCallSettings.Builder
         updateRegionBackendServiceSettings;
+    private final OperationCallSettings.Builder<
+            UpdateRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        updateRegionBackendServiceOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -388,19 +453,27 @@ protected Builder(ClientContext clientContext) {
 
       deleteRegionBackendServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteRegionBackendServiceOperationSettings = OperationCallSettings.newBuilder();
+
       getRegionBackendServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       getHealthRegionBackendServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertRegionBackendServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertRegionBackendServiceOperationSettings = OperationCallSettings.newBuilder();
+
       listRegionBackendServicesSettings =
           PagedCallSettings.newBuilder(LIST_REGION_BACKEND_SERVICES_PAGE_STR_FACT);
 
       patchRegionBackendServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      patchRegionBackendServiceOperationSettings = OperationCallSettings.newBuilder();
+
       updateRegionBackendServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      updateRegionBackendServiceOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               deleteRegionBackendServiceSettings,
@@ -459,6 +532,94 @@ private static Builder initDefaults(Builder builder) {
           .updateRegionBackendServiceSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteRegionBackendServiceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertRegionBackendServiceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .patchRegionBackendServiceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .updateRegionBackendServiceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -467,13 +628,21 @@ protected Builder(RegionBackendServiceStubSettings settings) {
       super(settings);
 
       deleteRegionBackendServiceSettings = settings.deleteRegionBackendServiceSettings.toBuilder();
+      deleteRegionBackendServiceOperationSettings =
+          settings.deleteRegionBackendServiceOperationSettings.toBuilder();
       getRegionBackendServiceSettings = settings.getRegionBackendServiceSettings.toBuilder();
       getHealthRegionBackendServiceSettings =
           settings.getHealthRegionBackendServiceSettings.toBuilder();
       insertRegionBackendServiceSettings = settings.insertRegionBackendServiceSettings.toBuilder();
+      insertRegionBackendServiceOperationSettings =
+          settings.insertRegionBackendServiceOperationSettings.toBuilder();
       listRegionBackendServicesSettings = settings.listRegionBackendServicesSettings.toBuilder();
       patchRegionBackendServiceSettings = settings.patchRegionBackendServiceSettings.toBuilder();
+      patchRegionBackendServiceOperationSettings =
+          settings.patchRegionBackendServiceOperationSettings.toBuilder();
       updateRegionBackendServiceSettings = settings.updateRegionBackendServiceSettings.toBuilder();
+      updateRegionBackendServiceOperationSettings =
+          settings.updateRegionBackendServiceOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -508,6 +677,15 @@ public Builder applyToAllUnaryMethods(
       return deleteRegionBackendServiceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteRegionBackendService. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        deleteRegionBackendServiceOperationSettings() {
+      return deleteRegionBackendServiceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getRegionBackendService. */
     public UnaryCallSettings.Builder
         getRegionBackendServiceSettings() {
@@ -527,6 +705,15 @@ public Builder applyToAllUnaryMethods(
       return insertRegionBackendServiceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertRegionBackendService. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        insertRegionBackendServiceOperationSettings() {
+      return insertRegionBackendServiceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listRegionBackendServices. */
     public PagedCallSettings.Builder<
             ListRegionBackendServicesHttpRequest,
@@ -542,12 +729,30 @@ public Builder applyToAllUnaryMethods(
       return patchRegionBackendServiceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to patchRegionBackendService. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            PatchRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        patchRegionBackendServiceOperationSettings() {
+      return patchRegionBackendServiceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to updateRegionBackendService. */
     public UnaryCallSettings.Builder
         updateRegionBackendServiceSettings() {
       return updateRegionBackendServiceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to updateRegionBackendService. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            UpdateRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage>
+        updateRegionBackendServiceOperationSettings() {
+      return updateRegionBackendServiceOperationSettings;
+    }
+
     @Override
     public RegionBackendServiceStubSettings build() throws IOException {
       return new RegionBackendServiceStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStub.java
index 2d2c7f95963e..4853d7cd11a4 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStub.java
@@ -20,6 +20,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.AggregatedListRegionCommitmentsHttpRequest;
 import com.google.cloud.compute.v1.Commitment;
@@ -41,6 +43,11 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class RegionCommitmentStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
   @BetaApi
   public UnaryCallable<
           AggregatedListRegionCommitmentsHttpRequest, AggregatedListRegionCommitmentsPagedResponse>
@@ -61,6 +68,13 @@ public UnaryCallable getRegionCommit
     throw new UnsupportedOperationException("Not implemented: getRegionCommitmentCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertRegionCommitmentOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertRegionCommitmentOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       insertRegionCommitmentCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStubSettings.java
index 0086e52824a1..7147dd8e9843 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStubSettings.java
@@ -24,13 +24,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -108,6 +113,8 @@ public class RegionCommitmentStubSettings extends StubSettings
       insertRegionCommitmentSettings;
+  private final OperationCallSettings
+      insertRegionCommitmentOperationSettings;
   private final PagedCallSettings<
           ListRegionCommitmentsHttpRequest, CommitmentList, ListRegionCommitmentsPagedResponse>
       listRegionCommitmentsSettings;
@@ -133,6 +140,13 @@ public class RegionCommitmentStubSettings extends StubSettings
+      insertRegionCommitmentOperationSettings() {
+    return insertRegionCommitmentOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listRegionCommitments. */
   public PagedCallSettings<
           ListRegionCommitmentsHttpRequest, CommitmentList, ListRegionCommitmentsPagedResponse>
@@ -219,6 +233,8 @@ protected RegionCommitmentStubSettings(Builder settingsBuilder) throws IOExcepti
         settingsBuilder.aggregatedListRegionCommitmentsSettings().build();
     getRegionCommitmentSettings = settingsBuilder.getRegionCommitmentSettings().build();
     insertRegionCommitmentSettings = settingsBuilder.insertRegionCommitmentSettings().build();
+    insertRegionCommitmentOperationSettings =
+        settingsBuilder.insertRegionCommitmentOperationSettings().build();
     listRegionCommitmentsSettings = settingsBuilder.listRegionCommitmentsSettings().build();
   }
 
@@ -379,6 +395,9 @@ public static class Builder extends StubSettings.Builder
         insertRegionCommitmentSettings;
+    private final OperationCallSettings.Builder<
+            InsertRegionCommitmentHttpRequest, EmptyMessage, EmptyMessage>
+        insertRegionCommitmentOperationSettings;
     private final PagedCallSettings.Builder<
             ListRegionCommitmentsHttpRequest, CommitmentList, ListRegionCommitmentsPagedResponse>
         listRegionCommitmentsSettings;
@@ -431,6 +450,8 @@ protected Builder(ClientContext clientContext) {
 
       insertRegionCommitmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertRegionCommitmentOperationSettings = OperationCallSettings.newBuilder();
+
       listRegionCommitmentsSettings =
           PagedCallSettings.newBuilder(LIST_REGION_COMMITMENTS_PAGE_STR_FACT);
 
@@ -474,6 +495,28 @@ private static Builder initDefaults(Builder builder) {
           .listRegionCommitmentsSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .insertRegionCommitmentOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -485,6 +528,8 @@ protected Builder(RegionCommitmentStubSettings settings) {
           settings.aggregatedListRegionCommitmentsSettings.toBuilder();
       getRegionCommitmentSettings = settings.getRegionCommitmentSettings.toBuilder();
       insertRegionCommitmentSettings = settings.insertRegionCommitmentSettings.toBuilder();
+      insertRegionCommitmentOperationSettings =
+          settings.insertRegionCommitmentOperationSettings.toBuilder();
       listRegionCommitmentsSettings = settings.listRegionCommitmentsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
@@ -532,6 +577,15 @@ public Builder applyToAllUnaryMethods(
       return insertRegionCommitmentSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertRegionCommitment. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertRegionCommitmentHttpRequest, EmptyMessage, EmptyMessage>
+        insertRegionCommitmentOperationSettings() {
+      return insertRegionCommitmentOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listRegionCommitments. */
     public PagedCallSettings.Builder<
             ListRegionCommitmentsHttpRequest, CommitmentList, ListRegionCommitmentsPagedResponse>
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStub.java
index 5d84d47fc357..159466ebada9 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.CreateSnapshotRegionDiskHttpRequest;
 import com.google.cloud.compute.v1.DeleteRegionDiskHttpRequest;
@@ -44,12 +46,30 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class RegionDiskStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      createSnapshotRegionDiskOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: createSnapshotRegionDiskOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       createSnapshotRegionDiskCallable() {
     throw new UnsupportedOperationException("Not implemented: createSnapshotRegionDiskCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteRegionDiskOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: deleteRegionDiskOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteRegionDiskCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteRegionDiskCallable()");
@@ -60,6 +80,12 @@ public UnaryCallable getRegionDiskCallable() {
     throw new UnsupportedOperationException("Not implemented: getRegionDiskCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertRegionDiskOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: insertRegionDiskOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertRegionDiskCallable() {
     throw new UnsupportedOperationException("Not implemented: insertRegionDiskCallable()");
@@ -76,11 +102,24 @@ public UnaryCallable listRegionDisksCallab
     throw new UnsupportedOperationException("Not implemented: listRegionDisksCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      resizeRegionDiskOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: resizeRegionDiskOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable resizeRegionDiskCallable() {
     throw new UnsupportedOperationException("Not implemented: resizeRegionDiskCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setLabelsRegionDiskOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setLabelsRegionDiskOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable setLabelsRegionDiskCallable() {
     throw new UnsupportedOperationException("Not implemented: setLabelsRegionDiskCallable()");
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStubSettings.java
index 4351304b56f8..fcf8b564157e 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -75,13 +80,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of createSnapshotRegionDisk to 30 seconds: + * example, to set the total timeout of getRegionDisk to 30 seconds: * *

  * 
  * RegionDiskStubSettings.Builder regionDiskSettingsBuilder =
  *     RegionDiskStubSettings.newBuilder();
- * regionDiskSettingsBuilder.createSnapshotRegionDiskSettings().getRetrySettings().toBuilder()
+ * regionDiskSettingsBuilder.getRegionDiskSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * RegionDiskStubSettings regionDiskSettings = regionDiskSettingsBuilder.build();
  * 
@@ -103,15 +108,26 @@ public class RegionDiskStubSettings extends StubSettings
 
   private final UnaryCallSettings
       createSnapshotRegionDiskSettings;
+  private final OperationCallSettings<
+          CreateSnapshotRegionDiskHttpRequest, EmptyMessage, EmptyMessage>
+      createSnapshotRegionDiskOperationSettings;
   private final UnaryCallSettings deleteRegionDiskSettings;
+  private final OperationCallSettings
+      deleteRegionDiskOperationSettings;
   private final UnaryCallSettings getRegionDiskSettings;
   private final UnaryCallSettings insertRegionDiskSettings;
+  private final OperationCallSettings
+      insertRegionDiskOperationSettings;
   private final PagedCallSettings<
           ListRegionDisksHttpRequest, DiskList, ListRegionDisksPagedResponse>
       listRegionDisksSettings;
   private final UnaryCallSettings resizeRegionDiskSettings;
+  private final OperationCallSettings
+      resizeRegionDiskOperationSettings;
   private final UnaryCallSettings
       setLabelsRegionDiskSettings;
+  private final OperationCallSettings
+      setLabelsRegionDiskOperationSettings;
   private final UnaryCallSettings
       testIamPermissionsRegionDiskSettings;
 
@@ -121,11 +137,25 @@ public class RegionDiskStubSettings extends StubSettings
     return createSnapshotRegionDiskSettings;
   }
 
+  /** Returns the object with the settings used for calls to createSnapshotRegionDisk. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      createSnapshotRegionDiskOperationSettings() {
+    return createSnapshotRegionDiskOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to deleteRegionDisk. */
   public UnaryCallSettings deleteRegionDiskSettings() {
     return deleteRegionDiskSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteRegionDisk. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteRegionDiskOperationSettings() {
+    return deleteRegionDiskOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getRegionDisk. */
   public UnaryCallSettings getRegionDiskSettings() {
     return getRegionDiskSettings;
@@ -136,6 +166,13 @@ public UnaryCallSettings insertRegionDis
     return insertRegionDiskSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertRegionDisk. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertRegionDiskOperationSettings() {
+    return insertRegionDiskOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listRegionDisks. */
   public PagedCallSettings
       listRegionDisksSettings() {
@@ -147,12 +184,26 @@ public UnaryCallSettings resizeRegionDis
     return resizeRegionDiskSettings;
   }
 
+  /** Returns the object with the settings used for calls to resizeRegionDisk. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      resizeRegionDiskOperationSettings() {
+    return resizeRegionDiskOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setLabelsRegionDisk. */
   public UnaryCallSettings
       setLabelsRegionDiskSettings() {
     return setLabelsRegionDiskSettings;
   }
 
+  /** Returns the object with the settings used for calls to setLabelsRegionDisk. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setLabelsRegionDiskOperationSettings() {
+    return setLabelsRegionDiskOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to testIamPermissionsRegionDisk. */
   public UnaryCallSettings
       testIamPermissionsRegionDiskSettings() {
@@ -235,12 +286,19 @@ protected RegionDiskStubSettings(Builder settingsBuilder) throws IOException {
     super(settingsBuilder);
 
     createSnapshotRegionDiskSettings = settingsBuilder.createSnapshotRegionDiskSettings().build();
+    createSnapshotRegionDiskOperationSettings =
+        settingsBuilder.createSnapshotRegionDiskOperationSettings().build();
     deleteRegionDiskSettings = settingsBuilder.deleteRegionDiskSettings().build();
+    deleteRegionDiskOperationSettings = settingsBuilder.deleteRegionDiskOperationSettings().build();
     getRegionDiskSettings = settingsBuilder.getRegionDiskSettings().build();
     insertRegionDiskSettings = settingsBuilder.insertRegionDiskSettings().build();
+    insertRegionDiskOperationSettings = settingsBuilder.insertRegionDiskOperationSettings().build();
     listRegionDisksSettings = settingsBuilder.listRegionDisksSettings().build();
     resizeRegionDiskSettings = settingsBuilder.resizeRegionDiskSettings().build();
+    resizeRegionDiskOperationSettings = settingsBuilder.resizeRegionDiskOperationSettings().build();
     setLabelsRegionDiskSettings = settingsBuilder.setLabelsRegionDiskSettings().build();
+    setLabelsRegionDiskOperationSettings =
+        settingsBuilder.setLabelsRegionDiskOperationSettings().build();
     testIamPermissionsRegionDiskSettings =
         settingsBuilder.testIamPermissionsRegionDiskSettings().build();
   }
@@ -306,18 +364,33 @@ public static class Builder extends StubSettings.Builder
         createSnapshotRegionDiskSettings;
+    private final OperationCallSettings.Builder<
+            CreateSnapshotRegionDiskHttpRequest, EmptyMessage, EmptyMessage>
+        createSnapshotRegionDiskOperationSettings;
     private final UnaryCallSettings.Builder
         deleteRegionDiskSettings;
+    private final OperationCallSettings.Builder<
+            DeleteRegionDiskHttpRequest, EmptyMessage, EmptyMessage>
+        deleteRegionDiskOperationSettings;
     private final UnaryCallSettings.Builder getRegionDiskSettings;
     private final UnaryCallSettings.Builder
         insertRegionDiskSettings;
+    private final OperationCallSettings.Builder<
+            InsertRegionDiskHttpRequest, EmptyMessage, EmptyMessage>
+        insertRegionDiskOperationSettings;
     private final PagedCallSettings.Builder<
             ListRegionDisksHttpRequest, DiskList, ListRegionDisksPagedResponse>
         listRegionDisksSettings;
     private final UnaryCallSettings.Builder
         resizeRegionDiskSettings;
+    private final OperationCallSettings.Builder<
+            ResizeRegionDiskHttpRequest, EmptyMessage, EmptyMessage>
+        resizeRegionDiskOperationSettings;
     private final UnaryCallSettings.Builder
         setLabelsRegionDiskSettings;
+    private final OperationCallSettings.Builder<
+            SetLabelsRegionDiskHttpRequest, EmptyMessage, EmptyMessage>
+        setLabelsRegionDiskOperationSettings;
     private final UnaryCallSettings.Builder<
             TestIamPermissionsRegionDiskHttpRequest, TestPermissionsResponse>
         testIamPermissionsRegionDiskSettings;
@@ -365,18 +438,28 @@ protected Builder(ClientContext clientContext) {
 
       createSnapshotRegionDiskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      createSnapshotRegionDiskOperationSettings = OperationCallSettings.newBuilder();
+
       deleteRegionDiskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteRegionDiskOperationSettings = OperationCallSettings.newBuilder();
+
       getRegionDiskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertRegionDiskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertRegionDiskOperationSettings = OperationCallSettings.newBuilder();
+
       listRegionDisksSettings = PagedCallSettings.newBuilder(LIST_REGION_DISKS_PAGE_STR_FACT);
 
       resizeRegionDiskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      resizeRegionDiskOperationSettings = OperationCallSettings.newBuilder();
+
       setLabelsRegionDiskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setLabelsRegionDiskOperationSettings = OperationCallSettings.newBuilder();
+
       testIamPermissionsRegionDiskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
@@ -443,6 +526,112 @@ private static Builder initDefaults(Builder builder) {
           .testIamPermissionsRegionDiskSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .createSnapshotRegionDiskOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .deleteRegionDiskOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertRegionDiskOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .resizeRegionDiskOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setLabelsRegionDiskOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -451,12 +640,19 @@ protected Builder(RegionDiskStubSettings settings) {
       super(settings);
 
       createSnapshotRegionDiskSettings = settings.createSnapshotRegionDiskSettings.toBuilder();
+      createSnapshotRegionDiskOperationSettings =
+          settings.createSnapshotRegionDiskOperationSettings.toBuilder();
       deleteRegionDiskSettings = settings.deleteRegionDiskSettings.toBuilder();
+      deleteRegionDiskOperationSettings = settings.deleteRegionDiskOperationSettings.toBuilder();
       getRegionDiskSettings = settings.getRegionDiskSettings.toBuilder();
       insertRegionDiskSettings = settings.insertRegionDiskSettings.toBuilder();
+      insertRegionDiskOperationSettings = settings.insertRegionDiskOperationSettings.toBuilder();
       listRegionDisksSettings = settings.listRegionDisksSettings.toBuilder();
       resizeRegionDiskSettings = settings.resizeRegionDiskSettings.toBuilder();
+      resizeRegionDiskOperationSettings = settings.resizeRegionDiskOperationSettings.toBuilder();
       setLabelsRegionDiskSettings = settings.setLabelsRegionDiskSettings.toBuilder();
+      setLabelsRegionDiskOperationSettings =
+          settings.setLabelsRegionDiskOperationSettings.toBuilder();
       testIamPermissionsRegionDiskSettings =
           settings.testIamPermissionsRegionDiskSettings.toBuilder();
 
@@ -494,12 +690,29 @@ public Builder applyToAllUnaryMethods(
       return createSnapshotRegionDiskSettings;
     }
 
+    /** Returns the builder for the settings used for calls to createSnapshotRegionDisk. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            CreateSnapshotRegionDiskHttpRequest, EmptyMessage, EmptyMessage>
+        createSnapshotRegionDiskOperationSettings() {
+      return createSnapshotRegionDiskOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to deleteRegionDisk. */
     public UnaryCallSettings.Builder
         deleteRegionDiskSettings() {
       return deleteRegionDiskSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteRegionDisk. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteRegionDiskOperationSettings() {
+      return deleteRegionDiskOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getRegionDisk. */
     public UnaryCallSettings.Builder getRegionDiskSettings() {
       return getRegionDiskSettings;
@@ -511,6 +724,14 @@ public UnaryCallSettings.Builder getRegionDiskSe
       return insertRegionDiskSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertRegionDisk. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertRegionDiskOperationSettings() {
+      return insertRegionDiskOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listRegionDisks. */
     public PagedCallSettings.Builder<
             ListRegionDisksHttpRequest, DiskList, ListRegionDisksPagedResponse>
@@ -524,12 +745,28 @@ public UnaryCallSettings.Builder getRegionDiskSe
       return resizeRegionDiskSettings;
     }
 
+    /** Returns the builder for the settings used for calls to resizeRegionDisk. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        resizeRegionDiskOperationSettings() {
+      return resizeRegionDiskOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setLabelsRegionDisk. */
     public UnaryCallSettings.Builder
         setLabelsRegionDiskSettings() {
       return setLabelsRegionDiskSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setLabelsRegionDisk. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        setLabelsRegionDiskOperationSettings() {
+      return setLabelsRegionDiskOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to testIamPermissionsRegionDisk. */
     public UnaryCallSettings.Builder<
             TestIamPermissionsRegionDiskHttpRequest, TestPermissionsResponse>
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStub.java
index 1e4f2e54eb49..23aeb4df4a9a 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.AbandonInstancesRegionInstanceGroupManagerHttpRequest;
 import com.google.cloud.compute.v1.DeleteInstancesRegionInstanceGroupManagerHttpRequest;
@@ -48,6 +50,19 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class RegionInstanceGroupManagerStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      abandonInstancesRegionInstanceGroupManagerOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: abandonInstancesRegionInstanceGroupManagerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       abandonInstancesRegionInstanceGroupManagerCallable() {
@@ -55,6 +70,13 @@ public abstract class RegionInstanceGroupManagerStub implements BackgroundResour
         "Not implemented: abandonInstancesRegionInstanceGroupManagerCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteRegionInstanceGroupManagerOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteRegionInstanceGroupManagerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       deleteRegionInstanceGroupManagerCallable() {
@@ -62,6 +84,14 @@ public abstract class RegionInstanceGroupManagerStub implements BackgroundResour
         "Not implemented: deleteRegionInstanceGroupManagerCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      deleteInstancesRegionInstanceGroupManagerOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteInstancesRegionInstanceGroupManagerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       deleteInstancesRegionInstanceGroupManagerCallable() {
@@ -76,6 +106,13 @@ public abstract class RegionInstanceGroupManagerStub implements BackgroundResour
         "Not implemented: getRegionInstanceGroupManagerCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertRegionInstanceGroupManagerOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertRegionInstanceGroupManagerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       insertRegionInstanceGroupManagerCallable() {
@@ -107,6 +144,13 @@ public abstract class RegionInstanceGroupManagerStub implements BackgroundResour
         "Not implemented: listManagedInstancesRegionInstanceGroupManagersCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchRegionInstanceGroupManagerOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: patchRegionInstanceGroupManagerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       patchRegionInstanceGroupManagerCallable() {
@@ -114,6 +158,14 @@ public abstract class RegionInstanceGroupManagerStub implements BackgroundResour
         "Not implemented: patchRegionInstanceGroupManagerCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      recreateInstancesRegionInstanceGroupManagerOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: recreateInstancesRegionInstanceGroupManagerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       recreateInstancesRegionInstanceGroupManagerCallable() {
@@ -121,6 +173,13 @@ public abstract class RegionInstanceGroupManagerStub implements BackgroundResour
         "Not implemented: recreateInstancesRegionInstanceGroupManagerCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      resizeRegionInstanceGroupManagerOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: resizeRegionInstanceGroupManagerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       resizeRegionInstanceGroupManagerCallable() {
@@ -128,6 +187,14 @@ public abstract class RegionInstanceGroupManagerStub implements BackgroundResour
         "Not implemented: resizeRegionInstanceGroupManagerCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      setInstanceTemplateRegionInstanceGroupManagerOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setInstanceTemplateRegionInstanceGroupManagerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setInstanceTemplateRegionInstanceGroupManagerCallable() {
@@ -135,6 +202,14 @@ public abstract class RegionInstanceGroupManagerStub implements BackgroundResour
         "Not implemented: setInstanceTemplateRegionInstanceGroupManagerCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      setTargetPoolsRegionInstanceGroupManagerOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setTargetPoolsRegionInstanceGroupManagerOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setTargetPoolsRegionInstanceGroupManagerCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStubSettings.java
index 224d88b85f24..7e63a041a63c 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -79,13 +84,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of abandonInstancesRegionInstanceGroupManager to 30 seconds: + * example, to set the total timeout of getRegionInstanceGroupManager to 30 seconds: * *

  * 
  * RegionInstanceGroupManagerStubSettings.Builder regionInstanceGroupManagerSettingsBuilder =
  *     RegionInstanceGroupManagerStubSettings.newBuilder();
- * regionInstanceGroupManagerSettingsBuilder.abandonInstancesRegionInstanceGroupManagerSettings().getRetrySettings().toBuilder()
+ * regionInstanceGroupManagerSettingsBuilder.getRegionInstanceGroupManagerSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * RegionInstanceGroupManagerStubSettings regionInstanceGroupManagerSettings = regionInstanceGroupManagerSettingsBuilder.build();
  * 
@@ -108,14 +113,26 @@ public class RegionInstanceGroupManagerStubSettings
 
   private final UnaryCallSettings
       abandonInstancesRegionInstanceGroupManagerSettings;
+  private final OperationCallSettings<
+          AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      abandonInstancesRegionInstanceGroupManagerOperationSettings;
   private final UnaryCallSettings
       deleteRegionInstanceGroupManagerSettings;
+  private final OperationCallSettings<
+          DeleteRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      deleteRegionInstanceGroupManagerOperationSettings;
   private final UnaryCallSettings
       deleteInstancesRegionInstanceGroupManagerSettings;
+  private final OperationCallSettings<
+          DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      deleteInstancesRegionInstanceGroupManagerOperationSettings;
   private final UnaryCallSettings
       getRegionInstanceGroupManagerSettings;
   private final UnaryCallSettings
       insertRegionInstanceGroupManagerSettings;
+  private final OperationCallSettings<
+          InsertRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      insertRegionInstanceGroupManagerOperationSettings;
   private final PagedCallSettings<
           ListRegionInstanceGroupManagersHttpRequest,
           RegionInstanceGroupManagerList,
@@ -127,15 +144,30 @@ public class RegionInstanceGroupManagerStubSettings
       listManagedInstancesRegionInstanceGroupManagersSettings;
   private final UnaryCallSettings
       patchRegionInstanceGroupManagerSettings;
+  private final OperationCallSettings<
+          PatchRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      patchRegionInstanceGroupManagerOperationSettings;
   private final UnaryCallSettings
       recreateInstancesRegionInstanceGroupManagerSettings;
+  private final OperationCallSettings<
+          RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      recreateInstancesRegionInstanceGroupManagerOperationSettings;
   private final UnaryCallSettings
       resizeRegionInstanceGroupManagerSettings;
+  private final OperationCallSettings<
+          ResizeRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      resizeRegionInstanceGroupManagerOperationSettings;
   private final UnaryCallSettings<
           SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, Operation>
       setInstanceTemplateRegionInstanceGroupManagerSettings;
+  private final OperationCallSettings<
+          SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      setInstanceTemplateRegionInstanceGroupManagerOperationSettings;
   private final UnaryCallSettings
       setTargetPoolsRegionInstanceGroupManagerSettings;
+  private final OperationCallSettings<
+          SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      setTargetPoolsRegionInstanceGroupManagerOperationSettings;
 
   /**
    * Returns the object with the settings used for calls to
@@ -146,12 +178,31 @@ public class RegionInstanceGroupManagerStubSettings
     return abandonInstancesRegionInstanceGroupManagerSettings;
   }
 
+  /**
+   * Returns the object with the settings used for calls to
+   * abandonInstancesRegionInstanceGroupManager.
+   */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      abandonInstancesRegionInstanceGroupManagerOperationSettings() {
+    return abandonInstancesRegionInstanceGroupManagerOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to deleteRegionInstanceGroupManager. */
   public UnaryCallSettings
       deleteRegionInstanceGroupManagerSettings() {
     return deleteRegionInstanceGroupManagerSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteRegionInstanceGroupManager. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          DeleteRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      deleteRegionInstanceGroupManagerOperationSettings() {
+    return deleteRegionInstanceGroupManagerOperationSettings;
+  }
+
   /**
    * Returns the object with the settings used for calls to
    * deleteInstancesRegionInstanceGroupManager.
@@ -161,6 +212,17 @@ public class RegionInstanceGroupManagerStubSettings
     return deleteInstancesRegionInstanceGroupManagerSettings;
   }
 
+  /**
+   * Returns the object with the settings used for calls to
+   * deleteInstancesRegionInstanceGroupManager.
+   */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      deleteInstancesRegionInstanceGroupManagerOperationSettings() {
+    return deleteInstancesRegionInstanceGroupManagerOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getRegionInstanceGroupManager. */
   public UnaryCallSettings
       getRegionInstanceGroupManagerSettings() {
@@ -173,6 +235,14 @@ public class RegionInstanceGroupManagerStubSettings
     return insertRegionInstanceGroupManagerSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertRegionInstanceGroupManager. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          InsertRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      insertRegionInstanceGroupManagerOperationSettings() {
+    return insertRegionInstanceGroupManagerOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listRegionInstanceGroupManagers. */
   public PagedCallSettings<
           ListRegionInstanceGroupManagersHttpRequest,
@@ -199,6 +269,14 @@ public class RegionInstanceGroupManagerStubSettings
     return patchRegionInstanceGroupManagerSettings;
   }
 
+  /** Returns the object with the settings used for calls to patchRegionInstanceGroupManager. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          PatchRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      patchRegionInstanceGroupManagerOperationSettings() {
+    return patchRegionInstanceGroupManagerOperationSettings;
+  }
+
   /**
    * Returns the object with the settings used for calls to
    * recreateInstancesRegionInstanceGroupManager.
@@ -208,12 +286,31 @@ public class RegionInstanceGroupManagerStubSettings
     return recreateInstancesRegionInstanceGroupManagerSettings;
   }
 
+  /**
+   * Returns the object with the settings used for calls to
+   * recreateInstancesRegionInstanceGroupManager.
+   */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      recreateInstancesRegionInstanceGroupManagerOperationSettings() {
+    return recreateInstancesRegionInstanceGroupManagerOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to resizeRegionInstanceGroupManager. */
   public UnaryCallSettings
       resizeRegionInstanceGroupManagerSettings() {
     return resizeRegionInstanceGroupManagerSettings;
   }
 
+  /** Returns the object with the settings used for calls to resizeRegionInstanceGroupManager. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          ResizeRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      resizeRegionInstanceGroupManagerOperationSettings() {
+    return resizeRegionInstanceGroupManagerOperationSettings;
+  }
+
   /**
    * Returns the object with the settings used for calls to
    * setInstanceTemplateRegionInstanceGroupManager.
@@ -223,6 +320,17 @@ public class RegionInstanceGroupManagerStubSettings
     return setInstanceTemplateRegionInstanceGroupManagerSettings;
   }
 
+  /**
+   * Returns the object with the settings used for calls to
+   * setInstanceTemplateRegionInstanceGroupManager.
+   */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      setInstanceTemplateRegionInstanceGroupManagerOperationSettings() {
+    return setInstanceTemplateRegionInstanceGroupManagerOperationSettings;
+  }
+
   /**
    * Returns the object with the settings used for calls to
    * setTargetPoolsRegionInstanceGroupManager.
@@ -232,6 +340,17 @@ public class RegionInstanceGroupManagerStubSettings
     return setTargetPoolsRegionInstanceGroupManagerSettings;
   }
 
+  /**
+   * Returns the object with the settings used for calls to
+   * setTargetPoolsRegionInstanceGroupManager.
+   */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+      setTargetPoolsRegionInstanceGroupManagerOperationSettings() {
+    return setTargetPoolsRegionInstanceGroupManagerOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public RegionInstanceGroupManagerStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -309,28 +428,46 @@ protected RegionInstanceGroupManagerStubSettings(Builder settingsBuilder) throws
 
     abandonInstancesRegionInstanceGroupManagerSettings =
         settingsBuilder.abandonInstancesRegionInstanceGroupManagerSettings().build();
+    abandonInstancesRegionInstanceGroupManagerOperationSettings =
+        settingsBuilder.abandonInstancesRegionInstanceGroupManagerOperationSettings().build();
     deleteRegionInstanceGroupManagerSettings =
         settingsBuilder.deleteRegionInstanceGroupManagerSettings().build();
+    deleteRegionInstanceGroupManagerOperationSettings =
+        settingsBuilder.deleteRegionInstanceGroupManagerOperationSettings().build();
     deleteInstancesRegionInstanceGroupManagerSettings =
         settingsBuilder.deleteInstancesRegionInstanceGroupManagerSettings().build();
+    deleteInstancesRegionInstanceGroupManagerOperationSettings =
+        settingsBuilder.deleteInstancesRegionInstanceGroupManagerOperationSettings().build();
     getRegionInstanceGroupManagerSettings =
         settingsBuilder.getRegionInstanceGroupManagerSettings().build();
     insertRegionInstanceGroupManagerSettings =
         settingsBuilder.insertRegionInstanceGroupManagerSettings().build();
+    insertRegionInstanceGroupManagerOperationSettings =
+        settingsBuilder.insertRegionInstanceGroupManagerOperationSettings().build();
     listRegionInstanceGroupManagersSettings =
         settingsBuilder.listRegionInstanceGroupManagersSettings().build();
     listManagedInstancesRegionInstanceGroupManagersSettings =
         settingsBuilder.listManagedInstancesRegionInstanceGroupManagersSettings().build();
     patchRegionInstanceGroupManagerSettings =
         settingsBuilder.patchRegionInstanceGroupManagerSettings().build();
+    patchRegionInstanceGroupManagerOperationSettings =
+        settingsBuilder.patchRegionInstanceGroupManagerOperationSettings().build();
     recreateInstancesRegionInstanceGroupManagerSettings =
         settingsBuilder.recreateInstancesRegionInstanceGroupManagerSettings().build();
+    recreateInstancesRegionInstanceGroupManagerOperationSettings =
+        settingsBuilder.recreateInstancesRegionInstanceGroupManagerOperationSettings().build();
     resizeRegionInstanceGroupManagerSettings =
         settingsBuilder.resizeRegionInstanceGroupManagerSettings().build();
+    resizeRegionInstanceGroupManagerOperationSettings =
+        settingsBuilder.resizeRegionInstanceGroupManagerOperationSettings().build();
     setInstanceTemplateRegionInstanceGroupManagerSettings =
         settingsBuilder.setInstanceTemplateRegionInstanceGroupManagerSettings().build();
+    setInstanceTemplateRegionInstanceGroupManagerOperationSettings =
+        settingsBuilder.setInstanceTemplateRegionInstanceGroupManagerOperationSettings().build();
     setTargetPoolsRegionInstanceGroupManagerSettings =
         settingsBuilder.setTargetPoolsRegionInstanceGroupManagerSettings().build();
+    setTargetPoolsRegionInstanceGroupManagerOperationSettings =
+        settingsBuilder.setTargetPoolsRegionInstanceGroupManagerOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -422,16 +559,28 @@ public static class Builder
     private final UnaryCallSettings.Builder<
             AbandonInstancesRegionInstanceGroupManagerHttpRequest, Operation>
         abandonInstancesRegionInstanceGroupManagerSettings;
+    private final OperationCallSettings.Builder<
+            AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        abandonInstancesRegionInstanceGroupManagerOperationSettings;
     private final UnaryCallSettings.Builder
         deleteRegionInstanceGroupManagerSettings;
+    private final OperationCallSettings.Builder<
+            DeleteRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        deleteRegionInstanceGroupManagerOperationSettings;
     private final UnaryCallSettings.Builder<
             DeleteInstancesRegionInstanceGroupManagerHttpRequest, Operation>
         deleteInstancesRegionInstanceGroupManagerSettings;
+    private final OperationCallSettings.Builder<
+            DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        deleteInstancesRegionInstanceGroupManagerOperationSettings;
     private final UnaryCallSettings.Builder<
             GetRegionInstanceGroupManagerHttpRequest, InstanceGroupManager>
         getRegionInstanceGroupManagerSettings;
     private final UnaryCallSettings.Builder
         insertRegionInstanceGroupManagerSettings;
+    private final OperationCallSettings.Builder<
+            InsertRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        insertRegionInstanceGroupManagerOperationSettings;
     private final PagedCallSettings.Builder<
             ListRegionInstanceGroupManagersHttpRequest,
             RegionInstanceGroupManagerList,
@@ -443,17 +592,32 @@ public static class Builder
         listManagedInstancesRegionInstanceGroupManagersSettings;
     private final UnaryCallSettings.Builder
         patchRegionInstanceGroupManagerSettings;
+    private final OperationCallSettings.Builder<
+            PatchRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        patchRegionInstanceGroupManagerOperationSettings;
     private final UnaryCallSettings.Builder<
             RecreateInstancesRegionInstanceGroupManagerHttpRequest, Operation>
         recreateInstancesRegionInstanceGroupManagerSettings;
+    private final OperationCallSettings.Builder<
+            RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        recreateInstancesRegionInstanceGroupManagerOperationSettings;
     private final UnaryCallSettings.Builder
         resizeRegionInstanceGroupManagerSettings;
+    private final OperationCallSettings.Builder<
+            ResizeRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        resizeRegionInstanceGroupManagerOperationSettings;
     private final UnaryCallSettings.Builder<
             SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, Operation>
         setInstanceTemplateRegionInstanceGroupManagerSettings;
+    private final OperationCallSettings.Builder<
+            SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        setInstanceTemplateRegionInstanceGroupManagerOperationSettings;
     private final UnaryCallSettings.Builder<
             SetTargetPoolsRegionInstanceGroupManagerHttpRequest, Operation>
         setTargetPoolsRegionInstanceGroupManagerSettings;
+    private final OperationCallSettings.Builder<
+            SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        setTargetPoolsRegionInstanceGroupManagerOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -499,15 +663,25 @@ protected Builder(ClientContext clientContext) {
       abandonInstancesRegionInstanceGroupManagerSettings =
           UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      abandonInstancesRegionInstanceGroupManagerOperationSettings =
+          OperationCallSettings.newBuilder();
+
       deleteRegionInstanceGroupManagerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteRegionInstanceGroupManagerOperationSettings = OperationCallSettings.newBuilder();
+
       deleteInstancesRegionInstanceGroupManagerSettings =
           UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteInstancesRegionInstanceGroupManagerOperationSettings =
+          OperationCallSettings.newBuilder();
+
       getRegionInstanceGroupManagerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertRegionInstanceGroupManagerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertRegionInstanceGroupManagerOperationSettings = OperationCallSettings.newBuilder();
+
       listRegionInstanceGroupManagersSettings =
           PagedCallSettings.newBuilder(LIST_REGION_INSTANCE_GROUP_MANAGERS_PAGE_STR_FACT);
 
@@ -516,17 +690,30 @@ protected Builder(ClientContext clientContext) {
 
       patchRegionInstanceGroupManagerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      patchRegionInstanceGroupManagerOperationSettings = OperationCallSettings.newBuilder();
+
       recreateInstancesRegionInstanceGroupManagerSettings =
           UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      recreateInstancesRegionInstanceGroupManagerOperationSettings =
+          OperationCallSettings.newBuilder();
+
       resizeRegionInstanceGroupManagerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      resizeRegionInstanceGroupManagerOperationSettings = OperationCallSettings.newBuilder();
+
       setInstanceTemplateRegionInstanceGroupManagerSettings =
           UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setInstanceTemplateRegionInstanceGroupManagerOperationSettings =
+          OperationCallSettings.newBuilder();
+
       setTargetPoolsRegionInstanceGroupManagerSettings =
           UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setTargetPoolsRegionInstanceGroupManagerOperationSettings =
+          OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               abandonInstancesRegionInstanceGroupManagerSettings,
@@ -615,6 +802,204 @@ private static Builder initDefaults(Builder builder) {
           .setTargetPoolsRegionInstanceGroupManagerSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .abandonInstancesRegionInstanceGroupManagerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .deleteRegionInstanceGroupManagerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .deleteInstancesRegionInstanceGroupManagerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertRegionInstanceGroupManagerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .patchRegionInstanceGroupManagerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .recreateInstancesRegionInstanceGroupManagerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .resizeRegionInstanceGroupManagerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setInstanceTemplateRegionInstanceGroupManagerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setTargetPoolsRegionInstanceGroupManagerOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -624,28 +1009,46 @@ protected Builder(RegionInstanceGroupManagerStubSettings settings) {
 
       abandonInstancesRegionInstanceGroupManagerSettings =
           settings.abandonInstancesRegionInstanceGroupManagerSettings.toBuilder();
+      abandonInstancesRegionInstanceGroupManagerOperationSettings =
+          settings.abandonInstancesRegionInstanceGroupManagerOperationSettings.toBuilder();
       deleteRegionInstanceGroupManagerSettings =
           settings.deleteRegionInstanceGroupManagerSettings.toBuilder();
+      deleteRegionInstanceGroupManagerOperationSettings =
+          settings.deleteRegionInstanceGroupManagerOperationSettings.toBuilder();
       deleteInstancesRegionInstanceGroupManagerSettings =
           settings.deleteInstancesRegionInstanceGroupManagerSettings.toBuilder();
+      deleteInstancesRegionInstanceGroupManagerOperationSettings =
+          settings.deleteInstancesRegionInstanceGroupManagerOperationSettings.toBuilder();
       getRegionInstanceGroupManagerSettings =
           settings.getRegionInstanceGroupManagerSettings.toBuilder();
       insertRegionInstanceGroupManagerSettings =
           settings.insertRegionInstanceGroupManagerSettings.toBuilder();
+      insertRegionInstanceGroupManagerOperationSettings =
+          settings.insertRegionInstanceGroupManagerOperationSettings.toBuilder();
       listRegionInstanceGroupManagersSettings =
           settings.listRegionInstanceGroupManagersSettings.toBuilder();
       listManagedInstancesRegionInstanceGroupManagersSettings =
           settings.listManagedInstancesRegionInstanceGroupManagersSettings.toBuilder();
       patchRegionInstanceGroupManagerSettings =
           settings.patchRegionInstanceGroupManagerSettings.toBuilder();
+      patchRegionInstanceGroupManagerOperationSettings =
+          settings.patchRegionInstanceGroupManagerOperationSettings.toBuilder();
       recreateInstancesRegionInstanceGroupManagerSettings =
           settings.recreateInstancesRegionInstanceGroupManagerSettings.toBuilder();
+      recreateInstancesRegionInstanceGroupManagerOperationSettings =
+          settings.recreateInstancesRegionInstanceGroupManagerOperationSettings.toBuilder();
       resizeRegionInstanceGroupManagerSettings =
           settings.resizeRegionInstanceGroupManagerSettings.toBuilder();
+      resizeRegionInstanceGroupManagerOperationSettings =
+          settings.resizeRegionInstanceGroupManagerOperationSettings.toBuilder();
       setInstanceTemplateRegionInstanceGroupManagerSettings =
           settings.setInstanceTemplateRegionInstanceGroupManagerSettings.toBuilder();
+      setInstanceTemplateRegionInstanceGroupManagerOperationSettings =
+          settings.setInstanceTemplateRegionInstanceGroupManagerOperationSettings.toBuilder();
       setTargetPoolsRegionInstanceGroupManagerSettings =
           settings.setTargetPoolsRegionInstanceGroupManagerSettings.toBuilder();
+      setTargetPoolsRegionInstanceGroupManagerOperationSettings =
+          settings.setTargetPoolsRegionInstanceGroupManagerOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -689,12 +1092,33 @@ public Builder applyToAllUnaryMethods(
       return abandonInstancesRegionInstanceGroupManagerSettings;
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * abandonInstancesRegionInstanceGroupManager.
+     */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        abandonInstancesRegionInstanceGroupManagerOperationSettings() {
+      return abandonInstancesRegionInstanceGroupManagerOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to deleteRegionInstanceGroupManager. */
     public UnaryCallSettings.Builder
         deleteRegionInstanceGroupManagerSettings() {
       return deleteRegionInstanceGroupManagerSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteRegionInstanceGroupManager. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        deleteRegionInstanceGroupManagerOperationSettings() {
+      return deleteRegionInstanceGroupManagerOperationSettings;
+    }
+
     /**
      * Returns the builder for the settings used for calls to
      * deleteInstancesRegionInstanceGroupManager.
@@ -705,6 +1129,18 @@ public Builder applyToAllUnaryMethods(
       return deleteInstancesRegionInstanceGroupManagerSettings;
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * deleteInstancesRegionInstanceGroupManager.
+     */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        deleteInstancesRegionInstanceGroupManagerOperationSettings() {
+      return deleteInstancesRegionInstanceGroupManagerOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getRegionInstanceGroupManager. */
     public UnaryCallSettings.Builder
         getRegionInstanceGroupManagerSettings() {
@@ -717,6 +1153,15 @@ public Builder applyToAllUnaryMethods(
       return insertRegionInstanceGroupManagerSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertRegionInstanceGroupManager. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        insertRegionInstanceGroupManagerOperationSettings() {
+      return insertRegionInstanceGroupManagerOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listRegionInstanceGroupManagers. */
     public PagedCallSettings.Builder<
             ListRegionInstanceGroupManagersHttpRequest,
@@ -743,6 +1188,15 @@ public Builder applyToAllUnaryMethods(
       return patchRegionInstanceGroupManagerSettings;
     }
 
+    /** Returns the builder for the settings used for calls to patchRegionInstanceGroupManager. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            PatchRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        patchRegionInstanceGroupManagerOperationSettings() {
+      return patchRegionInstanceGroupManagerOperationSettings;
+    }
+
     /**
      * Returns the builder for the settings used for calls to
      * recreateInstancesRegionInstanceGroupManager.
@@ -753,12 +1207,33 @@ public Builder applyToAllUnaryMethods(
       return recreateInstancesRegionInstanceGroupManagerSettings;
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * recreateInstancesRegionInstanceGroupManager.
+     */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        recreateInstancesRegionInstanceGroupManagerOperationSettings() {
+      return recreateInstancesRegionInstanceGroupManagerOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to resizeRegionInstanceGroupManager. */
     public UnaryCallSettings.Builder
         resizeRegionInstanceGroupManagerSettings() {
       return resizeRegionInstanceGroupManagerSettings;
     }
 
+    /** Returns the builder for the settings used for calls to resizeRegionInstanceGroupManager. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            ResizeRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        resizeRegionInstanceGroupManagerOperationSettings() {
+      return resizeRegionInstanceGroupManagerOperationSettings;
+    }
+
     /**
      * Returns the builder for the settings used for calls to
      * setInstanceTemplateRegionInstanceGroupManager.
@@ -769,6 +1244,18 @@ public Builder applyToAllUnaryMethods(
       return setInstanceTemplateRegionInstanceGroupManagerSettings;
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * setInstanceTemplateRegionInstanceGroupManager.
+     */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        setInstanceTemplateRegionInstanceGroupManagerOperationSettings() {
+      return setInstanceTemplateRegionInstanceGroupManagerOperationSettings;
+    }
+
     /**
      * Returns the builder for the settings used for calls to
      * setTargetPoolsRegionInstanceGroupManager.
@@ -778,6 +1265,18 @@ public Builder applyToAllUnaryMethods(
       return setTargetPoolsRegionInstanceGroupManagerSettings;
     }
 
+    /**
+     * Returns the builder for the settings used for calls to
+     * setTargetPoolsRegionInstanceGroupManager.
+     */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage>
+        setTargetPoolsRegionInstanceGroupManagerOperationSettings() {
+      return setTargetPoolsRegionInstanceGroupManagerOperationSettings;
+    }
+
     @Override
     public RegionInstanceGroupManagerStubSettings build() throws IOException {
       return new RegionInstanceGroupManagerStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStub.java
index ff7a5de24ec3..3dd9911d026e 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStub.java
@@ -20,6 +20,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.GetRegionInstanceGroupHttpRequest;
 import com.google.cloud.compute.v1.InstanceGroup;
@@ -41,6 +43,11 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class RegionInstanceGroupStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
   @BetaApi
   public UnaryCallable
       getRegionInstanceGroupCallable() {
@@ -77,6 +84,13 @@ public abstract class RegionInstanceGroupStub implements BackgroundResource {
         "Not implemented: listInstancesRegionInstanceGroupsCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setNamedPortsRegionInstanceGroupOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setNamedPortsRegionInstanceGroupOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setNamedPortsRegionInstanceGroupCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStubSettings.java
index 43f3dfc8ac75..795b865685aa 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStubSettings.java
@@ -24,13 +24,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -113,6 +118,9 @@ public class RegionInstanceGroupStubSettings extends StubSettings
       setNamedPortsRegionInstanceGroupSettings;
+  private final OperationCallSettings<
+          SetNamedPortsRegionInstanceGroupHttpRequest, EmptyMessage, EmptyMessage>
+      setNamedPortsRegionInstanceGroupOperationSettings;
 
   /** Returns the object with the settings used for calls to getRegionInstanceGroup. */
   public UnaryCallSettings
@@ -144,6 +152,14 @@ public class RegionInstanceGroupStubSettings extends StubSettings
+      setNamedPortsRegionInstanceGroupOperationSettings() {
+    return setNamedPortsRegionInstanceGroupOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public RegionInstanceGroupStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -225,6 +241,8 @@ protected RegionInstanceGroupStubSettings(Builder settingsBuilder) throws IOExce
         settingsBuilder.listInstancesRegionInstanceGroupsSettings().build();
     setNamedPortsRegionInstanceGroupSettings =
         settingsBuilder.setNamedPortsRegionInstanceGroupSettings().build();
+    setNamedPortsRegionInstanceGroupOperationSettings =
+        settingsBuilder.setNamedPortsRegionInstanceGroupOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -397,6 +415,9 @@ public static class Builder
         listInstancesRegionInstanceGroupsSettings;
     private final UnaryCallSettings.Builder
         setNamedPortsRegionInstanceGroupSettings;
+    private final OperationCallSettings.Builder<
+            SetNamedPortsRegionInstanceGroupHttpRequest, EmptyMessage, EmptyMessage>
+        setNamedPortsRegionInstanceGroupOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -449,6 +470,8 @@ protected Builder(ClientContext clientContext) {
 
       setNamedPortsRegionInstanceGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setNamedPortsRegionInstanceGroupOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               getRegionInstanceGroupSettings,
@@ -489,6 +512,28 @@ private static Builder initDefaults(Builder builder) {
           .setNamedPortsRegionInstanceGroupSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .setNamedPortsRegionInstanceGroupOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -502,6 +547,8 @@ protected Builder(RegionInstanceGroupStubSettings settings) {
           settings.listInstancesRegionInstanceGroupsSettings.toBuilder();
       setNamedPortsRegionInstanceGroupSettings =
           settings.setNamedPortsRegionInstanceGroupSettings.toBuilder();
+      setNamedPortsRegionInstanceGroupOperationSettings =
+          settings.setNamedPortsRegionInstanceGroupOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -557,6 +604,15 @@ public Builder applyToAllUnaryMethods(
       return setNamedPortsRegionInstanceGroupSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setNamedPortsRegionInstanceGroup. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetNamedPortsRegionInstanceGroupHttpRequest, EmptyMessage, EmptyMessage>
+        setNamedPortsRegionInstanceGroupOperationSettings() {
+      return setNamedPortsRegionInstanceGroupOperationSettings;
+    }
+
     @Override
     public RegionInstanceGroupStubSettings build() throws IOException {
       return new RegionInstanceGroupStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationStub.java
index 825ab26e68e7..937e46ff1c11 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationStub.java
@@ -19,6 +19,7 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.DeleteRegionOperationHttpRequest;
 import com.google.cloud.compute.v1.GetRegionOperationHttpRequest;
@@ -38,7 +39,8 @@
 public abstract class RegionOperationStub implements BackgroundResource {
 
   @BetaApi
-  public UnaryCallable deleteRegionOperationCallable() {
+  public UnaryCallable
+      deleteRegionOperationCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteRegionOperationCallable()");
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationStubSettings.java
index f1c24a5e7ebf..e4fbc26e0685 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionOperationStubSettings.java
@@ -23,6 +23,7 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
@@ -94,7 +95,7 @@ public class RegionOperationStubSettings extends StubSettings
+  private final UnaryCallSettings
       deleteRegionOperationSettings;
   private final UnaryCallSettings
       getRegionOperationSettings;
@@ -103,7 +104,8 @@ public class RegionOperationStubSettings extends StubSettings deleteRegionOperationSettings() {
+  public UnaryCallSettings
+      deleteRegionOperationSettings() {
     return deleteRegionOperationSettings;
   }
 
@@ -264,7 +266,7 @@ public ApiFuture getFuturePagedResponse(
   public static class Builder extends StubSettings.Builder {
     private final ImmutableList> unaryMethodSettingsBuilders;
 
-    private final UnaryCallSettings.Builder
+    private final UnaryCallSettings.Builder
         deleteRegionOperationSettings;
     private final UnaryCallSettings.Builder
         getRegionOperationSettings;
@@ -389,7 +391,7 @@ public Builder applyToAllUnaryMethods(
     }
 
     /** Returns the builder for the settings used for calls to deleteRegionOperation. */
-    public UnaryCallSettings.Builder
+    public UnaryCallSettings.Builder
         deleteRegionOperationSettings() {
       return deleteRegionOperationSettings;
     }
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStub.java
index 956aae024656..498f5905dd4a 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.DeleteRouteHttpRequest;
 import com.google.cloud.compute.v1.GetRouteHttpRequest;
@@ -39,6 +41,17 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class RouteStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteRouteOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: deleteRouteOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteRouteCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteRouteCallable()");
@@ -49,6 +62,12 @@ public UnaryCallable getRouteCallable() {
     throw new UnsupportedOperationException("Not implemented: getRouteCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertRouteOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: insertRouteOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertRouteCallable() {
     throw new UnsupportedOperationException("Not implemented: insertRouteCallable()");
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStubSettings.java
index f37eaeee99a4..533d23541444 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -70,13 +75,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteRoute to 30 seconds: + * example, to set the total timeout of getRoute to 30 seconds: * *

  * 
  * RouteStubSettings.Builder routeSettingsBuilder =
  *     RouteStubSettings.newBuilder();
- * routeSettingsBuilder.deleteRouteSettings().getRetrySettings().toBuilder()
+ * routeSettingsBuilder.getRouteSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * RouteStubSettings routeSettings = routeSettingsBuilder.build();
  * 
@@ -97,8 +102,12 @@ public class RouteStubSettings extends StubSettings {
           .build();
 
   private final UnaryCallSettings deleteRouteSettings;
+  private final OperationCallSettings
+      deleteRouteOperationSettings;
   private final UnaryCallSettings getRouteSettings;
   private final UnaryCallSettings insertRouteSettings;
+  private final OperationCallSettings
+      insertRouteOperationSettings;
   private final PagedCallSettings
       listRoutesSettings;
 
@@ -107,6 +116,13 @@ public UnaryCallSettings deleteRouteSettings(
     return deleteRouteSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteRoute. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteRouteOperationSettings() {
+    return deleteRouteOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getRoute. */
   public UnaryCallSettings getRouteSettings() {
     return getRouteSettings;
@@ -117,6 +133,13 @@ public UnaryCallSettings insertRouteSettings(
     return insertRouteSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertRoute. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertRouteOperationSettings() {
+    return insertRouteOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listRoutes. */
   public PagedCallSettings
       listRoutesSettings() {
@@ -198,8 +221,10 @@ protected RouteStubSettings(Builder settingsBuilder) throws IOException {
     super(settingsBuilder);
 
     deleteRouteSettings = settingsBuilder.deleteRouteSettings().build();
+    deleteRouteOperationSettings = settingsBuilder.deleteRouteOperationSettings().build();
     getRouteSettings = settingsBuilder.getRouteSettings().build();
     insertRouteSettings = settingsBuilder.insertRouteSettings().build();
+    insertRouteOperationSettings = settingsBuilder.insertRouteOperationSettings().build();
     listRoutesSettings = settingsBuilder.listRoutesSettings().build();
   }
 
@@ -262,8 +287,12 @@ public static class Builder extends StubSettings.Builder> unaryMethodSettingsBuilders;
 
     private final UnaryCallSettings.Builder deleteRouteSettings;
+    private final OperationCallSettings.Builder
+        deleteRouteOperationSettings;
     private final UnaryCallSettings.Builder getRouteSettings;
     private final UnaryCallSettings.Builder insertRouteSettings;
+    private final OperationCallSettings.Builder
+        insertRouteOperationSettings;
     private final PagedCallSettings.Builder<
             ListRoutesHttpRequest, RouteList, ListRoutesPagedResponse>
         listRoutesSettings;
@@ -311,10 +340,14 @@ protected Builder(ClientContext clientContext) {
 
       deleteRouteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteRouteOperationSettings = OperationCallSettings.newBuilder();
+
       getRouteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertRouteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertRouteOperationSettings = OperationCallSettings.newBuilder();
+
       listRoutesSettings = PagedCallSettings.newBuilder(LIST_ROUTES_PAGE_STR_FACT);
 
       unaryMethodSettingsBuilders =
@@ -354,6 +387,48 @@ private static Builder initDefaults(Builder builder) {
           .listRoutesSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteRouteOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertRouteOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -362,8 +437,10 @@ protected Builder(RouteStubSettings settings) {
       super(settings);
 
       deleteRouteSettings = settings.deleteRouteSettings.toBuilder();
+      deleteRouteOperationSettings = settings.deleteRouteOperationSettings.toBuilder();
       getRouteSettings = settings.getRouteSettings.toBuilder();
       insertRouteSettings = settings.insertRouteSettings.toBuilder();
+      insertRouteOperationSettings = settings.insertRouteOperationSettings.toBuilder();
       listRoutesSettings = settings.listRoutesSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
@@ -392,6 +469,14 @@ public UnaryCallSettings.Builder deleteRouteS
       return deleteRouteSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteRoute. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteRouteOperationSettings() {
+      return deleteRouteOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getRoute. */
     public UnaryCallSettings.Builder getRouteSettings() {
       return getRouteSettings;
@@ -402,6 +487,14 @@ public UnaryCallSettings.Builder insertRouteS
       return insertRouteSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertRoute. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertRouteOperationSettings() {
+      return insertRouteOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listRoutes. */
     public PagedCallSettings.Builder
         listRoutesSettings() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStub.java
index 0bbfb0d71dce..a6d6d05669cc 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStub.java
@@ -21,6 +21,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.AggregatedListRoutersHttpRequest;
 import com.google.cloud.compute.v1.DeleteRouterHttpRequest;
@@ -51,6 +53,11 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class RouterStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
   @BetaApi
   public UnaryCallable
       aggregatedListRoutersPagedCallable() {
@@ -64,6 +71,12 @@ public abstract class RouterStub implements BackgroundResource {
     throw new UnsupportedOperationException("Not implemented: aggregatedListRoutersCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteRouterOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: deleteRouterOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteRouterCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteRouterCallable()");
@@ -93,6 +106,12 @@ public UnaryCallable getRouterCallable() {
     throw new UnsupportedOperationException("Not implemented: getRouterStatusRouterCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertRouterOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: insertRouterOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertRouterCallable() {
     throw new UnsupportedOperationException("Not implemented: insertRouterCallable()");
@@ -109,6 +128,12 @@ public UnaryCallable listRoutersCallable() {
     throw new UnsupportedOperationException("Not implemented: listRoutersCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchRouterOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: patchRouterOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable patchRouterCallable() {
     throw new UnsupportedOperationException("Not implemented: patchRouterCallable()");
@@ -119,6 +144,12 @@ public UnaryCallable previewRo
     throw new UnsupportedOperationException("Not implemented: previewRouterCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateRouterOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: updateRouterOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable updateRouterCallable() {
     throw new UnsupportedOperationException("Not implemented: updateRouterCallable()");
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStubSettings.java
index 02b70357c5f9..fb7a9a484de5 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStubSettings.java
@@ -25,13 +25,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -84,13 +89,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteRouter to 30 seconds: + * example, to set the total timeout of getRouter to 30 seconds: * *

  * 
  * RouterStubSettings.Builder routerSettingsBuilder =
  *     RouterStubSettings.newBuilder();
- * routerSettingsBuilder.deleteRouterSettings().getRetrySettings().toBuilder()
+ * routerSettingsBuilder.getRouterSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * RouterStubSettings routerSettings = routerSettingsBuilder.build();
  * 
@@ -116,6 +121,8 @@ public class RouterStubSettings extends StubSettings {
           AggregatedListRoutersPagedResponse>
       aggregatedListRoutersSettings;
   private final UnaryCallSettings deleteRouterSettings;
+  private final OperationCallSettings
+      deleteRouterOperationSettings;
   private final UnaryCallSettings getRouterSettings;
   private final PagedCallSettings<
           GetNatMappingInfoRoutersHttpRequest,
@@ -125,12 +132,18 @@ public class RouterStubSettings extends StubSettings {
   private final UnaryCallSettings
       getRouterStatusRouterSettings;
   private final UnaryCallSettings insertRouterSettings;
+  private final OperationCallSettings
+      insertRouterOperationSettings;
   private final PagedCallSettings
       listRoutersSettings;
   private final UnaryCallSettings patchRouterSettings;
+  private final OperationCallSettings
+      patchRouterOperationSettings;
   private final UnaryCallSettings
       previewRouterSettings;
   private final UnaryCallSettings updateRouterSettings;
+  private final OperationCallSettings
+      updateRouterOperationSettings;
 
   /** Returns the object with the settings used for calls to aggregatedListRouters. */
   public PagedCallSettings<
@@ -146,6 +159,13 @@ public UnaryCallSettings deleteRouterSetting
     return deleteRouterSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteRouter. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteRouterOperationSettings() {
+    return deleteRouterOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getRouter. */
   public UnaryCallSettings getRouterSettings() {
     return getRouterSettings;
@@ -171,6 +191,13 @@ public UnaryCallSettings insertRouterSetting
     return insertRouterSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertRouter. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertRouterOperationSettings() {
+    return insertRouterOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listRouters. */
   public PagedCallSettings
       listRoutersSettings() {
@@ -182,6 +209,13 @@ public UnaryCallSettings patchRouterSettings(
     return patchRouterSettings;
   }
 
+  /** Returns the object with the settings used for calls to patchRouter. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchRouterOperationSettings() {
+    return patchRouterOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to previewRouter. */
   public UnaryCallSettings
       previewRouterSettings() {
@@ -193,6 +227,13 @@ public UnaryCallSettings updateRouterSetting
     return updateRouterSettings;
   }
 
+  /** Returns the object with the settings used for calls to updateRouter. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateRouterOperationSettings() {
+    return updateRouterOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public RouterStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -269,14 +310,18 @@ protected RouterStubSettings(Builder settingsBuilder) throws IOException {
 
     aggregatedListRoutersSettings = settingsBuilder.aggregatedListRoutersSettings().build();
     deleteRouterSettings = settingsBuilder.deleteRouterSettings().build();
+    deleteRouterOperationSettings = settingsBuilder.deleteRouterOperationSettings().build();
     getRouterSettings = settingsBuilder.getRouterSettings().build();
     getNatMappingInfoRoutersSettings = settingsBuilder.getNatMappingInfoRoutersSettings().build();
     getRouterStatusRouterSettings = settingsBuilder.getRouterStatusRouterSettings().build();
     insertRouterSettings = settingsBuilder.insertRouterSettings().build();
+    insertRouterOperationSettings = settingsBuilder.insertRouterOperationSettings().build();
     listRoutersSettings = settingsBuilder.listRoutersSettings().build();
     patchRouterSettings = settingsBuilder.patchRouterSettings().build();
+    patchRouterOperationSettings = settingsBuilder.patchRouterOperationSettings().build();
     previewRouterSettings = settingsBuilder.previewRouterSettings().build();
     updateRouterSettings = settingsBuilder.updateRouterSettings().build();
+    updateRouterOperationSettings = settingsBuilder.updateRouterOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -486,6 +531,8 @@ public static class Builder extends StubSettings.Builder
         deleteRouterSettings;
+    private final OperationCallSettings.Builder
+        deleteRouterOperationSettings;
     private final UnaryCallSettings.Builder getRouterSettings;
     private final PagedCallSettings.Builder<
             GetNatMappingInfoRoutersHttpRequest,
@@ -496,14 +543,20 @@ public static class Builder extends StubSettings.Builder
         insertRouterSettings;
+    private final OperationCallSettings.Builder
+        insertRouterOperationSettings;
     private final PagedCallSettings.Builder<
             ListRoutersHttpRequest, RouterList, ListRoutersPagedResponse>
         listRoutersSettings;
     private final UnaryCallSettings.Builder patchRouterSettings;
+    private final OperationCallSettings.Builder
+        patchRouterOperationSettings;
     private final UnaryCallSettings.Builder
         previewRouterSettings;
     private final UnaryCallSettings.Builder
         updateRouterSettings;
+    private final OperationCallSettings.Builder
+        updateRouterOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -551,6 +604,8 @@ protected Builder(ClientContext clientContext) {
 
       deleteRouterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteRouterOperationSettings = OperationCallSettings.newBuilder();
+
       getRouterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       getNatMappingInfoRoutersSettings =
@@ -560,14 +615,20 @@ protected Builder(ClientContext clientContext) {
 
       insertRouterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertRouterOperationSettings = OperationCallSettings.newBuilder();
+
       listRoutersSettings = PagedCallSettings.newBuilder(LIST_ROUTERS_PAGE_STR_FACT);
 
       patchRouterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      patchRouterOperationSettings = OperationCallSettings.newBuilder();
+
       previewRouterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       updateRouterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      updateRouterOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               aggregatedListRoutersSettings,
@@ -644,6 +705,90 @@ private static Builder initDefaults(Builder builder) {
           .updateRouterSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteRouterOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertRouterOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .patchRouterOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .updateRouterOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -653,14 +798,18 @@ protected Builder(RouterStubSettings settings) {
 
       aggregatedListRoutersSettings = settings.aggregatedListRoutersSettings.toBuilder();
       deleteRouterSettings = settings.deleteRouterSettings.toBuilder();
+      deleteRouterOperationSettings = settings.deleteRouterOperationSettings.toBuilder();
       getRouterSettings = settings.getRouterSettings.toBuilder();
       getNatMappingInfoRoutersSettings = settings.getNatMappingInfoRoutersSettings.toBuilder();
       getRouterStatusRouterSettings = settings.getRouterStatusRouterSettings.toBuilder();
       insertRouterSettings = settings.insertRouterSettings.toBuilder();
+      insertRouterOperationSettings = settings.insertRouterOperationSettings.toBuilder();
       listRoutersSettings = settings.listRoutersSettings.toBuilder();
       patchRouterSettings = settings.patchRouterSettings.toBuilder();
+      patchRouterOperationSettings = settings.patchRouterOperationSettings.toBuilder();
       previewRouterSettings = settings.previewRouterSettings.toBuilder();
       updateRouterSettings = settings.updateRouterSettings.toBuilder();
+      updateRouterOperationSettings = settings.updateRouterOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -706,6 +855,14 @@ public UnaryCallSettings.Builder deleteRoute
       return deleteRouterSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteRouter. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteRouterOperationSettings() {
+      return deleteRouterOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getRouter. */
     public UnaryCallSettings.Builder getRouterSettings() {
       return getRouterSettings;
@@ -731,6 +888,14 @@ public UnaryCallSettings.Builder insertRoute
       return insertRouterSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertRouter. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertRouterOperationSettings() {
+      return insertRouterOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listRouters. */
     public PagedCallSettings.Builder
         listRoutersSettings() {
@@ -742,6 +907,14 @@ public UnaryCallSettings.Builder patchRouterS
       return patchRouterSettings;
     }
 
+    /** Returns the builder for the settings used for calls to patchRouter. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchRouterOperationSettings() {
+      return patchRouterOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to previewRouter. */
     public UnaryCallSettings.Builder
         previewRouterSettings() {
@@ -753,6 +926,14 @@ public UnaryCallSettings.Builder updateRoute
       return updateRouterSettings;
     }
 
+    /** Returns the builder for the settings used for calls to updateRouter. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        updateRouterOperationSettings() {
+      return updateRouterOperationSettings;
+    }
+
     @Override
     public RouterStubSettings build() throws IOException {
       return new RouterStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStub.java
index 807fd5060952..80dcaadeeca9 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.AddRuleSecurityPolicyHttpRequest;
 import com.google.cloud.compute.v1.DeleteSecurityPolicyHttpRequest;
@@ -45,12 +47,31 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class SecurityPolicyStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      addRuleSecurityPolicyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: addRuleSecurityPolicyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       addRuleSecurityPolicyCallable() {
     throw new UnsupportedOperationException("Not implemented: addRuleSecurityPolicyCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteSecurityPolicyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteSecurityPolicyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteSecurityPolicyCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteSecurityPolicyCallable()");
@@ -67,6 +88,13 @@ public UnaryCallable getSecurityPo
     throw new UnsupportedOperationException("Not implemented: getRuleSecurityPolicyCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertSecurityPolicyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertSecurityPolicyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertSecurityPolicyCallable() {
     throw new UnsupportedOperationException("Not implemented: insertSecurityPolicyCallable()");
@@ -84,17 +112,38 @@ public UnaryCallable insertSecurityP
     throw new UnsupportedOperationException("Not implemented: listSecurityPoliciesCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchSecurityPolicyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: patchSecurityPolicyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable patchSecurityPolicyCallable() {
     throw new UnsupportedOperationException("Not implemented: patchSecurityPolicyCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchRuleSecurityPolicyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: patchRuleSecurityPolicyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       patchRuleSecurityPolicyCallable() {
     throw new UnsupportedOperationException("Not implemented: patchRuleSecurityPolicyCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      removeRuleSecurityPolicyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: removeRuleSecurityPolicyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       removeRuleSecurityPolicyCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStubSettings.java
index 49db0551ec34..005f6570e178 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -76,13 +81,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of addRuleSecurityPolicy to 30 seconds: + * example, to set the total timeout of getSecurityPolicy to 30 seconds: * *

  * 
  * SecurityPolicyStubSettings.Builder securityPolicySettingsBuilder =
  *     SecurityPolicyStubSettings.newBuilder();
- * securityPolicySettingsBuilder.addRuleSecurityPolicySettings().getRetrySettings().toBuilder()
+ * securityPolicySettingsBuilder.getSecurityPolicySettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * SecurityPolicyStubSettings securityPolicySettings = securityPolicySettingsBuilder.build();
  * 
@@ -104,23 +109,37 @@ public class SecurityPolicyStubSettings extends StubSettings
       addRuleSecurityPolicySettings;
+  private final OperationCallSettings
+      addRuleSecurityPolicyOperationSettings;
   private final UnaryCallSettings
       deleteSecurityPolicySettings;
+  private final OperationCallSettings
+      deleteSecurityPolicyOperationSettings;
   private final UnaryCallSettings
       getSecurityPolicySettings;
   private final UnaryCallSettings
       getRuleSecurityPolicySettings;
   private final UnaryCallSettings
       insertSecurityPolicySettings;
+  private final OperationCallSettings
+      insertSecurityPolicyOperationSettings;
   private final PagedCallSettings<
           ListSecurityPoliciesHttpRequest, SecurityPolicyList, ListSecurityPoliciesPagedResponse>
       listSecurityPoliciesSettings;
   private final UnaryCallSettings
       patchSecurityPolicySettings;
+  private final OperationCallSettings
+      patchSecurityPolicyOperationSettings;
   private final UnaryCallSettings
       patchRuleSecurityPolicySettings;
+  private final OperationCallSettings<
+          PatchRuleSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage>
+      patchRuleSecurityPolicyOperationSettings;
   private final UnaryCallSettings
       removeRuleSecurityPolicySettings;
+  private final OperationCallSettings<
+          RemoveRuleSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage>
+      removeRuleSecurityPolicyOperationSettings;
 
   /** Returns the object with the settings used for calls to addRuleSecurityPolicy. */
   public UnaryCallSettings
@@ -128,12 +147,26 @@ public class SecurityPolicyStubSettings extends StubSettings
+      addRuleSecurityPolicyOperationSettings() {
+    return addRuleSecurityPolicyOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to deleteSecurityPolicy. */
   public UnaryCallSettings
       deleteSecurityPolicySettings() {
     return deleteSecurityPolicySettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteSecurityPolicy. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteSecurityPolicyOperationSettings() {
+    return deleteSecurityPolicyOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getSecurityPolicy. */
   public UnaryCallSettings
       getSecurityPolicySettings() {
@@ -152,6 +185,13 @@ public class SecurityPolicyStubSettings extends StubSettings
+      insertSecurityPolicyOperationSettings() {
+    return insertSecurityPolicyOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listSecurityPolicies. */
   public PagedCallSettings<
           ListSecurityPoliciesHttpRequest, SecurityPolicyList, ListSecurityPoliciesPagedResponse>
@@ -165,18 +205,39 @@ public class SecurityPolicyStubSettings extends StubSettings
+      patchSecurityPolicyOperationSettings() {
+    return patchSecurityPolicyOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to patchRuleSecurityPolicy. */
   public UnaryCallSettings
       patchRuleSecurityPolicySettings() {
     return patchRuleSecurityPolicySettings;
   }
 
+  /** Returns the object with the settings used for calls to patchRuleSecurityPolicy. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchRuleSecurityPolicyOperationSettings() {
+    return patchRuleSecurityPolicyOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to removeRuleSecurityPolicy. */
   public UnaryCallSettings
       removeRuleSecurityPolicySettings() {
     return removeRuleSecurityPolicySettings;
   }
 
+  /** Returns the object with the settings used for calls to removeRuleSecurityPolicy. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      removeRuleSecurityPolicyOperationSettings() {
+    return removeRuleSecurityPolicyOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public SecurityPolicyStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -253,14 +314,26 @@ protected SecurityPolicyStubSettings(Builder settingsBuilder) throws IOException
     super(settingsBuilder);
 
     addRuleSecurityPolicySettings = settingsBuilder.addRuleSecurityPolicySettings().build();
+    addRuleSecurityPolicyOperationSettings =
+        settingsBuilder.addRuleSecurityPolicyOperationSettings().build();
     deleteSecurityPolicySettings = settingsBuilder.deleteSecurityPolicySettings().build();
+    deleteSecurityPolicyOperationSettings =
+        settingsBuilder.deleteSecurityPolicyOperationSettings().build();
     getSecurityPolicySettings = settingsBuilder.getSecurityPolicySettings().build();
     getRuleSecurityPolicySettings = settingsBuilder.getRuleSecurityPolicySettings().build();
     insertSecurityPolicySettings = settingsBuilder.insertSecurityPolicySettings().build();
+    insertSecurityPolicyOperationSettings =
+        settingsBuilder.insertSecurityPolicyOperationSettings().build();
     listSecurityPoliciesSettings = settingsBuilder.listSecurityPoliciesSettings().build();
     patchSecurityPolicySettings = settingsBuilder.patchSecurityPolicySettings().build();
+    patchSecurityPolicyOperationSettings =
+        settingsBuilder.patchSecurityPolicyOperationSettings().build();
     patchRuleSecurityPolicySettings = settingsBuilder.patchRuleSecurityPolicySettings().build();
+    patchRuleSecurityPolicyOperationSettings =
+        settingsBuilder.patchRuleSecurityPolicyOperationSettings().build();
     removeRuleSecurityPolicySettings = settingsBuilder.removeRuleSecurityPolicySettings().build();
+    removeRuleSecurityPolicyOperationSettings =
+        settingsBuilder.removeRuleSecurityPolicyOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -334,23 +407,41 @@ public static class Builder extends StubSettings.Builder
         addRuleSecurityPolicySettings;
+    private final OperationCallSettings.Builder<
+            AddRuleSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage>
+        addRuleSecurityPolicyOperationSettings;
     private final UnaryCallSettings.Builder
         deleteSecurityPolicySettings;
+    private final OperationCallSettings.Builder<
+            DeleteSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage>
+        deleteSecurityPolicyOperationSettings;
     private final UnaryCallSettings.Builder
         getSecurityPolicySettings;
     private final UnaryCallSettings.Builder
         getRuleSecurityPolicySettings;
     private final UnaryCallSettings.Builder
         insertSecurityPolicySettings;
+    private final OperationCallSettings.Builder<
+            InsertSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage>
+        insertSecurityPolicyOperationSettings;
     private final PagedCallSettings.Builder<
             ListSecurityPoliciesHttpRequest, SecurityPolicyList, ListSecurityPoliciesPagedResponse>
         listSecurityPoliciesSettings;
     private final UnaryCallSettings.Builder
         patchSecurityPolicySettings;
+    private final OperationCallSettings.Builder<
+            PatchSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage>
+        patchSecurityPolicyOperationSettings;
     private final UnaryCallSettings.Builder
         patchRuleSecurityPolicySettings;
+    private final OperationCallSettings.Builder<
+            PatchRuleSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage>
+        patchRuleSecurityPolicyOperationSettings;
     private final UnaryCallSettings.Builder
         removeRuleSecurityPolicySettings;
+    private final OperationCallSettings.Builder<
+            RemoveRuleSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage>
+        removeRuleSecurityPolicyOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -395,23 +486,35 @@ protected Builder(ClientContext clientContext) {
 
       addRuleSecurityPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      addRuleSecurityPolicyOperationSettings = OperationCallSettings.newBuilder();
+
       deleteSecurityPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteSecurityPolicyOperationSettings = OperationCallSettings.newBuilder();
+
       getSecurityPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       getRuleSecurityPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertSecurityPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertSecurityPolicyOperationSettings = OperationCallSettings.newBuilder();
+
       listSecurityPoliciesSettings =
           PagedCallSettings.newBuilder(LIST_SECURITY_POLICIES_PAGE_STR_FACT);
 
       patchSecurityPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      patchSecurityPolicyOperationSettings = OperationCallSettings.newBuilder();
+
       patchRuleSecurityPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      patchRuleSecurityPolicyOperationSettings = OperationCallSettings.newBuilder();
+
       removeRuleSecurityPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      removeRuleSecurityPolicyOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               addRuleSecurityPolicySettings,
@@ -482,6 +585,135 @@ private static Builder initDefaults(Builder builder) {
           .removeRuleSecurityPolicySettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .addRuleSecurityPolicyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .deleteSecurityPolicyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertSecurityPolicyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .patchSecurityPolicyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .patchRuleSecurityPolicyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .removeRuleSecurityPolicyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -490,14 +722,26 @@ protected Builder(SecurityPolicyStubSettings settings) {
       super(settings);
 
       addRuleSecurityPolicySettings = settings.addRuleSecurityPolicySettings.toBuilder();
+      addRuleSecurityPolicyOperationSettings =
+          settings.addRuleSecurityPolicyOperationSettings.toBuilder();
       deleteSecurityPolicySettings = settings.deleteSecurityPolicySettings.toBuilder();
+      deleteSecurityPolicyOperationSettings =
+          settings.deleteSecurityPolicyOperationSettings.toBuilder();
       getSecurityPolicySettings = settings.getSecurityPolicySettings.toBuilder();
       getRuleSecurityPolicySettings = settings.getRuleSecurityPolicySettings.toBuilder();
       insertSecurityPolicySettings = settings.insertSecurityPolicySettings.toBuilder();
+      insertSecurityPolicyOperationSettings =
+          settings.insertSecurityPolicyOperationSettings.toBuilder();
       listSecurityPoliciesSettings = settings.listSecurityPoliciesSettings.toBuilder();
       patchSecurityPolicySettings = settings.patchSecurityPolicySettings.toBuilder();
+      patchSecurityPolicyOperationSettings =
+          settings.patchSecurityPolicyOperationSettings.toBuilder();
       patchRuleSecurityPolicySettings = settings.patchRuleSecurityPolicySettings.toBuilder();
+      patchRuleSecurityPolicyOperationSettings =
+          settings.patchRuleSecurityPolicyOperationSettings.toBuilder();
       removeRuleSecurityPolicySettings = settings.removeRuleSecurityPolicySettings.toBuilder();
+      removeRuleSecurityPolicyOperationSettings =
+          settings.removeRuleSecurityPolicyOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -534,12 +778,30 @@ public Builder applyToAllUnaryMethods(
       return addRuleSecurityPolicySettings;
     }
 
+    /** Returns the builder for the settings used for calls to addRuleSecurityPolicy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            AddRuleSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage>
+        addRuleSecurityPolicyOperationSettings() {
+      return addRuleSecurityPolicyOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to deleteSecurityPolicy. */
     public UnaryCallSettings.Builder
         deleteSecurityPolicySettings() {
       return deleteSecurityPolicySettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteSecurityPolicy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage>
+        deleteSecurityPolicyOperationSettings() {
+      return deleteSecurityPolicyOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getSecurityPolicy. */
     public UnaryCallSettings.Builder
         getSecurityPolicySettings() {
@@ -558,6 +820,15 @@ public Builder applyToAllUnaryMethods(
       return insertSecurityPolicySettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertSecurityPolicy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage>
+        insertSecurityPolicyOperationSettings() {
+      return insertSecurityPolicyOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listSecurityPolicies. */
     public PagedCallSettings.Builder<
             ListSecurityPoliciesHttpRequest, SecurityPolicyList, ListSecurityPoliciesPagedResponse>
@@ -571,18 +842,44 @@ public Builder applyToAllUnaryMethods(
       return patchSecurityPolicySettings;
     }
 
+    /** Returns the builder for the settings used for calls to patchSecurityPolicy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchSecurityPolicyOperationSettings() {
+      return patchSecurityPolicyOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to patchRuleSecurityPolicy. */
     public UnaryCallSettings.Builder
         patchRuleSecurityPolicySettings() {
       return patchRuleSecurityPolicySettings;
     }
 
+    /** Returns the builder for the settings used for calls to patchRuleSecurityPolicy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            PatchRuleSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage>
+        patchRuleSecurityPolicyOperationSettings() {
+      return patchRuleSecurityPolicyOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to removeRuleSecurityPolicy. */
     public UnaryCallSettings.Builder
         removeRuleSecurityPolicySettings() {
       return removeRuleSecurityPolicySettings;
     }
 
+    /** Returns the builder for the settings used for calls to removeRuleSecurityPolicy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            RemoveRuleSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage>
+        removeRuleSecurityPolicyOperationSettings() {
+      return removeRuleSecurityPolicyOperationSettings;
+    }
+
     @Override
     public SecurityPolicyStubSettings build() throws IOException {
       return new SecurityPolicyStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStub.java
index 824164e3a28e..703cdffb9ff6 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.DeleteSnapshotHttpRequest;
 import com.google.cloud.compute.v1.GetIamPolicySnapshotHttpRequest;
@@ -44,6 +46,17 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class SnapshotStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteSnapshotOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: deleteSnapshotOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteSnapshotCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteSnapshotCallable()");
@@ -75,6 +88,13 @@ public UnaryCallable setIamPolicySnapsh
     throw new UnsupportedOperationException("Not implemented: setIamPolicySnapshotCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setLabelsSnapshotOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setLabelsSnapshotOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable setLabelsSnapshotCallable() {
     throw new UnsupportedOperationException("Not implemented: setLabelsSnapshotCallable()");
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStubSettings.java
index 7ad014ccf692..1121308570bd 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -75,13 +80,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteSnapshot to 30 seconds: + * example, to set the total timeout of getSnapshot to 30 seconds: * *

  * 
  * SnapshotStubSettings.Builder snapshotSettingsBuilder =
  *     SnapshotStubSettings.newBuilder();
- * snapshotSettingsBuilder.deleteSnapshotSettings().getRetrySettings().toBuilder()
+ * snapshotSettingsBuilder.getSnapshotSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * SnapshotStubSettings snapshotSettings = snapshotSettingsBuilder.build();
  * 
@@ -102,6 +107,8 @@ public class SnapshotStubSettings extends StubSettings {
           .build();
 
   private final UnaryCallSettings deleteSnapshotSettings;
+  private final OperationCallSettings
+      deleteSnapshotOperationSettings;
   private final UnaryCallSettings getSnapshotSettings;
   private final UnaryCallSettings
       getIamPolicySnapshotSettings;
@@ -112,6 +119,8 @@ public class SnapshotStubSettings extends StubSettings {
       setIamPolicySnapshotSettings;
   private final UnaryCallSettings
       setLabelsSnapshotSettings;
+  private final OperationCallSettings
+      setLabelsSnapshotOperationSettings;
   private final UnaryCallSettings
       testIamPermissionsSnapshotSettings;
 
@@ -120,6 +129,13 @@ public UnaryCallSettings deleteSnapshotSet
     return deleteSnapshotSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteSnapshot. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteSnapshotOperationSettings() {
+    return deleteSnapshotOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getSnapshot. */
   public UnaryCallSettings getSnapshotSettings() {
     return getSnapshotSettings;
@@ -146,6 +162,13 @@ public UnaryCallSettings setLabelsSnaps
     return setLabelsSnapshotSettings;
   }
 
+  /** Returns the object with the settings used for calls to setLabelsSnapshot. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setLabelsSnapshotOperationSettings() {
+    return setLabelsSnapshotOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to testIamPermissionsSnapshot. */
   public UnaryCallSettings
       testIamPermissionsSnapshotSettings() {
@@ -227,11 +250,14 @@ protected SnapshotStubSettings(Builder settingsBuilder) throws IOException {
     super(settingsBuilder);
 
     deleteSnapshotSettings = settingsBuilder.deleteSnapshotSettings().build();
+    deleteSnapshotOperationSettings = settingsBuilder.deleteSnapshotOperationSettings().build();
     getSnapshotSettings = settingsBuilder.getSnapshotSettings().build();
     getIamPolicySnapshotSettings = settingsBuilder.getIamPolicySnapshotSettings().build();
     listSnapshotsSettings = settingsBuilder.listSnapshotsSettings().build();
     setIamPolicySnapshotSettings = settingsBuilder.setIamPolicySnapshotSettings().build();
     setLabelsSnapshotSettings = settingsBuilder.setLabelsSnapshotSettings().build();
+    setLabelsSnapshotOperationSettings =
+        settingsBuilder.setLabelsSnapshotOperationSettings().build();
     testIamPermissionsSnapshotSettings =
         settingsBuilder.testIamPermissionsSnapshotSettings().build();
   }
@@ -297,6 +323,9 @@ public static class Builder extends StubSettings.Builder
         deleteSnapshotSettings;
+    private final OperationCallSettings.Builder<
+            DeleteSnapshotHttpRequest, EmptyMessage, EmptyMessage>
+        deleteSnapshotOperationSettings;
     private final UnaryCallSettings.Builder getSnapshotSettings;
     private final UnaryCallSettings.Builder
         getIamPolicySnapshotSettings;
@@ -307,6 +336,9 @@ public static class Builder extends StubSettings.Builder
         setLabelsSnapshotSettings;
+    private final OperationCallSettings.Builder<
+            SetLabelsSnapshotHttpRequest, EmptyMessage, EmptyMessage>
+        setLabelsSnapshotOperationSettings;
     private final UnaryCallSettings.Builder<
             TestIamPermissionsSnapshotHttpRequest, TestPermissionsResponse>
         testIamPermissionsSnapshotSettings;
@@ -354,6 +386,8 @@ protected Builder(ClientContext clientContext) {
 
       deleteSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteSnapshotOperationSettings = OperationCallSettings.newBuilder();
+
       getSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       getIamPolicySnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -364,6 +398,8 @@ protected Builder(ClientContext clientContext) {
 
       setLabelsSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setLabelsSnapshotOperationSettings = OperationCallSettings.newBuilder();
+
       testIamPermissionsSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
@@ -424,6 +460,48 @@ private static Builder initDefaults(Builder builder) {
           .testIamPermissionsSnapshotSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteSnapshotOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setLabelsSnapshotOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -432,11 +510,13 @@ protected Builder(SnapshotStubSettings settings) {
       super(settings);
 
       deleteSnapshotSettings = settings.deleteSnapshotSettings.toBuilder();
+      deleteSnapshotOperationSettings = settings.deleteSnapshotOperationSettings.toBuilder();
       getSnapshotSettings = settings.getSnapshotSettings.toBuilder();
       getIamPolicySnapshotSettings = settings.getIamPolicySnapshotSettings.toBuilder();
       listSnapshotsSettings = settings.listSnapshotsSettings.toBuilder();
       setIamPolicySnapshotSettings = settings.setIamPolicySnapshotSettings.toBuilder();
       setLabelsSnapshotSettings = settings.setLabelsSnapshotSettings.toBuilder();
+      setLabelsSnapshotOperationSettings = settings.setLabelsSnapshotOperationSettings.toBuilder();
       testIamPermissionsSnapshotSettings = settings.testIamPermissionsSnapshotSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
@@ -472,6 +552,14 @@ public Builder applyToAllUnaryMethods(
       return deleteSnapshotSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteSnapshot. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteSnapshotOperationSettings() {
+      return deleteSnapshotOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getSnapshot. */
     public UnaryCallSettings.Builder getSnapshotSettings() {
       return getSnapshotSettings;
@@ -502,6 +590,14 @@ public UnaryCallSettings.Builder getSnapshotSe
       return setLabelsSnapshotSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setLabelsSnapshot. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        setLabelsSnapshotOperationSettings() {
+      return setLabelsSnapshotOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to testIamPermissionsSnapshot. */
     public UnaryCallSettings.Builder
         testIamPermissionsSnapshotSettings() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStub.java
index 3e820287742d..3de687555eb1 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.DeleteSslCertificateHttpRequest;
 import com.google.cloud.compute.v1.GetSslCertificateHttpRequest;
@@ -39,6 +41,18 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class SslCertificateStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteSslCertificateOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteSslCertificateOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteSslCertificateCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteSslCertificateCallable()");
@@ -49,6 +63,13 @@ public UnaryCallable getSslCertifi
     throw new UnsupportedOperationException("Not implemented: getSslCertificateCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertSslCertificateOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertSslCertificateOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertSslCertificateCallable() {
     throw new UnsupportedOperationException("Not implemented: insertSslCertificateCallable()");
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStubSettings.java
index fb736590ccfc..2451b77eaadc 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -70,13 +75,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteSslCertificate to 30 seconds: + * example, to set the total timeout of getSslCertificate to 30 seconds: * *

  * 
  * SslCertificateStubSettings.Builder sslCertificateSettingsBuilder =
  *     SslCertificateStubSettings.newBuilder();
- * sslCertificateSettingsBuilder.deleteSslCertificateSettings().getRetrySettings().toBuilder()
+ * sslCertificateSettingsBuilder.getSslCertificateSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * SslCertificateStubSettings sslCertificateSettings = sslCertificateSettingsBuilder.build();
  * 
@@ -98,10 +103,14 @@ public class SslCertificateStubSettings extends StubSettings
       deleteSslCertificateSettings;
+  private final OperationCallSettings
+      deleteSslCertificateOperationSettings;
   private final UnaryCallSettings
       getSslCertificateSettings;
   private final UnaryCallSettings
       insertSslCertificateSettings;
+  private final OperationCallSettings
+      insertSslCertificateOperationSettings;
   private final PagedCallSettings<
           ListSslCertificatesHttpRequest, SslCertificateList, ListSslCertificatesPagedResponse>
       listSslCertificatesSettings;
@@ -112,6 +121,13 @@ public class SslCertificateStubSettings extends StubSettings
+      deleteSslCertificateOperationSettings() {
+    return deleteSslCertificateOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getSslCertificate. */
   public UnaryCallSettings
       getSslCertificateSettings() {
@@ -124,6 +140,13 @@ public class SslCertificateStubSettings extends StubSettings
+      insertSslCertificateOperationSettings() {
+    return insertSslCertificateOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listSslCertificates. */
   public PagedCallSettings<
           ListSslCertificatesHttpRequest, SslCertificateList, ListSslCertificatesPagedResponse>
@@ -207,8 +230,12 @@ protected SslCertificateStubSettings(Builder settingsBuilder) throws IOException
     super(settingsBuilder);
 
     deleteSslCertificateSettings = settingsBuilder.deleteSslCertificateSettings().build();
+    deleteSslCertificateOperationSettings =
+        settingsBuilder.deleteSslCertificateOperationSettings().build();
     getSslCertificateSettings = settingsBuilder.getSslCertificateSettings().build();
     insertSslCertificateSettings = settingsBuilder.insertSslCertificateSettings().build();
+    insertSslCertificateOperationSettings =
+        settingsBuilder.insertSslCertificateOperationSettings().build();
     listSslCertificatesSettings = settingsBuilder.listSslCertificatesSettings().build();
   }
 
@@ -281,10 +308,16 @@ public static class Builder extends StubSettings.Builder
         deleteSslCertificateSettings;
+    private final OperationCallSettings.Builder<
+            DeleteSslCertificateHttpRequest, EmptyMessage, EmptyMessage>
+        deleteSslCertificateOperationSettings;
     private final UnaryCallSettings.Builder
         getSslCertificateSettings;
     private final UnaryCallSettings.Builder
         insertSslCertificateSettings;
+    private final OperationCallSettings.Builder<
+            InsertSslCertificateHttpRequest, EmptyMessage, EmptyMessage>
+        insertSslCertificateOperationSettings;
     private final PagedCallSettings.Builder<
             ListSslCertificatesHttpRequest, SslCertificateList, ListSslCertificatesPagedResponse>
         listSslCertificatesSettings;
@@ -332,10 +365,14 @@ protected Builder(ClientContext clientContext) {
 
       deleteSslCertificateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteSslCertificateOperationSettings = OperationCallSettings.newBuilder();
+
       getSslCertificateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertSslCertificateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertSslCertificateOperationSettings = OperationCallSettings.newBuilder();
+
       listSslCertificatesSettings =
           PagedCallSettings.newBuilder(LIST_SSL_CERTIFICATES_PAGE_STR_FACT);
 
@@ -379,6 +416,48 @@ private static Builder initDefaults(Builder builder) {
           .listSslCertificatesSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteSslCertificateOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertSslCertificateOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -387,8 +466,12 @@ protected Builder(SslCertificateStubSettings settings) {
       super(settings);
 
       deleteSslCertificateSettings = settings.deleteSslCertificateSettings.toBuilder();
+      deleteSslCertificateOperationSettings =
+          settings.deleteSslCertificateOperationSettings.toBuilder();
       getSslCertificateSettings = settings.getSslCertificateSettings.toBuilder();
       insertSslCertificateSettings = settings.insertSslCertificateSettings.toBuilder();
+      insertSslCertificateOperationSettings =
+          settings.insertSslCertificateOperationSettings.toBuilder();
       listSslCertificatesSettings = settings.listSslCertificatesSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
@@ -421,6 +504,15 @@ public Builder applyToAllUnaryMethods(
       return deleteSslCertificateSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteSslCertificate. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteSslCertificateHttpRequest, EmptyMessage, EmptyMessage>
+        deleteSslCertificateOperationSettings() {
+      return deleteSslCertificateOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getSslCertificate. */
     public UnaryCallSettings.Builder
         getSslCertificateSettings() {
@@ -433,6 +525,15 @@ public Builder applyToAllUnaryMethods(
       return insertSslCertificateSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertSslCertificate. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertSslCertificateHttpRequest, EmptyMessage, EmptyMessage>
+        insertSslCertificateOperationSettings() {
+      return insertSslCertificateOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listSslCertificates. */
     public PagedCallSettings.Builder<
             ListSslCertificatesHttpRequest, SslCertificateList, ListSslCertificatesPagedResponse>
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStub.java
index 162443fd6418..9f6000afbc63 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.DeleteSslPolicyHttpRequest;
 import com.google.cloud.compute.v1.GetSslPolicyHttpRequest;
@@ -42,6 +44,17 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class SslPolicyStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteSslPolicyOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: deleteSslPolicyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteSslPolicyCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteSslPolicyCallable()");
@@ -52,6 +65,12 @@ public UnaryCallable getSslPolicyCallable()
     throw new UnsupportedOperationException("Not implemented: getSslPolicyCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertSslPolicyOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: insertSslPolicyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertSslPolicyCallable() {
     throw new UnsupportedOperationException("Not implemented: insertSslPolicyCallable()");
@@ -76,6 +95,12 @@ public UnaryCallable listSslPolicie
         "Not implemented: listAvailableFeaturesSslPoliciesCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchSslPolicyOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: patchSslPolicyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable patchSslPolicyCallable() {
     throw new UnsupportedOperationException("Not implemented: patchSslPolicyCallable()");
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStubSettings.java
index b9a67d66870c..4658c48ebee2 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -73,13 +78,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteSslPolicy to 30 seconds: + * example, to set the total timeout of getSslPolicy to 30 seconds: * *

  * 
  * SslPolicyStubSettings.Builder sslPolicySettingsBuilder =
  *     SslPolicyStubSettings.newBuilder();
- * sslPolicySettingsBuilder.deleteSslPolicySettings().getRetrySettings().toBuilder()
+ * sslPolicySettingsBuilder.getSslPolicySettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * SslPolicyStubSettings sslPolicySettings = sslPolicySettingsBuilder.build();
  * 
@@ -100,8 +105,12 @@ public class SslPolicyStubSettings extends StubSettings {
           .build();
 
   private final UnaryCallSettings deleteSslPolicySettings;
+  private final OperationCallSettings
+      deleteSslPolicyOperationSettings;
   private final UnaryCallSettings getSslPolicySettings;
   private final UnaryCallSettings insertSslPolicySettings;
+  private final OperationCallSettings
+      insertSslPolicyOperationSettings;
   private final PagedCallSettings<
           ListSslPoliciesHttpRequest, SslPoliciesList, ListSslPoliciesPagedResponse>
       listSslPoliciesSettings;
@@ -109,12 +118,21 @@ public class SslPolicyStubSettings extends StubSettings {
           ListAvailableFeaturesSslPoliciesHttpRequest, SslPoliciesListAvailableFeaturesResponse>
       listAvailableFeaturesSslPoliciesSettings;
   private final UnaryCallSettings patchSslPolicySettings;
+  private final OperationCallSettings
+      patchSslPolicyOperationSettings;
 
   /** Returns the object with the settings used for calls to deleteSslPolicy. */
   public UnaryCallSettings deleteSslPolicySettings() {
     return deleteSslPolicySettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteSslPolicy. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteSslPolicyOperationSettings() {
+    return deleteSslPolicyOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getSslPolicy. */
   public UnaryCallSettings getSslPolicySettings() {
     return getSslPolicySettings;
@@ -125,6 +143,13 @@ public UnaryCallSettings insertSslPolicyS
     return insertSslPolicySettings;
   }
 
+  /** Returns the object with the settings used for calls to insertSslPolicy. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertSslPolicyOperationSettings() {
+    return insertSslPolicyOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listSslPolicies. */
   public PagedCallSettings<
           ListSslPoliciesHttpRequest, SslPoliciesList, ListSslPoliciesPagedResponse>
@@ -144,6 +169,13 @@ public UnaryCallSettings patchSslPolicySet
     return patchSslPolicySettings;
   }
 
+  /** Returns the object with the settings used for calls to patchSslPolicy. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchSslPolicyOperationSettings() {
+    return patchSslPolicyOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public SslPolicyStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -219,12 +251,15 @@ protected SslPolicyStubSettings(Builder settingsBuilder) throws IOException {
     super(settingsBuilder);
 
     deleteSslPolicySettings = settingsBuilder.deleteSslPolicySettings().build();
+    deleteSslPolicyOperationSettings = settingsBuilder.deleteSslPolicyOperationSettings().build();
     getSslPolicySettings = settingsBuilder.getSslPolicySettings().build();
     insertSslPolicySettings = settingsBuilder.insertSslPolicySettings().build();
+    insertSslPolicyOperationSettings = settingsBuilder.insertSslPolicyOperationSettings().build();
     listSslPoliciesSettings = settingsBuilder.listSslPoliciesSettings().build();
     listAvailableFeaturesSslPoliciesSettings =
         settingsBuilder.listAvailableFeaturesSslPoliciesSettings().build();
     patchSslPolicySettings = settingsBuilder.patchSslPolicySettings().build();
+    patchSslPolicyOperationSettings = settingsBuilder.patchSslPolicyOperationSettings().build();
   }
 
   private static final PagedListDescriptor
@@ -288,10 +323,16 @@ public static class Builder extends StubSettings.Builder
         deleteSslPolicySettings;
+    private final OperationCallSettings.Builder<
+            DeleteSslPolicyHttpRequest, EmptyMessage, EmptyMessage>
+        deleteSslPolicyOperationSettings;
     private final UnaryCallSettings.Builder
         getSslPolicySettings;
     private final UnaryCallSettings.Builder
         insertSslPolicySettings;
+    private final OperationCallSettings.Builder<
+            InsertSslPolicyHttpRequest, EmptyMessage, EmptyMessage>
+        insertSslPolicyOperationSettings;
     private final PagedCallSettings.Builder<
             ListSslPoliciesHttpRequest, SslPoliciesList, ListSslPoliciesPagedResponse>
         listSslPoliciesSettings;
@@ -300,6 +341,9 @@ public static class Builder extends StubSettings.Builder
         patchSslPolicySettings;
+    private final OperationCallSettings.Builder<
+            PatchSslPolicyHttpRequest, EmptyMessage, EmptyMessage>
+        patchSslPolicyOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -344,16 +388,22 @@ protected Builder(ClientContext clientContext) {
 
       deleteSslPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteSslPolicyOperationSettings = OperationCallSettings.newBuilder();
+
       getSslPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertSslPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertSslPolicyOperationSettings = OperationCallSettings.newBuilder();
+
       listSslPoliciesSettings = PagedCallSettings.newBuilder(LIST_SSL_POLICIES_PAGE_STR_FACT);
 
       listAvailableFeaturesSslPoliciesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       patchSslPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      patchSslPolicyOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               deleteSslPolicySettings,
@@ -406,6 +456,69 @@ private static Builder initDefaults(Builder builder) {
           .patchSslPolicySettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteSslPolicyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertSslPolicyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .patchSslPolicyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -414,12 +527,15 @@ protected Builder(SslPolicyStubSettings settings) {
       super(settings);
 
       deleteSslPolicySettings = settings.deleteSslPolicySettings.toBuilder();
+      deleteSslPolicyOperationSettings = settings.deleteSslPolicyOperationSettings.toBuilder();
       getSslPolicySettings = settings.getSslPolicySettings.toBuilder();
       insertSslPolicySettings = settings.insertSslPolicySettings.toBuilder();
+      insertSslPolicyOperationSettings = settings.insertSslPolicyOperationSettings.toBuilder();
       listSslPoliciesSettings = settings.listSslPoliciesSettings.toBuilder();
       listAvailableFeaturesSslPoliciesSettings =
           settings.listAvailableFeaturesSslPoliciesSettings.toBuilder();
       patchSslPolicySettings = settings.patchSslPolicySettings.toBuilder();
+      patchSslPolicyOperationSettings = settings.patchSslPolicyOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -453,6 +569,14 @@ public Builder applyToAllUnaryMethods(
       return deleteSslPolicySettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteSslPolicy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteSslPolicyOperationSettings() {
+      return deleteSslPolicyOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getSslPolicy. */
     public UnaryCallSettings.Builder getSslPolicySettings() {
       return getSslPolicySettings;
@@ -464,6 +588,14 @@ public UnaryCallSettings.Builder getSslPolic
       return insertSslPolicySettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertSslPolicy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertSslPolicyOperationSettings() {
+      return insertSslPolicyOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listSslPolicies. */
     public PagedCallSettings.Builder<
             ListSslPoliciesHttpRequest, SslPoliciesList, ListSslPoliciesPagedResponse>
@@ -484,6 +616,14 @@ public UnaryCallSettings.Builder getSslPolic
       return patchSslPolicySettings;
     }
 
+    /** Returns the builder for the settings used for calls to patchSslPolicy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchSslPolicyOperationSettings() {
+      return patchSslPolicyOperationSettings;
+    }
+
     @Override
     public SslPolicyStubSettings build() throws IOException {
       return new SslPolicyStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStub.java
index 1980048c428a..967b9026de16 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStub.java
@@ -21,6 +21,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.AggregatedListSubnetworksHttpRequest;
 import com.google.cloud.compute.v1.DeleteSubnetworkHttpRequest;
@@ -53,6 +55,11 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class SubnetworkStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
   @BetaApi
   public UnaryCallable
       aggregatedListSubnetworksPagedCallable() {
@@ -66,11 +73,24 @@ public abstract class SubnetworkStub implements BackgroundResource {
     throw new UnsupportedOperationException("Not implemented: aggregatedListSubnetworksCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteSubnetworkOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: deleteSubnetworkOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteSubnetworkCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteSubnetworkCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      expandIpCidrRangeSubnetworkOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: expandIpCidrRangeSubnetworkOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       expandIpCidrRangeSubnetworkCallable() {
@@ -88,6 +108,12 @@ public UnaryCallable getIamPolicySubn
     throw new UnsupportedOperationException("Not implemented: getIamPolicySubnetworkCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertSubnetworkOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: insertSubnetworkOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertSubnetworkCallable() {
     throw new UnsupportedOperationException("Not implemented: insertSubnetworkCallable()");
@@ -117,6 +143,12 @@ public UnaryCallable listSubnetworks
     throw new UnsupportedOperationException("Not implemented: listUsableSubnetworksCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchSubnetworkOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: patchSubnetworkOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable patchSubnetworkCallable() {
     throw new UnsupportedOperationException("Not implemented: patchSubnetworkCallable()");
@@ -127,6 +159,14 @@ public UnaryCallable setIamPolicySubn
     throw new UnsupportedOperationException("Not implemented: setIamPolicySubnetworkCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, EmptyMessage>
+      setPrivateIpGoogleAccessSubnetworkOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setPrivateIpGoogleAccessSubnetworkOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setPrivateIpGoogleAccessSubnetworkCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStubSettings.java
index 6d892da84215..49041ef3fd0f 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStubSettings.java
@@ -25,13 +25,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -86,13 +91,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteSubnetwork to 30 seconds: + * example, to set the total timeout of getSubnetwork to 30 seconds: * *

  * 
  * SubnetworkStubSettings.Builder subnetworkSettingsBuilder =
  *     SubnetworkStubSettings.newBuilder();
- * subnetworkSettingsBuilder.deleteSubnetworkSettings().getRetrySettings().toBuilder()
+ * subnetworkSettingsBuilder.getSubnetworkSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * SubnetworkStubSettings subnetworkSettings = subnetworkSettingsBuilder.build();
  * 
@@ -118,12 +123,19 @@ public class SubnetworkStubSettings extends StubSettings
           AggregatedListSubnetworksPagedResponse>
       aggregatedListSubnetworksSettings;
   private final UnaryCallSettings deleteSubnetworkSettings;
+  private final OperationCallSettings
+      deleteSubnetworkOperationSettings;
   private final UnaryCallSettings
       expandIpCidrRangeSubnetworkSettings;
+  private final OperationCallSettings<
+          ExpandIpCidrRangeSubnetworkHttpRequest, EmptyMessage, EmptyMessage>
+      expandIpCidrRangeSubnetworkOperationSettings;
   private final UnaryCallSettings getSubnetworkSettings;
   private final UnaryCallSettings
       getIamPolicySubnetworkSettings;
   private final UnaryCallSettings insertSubnetworkSettings;
+  private final OperationCallSettings
+      insertSubnetworkOperationSettings;
   private final PagedCallSettings<
           ListSubnetworksHttpRequest, SubnetworkList, ListSubnetworksPagedResponse>
       listSubnetworksSettings;
@@ -133,10 +145,15 @@ public class SubnetworkStubSettings extends StubSettings
           ListUsableSubnetworksPagedResponse>
       listUsableSubnetworksSettings;
   private final UnaryCallSettings patchSubnetworkSettings;
+  private final OperationCallSettings
+      patchSubnetworkOperationSettings;
   private final UnaryCallSettings
       setIamPolicySubnetworkSettings;
   private final UnaryCallSettings
       setPrivateIpGoogleAccessSubnetworkSettings;
+  private final OperationCallSettings<
+          SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, EmptyMessage>
+      setPrivateIpGoogleAccessSubnetworkOperationSettings;
   private final UnaryCallSettings
       testIamPermissionsSubnetworkSettings;
 
@@ -154,12 +171,26 @@ public UnaryCallSettings deleteSubnetwor
     return deleteSubnetworkSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteSubnetwork. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteSubnetworkOperationSettings() {
+    return deleteSubnetworkOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to expandIpCidrRangeSubnetwork. */
   public UnaryCallSettings
       expandIpCidrRangeSubnetworkSettings() {
     return expandIpCidrRangeSubnetworkSettings;
   }
 
+  /** Returns the object with the settings used for calls to expandIpCidrRangeSubnetwork. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      expandIpCidrRangeSubnetworkOperationSettings() {
+    return expandIpCidrRangeSubnetworkOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getSubnetwork. */
   public UnaryCallSettings getSubnetworkSettings() {
     return getSubnetworkSettings;
@@ -176,6 +207,13 @@ public UnaryCallSettings insertSubnetwor
     return insertSubnetworkSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertSubnetwork. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertSubnetworkOperationSettings() {
+    return insertSubnetworkOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listSubnetworks. */
   public PagedCallSettings
       listSubnetworksSettings() {
@@ -196,6 +234,13 @@ public UnaryCallSettings patchSubnetworkS
     return patchSubnetworkSettings;
   }
 
+  /** Returns the object with the settings used for calls to patchSubnetwork. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchSubnetworkOperationSettings() {
+    return patchSubnetworkOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setIamPolicySubnetwork. */
   public UnaryCallSettings
       setIamPolicySubnetworkSettings() {
@@ -208,6 +253,14 @@ public UnaryCallSettings patchSubnetworkS
     return setPrivateIpGoogleAccessSubnetworkSettings;
   }
 
+  /** Returns the object with the settings used for calls to setPrivateIpGoogleAccessSubnetwork. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, EmptyMessage>
+      setPrivateIpGoogleAccessSubnetworkOperationSettings() {
+    return setPrivateIpGoogleAccessSubnetworkOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to testIamPermissionsSubnetwork. */
   public UnaryCallSettings
       testIamPermissionsSubnetworkSettings() {
@@ -291,17 +344,24 @@ protected SubnetworkStubSettings(Builder settingsBuilder) throws IOException {
 
     aggregatedListSubnetworksSettings = settingsBuilder.aggregatedListSubnetworksSettings().build();
     deleteSubnetworkSettings = settingsBuilder.deleteSubnetworkSettings().build();
+    deleteSubnetworkOperationSettings = settingsBuilder.deleteSubnetworkOperationSettings().build();
     expandIpCidrRangeSubnetworkSettings =
         settingsBuilder.expandIpCidrRangeSubnetworkSettings().build();
+    expandIpCidrRangeSubnetworkOperationSettings =
+        settingsBuilder.expandIpCidrRangeSubnetworkOperationSettings().build();
     getSubnetworkSettings = settingsBuilder.getSubnetworkSettings().build();
     getIamPolicySubnetworkSettings = settingsBuilder.getIamPolicySubnetworkSettings().build();
     insertSubnetworkSettings = settingsBuilder.insertSubnetworkSettings().build();
+    insertSubnetworkOperationSettings = settingsBuilder.insertSubnetworkOperationSettings().build();
     listSubnetworksSettings = settingsBuilder.listSubnetworksSettings().build();
     listUsableSubnetworksSettings = settingsBuilder.listUsableSubnetworksSettings().build();
     patchSubnetworkSettings = settingsBuilder.patchSubnetworkSettings().build();
+    patchSubnetworkOperationSettings = settingsBuilder.patchSubnetworkOperationSettings().build();
     setIamPolicySubnetworkSettings = settingsBuilder.setIamPolicySubnetworkSettings().build();
     setPrivateIpGoogleAccessSubnetworkSettings =
         settingsBuilder.setPrivateIpGoogleAccessSubnetworkSettings().build();
+    setPrivateIpGoogleAccessSubnetworkOperationSettings =
+        settingsBuilder.setPrivateIpGoogleAccessSubnetworkOperationSettings().build();
     testIamPermissionsSubnetworkSettings =
         settingsBuilder.testIamPermissionsSubnetworkSettings().build();
   }
@@ -521,14 +581,23 @@ public static class Builder extends StubSettings.Builder
         deleteSubnetworkSettings;
+    private final OperationCallSettings.Builder<
+            DeleteSubnetworkHttpRequest, EmptyMessage, EmptyMessage>
+        deleteSubnetworkOperationSettings;
     private final UnaryCallSettings.Builder
         expandIpCidrRangeSubnetworkSettings;
+    private final OperationCallSettings.Builder<
+            ExpandIpCidrRangeSubnetworkHttpRequest, EmptyMessage, EmptyMessage>
+        expandIpCidrRangeSubnetworkOperationSettings;
     private final UnaryCallSettings.Builder
         getSubnetworkSettings;
     private final UnaryCallSettings.Builder
         getIamPolicySubnetworkSettings;
     private final UnaryCallSettings.Builder
         insertSubnetworkSettings;
+    private final OperationCallSettings.Builder<
+            InsertSubnetworkHttpRequest, EmptyMessage, EmptyMessage>
+        insertSubnetworkOperationSettings;
     private final PagedCallSettings.Builder<
             ListSubnetworksHttpRequest, SubnetworkList, ListSubnetworksPagedResponse>
         listSubnetworksSettings;
@@ -539,11 +608,17 @@ public static class Builder extends StubSettings.Builder
         patchSubnetworkSettings;
+    private final OperationCallSettings.Builder<
+            PatchSubnetworkHttpRequest, EmptyMessage, EmptyMessage>
+        patchSubnetworkOperationSettings;
     private final UnaryCallSettings.Builder
         setIamPolicySubnetworkSettings;
     private final UnaryCallSettings.Builder<
             SetPrivateIpGoogleAccessSubnetworkHttpRequest, Operation>
         setPrivateIpGoogleAccessSubnetworkSettings;
+    private final OperationCallSettings.Builder<
+            SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, EmptyMessage>
+        setPrivateIpGoogleAccessSubnetworkOperationSettings;
     private final UnaryCallSettings.Builder<
             TestIamPermissionsSubnetworkHttpRequest, TestPermissionsResponse>
         testIamPermissionsSubnetworkSettings;
@@ -594,14 +669,20 @@ protected Builder(ClientContext clientContext) {
 
       deleteSubnetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteSubnetworkOperationSettings = OperationCallSettings.newBuilder();
+
       expandIpCidrRangeSubnetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      expandIpCidrRangeSubnetworkOperationSettings = OperationCallSettings.newBuilder();
+
       getSubnetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       getIamPolicySubnetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertSubnetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertSubnetworkOperationSettings = OperationCallSettings.newBuilder();
+
       listSubnetworksSettings = PagedCallSettings.newBuilder(LIST_SUBNETWORKS_PAGE_STR_FACT);
 
       listUsableSubnetworksSettings =
@@ -609,10 +690,14 @@ protected Builder(ClientContext clientContext) {
 
       patchSubnetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      patchSubnetworkOperationSettings = OperationCallSettings.newBuilder();
+
       setIamPolicySubnetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       setPrivateIpGoogleAccessSubnetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setPrivateIpGoogleAccessSubnetworkOperationSettings = OperationCallSettings.newBuilder();
+
       testIamPermissionsSubnetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
@@ -703,6 +788,113 @@ private static Builder initDefaults(Builder builder) {
           .testIamPermissionsSubnetworkSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteSubnetworkOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .expandIpCidrRangeSubnetworkOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertSubnetworkOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .patchSubnetworkOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setPrivateIpGoogleAccessSubnetworkOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -712,17 +904,24 @@ protected Builder(SubnetworkStubSettings settings) {
 
       aggregatedListSubnetworksSettings = settings.aggregatedListSubnetworksSettings.toBuilder();
       deleteSubnetworkSettings = settings.deleteSubnetworkSettings.toBuilder();
+      deleteSubnetworkOperationSettings = settings.deleteSubnetworkOperationSettings.toBuilder();
       expandIpCidrRangeSubnetworkSettings =
           settings.expandIpCidrRangeSubnetworkSettings.toBuilder();
+      expandIpCidrRangeSubnetworkOperationSettings =
+          settings.expandIpCidrRangeSubnetworkOperationSettings.toBuilder();
       getSubnetworkSettings = settings.getSubnetworkSettings.toBuilder();
       getIamPolicySubnetworkSettings = settings.getIamPolicySubnetworkSettings.toBuilder();
       insertSubnetworkSettings = settings.insertSubnetworkSettings.toBuilder();
+      insertSubnetworkOperationSettings = settings.insertSubnetworkOperationSettings.toBuilder();
       listSubnetworksSettings = settings.listSubnetworksSettings.toBuilder();
       listUsableSubnetworksSettings = settings.listUsableSubnetworksSettings.toBuilder();
       patchSubnetworkSettings = settings.patchSubnetworkSettings.toBuilder();
+      patchSubnetworkOperationSettings = settings.patchSubnetworkOperationSettings.toBuilder();
       setIamPolicySubnetworkSettings = settings.setIamPolicySubnetworkSettings.toBuilder();
       setPrivateIpGoogleAccessSubnetworkSettings =
           settings.setPrivateIpGoogleAccessSubnetworkSettings.toBuilder();
+      setPrivateIpGoogleAccessSubnetworkOperationSettings =
+          settings.setPrivateIpGoogleAccessSubnetworkOperationSettings.toBuilder();
       testIamPermissionsSubnetworkSettings =
           settings.testIamPermissionsSubnetworkSettings.toBuilder();
 
@@ -773,12 +972,29 @@ public Builder applyToAllUnaryMethods(
       return deleteSubnetworkSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteSubnetwork. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteSubnetworkOperationSettings() {
+      return deleteSubnetworkOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to expandIpCidrRangeSubnetwork. */
     public UnaryCallSettings.Builder
         expandIpCidrRangeSubnetworkSettings() {
       return expandIpCidrRangeSubnetworkSettings;
     }
 
+    /** Returns the builder for the settings used for calls to expandIpCidrRangeSubnetwork. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            ExpandIpCidrRangeSubnetworkHttpRequest, EmptyMessage, EmptyMessage>
+        expandIpCidrRangeSubnetworkOperationSettings() {
+      return expandIpCidrRangeSubnetworkOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getSubnetwork. */
     public UnaryCallSettings.Builder getSubnetworkSettings() {
       return getSubnetworkSettings;
@@ -796,6 +1012,14 @@ public UnaryCallSettings.Builder getSubnet
       return insertSubnetworkSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertSubnetwork. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertSubnetworkOperationSettings() {
+      return insertSubnetworkOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listSubnetworks. */
     public PagedCallSettings.Builder<
             ListSubnetworksHttpRequest, SubnetworkList, ListSubnetworksPagedResponse>
@@ -818,6 +1042,14 @@ public UnaryCallSettings.Builder getSubnet
       return patchSubnetworkSettings;
     }
 
+    /** Returns the builder for the settings used for calls to patchSubnetwork. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchSubnetworkOperationSettings() {
+      return patchSubnetworkOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setIamPolicySubnetwork. */
     public UnaryCallSettings.Builder
         setIamPolicySubnetworkSettings() {
@@ -832,6 +1064,17 @@ public UnaryCallSettings.Builder getSubnet
       return setPrivateIpGoogleAccessSubnetworkSettings;
     }
 
+    /**
+     * Returns the builder for the settings used for calls to setPrivateIpGoogleAccessSubnetwork.
+     */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, EmptyMessage>
+        setPrivateIpGoogleAccessSubnetworkOperationSettings() {
+      return setPrivateIpGoogleAccessSubnetworkOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to testIamPermissionsSubnetwork. */
     public UnaryCallSettings.Builder<
             TestIamPermissionsSubnetworkHttpRequest, TestPermissionsResponse>
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStub.java
index 275dc5133f18..7ca7aee522d8 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.DeleteTargetHttpProxyHttpRequest;
 import com.google.cloud.compute.v1.GetTargetHttpProxyHttpRequest;
@@ -40,6 +42,18 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class TargetHttpProxyStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteTargetHttpProxyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteTargetHttpProxyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       deleteTargetHttpProxyCallable() {
@@ -52,6 +66,13 @@ public abstract class TargetHttpProxyStub implements BackgroundResource {
     throw new UnsupportedOperationException("Not implemented: getTargetHttpProxyCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertTargetHttpProxyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertTargetHttpProxyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       insertTargetHttpProxyCallable() {
@@ -71,6 +92,13 @@ public abstract class TargetHttpProxyStub implements BackgroundResource {
     throw new UnsupportedOperationException("Not implemented: listTargetHttpProxiesCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setUrlMapTargetHttpProxyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setUrlMapTargetHttpProxyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setUrlMapTargetHttpProxyCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStubSettings.java
index fcf84df01b87..dd11beee4850 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -71,13 +76,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteTargetHttpProxy to 30 seconds: + * example, to set the total timeout of getTargetHttpProxy to 30 seconds: * *

  * 
  * TargetHttpProxyStubSettings.Builder targetHttpProxySettingsBuilder =
  *     TargetHttpProxyStubSettings.newBuilder();
- * targetHttpProxySettingsBuilder.deleteTargetHttpProxySettings().getRetrySettings().toBuilder()
+ * targetHttpProxySettingsBuilder.getTargetHttpProxySettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * TargetHttpProxyStubSettings targetHttpProxySettings = targetHttpProxySettingsBuilder.build();
  * 
@@ -99,15 +104,22 @@ public class TargetHttpProxyStubSettings extends StubSettings
       deleteTargetHttpProxySettings;
+  private final OperationCallSettings
+      deleteTargetHttpProxyOperationSettings;
   private final UnaryCallSettings
       getTargetHttpProxySettings;
   private final UnaryCallSettings
       insertTargetHttpProxySettings;
+  private final OperationCallSettings
+      insertTargetHttpProxyOperationSettings;
   private final PagedCallSettings<
           ListTargetHttpProxiesHttpRequest, TargetHttpProxyList, ListTargetHttpProxiesPagedResponse>
       listTargetHttpProxiesSettings;
   private final UnaryCallSettings
       setUrlMapTargetHttpProxySettings;
+  private final OperationCallSettings<
+          SetUrlMapTargetHttpProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setUrlMapTargetHttpProxyOperationSettings;
 
   /** Returns the object with the settings used for calls to deleteTargetHttpProxy. */
   public UnaryCallSettings
@@ -115,6 +127,13 @@ public class TargetHttpProxyStubSettings extends StubSettings
+      deleteTargetHttpProxyOperationSettings() {
+    return deleteTargetHttpProxyOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getTargetHttpProxy. */
   public UnaryCallSettings
       getTargetHttpProxySettings() {
@@ -127,6 +146,13 @@ public class TargetHttpProxyStubSettings extends StubSettings
+      insertTargetHttpProxyOperationSettings() {
+    return insertTargetHttpProxyOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listTargetHttpProxies. */
   public PagedCallSettings<
           ListTargetHttpProxiesHttpRequest, TargetHttpProxyList, ListTargetHttpProxiesPagedResponse>
@@ -140,6 +166,13 @@ public class TargetHttpProxyStubSettings extends StubSettings
+      setUrlMapTargetHttpProxyOperationSettings() {
+    return setUrlMapTargetHttpProxyOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public TargetHttpProxyStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -216,10 +249,16 @@ protected TargetHttpProxyStubSettings(Builder settingsBuilder) throws IOExceptio
     super(settingsBuilder);
 
     deleteTargetHttpProxySettings = settingsBuilder.deleteTargetHttpProxySettings().build();
+    deleteTargetHttpProxyOperationSettings =
+        settingsBuilder.deleteTargetHttpProxyOperationSettings().build();
     getTargetHttpProxySettings = settingsBuilder.getTargetHttpProxySettings().build();
     insertTargetHttpProxySettings = settingsBuilder.insertTargetHttpProxySettings().build();
+    insertTargetHttpProxyOperationSettings =
+        settingsBuilder.insertTargetHttpProxyOperationSettings().build();
     listTargetHttpProxiesSettings = settingsBuilder.listTargetHttpProxiesSettings().build();
     setUrlMapTargetHttpProxySettings = settingsBuilder.setUrlMapTargetHttpProxySettings().build();
+    setUrlMapTargetHttpProxyOperationSettings =
+        settingsBuilder.setUrlMapTargetHttpProxyOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -293,10 +332,16 @@ public static class Builder extends StubSettings.Builder
         deleteTargetHttpProxySettings;
+    private final OperationCallSettings.Builder<
+            DeleteTargetHttpProxyHttpRequest, EmptyMessage, EmptyMessage>
+        deleteTargetHttpProxyOperationSettings;
     private final UnaryCallSettings.Builder
         getTargetHttpProxySettings;
     private final UnaryCallSettings.Builder
         insertTargetHttpProxySettings;
+    private final OperationCallSettings.Builder<
+            InsertTargetHttpProxyHttpRequest, EmptyMessage, EmptyMessage>
+        insertTargetHttpProxyOperationSettings;
     private final PagedCallSettings.Builder<
             ListTargetHttpProxiesHttpRequest,
             TargetHttpProxyList,
@@ -304,6 +349,9 @@ public static class Builder extends StubSettings.Builder
         setUrlMapTargetHttpProxySettings;
+    private final OperationCallSettings.Builder<
+            SetUrlMapTargetHttpProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setUrlMapTargetHttpProxyOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -348,15 +396,21 @@ protected Builder(ClientContext clientContext) {
 
       deleteTargetHttpProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteTargetHttpProxyOperationSettings = OperationCallSettings.newBuilder();
+
       getTargetHttpProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertTargetHttpProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertTargetHttpProxyOperationSettings = OperationCallSettings.newBuilder();
+
       listTargetHttpProxiesSettings =
           PagedCallSettings.newBuilder(LIST_TARGET_HTTP_PROXIES_PAGE_STR_FACT);
 
       setUrlMapTargetHttpProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setUrlMapTargetHttpProxyOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               deleteTargetHttpProxySettings,
@@ -403,6 +457,72 @@ private static Builder initDefaults(Builder builder) {
           .setUrlMapTargetHttpProxySettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteTargetHttpProxyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertTargetHttpProxyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setUrlMapTargetHttpProxyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -411,10 +531,16 @@ protected Builder(TargetHttpProxyStubSettings settings) {
       super(settings);
 
       deleteTargetHttpProxySettings = settings.deleteTargetHttpProxySettings.toBuilder();
+      deleteTargetHttpProxyOperationSettings =
+          settings.deleteTargetHttpProxyOperationSettings.toBuilder();
       getTargetHttpProxySettings = settings.getTargetHttpProxySettings.toBuilder();
       insertTargetHttpProxySettings = settings.insertTargetHttpProxySettings.toBuilder();
+      insertTargetHttpProxyOperationSettings =
+          settings.insertTargetHttpProxyOperationSettings.toBuilder();
       listTargetHttpProxiesSettings = settings.listTargetHttpProxiesSettings.toBuilder();
       setUrlMapTargetHttpProxySettings = settings.setUrlMapTargetHttpProxySettings.toBuilder();
+      setUrlMapTargetHttpProxyOperationSettings =
+          settings.setUrlMapTargetHttpProxyOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -447,6 +573,15 @@ public Builder applyToAllUnaryMethods(
       return deleteTargetHttpProxySettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteTargetHttpProxy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteTargetHttpProxyHttpRequest, EmptyMessage, EmptyMessage>
+        deleteTargetHttpProxyOperationSettings() {
+      return deleteTargetHttpProxyOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getTargetHttpProxy. */
     public UnaryCallSettings.Builder
         getTargetHttpProxySettings() {
@@ -459,6 +594,15 @@ public Builder applyToAllUnaryMethods(
       return insertTargetHttpProxySettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertTargetHttpProxy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertTargetHttpProxyHttpRequest, EmptyMessage, EmptyMessage>
+        insertTargetHttpProxyOperationSettings() {
+      return insertTargetHttpProxyOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listTargetHttpProxies. */
     public PagedCallSettings.Builder<
             ListTargetHttpProxiesHttpRequest,
@@ -474,6 +618,15 @@ public Builder applyToAllUnaryMethods(
       return setUrlMapTargetHttpProxySettings;
     }
 
+    /** Returns the builder for the settings used for calls to setUrlMapTargetHttpProxy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetUrlMapTargetHttpProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setUrlMapTargetHttpProxyOperationSettings() {
+      return setUrlMapTargetHttpProxyOperationSettings;
+    }
+
     @Override
     public TargetHttpProxyStubSettings build() throws IOException {
       return new TargetHttpProxyStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStub.java
index 6e41b579ebe2..5c9eb2b09bd5 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.DeleteTargetHttpsProxyHttpRequest;
 import com.google.cloud.compute.v1.GetTargetHttpsProxyHttpRequest;
@@ -43,6 +45,18 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class TargetHttpsProxyStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteTargetHttpsProxyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteTargetHttpsProxyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       deleteTargetHttpsProxyCallable() {
@@ -55,6 +69,13 @@ public abstract class TargetHttpsProxyStub implements BackgroundResource {
     throw new UnsupportedOperationException("Not implemented: getTargetHttpsProxyCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertTargetHttpsProxyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertTargetHttpsProxyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       insertTargetHttpsProxyCallable() {
@@ -74,6 +95,13 @@ public abstract class TargetHttpsProxyStub implements BackgroundResource {
     throw new UnsupportedOperationException("Not implemented: listTargetHttpsProxiesCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setQuicOverrideTargetHttpsProxyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setQuicOverrideTargetHttpsProxyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setQuicOverrideTargetHttpsProxyCallable() {
@@ -81,6 +109,14 @@ public abstract class TargetHttpsProxyStub implements BackgroundResource {
         "Not implemented: setQuicOverrideTargetHttpsProxyCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable<
+          SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setSslCertificatesTargetHttpsProxyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setSslCertificatesTargetHttpsProxyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setSslCertificatesTargetHttpsProxyCallable() {
@@ -88,6 +124,13 @@ public abstract class TargetHttpsProxyStub implements BackgroundResource {
         "Not implemented: setSslCertificatesTargetHttpsProxyCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setSslPolicyTargetHttpsProxyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setSslPolicyTargetHttpsProxyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setSslPolicyTargetHttpsProxyCallable() {
@@ -95,6 +138,13 @@ public abstract class TargetHttpsProxyStub implements BackgroundResource {
         "Not implemented: setSslPolicyTargetHttpsProxyCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setUrlMapTargetHttpsProxyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setUrlMapTargetHttpsProxyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setUrlMapTargetHttpsProxyCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStubSettings.java
index e5afe66bfbcf..7ac1d68f9f74 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -74,13 +79,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteTargetHttpsProxy to 30 seconds: + * example, to set the total timeout of getTargetHttpsProxy to 30 seconds: * *

  * 
  * TargetHttpsProxyStubSettings.Builder targetHttpsProxySettingsBuilder =
  *     TargetHttpsProxyStubSettings.newBuilder();
- * targetHttpsProxySettingsBuilder.deleteTargetHttpsProxySettings().getRetrySettings().toBuilder()
+ * targetHttpsProxySettingsBuilder.getTargetHttpsProxySettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * TargetHttpsProxyStubSettings targetHttpsProxySettings = targetHttpsProxySettingsBuilder.build();
  * 
@@ -102,10 +107,14 @@ public class TargetHttpsProxyStubSettings extends StubSettings
       deleteTargetHttpsProxySettings;
+  private final OperationCallSettings
+      deleteTargetHttpsProxyOperationSettings;
   private final UnaryCallSettings
       getTargetHttpsProxySettings;
   private final UnaryCallSettings
       insertTargetHttpsProxySettings;
+  private final OperationCallSettings
+      insertTargetHttpsProxyOperationSettings;
   private final PagedCallSettings<
           ListTargetHttpsProxiesHttpRequest,
           TargetHttpsProxyList,
@@ -113,12 +122,24 @@ public class TargetHttpsProxyStubSettings extends StubSettings
       setQuicOverrideTargetHttpsProxySettings;
+  private final OperationCallSettings<
+          SetQuicOverrideTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setQuicOverrideTargetHttpsProxyOperationSettings;
   private final UnaryCallSettings
       setSslCertificatesTargetHttpsProxySettings;
+  private final OperationCallSettings<
+          SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setSslCertificatesTargetHttpsProxyOperationSettings;
   private final UnaryCallSettings
       setSslPolicyTargetHttpsProxySettings;
+  private final OperationCallSettings<
+          SetSslPolicyTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setSslPolicyTargetHttpsProxyOperationSettings;
   private final UnaryCallSettings
       setUrlMapTargetHttpsProxySettings;
+  private final OperationCallSettings<
+          SetUrlMapTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setUrlMapTargetHttpsProxyOperationSettings;
 
   /** Returns the object with the settings used for calls to deleteTargetHttpsProxy. */
   public UnaryCallSettings
@@ -126,6 +147,13 @@ public class TargetHttpsProxyStubSettings extends StubSettings
+      deleteTargetHttpsProxyOperationSettings() {
+    return deleteTargetHttpsProxyOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getTargetHttpsProxy. */
   public UnaryCallSettings
       getTargetHttpsProxySettings() {
@@ -138,6 +166,13 @@ public class TargetHttpsProxyStubSettings extends StubSettings
+      insertTargetHttpsProxyOperationSettings() {
+    return insertTargetHttpsProxyOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listTargetHttpsProxies. */
   public PagedCallSettings<
           ListTargetHttpsProxiesHttpRequest,
@@ -153,24 +188,54 @@ public class TargetHttpsProxyStubSettings extends StubSettings
+      setQuicOverrideTargetHttpsProxyOperationSettings() {
+    return setQuicOverrideTargetHttpsProxyOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setSslCertificatesTargetHttpsProxy. */
   public UnaryCallSettings
       setSslCertificatesTargetHttpsProxySettings() {
     return setSslCertificatesTargetHttpsProxySettings;
   }
 
+  /** Returns the object with the settings used for calls to setSslCertificatesTargetHttpsProxy. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setSslCertificatesTargetHttpsProxyOperationSettings() {
+    return setSslCertificatesTargetHttpsProxyOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setSslPolicyTargetHttpsProxy. */
   public UnaryCallSettings
       setSslPolicyTargetHttpsProxySettings() {
     return setSslPolicyTargetHttpsProxySettings;
   }
 
+  /** Returns the object with the settings used for calls to setSslPolicyTargetHttpsProxy. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setSslPolicyTargetHttpsProxyOperationSettings() {
+    return setSslPolicyTargetHttpsProxyOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setUrlMapTargetHttpsProxy. */
   public UnaryCallSettings
       setUrlMapTargetHttpsProxySettings() {
     return setUrlMapTargetHttpsProxySettings;
   }
 
+  /** Returns the object with the settings used for calls to setUrlMapTargetHttpsProxy. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setUrlMapTargetHttpsProxyOperationSettings() {
+    return setUrlMapTargetHttpsProxyOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public TargetHttpsProxyStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -247,16 +312,28 @@ protected TargetHttpsProxyStubSettings(Builder settingsBuilder) throws IOExcepti
     super(settingsBuilder);
 
     deleteTargetHttpsProxySettings = settingsBuilder.deleteTargetHttpsProxySettings().build();
+    deleteTargetHttpsProxyOperationSettings =
+        settingsBuilder.deleteTargetHttpsProxyOperationSettings().build();
     getTargetHttpsProxySettings = settingsBuilder.getTargetHttpsProxySettings().build();
     insertTargetHttpsProxySettings = settingsBuilder.insertTargetHttpsProxySettings().build();
+    insertTargetHttpsProxyOperationSettings =
+        settingsBuilder.insertTargetHttpsProxyOperationSettings().build();
     listTargetHttpsProxiesSettings = settingsBuilder.listTargetHttpsProxiesSettings().build();
     setQuicOverrideTargetHttpsProxySettings =
         settingsBuilder.setQuicOverrideTargetHttpsProxySettings().build();
+    setQuicOverrideTargetHttpsProxyOperationSettings =
+        settingsBuilder.setQuicOverrideTargetHttpsProxyOperationSettings().build();
     setSslCertificatesTargetHttpsProxySettings =
         settingsBuilder.setSslCertificatesTargetHttpsProxySettings().build();
+    setSslCertificatesTargetHttpsProxyOperationSettings =
+        settingsBuilder.setSslCertificatesTargetHttpsProxyOperationSettings().build();
     setSslPolicyTargetHttpsProxySettings =
         settingsBuilder.setSslPolicyTargetHttpsProxySettings().build();
+    setSslPolicyTargetHttpsProxyOperationSettings =
+        settingsBuilder.setSslPolicyTargetHttpsProxyOperationSettings().build();
     setUrlMapTargetHttpsProxySettings = settingsBuilder.setUrlMapTargetHttpsProxySettings().build();
+    setUrlMapTargetHttpsProxyOperationSettings =
+        settingsBuilder.setUrlMapTargetHttpsProxyOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -332,10 +409,16 @@ public static class Builder extends StubSettings.Builder
         deleteTargetHttpsProxySettings;
+    private final OperationCallSettings.Builder<
+            DeleteTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+        deleteTargetHttpsProxyOperationSettings;
     private final UnaryCallSettings.Builder
         getTargetHttpsProxySettings;
     private final UnaryCallSettings.Builder
         insertTargetHttpsProxySettings;
+    private final OperationCallSettings.Builder<
+            InsertTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+        insertTargetHttpsProxyOperationSettings;
     private final PagedCallSettings.Builder<
             ListTargetHttpsProxiesHttpRequest,
             TargetHttpsProxyList,
@@ -343,13 +426,25 @@ public static class Builder extends StubSettings.Builder
         setQuicOverrideTargetHttpsProxySettings;
+    private final OperationCallSettings.Builder<
+            SetQuicOverrideTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setQuicOverrideTargetHttpsProxyOperationSettings;
     private final UnaryCallSettings.Builder<
             SetSslCertificatesTargetHttpsProxyHttpRequest, Operation>
         setSslCertificatesTargetHttpsProxySettings;
+    private final OperationCallSettings.Builder<
+            SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setSslCertificatesTargetHttpsProxyOperationSettings;
     private final UnaryCallSettings.Builder
         setSslPolicyTargetHttpsProxySettings;
+    private final OperationCallSettings.Builder<
+            SetSslPolicyTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setSslPolicyTargetHttpsProxyOperationSettings;
     private final UnaryCallSettings.Builder
         setUrlMapTargetHttpsProxySettings;
+    private final OperationCallSettings.Builder<
+            SetUrlMapTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setUrlMapTargetHttpsProxyOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -394,21 +489,33 @@ protected Builder(ClientContext clientContext) {
 
       deleteTargetHttpsProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteTargetHttpsProxyOperationSettings = OperationCallSettings.newBuilder();
+
       getTargetHttpsProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertTargetHttpsProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertTargetHttpsProxyOperationSettings = OperationCallSettings.newBuilder();
+
       listTargetHttpsProxiesSettings =
           PagedCallSettings.newBuilder(LIST_TARGET_HTTPS_PROXIES_PAGE_STR_FACT);
 
       setQuicOverrideTargetHttpsProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setQuicOverrideTargetHttpsProxyOperationSettings = OperationCallSettings.newBuilder();
+
       setSslCertificatesTargetHttpsProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setSslCertificatesTargetHttpsProxyOperationSettings = OperationCallSettings.newBuilder();
+
       setSslPolicyTargetHttpsProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setSslPolicyTargetHttpsProxyOperationSettings = OperationCallSettings.newBuilder();
+
       setUrlMapTargetHttpsProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setUrlMapTargetHttpsProxyOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               deleteTargetHttpsProxySettings,
@@ -473,6 +580,138 @@ private static Builder initDefaults(Builder builder) {
           .setUrlMapTargetHttpsProxySettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteTargetHttpsProxyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertTargetHttpsProxyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setQuicOverrideTargetHttpsProxyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setSslCertificatesTargetHttpsProxyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setSslPolicyTargetHttpsProxyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setUrlMapTargetHttpsProxyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -481,16 +720,28 @@ protected Builder(TargetHttpsProxyStubSettings settings) {
       super(settings);
 
       deleteTargetHttpsProxySettings = settings.deleteTargetHttpsProxySettings.toBuilder();
+      deleteTargetHttpsProxyOperationSettings =
+          settings.deleteTargetHttpsProxyOperationSettings.toBuilder();
       getTargetHttpsProxySettings = settings.getTargetHttpsProxySettings.toBuilder();
       insertTargetHttpsProxySettings = settings.insertTargetHttpsProxySettings.toBuilder();
+      insertTargetHttpsProxyOperationSettings =
+          settings.insertTargetHttpsProxyOperationSettings.toBuilder();
       listTargetHttpsProxiesSettings = settings.listTargetHttpsProxiesSettings.toBuilder();
       setQuicOverrideTargetHttpsProxySettings =
           settings.setQuicOverrideTargetHttpsProxySettings.toBuilder();
+      setQuicOverrideTargetHttpsProxyOperationSettings =
+          settings.setQuicOverrideTargetHttpsProxyOperationSettings.toBuilder();
       setSslCertificatesTargetHttpsProxySettings =
           settings.setSslCertificatesTargetHttpsProxySettings.toBuilder();
+      setSslCertificatesTargetHttpsProxyOperationSettings =
+          settings.setSslCertificatesTargetHttpsProxyOperationSettings.toBuilder();
       setSslPolicyTargetHttpsProxySettings =
           settings.setSslPolicyTargetHttpsProxySettings.toBuilder();
+      setSslPolicyTargetHttpsProxyOperationSettings =
+          settings.setSslPolicyTargetHttpsProxyOperationSettings.toBuilder();
       setUrlMapTargetHttpsProxySettings = settings.setUrlMapTargetHttpsProxySettings.toBuilder();
+      setUrlMapTargetHttpsProxyOperationSettings =
+          settings.setUrlMapTargetHttpsProxyOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -526,6 +777,15 @@ public Builder applyToAllUnaryMethods(
       return deleteTargetHttpsProxySettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteTargetHttpsProxy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+        deleteTargetHttpsProxyOperationSettings() {
+      return deleteTargetHttpsProxyOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getTargetHttpsProxy. */
     public UnaryCallSettings.Builder
         getTargetHttpsProxySettings() {
@@ -538,6 +798,15 @@ public Builder applyToAllUnaryMethods(
       return insertTargetHttpsProxySettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertTargetHttpsProxy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+        insertTargetHttpsProxyOperationSettings() {
+      return insertTargetHttpsProxyOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listTargetHttpsProxies. */
     public PagedCallSettings.Builder<
             ListTargetHttpsProxiesHttpRequest,
@@ -553,6 +822,15 @@ public Builder applyToAllUnaryMethods(
       return setQuicOverrideTargetHttpsProxySettings;
     }
 
+    /** Returns the builder for the settings used for calls to setQuicOverrideTargetHttpsProxy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetQuicOverrideTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setQuicOverrideTargetHttpsProxyOperationSettings() {
+      return setQuicOverrideTargetHttpsProxyOperationSettings;
+    }
+
     /**
      * Returns the builder for the settings used for calls to setSslCertificatesTargetHttpsProxy.
      */
@@ -561,18 +839,47 @@ public Builder applyToAllUnaryMethods(
       return setSslCertificatesTargetHttpsProxySettings;
     }
 
+    /**
+     * Returns the builder for the settings used for calls to setSslCertificatesTargetHttpsProxy.
+     */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setSslCertificatesTargetHttpsProxyOperationSettings() {
+      return setSslCertificatesTargetHttpsProxyOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setSslPolicyTargetHttpsProxy. */
     public UnaryCallSettings.Builder
         setSslPolicyTargetHttpsProxySettings() {
       return setSslPolicyTargetHttpsProxySettings;
     }
 
+    /** Returns the builder for the settings used for calls to setSslPolicyTargetHttpsProxy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetSslPolicyTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setSslPolicyTargetHttpsProxyOperationSettings() {
+      return setSslPolicyTargetHttpsProxyOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setUrlMapTargetHttpsProxy. */
     public UnaryCallSettings.Builder
         setUrlMapTargetHttpsProxySettings() {
       return setUrlMapTargetHttpsProxySettings;
     }
 
+    /** Returns the builder for the settings used for calls to setUrlMapTargetHttpsProxy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetUrlMapTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setUrlMapTargetHttpsProxyOperationSettings() {
+      return setUrlMapTargetHttpsProxyOperationSettings;
+    }
+
     @Override
     public TargetHttpsProxyStubSettings build() throws IOException {
       return new TargetHttpsProxyStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStub.java
index d57a48cfcc29..b9464e043e90 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStub.java
@@ -20,6 +20,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.AggregatedListTargetInstancesHttpRequest;
 import com.google.cloud.compute.v1.DeleteTargetInstanceHttpRequest;
@@ -42,6 +44,11 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class TargetInstanceStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
   @BetaApi
   public UnaryCallable<
           AggregatedListTargetInstancesHttpRequest, AggregatedListTargetInstancesPagedResponse>
@@ -57,6 +64,13 @@ public abstract class TargetInstanceStub implements BackgroundResource {
         "Not implemented: aggregatedListTargetInstancesCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteTargetInstanceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteTargetInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteTargetInstanceCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteTargetInstanceCallable()");
@@ -67,6 +81,13 @@ public UnaryCallable getTargetInst
     throw new UnsupportedOperationException("Not implemented: getTargetInstanceCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertTargetInstanceOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertTargetInstanceOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertTargetInstanceCallable() {
     throw new UnsupportedOperationException("Not implemented: insertTargetInstanceCallable()");
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStubSettings.java
index ba1e2feb85bf..d6c62a880463 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStubSettings.java
@@ -24,13 +24,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -74,13 +79,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteTargetInstance to 30 seconds: + * example, to set the total timeout of getTargetInstance to 30 seconds: * *

  * 
  * TargetInstanceStubSettings.Builder targetInstanceSettingsBuilder =
  *     TargetInstanceStubSettings.newBuilder();
- * targetInstanceSettingsBuilder.deleteTargetInstanceSettings().getRetrySettings().toBuilder()
+ * targetInstanceSettingsBuilder.getTargetInstanceSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * TargetInstanceStubSettings targetInstanceSettings = targetInstanceSettingsBuilder.build();
  * 
@@ -107,10 +112,14 @@ public class TargetInstanceStubSettings extends StubSettings
       deleteTargetInstanceSettings;
+  private final OperationCallSettings
+      deleteTargetInstanceOperationSettings;
   private final UnaryCallSettings
       getTargetInstanceSettings;
   private final UnaryCallSettings
       insertTargetInstanceSettings;
+  private final OperationCallSettings
+      insertTargetInstanceOperationSettings;
   private final PagedCallSettings<
           ListTargetInstancesHttpRequest, TargetInstanceList, ListTargetInstancesPagedResponse>
       listTargetInstancesSettings;
@@ -130,6 +139,13 @@ public class TargetInstanceStubSettings extends StubSettings
+      deleteTargetInstanceOperationSettings() {
+    return deleteTargetInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getTargetInstance. */
   public UnaryCallSettings
       getTargetInstanceSettings() {
@@ -142,6 +158,13 @@ public class TargetInstanceStubSettings extends StubSettings
+      insertTargetInstanceOperationSettings() {
+    return insertTargetInstanceOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listTargetInstances. */
   public PagedCallSettings<
           ListTargetInstancesHttpRequest, TargetInstanceList, ListTargetInstancesPagedResponse>
@@ -227,8 +250,12 @@ protected TargetInstanceStubSettings(Builder settingsBuilder) throws IOException
     aggregatedListTargetInstancesSettings =
         settingsBuilder.aggregatedListTargetInstancesSettings().build();
     deleteTargetInstanceSettings = settingsBuilder.deleteTargetInstanceSettings().build();
+    deleteTargetInstanceOperationSettings =
+        settingsBuilder.deleteTargetInstanceOperationSettings().build();
     getTargetInstanceSettings = settingsBuilder.getTargetInstanceSettings().build();
     insertTargetInstanceSettings = settingsBuilder.insertTargetInstanceSettings().build();
+    insertTargetInstanceOperationSettings =
+        settingsBuilder.insertTargetInstanceOperationSettings().build();
     listTargetInstancesSettings = settingsBuilder.listTargetInstancesSettings().build();
   }
 
@@ -387,10 +414,16 @@ public static class Builder extends StubSettings.Builder
         deleteTargetInstanceSettings;
+    private final OperationCallSettings.Builder<
+            DeleteTargetInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        deleteTargetInstanceOperationSettings;
     private final UnaryCallSettings.Builder
         getTargetInstanceSettings;
     private final UnaryCallSettings.Builder
         insertTargetInstanceSettings;
+    private final OperationCallSettings.Builder<
+            InsertTargetInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        insertTargetInstanceOperationSettings;
     private final PagedCallSettings.Builder<
             ListTargetInstancesHttpRequest, TargetInstanceList, ListTargetInstancesPagedResponse>
         listTargetInstancesSettings;
@@ -441,10 +474,14 @@ protected Builder(ClientContext clientContext) {
 
       deleteTargetInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteTargetInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       getTargetInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertTargetInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertTargetInstanceOperationSettings = OperationCallSettings.newBuilder();
+
       listTargetInstancesSettings =
           PagedCallSettings.newBuilder(LIST_TARGET_INSTANCES_PAGE_STR_FACT);
 
@@ -494,6 +531,48 @@ private static Builder initDefaults(Builder builder) {
           .listTargetInstancesSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteTargetInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertTargetInstanceOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -504,8 +583,12 @@ protected Builder(TargetInstanceStubSettings settings) {
       aggregatedListTargetInstancesSettings =
           settings.aggregatedListTargetInstancesSettings.toBuilder();
       deleteTargetInstanceSettings = settings.deleteTargetInstanceSettings.toBuilder();
+      deleteTargetInstanceOperationSettings =
+          settings.deleteTargetInstanceOperationSettings.toBuilder();
       getTargetInstanceSettings = settings.getTargetInstanceSettings.toBuilder();
       insertTargetInstanceSettings = settings.insertTargetInstanceSettings.toBuilder();
+      insertTargetInstanceOperationSettings =
+          settings.insertTargetInstanceOperationSettings.toBuilder();
       listTargetInstancesSettings = settings.listTargetInstancesSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
@@ -548,6 +631,15 @@ public Builder applyToAllUnaryMethods(
       return deleteTargetInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteTargetInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteTargetInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        deleteTargetInstanceOperationSettings() {
+      return deleteTargetInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getTargetInstance. */
     public UnaryCallSettings.Builder
         getTargetInstanceSettings() {
@@ -560,6 +652,15 @@ public Builder applyToAllUnaryMethods(
       return insertTargetInstanceSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertTargetInstance. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertTargetInstanceHttpRequest, EmptyMessage, EmptyMessage>
+        insertTargetInstanceOperationSettings() {
+      return insertTargetInstanceOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listTargetInstances. */
     public PagedCallSettings.Builder<
             ListTargetInstancesHttpRequest, TargetInstanceList, ListTargetInstancesPagedResponse>
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStub.java
index cc0b3a9fe79e..67089043cdc6 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStub.java
@@ -20,6 +20,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.AddHealthCheckTargetPoolHttpRequest;
 import com.google.cloud.compute.v1.AddInstanceTargetPoolHttpRequest;
@@ -49,12 +51,31 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class TargetPoolStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      addHealthCheckTargetPoolOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: addHealthCheckTargetPoolOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       addHealthCheckTargetPoolCallable() {
     throw new UnsupportedOperationException("Not implemented: addHealthCheckTargetPoolCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      addInstanceTargetPoolOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: addInstanceTargetPoolOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       addInstanceTargetPoolCallable() {
@@ -74,6 +95,12 @@ public abstract class TargetPoolStub implements BackgroundResource {
     throw new UnsupportedOperationException("Not implemented: aggregatedListTargetPoolsCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteTargetPoolOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: deleteTargetPoolOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteTargetPoolCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteTargetPoolCallable()");
@@ -90,6 +117,12 @@ public UnaryCallable getTargetPoolCallable
     throw new UnsupportedOperationException("Not implemented: getHealthTargetPoolCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertTargetPoolOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: insertTargetPoolOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertTargetPoolCallable() {
     throw new UnsupportedOperationException("Not implemented: insertTargetPoolCallable()");
@@ -106,6 +139,13 @@ public UnaryCallable listTargetPools
     throw new UnsupportedOperationException("Not implemented: listTargetPoolsCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      removeHealthCheckTargetPoolOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: removeHealthCheckTargetPoolOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       removeHealthCheckTargetPoolCallable() {
@@ -113,12 +153,26 @@ public UnaryCallable listTargetPools
         "Not implemented: removeHealthCheckTargetPoolCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      removeInstanceTargetPoolOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: removeInstanceTargetPoolOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       removeInstanceTargetPoolCallable() {
     throw new UnsupportedOperationException("Not implemented: removeInstanceTargetPoolCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setBackupTargetPoolOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setBackupTargetPoolOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable setBackupTargetPoolCallable() {
     throw new UnsupportedOperationException("Not implemented: setBackupTargetPoolCallable()");
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStubSettings.java
index 604bea73078c..a988ba3cca9b 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStubSettings.java
@@ -24,13 +24,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -81,13 +86,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of addHealthCheckTargetPool to 30 seconds: + * example, to set the total timeout of getTargetPool to 30 seconds: * *

  * 
  * TargetPoolStubSettings.Builder targetPoolSettingsBuilder =
  *     TargetPoolStubSettings.newBuilder();
- * targetPoolSettingsBuilder.addHealthCheckTargetPoolSettings().getRetrySettings().toBuilder()
+ * targetPoolSettingsBuilder.getTargetPoolSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * TargetPoolStubSettings targetPoolSettings = targetPoolSettingsBuilder.build();
  * 
@@ -109,27 +114,44 @@ public class TargetPoolStubSettings extends StubSettings
 
   private final UnaryCallSettings
       addHealthCheckTargetPoolSettings;
+  private final OperationCallSettings<
+          AddHealthCheckTargetPoolHttpRequest, EmptyMessage, EmptyMessage>
+      addHealthCheckTargetPoolOperationSettings;
   private final UnaryCallSettings
       addInstanceTargetPoolSettings;
+  private final OperationCallSettings
+      addInstanceTargetPoolOperationSettings;
   private final PagedCallSettings<
           AggregatedListTargetPoolsHttpRequest,
           TargetPoolAggregatedList,
           AggregatedListTargetPoolsPagedResponse>
       aggregatedListTargetPoolsSettings;
   private final UnaryCallSettings deleteTargetPoolSettings;
+  private final OperationCallSettings
+      deleteTargetPoolOperationSettings;
   private final UnaryCallSettings getTargetPoolSettings;
   private final UnaryCallSettings
       getHealthTargetPoolSettings;
   private final UnaryCallSettings insertTargetPoolSettings;
+  private final OperationCallSettings
+      insertTargetPoolOperationSettings;
   private final PagedCallSettings<
           ListTargetPoolsHttpRequest, TargetPoolList, ListTargetPoolsPagedResponse>
       listTargetPoolsSettings;
   private final UnaryCallSettings
       removeHealthCheckTargetPoolSettings;
+  private final OperationCallSettings<
+          RemoveHealthCheckTargetPoolHttpRequest, EmptyMessage, EmptyMessage>
+      removeHealthCheckTargetPoolOperationSettings;
   private final UnaryCallSettings
       removeInstanceTargetPoolSettings;
+  private final OperationCallSettings<
+          RemoveInstanceTargetPoolHttpRequest, EmptyMessage, EmptyMessage>
+      removeInstanceTargetPoolOperationSettings;
   private final UnaryCallSettings
       setBackupTargetPoolSettings;
+  private final OperationCallSettings
+      setBackupTargetPoolOperationSettings;
 
   /** Returns the object with the settings used for calls to addHealthCheckTargetPool. */
   public UnaryCallSettings
@@ -137,12 +159,26 @@ public class TargetPoolStubSettings extends StubSettings
     return addHealthCheckTargetPoolSettings;
   }
 
+  /** Returns the object with the settings used for calls to addHealthCheckTargetPool. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      addHealthCheckTargetPoolOperationSettings() {
+    return addHealthCheckTargetPoolOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to addInstanceTargetPool. */
   public UnaryCallSettings
       addInstanceTargetPoolSettings() {
     return addInstanceTargetPoolSettings;
   }
 
+  /** Returns the object with the settings used for calls to addInstanceTargetPool. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      addInstanceTargetPoolOperationSettings() {
+    return addInstanceTargetPoolOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to aggregatedListTargetPools. */
   public PagedCallSettings<
           AggregatedListTargetPoolsHttpRequest,
@@ -157,6 +193,13 @@ public UnaryCallSettings deleteTargetPoo
     return deleteTargetPoolSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteTargetPool. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteTargetPoolOperationSettings() {
+    return deleteTargetPoolOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getTargetPool. */
   public UnaryCallSettings getTargetPoolSettings() {
     return getTargetPoolSettings;
@@ -173,6 +216,13 @@ public UnaryCallSettings insertTargetPoo
     return insertTargetPoolSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertTargetPool. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertTargetPoolOperationSettings() {
+    return insertTargetPoolOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listTargetPools. */
   public PagedCallSettings
       listTargetPoolsSettings() {
@@ -185,18 +235,39 @@ public UnaryCallSettings insertTargetPoo
     return removeHealthCheckTargetPoolSettings;
   }
 
+  /** Returns the object with the settings used for calls to removeHealthCheckTargetPool. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      removeHealthCheckTargetPoolOperationSettings() {
+    return removeHealthCheckTargetPoolOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to removeInstanceTargetPool. */
   public UnaryCallSettings
       removeInstanceTargetPoolSettings() {
     return removeInstanceTargetPoolSettings;
   }
 
+  /** Returns the object with the settings used for calls to removeInstanceTargetPool. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      removeInstanceTargetPoolOperationSettings() {
+    return removeInstanceTargetPoolOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setBackupTargetPool. */
   public UnaryCallSettings
       setBackupTargetPoolSettings() {
     return setBackupTargetPoolSettings;
   }
 
+  /** Returns the object with the settings used for calls to setBackupTargetPool. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setBackupTargetPoolOperationSettings() {
+    return setBackupTargetPoolOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public TargetPoolStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -273,17 +344,29 @@ protected TargetPoolStubSettings(Builder settingsBuilder) throws IOException {
     super(settingsBuilder);
 
     addHealthCheckTargetPoolSettings = settingsBuilder.addHealthCheckTargetPoolSettings().build();
+    addHealthCheckTargetPoolOperationSettings =
+        settingsBuilder.addHealthCheckTargetPoolOperationSettings().build();
     addInstanceTargetPoolSettings = settingsBuilder.addInstanceTargetPoolSettings().build();
+    addInstanceTargetPoolOperationSettings =
+        settingsBuilder.addInstanceTargetPoolOperationSettings().build();
     aggregatedListTargetPoolsSettings = settingsBuilder.aggregatedListTargetPoolsSettings().build();
     deleteTargetPoolSettings = settingsBuilder.deleteTargetPoolSettings().build();
+    deleteTargetPoolOperationSettings = settingsBuilder.deleteTargetPoolOperationSettings().build();
     getTargetPoolSettings = settingsBuilder.getTargetPoolSettings().build();
     getHealthTargetPoolSettings = settingsBuilder.getHealthTargetPoolSettings().build();
     insertTargetPoolSettings = settingsBuilder.insertTargetPoolSettings().build();
+    insertTargetPoolOperationSettings = settingsBuilder.insertTargetPoolOperationSettings().build();
     listTargetPoolsSettings = settingsBuilder.listTargetPoolsSettings().build();
     removeHealthCheckTargetPoolSettings =
         settingsBuilder.removeHealthCheckTargetPoolSettings().build();
+    removeHealthCheckTargetPoolOperationSettings =
+        settingsBuilder.removeHealthCheckTargetPoolOperationSettings().build();
     removeInstanceTargetPoolSettings = settingsBuilder.removeInstanceTargetPoolSettings().build();
+    removeInstanceTargetPoolOperationSettings =
+        settingsBuilder.removeInstanceTargetPoolOperationSettings().build();
     setBackupTargetPoolSettings = settingsBuilder.setBackupTargetPoolSettings().build();
+    setBackupTargetPoolOperationSettings =
+        settingsBuilder.setBackupTargetPoolOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -422,8 +505,14 @@ public static class Builder extends StubSettings.Builder
         addHealthCheckTargetPoolSettings;
+    private final OperationCallSettings.Builder<
+            AddHealthCheckTargetPoolHttpRequest, EmptyMessage, EmptyMessage>
+        addHealthCheckTargetPoolOperationSettings;
     private final UnaryCallSettings.Builder
         addInstanceTargetPoolSettings;
+    private final OperationCallSettings.Builder<
+            AddInstanceTargetPoolHttpRequest, EmptyMessage, EmptyMessage>
+        addInstanceTargetPoolOperationSettings;
     private final PagedCallSettings.Builder<
             AggregatedListTargetPoolsHttpRequest,
             TargetPoolAggregatedList,
@@ -431,6 +520,9 @@ public static class Builder extends StubSettings.Builder
         deleteTargetPoolSettings;
+    private final OperationCallSettings.Builder<
+            DeleteTargetPoolHttpRequest, EmptyMessage, EmptyMessage>
+        deleteTargetPoolOperationSettings;
     private final UnaryCallSettings.Builder
         getTargetPoolSettings;
     private final UnaryCallSettings.Builder<
@@ -438,15 +530,27 @@ public static class Builder extends StubSettings.Builder
         insertTargetPoolSettings;
+    private final OperationCallSettings.Builder<
+            InsertTargetPoolHttpRequest, EmptyMessage, EmptyMessage>
+        insertTargetPoolOperationSettings;
     private final PagedCallSettings.Builder<
             ListTargetPoolsHttpRequest, TargetPoolList, ListTargetPoolsPagedResponse>
         listTargetPoolsSettings;
     private final UnaryCallSettings.Builder
         removeHealthCheckTargetPoolSettings;
+    private final OperationCallSettings.Builder<
+            RemoveHealthCheckTargetPoolHttpRequest, EmptyMessage, EmptyMessage>
+        removeHealthCheckTargetPoolOperationSettings;
     private final UnaryCallSettings.Builder
         removeInstanceTargetPoolSettings;
+    private final OperationCallSettings.Builder<
+            RemoveInstanceTargetPoolHttpRequest, EmptyMessage, EmptyMessage>
+        removeInstanceTargetPoolOperationSettings;
     private final UnaryCallSettings.Builder
         setBackupTargetPoolSettings;
+    private final OperationCallSettings.Builder<
+            SetBackupTargetPoolHttpRequest, EmptyMessage, EmptyMessage>
+        setBackupTargetPoolOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -491,27 +595,41 @@ protected Builder(ClientContext clientContext) {
 
       addHealthCheckTargetPoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      addHealthCheckTargetPoolOperationSettings = OperationCallSettings.newBuilder();
+
       addInstanceTargetPoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      addInstanceTargetPoolOperationSettings = OperationCallSettings.newBuilder();
+
       aggregatedListTargetPoolsSettings =
           PagedCallSettings.newBuilder(AGGREGATED_LIST_TARGET_POOLS_PAGE_STR_FACT);
 
       deleteTargetPoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteTargetPoolOperationSettings = OperationCallSettings.newBuilder();
+
       getTargetPoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       getHealthTargetPoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertTargetPoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertTargetPoolOperationSettings = OperationCallSettings.newBuilder();
+
       listTargetPoolsSettings = PagedCallSettings.newBuilder(LIST_TARGET_POOLS_PAGE_STR_FACT);
 
       removeHealthCheckTargetPoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      removeHealthCheckTargetPoolOperationSettings = OperationCallSettings.newBuilder();
+
       removeInstanceTargetPoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      removeInstanceTargetPoolOperationSettings = OperationCallSettings.newBuilder();
+
       setBackupTargetPoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setBackupTargetPoolOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               addHealthCheckTargetPoolSettings,
@@ -594,6 +712,157 @@ private static Builder initDefaults(Builder builder) {
           .setBackupTargetPoolSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .addHealthCheckTargetPoolOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .addInstanceTargetPoolOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .deleteTargetPoolOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertTargetPoolOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .removeHealthCheckTargetPoolOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .removeInstanceTargetPoolOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setBackupTargetPoolOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -602,17 +871,29 @@ protected Builder(TargetPoolStubSettings settings) {
       super(settings);
 
       addHealthCheckTargetPoolSettings = settings.addHealthCheckTargetPoolSettings.toBuilder();
+      addHealthCheckTargetPoolOperationSettings =
+          settings.addHealthCheckTargetPoolOperationSettings.toBuilder();
       addInstanceTargetPoolSettings = settings.addInstanceTargetPoolSettings.toBuilder();
+      addInstanceTargetPoolOperationSettings =
+          settings.addInstanceTargetPoolOperationSettings.toBuilder();
       aggregatedListTargetPoolsSettings = settings.aggregatedListTargetPoolsSettings.toBuilder();
       deleteTargetPoolSettings = settings.deleteTargetPoolSettings.toBuilder();
+      deleteTargetPoolOperationSettings = settings.deleteTargetPoolOperationSettings.toBuilder();
       getTargetPoolSettings = settings.getTargetPoolSettings.toBuilder();
       getHealthTargetPoolSettings = settings.getHealthTargetPoolSettings.toBuilder();
       insertTargetPoolSettings = settings.insertTargetPoolSettings.toBuilder();
+      insertTargetPoolOperationSettings = settings.insertTargetPoolOperationSettings.toBuilder();
       listTargetPoolsSettings = settings.listTargetPoolsSettings.toBuilder();
       removeHealthCheckTargetPoolSettings =
           settings.removeHealthCheckTargetPoolSettings.toBuilder();
+      removeHealthCheckTargetPoolOperationSettings =
+          settings.removeHealthCheckTargetPoolOperationSettings.toBuilder();
       removeInstanceTargetPoolSettings = settings.removeInstanceTargetPoolSettings.toBuilder();
+      removeInstanceTargetPoolOperationSettings =
+          settings.removeInstanceTargetPoolOperationSettings.toBuilder();
       setBackupTargetPoolSettings = settings.setBackupTargetPoolSettings.toBuilder();
+      setBackupTargetPoolOperationSettings =
+          settings.setBackupTargetPoolOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -651,12 +932,30 @@ public Builder applyToAllUnaryMethods(
       return addHealthCheckTargetPoolSettings;
     }
 
+    /** Returns the builder for the settings used for calls to addHealthCheckTargetPool. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            AddHealthCheckTargetPoolHttpRequest, EmptyMessage, EmptyMessage>
+        addHealthCheckTargetPoolOperationSettings() {
+      return addHealthCheckTargetPoolOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to addInstanceTargetPool. */
     public UnaryCallSettings.Builder
         addInstanceTargetPoolSettings() {
       return addInstanceTargetPoolSettings;
     }
 
+    /** Returns the builder for the settings used for calls to addInstanceTargetPool. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            AddInstanceTargetPoolHttpRequest, EmptyMessage, EmptyMessage>
+        addInstanceTargetPoolOperationSettings() {
+      return addInstanceTargetPoolOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to aggregatedListTargetPools. */
     public PagedCallSettings.Builder<
             AggregatedListTargetPoolsHttpRequest,
@@ -672,6 +971,14 @@ public Builder applyToAllUnaryMethods(
       return deleteTargetPoolSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteTargetPool. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteTargetPoolOperationSettings() {
+      return deleteTargetPoolOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getTargetPool. */
     public UnaryCallSettings.Builder getTargetPoolSettings() {
       return getTargetPoolSettings;
@@ -689,6 +996,14 @@ public UnaryCallSettings.Builder getTarget
       return insertTargetPoolSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertTargetPool. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertTargetPoolOperationSettings() {
+      return insertTargetPoolOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listTargetPools. */
     public PagedCallSettings.Builder<
             ListTargetPoolsHttpRequest, TargetPoolList, ListTargetPoolsPagedResponse>
@@ -702,18 +1017,44 @@ public UnaryCallSettings.Builder getTarget
       return removeHealthCheckTargetPoolSettings;
     }
 
+    /** Returns the builder for the settings used for calls to removeHealthCheckTargetPool. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            RemoveHealthCheckTargetPoolHttpRequest, EmptyMessage, EmptyMessage>
+        removeHealthCheckTargetPoolOperationSettings() {
+      return removeHealthCheckTargetPoolOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to removeInstanceTargetPool. */
     public UnaryCallSettings.Builder
         removeInstanceTargetPoolSettings() {
       return removeInstanceTargetPoolSettings;
     }
 
+    /** Returns the builder for the settings used for calls to removeInstanceTargetPool. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            RemoveInstanceTargetPoolHttpRequest, EmptyMessage, EmptyMessage>
+        removeInstanceTargetPoolOperationSettings() {
+      return removeInstanceTargetPoolOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setBackupTargetPool. */
     public UnaryCallSettings.Builder
         setBackupTargetPoolSettings() {
       return setBackupTargetPoolSettings;
     }
 
+    /** Returns the builder for the settings used for calls to setBackupTargetPool. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        setBackupTargetPoolOperationSettings() {
+      return setBackupTargetPoolOperationSettings;
+    }
+
     @Override
     public TargetPoolStubSettings build() throws IOException {
       return new TargetPoolStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStub.java
index e08d1a566eac..ad72c1618a80 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.DeleteTargetSslProxyHttpRequest;
 import com.google.cloud.compute.v1.GetTargetSslProxyHttpRequest;
@@ -43,6 +45,18 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class TargetSslProxyStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteTargetSslProxyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteTargetSslProxyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteTargetSslProxyCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteTargetSslProxyCallable()");
@@ -53,6 +67,13 @@ public UnaryCallable getTargetSslP
     throw new UnsupportedOperationException("Not implemented: getTargetSslProxyCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertTargetSslProxyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertTargetSslProxyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertTargetSslProxyCallable() {
     throw new UnsupportedOperationException("Not implemented: insertTargetSslProxyCallable()");
@@ -70,6 +91,13 @@ public UnaryCallable insertTargetSsl
     throw new UnsupportedOperationException("Not implemented: listTargetSslProxiesCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setBackendServiceTargetSslProxyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setBackendServiceTargetSslProxyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setBackendServiceTargetSslProxyCallable() {
@@ -77,6 +105,13 @@ public UnaryCallable insertTargetSsl
         "Not implemented: setBackendServiceTargetSslProxyCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setProxyHeaderTargetSslProxyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setProxyHeaderTargetSslProxyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setProxyHeaderTargetSslProxyCallable() {
@@ -84,6 +119,13 @@ public UnaryCallable insertTargetSsl
         "Not implemented: setProxyHeaderTargetSslProxyCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setSslCertificatesTargetSslProxyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setSslCertificatesTargetSslProxyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setSslCertificatesTargetSslProxyCallable() {
@@ -91,6 +133,13 @@ public UnaryCallable insertTargetSsl
         "Not implemented: setSslCertificatesTargetSslProxyCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setSslPolicyTargetSslProxyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setSslPolicyTargetSslProxyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setSslPolicyTargetSslProxyCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStubSettings.java
index 8bd70734100d..344f75ac8679 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -74,13 +79,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteTargetSslProxy to 30 seconds: + * example, to set the total timeout of getTargetSslProxy to 30 seconds: * *

  * 
  * TargetSslProxyStubSettings.Builder targetSslProxySettingsBuilder =
  *     TargetSslProxyStubSettings.newBuilder();
- * targetSslProxySettingsBuilder.deleteTargetSslProxySettings().getRetrySettings().toBuilder()
+ * targetSslProxySettingsBuilder.getTargetSslProxySettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * TargetSslProxyStubSettings targetSslProxySettings = targetSslProxySettingsBuilder.build();
  * 
@@ -102,21 +107,37 @@ public class TargetSslProxyStubSettings extends StubSettings
       deleteTargetSslProxySettings;
+  private final OperationCallSettings
+      deleteTargetSslProxyOperationSettings;
   private final UnaryCallSettings
       getTargetSslProxySettings;
   private final UnaryCallSettings
       insertTargetSslProxySettings;
+  private final OperationCallSettings
+      insertTargetSslProxyOperationSettings;
   private final PagedCallSettings<
           ListTargetSslProxiesHttpRequest, TargetSslProxyList, ListTargetSslProxiesPagedResponse>
       listTargetSslProxiesSettings;
   private final UnaryCallSettings
       setBackendServiceTargetSslProxySettings;
+  private final OperationCallSettings<
+          SetBackendServiceTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setBackendServiceTargetSslProxyOperationSettings;
   private final UnaryCallSettings
       setProxyHeaderTargetSslProxySettings;
+  private final OperationCallSettings<
+          SetProxyHeaderTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setProxyHeaderTargetSslProxyOperationSettings;
   private final UnaryCallSettings
       setSslCertificatesTargetSslProxySettings;
+  private final OperationCallSettings<
+          SetSslCertificatesTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setSslCertificatesTargetSslProxyOperationSettings;
   private final UnaryCallSettings
       setSslPolicyTargetSslProxySettings;
+  private final OperationCallSettings<
+          SetSslPolicyTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setSslPolicyTargetSslProxyOperationSettings;
 
   /** Returns the object with the settings used for calls to deleteTargetSslProxy. */
   public UnaryCallSettings
@@ -124,6 +145,13 @@ public class TargetSslProxyStubSettings extends StubSettings
+      deleteTargetSslProxyOperationSettings() {
+    return deleteTargetSslProxyOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getTargetSslProxy. */
   public UnaryCallSettings
       getTargetSslProxySettings() {
@@ -136,6 +164,13 @@ public class TargetSslProxyStubSettings extends StubSettings
+      insertTargetSslProxyOperationSettings() {
+    return insertTargetSslProxyOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listTargetSslProxies. */
   public PagedCallSettings<
           ListTargetSslProxiesHttpRequest, TargetSslProxyList, ListTargetSslProxiesPagedResponse>
@@ -149,24 +184,54 @@ public class TargetSslProxyStubSettings extends StubSettings
+      setBackendServiceTargetSslProxyOperationSettings() {
+    return setBackendServiceTargetSslProxyOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setProxyHeaderTargetSslProxy. */
   public UnaryCallSettings
       setProxyHeaderTargetSslProxySettings() {
     return setProxyHeaderTargetSslProxySettings;
   }
 
+  /** Returns the object with the settings used for calls to setProxyHeaderTargetSslProxy. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setProxyHeaderTargetSslProxyOperationSettings() {
+    return setProxyHeaderTargetSslProxyOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setSslCertificatesTargetSslProxy. */
   public UnaryCallSettings
       setSslCertificatesTargetSslProxySettings() {
     return setSslCertificatesTargetSslProxySettings;
   }
 
+  /** Returns the object with the settings used for calls to setSslCertificatesTargetSslProxy. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings<
+          SetSslCertificatesTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setSslCertificatesTargetSslProxyOperationSettings() {
+    return setSslCertificatesTargetSslProxyOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setSslPolicyTargetSslProxy. */
   public UnaryCallSettings
       setSslPolicyTargetSslProxySettings() {
     return setSslPolicyTargetSslProxySettings;
   }
 
+  /** Returns the object with the settings used for calls to setSslPolicyTargetSslProxy. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setSslPolicyTargetSslProxyOperationSettings() {
+    return setSslPolicyTargetSslProxyOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public TargetSslProxyStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -243,17 +308,29 @@ protected TargetSslProxyStubSettings(Builder settingsBuilder) throws IOException
     super(settingsBuilder);
 
     deleteTargetSslProxySettings = settingsBuilder.deleteTargetSslProxySettings().build();
+    deleteTargetSslProxyOperationSettings =
+        settingsBuilder.deleteTargetSslProxyOperationSettings().build();
     getTargetSslProxySettings = settingsBuilder.getTargetSslProxySettings().build();
     insertTargetSslProxySettings = settingsBuilder.insertTargetSslProxySettings().build();
+    insertTargetSslProxyOperationSettings =
+        settingsBuilder.insertTargetSslProxyOperationSettings().build();
     listTargetSslProxiesSettings = settingsBuilder.listTargetSslProxiesSettings().build();
     setBackendServiceTargetSslProxySettings =
         settingsBuilder.setBackendServiceTargetSslProxySettings().build();
+    setBackendServiceTargetSslProxyOperationSettings =
+        settingsBuilder.setBackendServiceTargetSslProxyOperationSettings().build();
     setProxyHeaderTargetSslProxySettings =
         settingsBuilder.setProxyHeaderTargetSslProxySettings().build();
+    setProxyHeaderTargetSslProxyOperationSettings =
+        settingsBuilder.setProxyHeaderTargetSslProxyOperationSettings().build();
     setSslCertificatesTargetSslProxySettings =
         settingsBuilder.setSslCertificatesTargetSslProxySettings().build();
+    setSslCertificatesTargetSslProxyOperationSettings =
+        settingsBuilder.setSslCertificatesTargetSslProxyOperationSettings().build();
     setSslPolicyTargetSslProxySettings =
         settingsBuilder.setSslPolicyTargetSslProxySettings().build();
+    setSslPolicyTargetSslProxyOperationSettings =
+        settingsBuilder.setSslPolicyTargetSslProxyOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -327,21 +404,39 @@ public static class Builder extends StubSettings.Builder
         deleteTargetSslProxySettings;
+    private final OperationCallSettings.Builder<
+            DeleteTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+        deleteTargetSslProxyOperationSettings;
     private final UnaryCallSettings.Builder
         getTargetSslProxySettings;
     private final UnaryCallSettings.Builder
         insertTargetSslProxySettings;
+    private final OperationCallSettings.Builder<
+            InsertTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+        insertTargetSslProxyOperationSettings;
     private final PagedCallSettings.Builder<
             ListTargetSslProxiesHttpRequest, TargetSslProxyList, ListTargetSslProxiesPagedResponse>
         listTargetSslProxiesSettings;
     private final UnaryCallSettings.Builder
         setBackendServiceTargetSslProxySettings;
+    private final OperationCallSettings.Builder<
+            SetBackendServiceTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setBackendServiceTargetSslProxyOperationSettings;
     private final UnaryCallSettings.Builder
         setProxyHeaderTargetSslProxySettings;
+    private final OperationCallSettings.Builder<
+            SetProxyHeaderTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setProxyHeaderTargetSslProxyOperationSettings;
     private final UnaryCallSettings.Builder
         setSslCertificatesTargetSslProxySettings;
+    private final OperationCallSettings.Builder<
+            SetSslCertificatesTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setSslCertificatesTargetSslProxyOperationSettings;
     private final UnaryCallSettings.Builder
         setSslPolicyTargetSslProxySettings;
+    private final OperationCallSettings.Builder<
+            SetSslPolicyTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setSslPolicyTargetSslProxyOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -386,21 +481,33 @@ protected Builder(ClientContext clientContext) {
 
       deleteTargetSslProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteTargetSslProxyOperationSettings = OperationCallSettings.newBuilder();
+
       getTargetSslProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertTargetSslProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertTargetSslProxyOperationSettings = OperationCallSettings.newBuilder();
+
       listTargetSslProxiesSettings =
           PagedCallSettings.newBuilder(LIST_TARGET_SSL_PROXIES_PAGE_STR_FACT);
 
       setBackendServiceTargetSslProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setBackendServiceTargetSslProxyOperationSettings = OperationCallSettings.newBuilder();
+
       setProxyHeaderTargetSslProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setProxyHeaderTargetSslProxyOperationSettings = OperationCallSettings.newBuilder();
+
       setSslCertificatesTargetSslProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setSslCertificatesTargetSslProxyOperationSettings = OperationCallSettings.newBuilder();
+
       setSslPolicyTargetSslProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setSslPolicyTargetSslProxyOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               deleteTargetSslProxySettings,
@@ -465,6 +572,136 @@ private static Builder initDefaults(Builder builder) {
           .setSslPolicyTargetSslProxySettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteTargetSslProxyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertTargetSslProxyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setBackendServiceTargetSslProxyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setProxyHeaderTargetSslProxyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setSslCertificatesTargetSslProxyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setSslPolicyTargetSslProxyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -473,16 +710,28 @@ protected Builder(TargetSslProxyStubSettings settings) {
       super(settings);
 
       deleteTargetSslProxySettings = settings.deleteTargetSslProxySettings.toBuilder();
+      deleteTargetSslProxyOperationSettings =
+          settings.deleteTargetSslProxyOperationSettings.toBuilder();
       getTargetSslProxySettings = settings.getTargetSslProxySettings.toBuilder();
       insertTargetSslProxySettings = settings.insertTargetSslProxySettings.toBuilder();
+      insertTargetSslProxyOperationSettings =
+          settings.insertTargetSslProxyOperationSettings.toBuilder();
       listTargetSslProxiesSettings = settings.listTargetSslProxiesSettings.toBuilder();
       setBackendServiceTargetSslProxySettings =
           settings.setBackendServiceTargetSslProxySettings.toBuilder();
+      setBackendServiceTargetSslProxyOperationSettings =
+          settings.setBackendServiceTargetSslProxyOperationSettings.toBuilder();
       setProxyHeaderTargetSslProxySettings =
           settings.setProxyHeaderTargetSslProxySettings.toBuilder();
+      setProxyHeaderTargetSslProxyOperationSettings =
+          settings.setProxyHeaderTargetSslProxyOperationSettings.toBuilder();
       setSslCertificatesTargetSslProxySettings =
           settings.setSslCertificatesTargetSslProxySettings.toBuilder();
+      setSslCertificatesTargetSslProxyOperationSettings =
+          settings.setSslCertificatesTargetSslProxyOperationSettings.toBuilder();
       setSslPolicyTargetSslProxySettings = settings.setSslPolicyTargetSslProxySettings.toBuilder();
+      setSslPolicyTargetSslProxyOperationSettings =
+          settings.setSslPolicyTargetSslProxyOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -518,6 +767,15 @@ public Builder applyToAllUnaryMethods(
       return deleteTargetSslProxySettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteTargetSslProxy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+        deleteTargetSslProxyOperationSettings() {
+      return deleteTargetSslProxyOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getTargetSslProxy. */
     public UnaryCallSettings.Builder
         getTargetSslProxySettings() {
@@ -530,6 +788,15 @@ public Builder applyToAllUnaryMethods(
       return insertTargetSslProxySettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertTargetSslProxy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+        insertTargetSslProxyOperationSettings() {
+      return insertTargetSslProxyOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listTargetSslProxies. */
     public PagedCallSettings.Builder<
             ListTargetSslProxiesHttpRequest, TargetSslProxyList, ListTargetSslProxiesPagedResponse>
@@ -543,24 +810,60 @@ public Builder applyToAllUnaryMethods(
       return setBackendServiceTargetSslProxySettings;
     }
 
+    /** Returns the builder for the settings used for calls to setBackendServiceTargetSslProxy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetBackendServiceTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setBackendServiceTargetSslProxyOperationSettings() {
+      return setBackendServiceTargetSslProxyOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setProxyHeaderTargetSslProxy. */
     public UnaryCallSettings.Builder
         setProxyHeaderTargetSslProxySettings() {
       return setProxyHeaderTargetSslProxySettings;
     }
 
+    /** Returns the builder for the settings used for calls to setProxyHeaderTargetSslProxy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetProxyHeaderTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setProxyHeaderTargetSslProxyOperationSettings() {
+      return setProxyHeaderTargetSslProxyOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setSslCertificatesTargetSslProxy. */
     public UnaryCallSettings.Builder
         setSslCertificatesTargetSslProxySettings() {
       return setSslCertificatesTargetSslProxySettings;
     }
 
+    /** Returns the builder for the settings used for calls to setSslCertificatesTargetSslProxy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetSslCertificatesTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setSslCertificatesTargetSslProxyOperationSettings() {
+      return setSslCertificatesTargetSslProxyOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setSslPolicyTargetSslProxy. */
     public UnaryCallSettings.Builder
         setSslPolicyTargetSslProxySettings() {
       return setSslPolicyTargetSslProxySettings;
     }
 
+    /** Returns the builder for the settings used for calls to setSslPolicyTargetSslProxy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetSslPolicyTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setSslPolicyTargetSslProxyOperationSettings() {
+      return setSslPolicyTargetSslProxyOperationSettings;
+    }
+
     @Override
     public TargetSslProxyStubSettings build() throws IOException {
       return new TargetSslProxyStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStub.java
index c30a2026807d..23f3b48e55ea 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.DeleteTargetTcpProxyHttpRequest;
 import com.google.cloud.compute.v1.GetTargetTcpProxyHttpRequest;
@@ -41,6 +43,18 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class TargetTcpProxyStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteTargetTcpProxyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteTargetTcpProxyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteTargetTcpProxyCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteTargetTcpProxyCallable()");
@@ -51,6 +65,13 @@ public UnaryCallable getTargetTcpP
     throw new UnsupportedOperationException("Not implemented: getTargetTcpProxyCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertTargetTcpProxyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertTargetTcpProxyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertTargetTcpProxyCallable() {
     throw new UnsupportedOperationException("Not implemented: insertTargetTcpProxyCallable()");
@@ -68,6 +89,13 @@ public UnaryCallable insertTargetTcp
     throw new UnsupportedOperationException("Not implemented: listTargetTcpProxiesCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setBackendServiceTargetTcpProxyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setBackendServiceTargetTcpProxyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setBackendServiceTargetTcpProxyCallable() {
@@ -75,6 +103,13 @@ public UnaryCallable insertTargetTcp
         "Not implemented: setBackendServiceTargetTcpProxyCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      setProxyHeaderTargetTcpProxyOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: setProxyHeaderTargetTcpProxyOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       setProxyHeaderTargetTcpProxyCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStubSettings.java
index 81e42575a183..7871aa943c65 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -72,13 +77,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteTargetTcpProxy to 30 seconds: + * example, to set the total timeout of getTargetTcpProxy to 30 seconds: * *

  * 
  * TargetTcpProxyStubSettings.Builder targetTcpProxySettingsBuilder =
  *     TargetTcpProxyStubSettings.newBuilder();
- * targetTcpProxySettingsBuilder.deleteTargetTcpProxySettings().getRetrySettings().toBuilder()
+ * targetTcpProxySettingsBuilder.getTargetTcpProxySettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * TargetTcpProxyStubSettings targetTcpProxySettings = targetTcpProxySettingsBuilder.build();
  * 
@@ -100,17 +105,27 @@ public class TargetTcpProxyStubSettings extends StubSettings
       deleteTargetTcpProxySettings;
+  private final OperationCallSettings
+      deleteTargetTcpProxyOperationSettings;
   private final UnaryCallSettings
       getTargetTcpProxySettings;
   private final UnaryCallSettings
       insertTargetTcpProxySettings;
+  private final OperationCallSettings
+      insertTargetTcpProxyOperationSettings;
   private final PagedCallSettings<
           ListTargetTcpProxiesHttpRequest, TargetTcpProxyList, ListTargetTcpProxiesPagedResponse>
       listTargetTcpProxiesSettings;
   private final UnaryCallSettings
       setBackendServiceTargetTcpProxySettings;
+  private final OperationCallSettings<
+          SetBackendServiceTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setBackendServiceTargetTcpProxyOperationSettings;
   private final UnaryCallSettings
       setProxyHeaderTargetTcpProxySettings;
+  private final OperationCallSettings<
+          SetProxyHeaderTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage>
+      setProxyHeaderTargetTcpProxyOperationSettings;
 
   /** Returns the object with the settings used for calls to deleteTargetTcpProxy. */
   public UnaryCallSettings
@@ -118,6 +133,13 @@ public class TargetTcpProxyStubSettings extends StubSettings
+      deleteTargetTcpProxyOperationSettings() {
+    return deleteTargetTcpProxyOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getTargetTcpProxy. */
   public UnaryCallSettings
       getTargetTcpProxySettings() {
@@ -130,6 +152,13 @@ public class TargetTcpProxyStubSettings extends StubSettings
+      insertTargetTcpProxyOperationSettings() {
+    return insertTargetTcpProxyOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listTargetTcpProxies. */
   public PagedCallSettings<
           ListTargetTcpProxiesHttpRequest, TargetTcpProxyList, ListTargetTcpProxiesPagedResponse>
@@ -143,12 +172,27 @@ public class TargetTcpProxyStubSettings extends StubSettings
+      setBackendServiceTargetTcpProxyOperationSettings() {
+    return setBackendServiceTargetTcpProxyOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to setProxyHeaderTargetTcpProxy. */
   public UnaryCallSettings
       setProxyHeaderTargetTcpProxySettings() {
     return setProxyHeaderTargetTcpProxySettings;
   }
 
+  /** Returns the object with the settings used for calls to setProxyHeaderTargetTcpProxy. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      setProxyHeaderTargetTcpProxyOperationSettings() {
+    return setProxyHeaderTargetTcpProxyOperationSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public TargetTcpProxyStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -225,13 +269,21 @@ protected TargetTcpProxyStubSettings(Builder settingsBuilder) throws IOException
     super(settingsBuilder);
 
     deleteTargetTcpProxySettings = settingsBuilder.deleteTargetTcpProxySettings().build();
+    deleteTargetTcpProxyOperationSettings =
+        settingsBuilder.deleteTargetTcpProxyOperationSettings().build();
     getTargetTcpProxySettings = settingsBuilder.getTargetTcpProxySettings().build();
     insertTargetTcpProxySettings = settingsBuilder.insertTargetTcpProxySettings().build();
+    insertTargetTcpProxyOperationSettings =
+        settingsBuilder.insertTargetTcpProxyOperationSettings().build();
     listTargetTcpProxiesSettings = settingsBuilder.listTargetTcpProxiesSettings().build();
     setBackendServiceTargetTcpProxySettings =
         settingsBuilder.setBackendServiceTargetTcpProxySettings().build();
+    setBackendServiceTargetTcpProxyOperationSettings =
+        settingsBuilder.setBackendServiceTargetTcpProxyOperationSettings().build();
     setProxyHeaderTargetTcpProxySettings =
         settingsBuilder.setProxyHeaderTargetTcpProxySettings().build();
+    setProxyHeaderTargetTcpProxyOperationSettings =
+        settingsBuilder.setProxyHeaderTargetTcpProxyOperationSettings().build();
   }
 
   private static final PagedListDescriptor<
@@ -305,17 +357,29 @@ public static class Builder extends StubSettings.Builder
         deleteTargetTcpProxySettings;
+    private final OperationCallSettings.Builder<
+            DeleteTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage>
+        deleteTargetTcpProxyOperationSettings;
     private final UnaryCallSettings.Builder
         getTargetTcpProxySettings;
     private final UnaryCallSettings.Builder
         insertTargetTcpProxySettings;
+    private final OperationCallSettings.Builder<
+            InsertTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage>
+        insertTargetTcpProxyOperationSettings;
     private final PagedCallSettings.Builder<
             ListTargetTcpProxiesHttpRequest, TargetTcpProxyList, ListTargetTcpProxiesPagedResponse>
         listTargetTcpProxiesSettings;
     private final UnaryCallSettings.Builder
         setBackendServiceTargetTcpProxySettings;
+    private final OperationCallSettings.Builder<
+            SetBackendServiceTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setBackendServiceTargetTcpProxyOperationSettings;
     private final UnaryCallSettings.Builder
         setProxyHeaderTargetTcpProxySettings;
+    private final OperationCallSettings.Builder<
+            SetProxyHeaderTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setProxyHeaderTargetTcpProxyOperationSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -360,17 +424,25 @@ protected Builder(ClientContext clientContext) {
 
       deleteTargetTcpProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteTargetTcpProxyOperationSettings = OperationCallSettings.newBuilder();
+
       getTargetTcpProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertTargetTcpProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertTargetTcpProxyOperationSettings = OperationCallSettings.newBuilder();
+
       listTargetTcpProxiesSettings =
           PagedCallSettings.newBuilder(LIST_TARGET_TCP_PROXIES_PAGE_STR_FACT);
 
       setBackendServiceTargetTcpProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setBackendServiceTargetTcpProxyOperationSettings = OperationCallSettings.newBuilder();
+
       setProxyHeaderTargetTcpProxySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      setProxyHeaderTargetTcpProxyOperationSettings = OperationCallSettings.newBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               deleteTargetTcpProxySettings,
@@ -423,6 +495,92 @@ private static Builder initDefaults(Builder builder) {
           .setProxyHeaderTargetTcpProxySettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteTargetTcpProxyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertTargetTcpProxyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setBackendServiceTargetTcpProxyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .setProxyHeaderTargetTcpProxyOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -431,13 +589,21 @@ protected Builder(TargetTcpProxyStubSettings settings) {
       super(settings);
 
       deleteTargetTcpProxySettings = settings.deleteTargetTcpProxySettings.toBuilder();
+      deleteTargetTcpProxyOperationSettings =
+          settings.deleteTargetTcpProxyOperationSettings.toBuilder();
       getTargetTcpProxySettings = settings.getTargetTcpProxySettings.toBuilder();
       insertTargetTcpProxySettings = settings.insertTargetTcpProxySettings.toBuilder();
+      insertTargetTcpProxyOperationSettings =
+          settings.insertTargetTcpProxyOperationSettings.toBuilder();
       listTargetTcpProxiesSettings = settings.listTargetTcpProxiesSettings.toBuilder();
       setBackendServiceTargetTcpProxySettings =
           settings.setBackendServiceTargetTcpProxySettings.toBuilder();
+      setBackendServiceTargetTcpProxyOperationSettings =
+          settings.setBackendServiceTargetTcpProxyOperationSettings.toBuilder();
       setProxyHeaderTargetTcpProxySettings =
           settings.setProxyHeaderTargetTcpProxySettings.toBuilder();
+      setProxyHeaderTargetTcpProxyOperationSettings =
+          settings.setProxyHeaderTargetTcpProxyOperationSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -471,6 +637,15 @@ public Builder applyToAllUnaryMethods(
       return deleteTargetTcpProxySettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteTargetTcpProxy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage>
+        deleteTargetTcpProxyOperationSettings() {
+      return deleteTargetTcpProxyOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getTargetTcpProxy. */
     public UnaryCallSettings.Builder
         getTargetTcpProxySettings() {
@@ -483,6 +658,15 @@ public Builder applyToAllUnaryMethods(
       return insertTargetTcpProxySettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertTargetTcpProxy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage>
+        insertTargetTcpProxyOperationSettings() {
+      return insertTargetTcpProxyOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listTargetTcpProxies. */
     public PagedCallSettings.Builder<
             ListTargetTcpProxiesHttpRequest, TargetTcpProxyList, ListTargetTcpProxiesPagedResponse>
@@ -496,12 +680,30 @@ public Builder applyToAllUnaryMethods(
       return setBackendServiceTargetTcpProxySettings;
     }
 
+    /** Returns the builder for the settings used for calls to setBackendServiceTargetTcpProxy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetBackendServiceTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setBackendServiceTargetTcpProxyOperationSettings() {
+      return setBackendServiceTargetTcpProxyOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to setProxyHeaderTargetTcpProxy. */
     public UnaryCallSettings.Builder
         setProxyHeaderTargetTcpProxySettings() {
       return setProxyHeaderTargetTcpProxySettings;
     }
 
+    /** Returns the builder for the settings used for calls to setProxyHeaderTargetTcpProxy. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            SetProxyHeaderTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage>
+        setProxyHeaderTargetTcpProxyOperationSettings() {
+      return setProxyHeaderTargetTcpProxyOperationSettings;
+    }
+
     @Override
     public TargetTcpProxyStubSettings build() throws IOException {
       return new TargetTcpProxyStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStub.java
index 93ab073a4505..ec19cf915b4d 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStub.java
@@ -20,6 +20,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysHttpRequest;
 import com.google.cloud.compute.v1.DeleteTargetVpnGatewayHttpRequest;
@@ -42,6 +44,11 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class TargetVpnGatewayStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
   @BetaApi
   public UnaryCallable<
           AggregatedListTargetVpnGatewaysHttpRequest, AggregatedListTargetVpnGatewaysPagedResponse>
@@ -57,6 +64,13 @@ public abstract class TargetVpnGatewayStub implements BackgroundResource {
         "Not implemented: aggregatedListTargetVpnGatewaysCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteTargetVpnGatewayOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: deleteTargetVpnGatewayOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       deleteTargetVpnGatewayCallable() {
@@ -69,6 +83,13 @@ public abstract class TargetVpnGatewayStub implements BackgroundResource {
     throw new UnsupportedOperationException("Not implemented: getTargetVpnGatewayCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertTargetVpnGatewayOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: insertTargetVpnGatewayOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       insertTargetVpnGatewayCallable() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStubSettings.java
index 51ed7223273a..c8ab31ca9362 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStubSettings.java
@@ -24,13 +24,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -74,13 +79,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteTargetVpnGateway to 30 seconds: + * example, to set the total timeout of getTargetVpnGateway to 30 seconds: * *

  * 
  * TargetVpnGatewayStubSettings.Builder targetVpnGatewaySettingsBuilder =
  *     TargetVpnGatewayStubSettings.newBuilder();
- * targetVpnGatewaySettingsBuilder.deleteTargetVpnGatewaySettings().getRetrySettings().toBuilder()
+ * targetVpnGatewaySettingsBuilder.getTargetVpnGatewaySettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * TargetVpnGatewayStubSettings targetVpnGatewaySettings = targetVpnGatewaySettingsBuilder.build();
  * 
@@ -107,10 +112,14 @@ public class TargetVpnGatewayStubSettings extends StubSettings
       deleteTargetVpnGatewaySettings;
+  private final OperationCallSettings
+      deleteTargetVpnGatewayOperationSettings;
   private final UnaryCallSettings
       getTargetVpnGatewaySettings;
   private final UnaryCallSettings
       insertTargetVpnGatewaySettings;
+  private final OperationCallSettings
+      insertTargetVpnGatewayOperationSettings;
   private final PagedCallSettings<
           ListTargetVpnGatewaysHttpRequest,
           TargetVpnGatewayList,
@@ -132,6 +141,13 @@ public class TargetVpnGatewayStubSettings extends StubSettings
+      deleteTargetVpnGatewayOperationSettings() {
+    return deleteTargetVpnGatewayOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getTargetVpnGateway. */
   public UnaryCallSettings
       getTargetVpnGatewaySettings() {
@@ -144,6 +160,13 @@ public class TargetVpnGatewayStubSettings extends StubSettings
+      insertTargetVpnGatewayOperationSettings() {
+    return insertTargetVpnGatewayOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listTargetVpnGateways. */
   public PagedCallSettings<
           ListTargetVpnGatewaysHttpRequest,
@@ -231,8 +254,12 @@ protected TargetVpnGatewayStubSettings(Builder settingsBuilder) throws IOExcepti
     aggregatedListTargetVpnGatewaysSettings =
         settingsBuilder.aggregatedListTargetVpnGatewaysSettings().build();
     deleteTargetVpnGatewaySettings = settingsBuilder.deleteTargetVpnGatewaySettings().build();
+    deleteTargetVpnGatewayOperationSettings =
+        settingsBuilder.deleteTargetVpnGatewayOperationSettings().build();
     getTargetVpnGatewaySettings = settingsBuilder.getTargetVpnGatewaySettings().build();
     insertTargetVpnGatewaySettings = settingsBuilder.insertTargetVpnGatewaySettings().build();
+    insertTargetVpnGatewayOperationSettings =
+        settingsBuilder.insertTargetVpnGatewayOperationSettings().build();
     listTargetVpnGatewaysSettings = settingsBuilder.listTargetVpnGatewaysSettings().build();
   }
 
@@ -395,10 +422,16 @@ public static class Builder extends StubSettings.Builder
         deleteTargetVpnGatewaySettings;
+    private final OperationCallSettings.Builder<
+            DeleteTargetVpnGatewayHttpRequest, EmptyMessage, EmptyMessage>
+        deleteTargetVpnGatewayOperationSettings;
     private final UnaryCallSettings.Builder
         getTargetVpnGatewaySettings;
     private final UnaryCallSettings.Builder
         insertTargetVpnGatewaySettings;
+    private final OperationCallSettings.Builder<
+            InsertTargetVpnGatewayHttpRequest, EmptyMessage, EmptyMessage>
+        insertTargetVpnGatewayOperationSettings;
     private final PagedCallSettings.Builder<
             ListTargetVpnGatewaysHttpRequest,
             TargetVpnGatewayList,
@@ -451,10 +484,14 @@ protected Builder(ClientContext clientContext) {
 
       deleteTargetVpnGatewaySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteTargetVpnGatewayOperationSettings = OperationCallSettings.newBuilder();
+
       getTargetVpnGatewaySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertTargetVpnGatewaySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertTargetVpnGatewayOperationSettings = OperationCallSettings.newBuilder();
+
       listTargetVpnGatewaysSettings =
           PagedCallSettings.newBuilder(LIST_TARGET_VPN_GATEWAYS_PAGE_STR_FACT);
 
@@ -504,6 +541,50 @@ private static Builder initDefaults(Builder builder) {
           .listTargetVpnGatewaysSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteTargetVpnGatewayOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertTargetVpnGatewayOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -514,8 +595,12 @@ protected Builder(TargetVpnGatewayStubSettings settings) {
       aggregatedListTargetVpnGatewaysSettings =
           settings.aggregatedListTargetVpnGatewaysSettings.toBuilder();
       deleteTargetVpnGatewaySettings = settings.deleteTargetVpnGatewaySettings.toBuilder();
+      deleteTargetVpnGatewayOperationSettings =
+          settings.deleteTargetVpnGatewayOperationSettings.toBuilder();
       getTargetVpnGatewaySettings = settings.getTargetVpnGatewaySettings.toBuilder();
       insertTargetVpnGatewaySettings = settings.insertTargetVpnGatewaySettings.toBuilder();
+      insertTargetVpnGatewayOperationSettings =
+          settings.insertTargetVpnGatewayOperationSettings.toBuilder();
       listTargetVpnGatewaysSettings = settings.listTargetVpnGatewaysSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
@@ -558,6 +643,15 @@ public Builder applyToAllUnaryMethods(
       return deleteTargetVpnGatewaySettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteTargetVpnGateway. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            DeleteTargetVpnGatewayHttpRequest, EmptyMessage, EmptyMessage>
+        deleteTargetVpnGatewayOperationSettings() {
+      return deleteTargetVpnGatewayOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getTargetVpnGateway. */
     public UnaryCallSettings.Builder
         getTargetVpnGatewaySettings() {
@@ -570,6 +664,15 @@ public Builder applyToAllUnaryMethods(
       return insertTargetVpnGatewaySettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertTargetVpnGateway. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InsertTargetVpnGatewayHttpRequest, EmptyMessage, EmptyMessage>
+        insertTargetVpnGatewayOperationSettings() {
+      return insertTargetVpnGatewayOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listTargetVpnGateways. */
     public PagedCallSettings.Builder<
             ListTargetVpnGatewaysHttpRequest,
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStub.java
index fa86b6d1cd0e..9498669031b7 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStub.java
@@ -19,6 +19,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.DeleteUrlMapHttpRequest;
 import com.google.cloud.compute.v1.GetUrlMapHttpRequest;
@@ -44,6 +46,17 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class UrlMapStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteUrlMapOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: deleteUrlMapOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteUrlMapCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteUrlMapCallable()");
@@ -54,11 +67,24 @@ public UnaryCallable getUrlMapCallable() {
     throw new UnsupportedOperationException("Not implemented: getUrlMapCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertUrlMapOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: insertUrlMapOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertUrlMapCallable() {
     throw new UnsupportedOperationException("Not implemented: insertUrlMapCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      invalidateCacheUrlMapOperationCallable() {
+    throw new UnsupportedOperationException(
+        "Not implemented: invalidateCacheUrlMapOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable
       invalidateCacheUrlMapCallable() {
@@ -76,11 +102,23 @@ public UnaryCallable listUrlMapsCallable() {
     throw new UnsupportedOperationException("Not implemented: listUrlMapsCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      patchUrlMapOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: patchUrlMapOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable patchUrlMapCallable() {
     throw new UnsupportedOperationException("Not implemented: patchUrlMapCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      updateUrlMapOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: updateUrlMapOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable updateUrlMapCallable() {
     throw new UnsupportedOperationException("Not implemented: updateUrlMapCallable()");
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStubSettings.java
index 0042d4c4c708..5e0e52f1cf2b 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStubSettings.java
@@ -23,13 +23,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -75,13 +80,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteUrlMap to 30 seconds: + * example, to set the total timeout of getUrlMap to 30 seconds: * *

  * 
  * UrlMapStubSettings.Builder urlMapSettingsBuilder =
  *     UrlMapStubSettings.newBuilder();
- * urlMapSettingsBuilder.deleteUrlMapSettings().getRetrySettings().toBuilder()
+ * urlMapSettingsBuilder.getUrlMapSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * UrlMapStubSettings urlMapSettings = urlMapSettingsBuilder.build();
  * 
@@ -102,14 +107,24 @@ public class UrlMapStubSettings extends StubSettings {
           .build();
 
   private final UnaryCallSettings deleteUrlMapSettings;
+  private final OperationCallSettings
+      deleteUrlMapOperationSettings;
   private final UnaryCallSettings getUrlMapSettings;
   private final UnaryCallSettings insertUrlMapSettings;
+  private final OperationCallSettings
+      insertUrlMapOperationSettings;
   private final UnaryCallSettings
       invalidateCacheUrlMapSettings;
+  private final OperationCallSettings
+      invalidateCacheUrlMapOperationSettings;
   private final PagedCallSettings
       listUrlMapsSettings;
   private final UnaryCallSettings patchUrlMapSettings;
+  private final OperationCallSettings
+      patchUrlMapOperationSettings;
   private final UnaryCallSettings updateUrlMapSettings;
+  private final OperationCallSettings
+      updateUrlMapOperationSettings;
   private final UnaryCallSettings
       validateUrlMapSettings;
 
@@ -118,6 +133,13 @@ public UnaryCallSettings deleteUrlMapSetting
     return deleteUrlMapSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteUrlMap. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteUrlMapOperationSettings() {
+    return deleteUrlMapOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getUrlMap. */
   public UnaryCallSettings getUrlMapSettings() {
     return getUrlMapSettings;
@@ -128,12 +150,26 @@ public UnaryCallSettings insertUrlMapSetting
     return insertUrlMapSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertUrlMap. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertUrlMapOperationSettings() {
+    return insertUrlMapOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to invalidateCacheUrlMap. */
   public UnaryCallSettings
       invalidateCacheUrlMapSettings() {
     return invalidateCacheUrlMapSettings;
   }
 
+  /** Returns the object with the settings used for calls to invalidateCacheUrlMap. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      invalidateCacheUrlMapOperationSettings() {
+    return invalidateCacheUrlMapOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listUrlMaps. */
   public PagedCallSettings
       listUrlMapsSettings() {
@@ -145,11 +181,25 @@ public UnaryCallSettings patchUrlMapSettings(
     return patchUrlMapSettings;
   }
 
+  /** Returns the object with the settings used for calls to patchUrlMap. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      patchUrlMapOperationSettings() {
+    return patchUrlMapOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to updateUrlMap. */
   public UnaryCallSettings updateUrlMapSettings() {
     return updateUrlMapSettings;
   }
 
+  /** Returns the object with the settings used for calls to updateUrlMap. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      updateUrlMapOperationSettings() {
+    return updateUrlMapOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to validateUrlMap. */
   public UnaryCallSettings
       validateUrlMapSettings() {
@@ -231,12 +281,18 @@ protected UrlMapStubSettings(Builder settingsBuilder) throws IOException {
     super(settingsBuilder);
 
     deleteUrlMapSettings = settingsBuilder.deleteUrlMapSettings().build();
+    deleteUrlMapOperationSettings = settingsBuilder.deleteUrlMapOperationSettings().build();
     getUrlMapSettings = settingsBuilder.getUrlMapSettings().build();
     insertUrlMapSettings = settingsBuilder.insertUrlMapSettings().build();
+    insertUrlMapOperationSettings = settingsBuilder.insertUrlMapOperationSettings().build();
     invalidateCacheUrlMapSettings = settingsBuilder.invalidateCacheUrlMapSettings().build();
+    invalidateCacheUrlMapOperationSettings =
+        settingsBuilder.invalidateCacheUrlMapOperationSettings().build();
     listUrlMapsSettings = settingsBuilder.listUrlMapsSettings().build();
     patchUrlMapSettings = settingsBuilder.patchUrlMapSettings().build();
+    patchUrlMapOperationSettings = settingsBuilder.patchUrlMapOperationSettings().build();
     updateUrlMapSettings = settingsBuilder.updateUrlMapSettings().build();
+    updateUrlMapOperationSettings = settingsBuilder.updateUrlMapOperationSettings().build();
     validateUrlMapSettings = settingsBuilder.validateUrlMapSettings().build();
   }
 
@@ -301,17 +357,28 @@ public static class Builder extends StubSettings.Builder
         deleteUrlMapSettings;
+    private final OperationCallSettings.Builder
+        deleteUrlMapOperationSettings;
     private final UnaryCallSettings.Builder getUrlMapSettings;
     private final UnaryCallSettings.Builder
         insertUrlMapSettings;
+    private final OperationCallSettings.Builder
+        insertUrlMapOperationSettings;
     private final UnaryCallSettings.Builder
         invalidateCacheUrlMapSettings;
+    private final OperationCallSettings.Builder<
+            InvalidateCacheUrlMapHttpRequest, EmptyMessage, EmptyMessage>
+        invalidateCacheUrlMapOperationSettings;
     private final PagedCallSettings.Builder<
             ListUrlMapsHttpRequest, UrlMapList, ListUrlMapsPagedResponse>
         listUrlMapsSettings;
     private final UnaryCallSettings.Builder patchUrlMapSettings;
+    private final OperationCallSettings.Builder
+        patchUrlMapOperationSettings;
     private final UnaryCallSettings.Builder
         updateUrlMapSettings;
+    private final OperationCallSettings.Builder
+        updateUrlMapOperationSettings;
     private final UnaryCallSettings.Builder
         validateUrlMapSettings;
 
@@ -358,18 +425,28 @@ protected Builder(ClientContext clientContext) {
 
       deleteUrlMapSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteUrlMapOperationSettings = OperationCallSettings.newBuilder();
+
       getUrlMapSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertUrlMapSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertUrlMapOperationSettings = OperationCallSettings.newBuilder();
+
       invalidateCacheUrlMapSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      invalidateCacheUrlMapOperationSettings = OperationCallSettings.newBuilder();
+
       listUrlMapsSettings = PagedCallSettings.newBuilder(LIST_URL_MAPS_PAGE_STR_FACT);
 
       patchUrlMapSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      patchUrlMapOperationSettings = OperationCallSettings.newBuilder();
+
       updateUrlMapSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      updateUrlMapOperationSettings = OperationCallSettings.newBuilder();
+
       validateUrlMapSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       unaryMethodSettingsBuilders =
@@ -436,6 +513,112 @@ private static Builder initDefaults(Builder builder) {
           .validateUrlMapSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteUrlMapOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertUrlMapOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .invalidateCacheUrlMapOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .
+                      newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .patchUrlMapOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .updateUrlMapOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -444,12 +627,18 @@ protected Builder(UrlMapStubSettings settings) {
       super(settings);
 
       deleteUrlMapSettings = settings.deleteUrlMapSettings.toBuilder();
+      deleteUrlMapOperationSettings = settings.deleteUrlMapOperationSettings.toBuilder();
       getUrlMapSettings = settings.getUrlMapSettings.toBuilder();
       insertUrlMapSettings = settings.insertUrlMapSettings.toBuilder();
+      insertUrlMapOperationSettings = settings.insertUrlMapOperationSettings.toBuilder();
       invalidateCacheUrlMapSettings = settings.invalidateCacheUrlMapSettings.toBuilder();
+      invalidateCacheUrlMapOperationSettings =
+          settings.invalidateCacheUrlMapOperationSettings.toBuilder();
       listUrlMapsSettings = settings.listUrlMapsSettings.toBuilder();
       patchUrlMapSettings = settings.patchUrlMapSettings.toBuilder();
+      patchUrlMapOperationSettings = settings.patchUrlMapOperationSettings.toBuilder();
       updateUrlMapSettings = settings.updateUrlMapSettings.toBuilder();
+      updateUrlMapOperationSettings = settings.updateUrlMapOperationSettings.toBuilder();
       validateUrlMapSettings = settings.validateUrlMapSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
@@ -485,6 +674,14 @@ public UnaryCallSettings.Builder deleteUrlMa
       return deleteUrlMapSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteUrlMap. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteUrlMapOperationSettings() {
+      return deleteUrlMapOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getUrlMap. */
     public UnaryCallSettings.Builder getUrlMapSettings() {
       return getUrlMapSettings;
@@ -495,12 +692,29 @@ public UnaryCallSettings.Builder insertUrlMa
       return insertUrlMapSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertUrlMap. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertUrlMapOperationSettings() {
+      return insertUrlMapOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to invalidateCacheUrlMap. */
     public UnaryCallSettings.Builder
         invalidateCacheUrlMapSettings() {
       return invalidateCacheUrlMapSettings;
     }
 
+    /** Returns the builder for the settings used for calls to invalidateCacheUrlMap. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder<
+            InvalidateCacheUrlMapHttpRequest, EmptyMessage, EmptyMessage>
+        invalidateCacheUrlMapOperationSettings() {
+      return invalidateCacheUrlMapOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listUrlMaps. */
     public PagedCallSettings.Builder
         listUrlMapsSettings() {
@@ -512,11 +726,27 @@ public UnaryCallSettings.Builder patchUrlMapS
       return patchUrlMapSettings;
     }
 
+    /** Returns the builder for the settings used for calls to patchUrlMap. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        patchUrlMapOperationSettings() {
+      return patchUrlMapOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to updateUrlMap. */
     public UnaryCallSettings.Builder updateUrlMapSettings() {
       return updateUrlMapSettings;
     }
 
+    /** Returns the builder for the settings used for calls to updateUrlMap. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        updateUrlMapOperationSettings() {
+      return updateUrlMapOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to validateUrlMap. */
     public UnaryCallSettings.Builder
         validateUrlMapSettings() {
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStub.java
index 88dd0fbbe80b..2dcd0244840d 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStub.java
@@ -20,6 +20,8 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.AggregatedListVpnTunnelsHttpRequest;
 import com.google.cloud.compute.v1.DeleteVpnTunnelHttpRequest;
@@ -42,6 +44,11 @@
 @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
 public abstract class VpnTunnelStub implements BackgroundResource {
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public GlobalOperationStub getOperationsStub() {
+    throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+  }
+
   @BetaApi
   public UnaryCallable
       aggregatedListVpnTunnelsPagedCallable() {
@@ -55,6 +62,12 @@ public abstract class VpnTunnelStub implements BackgroundResource {
     throw new UnsupportedOperationException("Not implemented: aggregatedListVpnTunnelsCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      deleteVpnTunnelOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: deleteVpnTunnelOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable deleteVpnTunnelCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteVpnTunnelCallable()");
@@ -65,6 +78,12 @@ public UnaryCallable getVpnTunnelCallable()
     throw new UnsupportedOperationException("Not implemented: getVpnTunnelCallable()");
   }
 
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallable
+      insertVpnTunnelOperationCallable() {
+    throw new UnsupportedOperationException("Not implemented: insertVpnTunnelOperationCallable()");
+  }
+
   @BetaApi
   public UnaryCallable insertVpnTunnelCallable() {
     throw new UnsupportedOperationException("Not implemented: insertVpnTunnelCallable()");
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStubSettings.java
index be2a5c4d3de3..3202cbb05b0b 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStubSettings.java
@@ -24,13 +24,18 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.ApiMessageOperationTransformers;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.longrunning.OperationTimedPollAlgorithm;
 import com.google.api.gax.retrying.RetrySettings;
 import com.google.api.gax.rpc.ApiCallContext;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.PageContext;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.PagedListDescriptor;
@@ -74,13 +79,13 @@
  *
  * 

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of deleteVpnTunnel to 30 seconds: + * example, to set the total timeout of getVpnTunnel to 30 seconds: * *

  * 
  * VpnTunnelStubSettings.Builder vpnTunnelSettingsBuilder =
  *     VpnTunnelStubSettings.newBuilder();
- * vpnTunnelSettingsBuilder.deleteVpnTunnelSettings().getRetrySettings().toBuilder()
+ * vpnTunnelSettingsBuilder.getVpnTunnelSettings().getRetrySettings().toBuilder()
  *     .setTotalTimeout(Duration.ofSeconds(30));
  * VpnTunnelStubSettings vpnTunnelSettings = vpnTunnelSettingsBuilder.build();
  * 
@@ -106,8 +111,12 @@ public class VpnTunnelStubSettings extends StubSettings {
           AggregatedListVpnTunnelsPagedResponse>
       aggregatedListVpnTunnelsSettings;
   private final UnaryCallSettings deleteVpnTunnelSettings;
+  private final OperationCallSettings
+      deleteVpnTunnelOperationSettings;
   private final UnaryCallSettings getVpnTunnelSettings;
   private final UnaryCallSettings insertVpnTunnelSettings;
+  private final OperationCallSettings
+      insertVpnTunnelOperationSettings;
   private final PagedCallSettings<
           ListVpnTunnelsHttpRequest, VpnTunnelList, ListVpnTunnelsPagedResponse>
       listVpnTunnelsSettings;
@@ -126,6 +135,13 @@ public UnaryCallSettings deleteVpnTunnelS
     return deleteVpnTunnelSettings;
   }
 
+  /** Returns the object with the settings used for calls to deleteVpnTunnel. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      deleteVpnTunnelOperationSettings() {
+    return deleteVpnTunnelOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to getVpnTunnel. */
   public UnaryCallSettings getVpnTunnelSettings() {
     return getVpnTunnelSettings;
@@ -136,6 +152,13 @@ public UnaryCallSettings insertVpnTunnelS
     return insertVpnTunnelSettings;
   }
 
+  /** Returns the object with the settings used for calls to insertVpnTunnel. */
+  @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+  public OperationCallSettings
+      insertVpnTunnelOperationSettings() {
+    return insertVpnTunnelOperationSettings;
+  }
+
   /** Returns the object with the settings used for calls to listVpnTunnels. */
   public PagedCallSettings
       listVpnTunnelsSettings() {
@@ -218,8 +241,10 @@ protected VpnTunnelStubSettings(Builder settingsBuilder) throws IOException {
 
     aggregatedListVpnTunnelsSettings = settingsBuilder.aggregatedListVpnTunnelsSettings().build();
     deleteVpnTunnelSettings = settingsBuilder.deleteVpnTunnelSettings().build();
+    deleteVpnTunnelOperationSettings = settingsBuilder.deleteVpnTunnelOperationSettings().build();
     getVpnTunnelSettings = settingsBuilder.getVpnTunnelSettings().build();
     insertVpnTunnelSettings = settingsBuilder.insertVpnTunnelSettings().build();
+    insertVpnTunnelOperationSettings = settingsBuilder.insertVpnTunnelOperationSettings().build();
     listVpnTunnelsSettings = settingsBuilder.listVpnTunnelsSettings().build();
   }
 
@@ -363,10 +388,16 @@ public static class Builder extends StubSettings.Builder
         deleteVpnTunnelSettings;
+    private final OperationCallSettings.Builder<
+            DeleteVpnTunnelHttpRequest, EmptyMessage, EmptyMessage>
+        deleteVpnTunnelOperationSettings;
     private final UnaryCallSettings.Builder
         getVpnTunnelSettings;
     private final UnaryCallSettings.Builder
         insertVpnTunnelSettings;
+    private final OperationCallSettings.Builder<
+            InsertVpnTunnelHttpRequest, EmptyMessage, EmptyMessage>
+        insertVpnTunnelOperationSettings;
     private final PagedCallSettings.Builder<
             ListVpnTunnelsHttpRequest, VpnTunnelList, ListVpnTunnelsPagedResponse>
         listVpnTunnelsSettings;
@@ -417,10 +448,14 @@ protected Builder(ClientContext clientContext) {
 
       deleteVpnTunnelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      deleteVpnTunnelOperationSettings = OperationCallSettings.newBuilder();
+
       getVpnTunnelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
       insertVpnTunnelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      insertVpnTunnelOperationSettings = OperationCallSettings.newBuilder();
+
       listVpnTunnelsSettings = PagedCallSettings.newBuilder(LIST_VPN_TUNNELS_PAGE_STR_FACT);
 
       unaryMethodSettingsBuilders =
@@ -469,6 +504,48 @@ private static Builder initDefaults(Builder builder) {
           .listVpnTunnelsSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+      builder
+          .deleteVpnTunnelOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
+      builder
+          .insertVpnTunnelOperationSettings()
+          .setInitialCallSettings(
+              UnaryCallSettings
+                  .newUnaryCallSettingsBuilder()
+                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+                  .build())
+          .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class))
+          .setPollingAlgorithm(
+              OperationTimedPollAlgorithm.create(
+                  RetrySettings.newBuilder()
+                      .setInitialRetryDelay(Duration.ofMillis(500L))
+                      .setRetryDelayMultiplier(1.5)
+                      .setMaxRetryDelay(Duration.ofMillis(5000L))
+                      .setInitialRpcTimeout(Duration.ZERO) // ignored
+                      .setRpcTimeoutMultiplier(1.0) // ignored
+                      .setMaxRpcTimeout(Duration.ZERO) // ignored
+                      .setTotalTimeout(Duration.ofMillis(300000L))
+                      .build()));
 
       return builder;
     }
@@ -478,8 +555,10 @@ protected Builder(VpnTunnelStubSettings settings) {
 
       aggregatedListVpnTunnelsSettings = settings.aggregatedListVpnTunnelsSettings.toBuilder();
       deleteVpnTunnelSettings = settings.deleteVpnTunnelSettings.toBuilder();
+      deleteVpnTunnelOperationSettings = settings.deleteVpnTunnelOperationSettings.toBuilder();
       getVpnTunnelSettings = settings.getVpnTunnelSettings.toBuilder();
       insertVpnTunnelSettings = settings.insertVpnTunnelSettings.toBuilder();
+      insertVpnTunnelOperationSettings = settings.insertVpnTunnelOperationSettings.toBuilder();
       listVpnTunnelsSettings = settings.listVpnTunnelsSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
@@ -522,6 +601,14 @@ public Builder applyToAllUnaryMethods(
       return deleteVpnTunnelSettings;
     }
 
+    /** Returns the builder for the settings used for calls to deleteVpnTunnel. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        deleteVpnTunnelOperationSettings() {
+      return deleteVpnTunnelOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to getVpnTunnel. */
     public UnaryCallSettings.Builder getVpnTunnelSettings() {
       return getVpnTunnelSettings;
@@ -533,6 +620,14 @@ public UnaryCallSettings.Builder getVpnTunne
       return insertVpnTunnelSettings;
     }
 
+    /** Returns the builder for the settings used for calls to insertVpnTunnel. */
+    @BetaApi(
+        "The surface for use by generated code is not stable yet and may change in the future.")
+    public OperationCallSettings.Builder
+        insertVpnTunnelOperationSettings() {
+      return insertVpnTunnelOperationSettings;
+    }
+
     /** Returns the builder for the settings used for calls to listVpnTunnels. */
     public PagedCallSettings.Builder<
             ListVpnTunnelsHttpRequest, VpnTunnelList, ListVpnTunnelsPagedResponse>
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationStub.java
index 64caca8766f5..518712521287 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationStub.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationStub.java
@@ -19,6 +19,7 @@
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.DeleteZoneOperationHttpRequest;
 import com.google.cloud.compute.v1.GetZoneOperationHttpRequest;
@@ -38,7 +39,7 @@
 public abstract class ZoneOperationStub implements BackgroundResource {
 
   @BetaApi
-  public UnaryCallable deleteZoneOperationCallable() {
+  public UnaryCallable deleteZoneOperationCallable() {
     throw new UnsupportedOperationException("Not implemented: deleteZoneOperationCallable()");
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationStubSettings.java
index 6c99dad00922..8591efe05f86 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationStubSettings.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ZoneOperationStubSettings.java
@@ -23,6 +23,7 @@
 import com.google.api.gax.core.GaxProperties;
 import com.google.api.gax.core.GoogleCredentialsProvider;
 import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.HttpJsonTransportChannel;
 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
@@ -94,14 +95,16 @@ public class ZoneOperationStubSettings extends StubSettings deleteZoneOperationSettings;
+  private final UnaryCallSettings
+      deleteZoneOperationSettings;
   private final UnaryCallSettings getZoneOperationSettings;
   private final PagedCallSettings<
           ListZoneOperationsHttpRequest, OperationList, ListZoneOperationsPagedResponse>
       listZoneOperationsSettings;
 
   /** Returns the object with the settings used for calls to deleteZoneOperation. */
-  public UnaryCallSettings deleteZoneOperationSettings() {
+  public UnaryCallSettings
+      deleteZoneOperationSettings() {
     return deleteZoneOperationSettings;
   }
 
@@ -259,7 +262,7 @@ public ApiFuture getFuturePagedResponse(
   public static class Builder extends StubSettings.Builder {
     private final ImmutableList> unaryMethodSettingsBuilders;
 
-    private final UnaryCallSettings.Builder
+    private final UnaryCallSettings.Builder
         deleteZoneOperationSettings;
     private final UnaryCallSettings.Builder
         getZoneOperationSettings;
@@ -379,7 +382,7 @@ public Builder applyToAllUnaryMethods(
     }
 
     /** Returns the builder for the settings used for calls to deleteZoneOperation. */
-    public UnaryCallSettings.Builder
+    public UnaryCallSettings.Builder
         deleteZoneOperationSettings() {
       return deleteZoneOperationSettings;
     }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AddressClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AddressClientTest.java
index 72618aea5102..6b8f5060fcca 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AddressClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AddressClientTest.java
@@ -25,6 +25,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -36,12 +37,12 @@
 import com.google.cloud.compute.v1.stub.AddressStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -154,19 +155,15 @@ public void aggregatedListAddressesExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteAddressTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteAddressTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockAddresses.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteAddressTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionAddressName address =
         ProjectRegionAddressName.of("[PROJECT]", "[REGION]", "[ADDRESS]");
 
-    Void actualResponse = client.deleteAddressAsync(address).get();
+    EmptyMessage actualResponse = client.deleteAddressAsync(address).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -201,7 +198,7 @@ public void deleteAddressExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -289,19 +286,15 @@ public void getAddressExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertAddressTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertAddressTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockAddresses.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertAddressTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
     Address addressResource = Address.newBuilder().build();
 
-    Void actualResponse = client.insertAddressAsync(region, addressResource).get();
+    EmptyMessage actualResponse = client.insertAddressAsync(region, addressResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -336,7 +329,7 @@ public void insertAddressExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AutoscalerClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AutoscalerClientTest.java
index 3c914329421b..bfb6d5f1ba9a 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AutoscalerClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/AutoscalerClientTest.java
@@ -27,6 +27,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -38,13 +39,13 @@
 import com.google.cloud.compute.v1.stub.AutoscalerStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -159,19 +160,15 @@ public void aggregatedListAutoscalersExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteAutoscalerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteAutoscalerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockAutoscalers.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteAutoscalerTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneAutoscalerName autoscaler =
         ProjectZoneAutoscalerName.of("[PROJECT]", "[ZONE]", "[AUTOSCALER]");
 
-    Void actualResponse = client.deleteAutoscalerAsync(autoscaler).get();
+    EmptyMessage actualResponse = client.deleteAutoscalerAsync(autoscaler).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -206,7 +203,7 @@ public void deleteAutoscalerExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -281,19 +278,15 @@ public void getAutoscalerExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertAutoscalerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertAutoscalerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockAutoscalers.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertAutoscalerTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
     Autoscaler autoscalerResource = Autoscaler.newBuilder().build();
 
-    Void actualResponse = client.insertAutoscalerAsync(zone, autoscalerResource).get();
+    EmptyMessage actualResponse = client.insertAutoscalerAsync(zone, autoscalerResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -328,7 +321,7 @@ public void insertAutoscalerExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -395,21 +388,17 @@ public void listAutoscalersExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void patchAutoscalerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("patchAutoscalerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockAutoscalers.addResponse(resultOperation);
+        Operation.newBuilder().setName("patchAutoscalerTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     String autoscaler = "autoscaler517258967";
     ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
     Autoscaler autoscalerResource = Autoscaler.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.patchAutoscalerAsync(autoscaler, zone, autoscalerResource, fieldMask).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -447,28 +436,24 @@ public void patchAutoscalerExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void updateAutoscalerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("updateAutoscalerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockAutoscalers.addResponse(resultOperation);
+        Operation.newBuilder().setName("updateAutoscalerTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     String autoscaler = "autoscaler517258967";
     ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
     Autoscaler autoscalerResource = Autoscaler.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.updateAutoscalerAsync(autoscaler, zone, autoscalerResource, fieldMask).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -506,7 +491,7 @@ public void updateAutoscalerExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendBucketClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendBucketClientTest.java
index 7a644a10894d..95f0df408905 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendBucketClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendBucketClientTest.java
@@ -27,6 +27,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -38,11 +39,11 @@
 import com.google.cloud.compute.v1.stub.BackendBucketStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -95,20 +96,19 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void addSignedUrlKeyBackendBucketTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("addSignedUrlKeyBackendBucketTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockBackendBuckets.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalBackendBucketName backendBucket =
         ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
     SignedUrlKey signedUrlKeyResource = SignedUrlKey.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.addSignedUrlKeyBackendBucketAsync(backendBucket, signedUrlKeyResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -145,26 +145,22 @@ public void addSignedUrlKeyBackendBucketExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void deleteBackendBucketTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteBackendBucketTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockBackendBuckets.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteBackendBucketTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalBackendBucketName backendBucket =
         ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
 
-    Void actualResponse = client.deleteBackendBucketAsync(backendBucket).get();
+    EmptyMessage actualResponse = client.deleteBackendBucketAsync(backendBucket).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -199,27 +195,27 @@ public void deleteBackendBucketExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void deleteSignedUrlKeyBackendBucketTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("deleteSignedUrlKeyBackendBucketTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockBackendBuckets.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalBackendBucketName backendBucket =
         ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
     String keyName = "keyName500938859";
 
-    Void actualResponse = client.deleteSignedUrlKeyBackendBucketAsync(backendBucket, keyName).get();
+    EmptyMessage actualResponse =
+        client.deleteSignedUrlKeyBackendBucketAsync(backendBucket, keyName).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -255,7 +251,7 @@ public void deleteSignedUrlKeyBackendBucketExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -326,19 +322,16 @@ public void getBackendBucketExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertBackendBucketTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertBackendBucketTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockBackendBuckets.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertBackendBucketTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     BackendBucket backendBucketResource = BackendBucket.newBuilder().build();
 
-    Void actualResponse = client.insertBackendBucketAsync(project, backendBucketResource).get();
+    EmptyMessage actualResponse =
+        client.insertBackendBucketAsync(project, backendBucketResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -373,7 +366,7 @@ public void insertBackendBucketExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -440,21 +433,17 @@ public void listBackendBucketsExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void patchBackendBucketTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("patchBackendBucketTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockBackendBuckets.addResponse(resultOperation);
+        Operation.newBuilder().setName("patchBackendBucketTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalBackendBucketName backendBucket =
         ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
     BackendBucket backendBucketResource = BackendBucket.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.patchBackendBucketAsync(backendBucket, backendBucketResource, fieldMask).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -492,28 +481,24 @@ public void patchBackendBucketExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void updateBackendBucketTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("updateBackendBucketTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockBackendBuckets.addResponse(resultOperation);
+        Operation.newBuilder().setName("updateBackendBucketTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalBackendBucketName backendBucket =
         ProjectGlobalBackendBucketName.of("[PROJECT]", "[BACKEND_BUCKET]");
     BackendBucket backendBucketResource = BackendBucket.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.updateBackendBucketAsync(backendBucket, backendBucketResource, fieldMask).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -551,7 +536,7 @@ public void updateBackendBucketExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendServiceClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendServiceClientTest.java
index 9b17db1e7012..bab6ef3b4276 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendServiceClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/BackendServiceClientTest.java
@@ -31,6 +31,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -42,13 +43,13 @@
 import com.google.cloud.compute.v1.stub.BackendServiceStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -104,20 +105,19 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void addSignedUrlKeyBackendServiceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("addSignedUrlKeyBackendServiceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockBackendServices.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalBackendServiceName backendService =
         ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
     SignedUrlKey signedUrlKeyResource = SignedUrlKey.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.addSignedUrlKeyBackendServiceAsync(backendService, signedUrlKeyResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -154,7 +154,7 @@ public void addSignedUrlKeyBackendServiceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -224,19 +224,15 @@ public void aggregatedListBackendServicesExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteBackendServiceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteBackendServiceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockBackendServices.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteBackendServiceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalBackendServiceName backendService =
         ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
 
-    Void actualResponse = client.deleteBackendServiceAsync(backendService).get();
+    EmptyMessage actualResponse = client.deleteBackendServiceAsync(backendService).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -271,27 +267,26 @@ public void deleteBackendServiceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void deleteSignedUrlKeyBackendServiceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("deleteSignedUrlKeyBackendServiceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockBackendServices.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalBackendServiceName backendService =
         ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
     String keyName = "keyName500938859";
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.deleteSignedUrlKeyBackendServiceAsync(backendService, keyName).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -328,7 +323,7 @@ public void deleteSignedUrlKeyBackendServiceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -471,19 +466,16 @@ public void getHealthBackendServiceExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertBackendServiceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertBackendServiceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockBackendServices.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertBackendServiceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     BackendService backendServiceResource = BackendService.newBuilder().build();
 
-    Void actualResponse = client.insertBackendServiceAsync(project, backendServiceResource).get();
+    EmptyMessage actualResponse =
+        client.insertBackendServiceAsync(project, backendServiceResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -518,7 +510,7 @@ public void insertBackendServiceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -585,21 +577,17 @@ public void listBackendServicesExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void patchBackendServiceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("patchBackendServiceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockBackendServices.addResponse(resultOperation);
+        Operation.newBuilder().setName("patchBackendServiceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalBackendServiceName backendService =
         ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
     BackendService backendServiceResource = BackendService.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.patchBackendServiceAsync(backendService, backendServiceResource, fieldMask).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -637,28 +625,27 @@ public void patchBackendServiceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setSecurityPolicyBackendServiceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("setSecurityPolicyBackendServiceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockBackendServices.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalBackendServiceName backendService =
         ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
     SecurityPolicyReference securityPolicyReferenceResource =
         SecurityPolicyReference.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .setSecurityPolicyBackendServiceAsync(backendService, securityPolicyReferenceResource)
             .get();
@@ -700,28 +687,24 @@ public void setSecurityPolicyBackendServiceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void updateBackendServiceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("updateBackendServiceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockBackendServices.addResponse(resultOperation);
+        Operation.newBuilder().setName("updateBackendServiceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalBackendServiceName backendService =
         ProjectGlobalBackendServiceName.of("[PROJECT]", "[BACKEND_SERVICE]");
     BackendService backendServiceResource = BackendService.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.updateBackendServiceAsync(backendService, backendServiceResource, fieldMask).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -759,7 +742,7 @@ public void updateBackendServiceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/DiskClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/DiskClientTest.java
index 23ac25bb8e77..1d433ccaae62 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/DiskClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/DiskClientTest.java
@@ -31,6 +31,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -42,12 +43,12 @@
 import com.google.cloud.compute.v1.stub.DiskStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -165,20 +166,17 @@ public void aggregatedListDisksExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void createSnapshotDiskTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("createSnapshotDiskTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockDisks.addResponse(resultOperation);
+        Operation.newBuilder().setName("createSnapshotDiskTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]");
     Boolean guestFlush = false;
     Snapshot snapshotResource = Snapshot.newBuilder().build();
 
-    Void actualResponse = client.createSnapshotDiskAsync(disk, guestFlush, snapshotResource).get();
+    EmptyMessage actualResponse =
+        client.createSnapshotDiskAsync(disk, guestFlush, snapshotResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -214,25 +212,21 @@ public void createSnapshotDiskExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void deleteDiskTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteDiskTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockDisks.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteDiskTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]");
 
-    Void actualResponse = client.deleteDiskAsync(disk).get();
+    EmptyMessage actualResponse = client.deleteDiskAsync(disk).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -266,7 +260,7 @@ public void deleteDiskExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -409,19 +403,15 @@ public void getIamPolicyDiskExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertDiskTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertDiskTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockDisks.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertDiskTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
     Disk diskResource = Disk.newBuilder().build();
 
-    Void actualResponse = client.insertDiskAsync(zone, diskResource).get();
+    EmptyMessage actualResponse = client.insertDiskAsync(zone, diskResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -456,7 +446,7 @@ public void insertDiskExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -523,19 +513,15 @@ public void listDisksExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void resizeDiskTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("resizeDiskTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockDisks.addResponse(resultOperation);
+        Operation.newBuilder().setName("resizeDiskTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneDiskName disk = ProjectZoneDiskName.of("[PROJECT]", "[ZONE]", "[DISK]");
     DisksResizeRequest disksResizeRequestResource = DisksResizeRequest.newBuilder().build();
 
-    Void actualResponse = client.resizeDiskAsync(disk, disksResizeRequestResource).get();
+    EmptyMessage actualResponse = client.resizeDiskAsync(disk, disksResizeRequestResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -570,7 +556,7 @@ public void resizeDiskExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -629,20 +615,17 @@ public void setIamPolicyDiskExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void setLabelsDiskTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("setLabelsDiskTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockDisks.addResponse(resultOperation);
+        Operation.newBuilder().setName("setLabelsDiskTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneDiskResourceName resource =
         ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
     ZoneSetLabelsRequest zoneSetLabelsRequestResource = ZoneSetLabelsRequest.newBuilder().build();
 
-    Void actualResponse = client.setLabelsDiskAsync(resource, zoneSetLabelsRequestResource).get();
+    EmptyMessage actualResponse =
+        client.setLabelsDiskAsync(resource, zoneSetLabelsRequestResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -678,7 +661,7 @@ public void setLabelsDiskExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/FirewallClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/FirewallClientTest.java
index e3475b62b7ba..b6662d82a228 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/FirewallClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/FirewallClientTest.java
@@ -28,15 +28,12 @@
 import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
-import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
 import com.google.api.gax.rpc.ApiException;
 import com.google.api.gax.rpc.ApiExceptionFactory;
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.gax.rpc.StatusCode.Code;
 import com.google.api.gax.rpc.testing.FakeStatusCode;
-import com.google.cloud.compute.longrunning.ComputeOperationSnapshot;
-import com.google.cloud.compute.longrunning.ComputeOperationSnapshot.Status;
 import com.google.cloud.compute.v1.stub.FirewallStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
@@ -96,11 +93,8 @@ public static void tearDown() throws Exception {
   @SuppressWarnings("all")
   public void deleteFirewallTest() throws Exception {
     EmptyMessage expectedResponse = null;
-    Operation resultOperation = Operation.newBuilder()
-        .setName("deleteFirewallTest")
-        .setStatus(Status.DONE.toString())
-        .build();
-    // mockService.addNullResponse();
+    Operation resultOperation =
+        Operation.newBuilder().setName("deleteFirewallTest").setStatus("DONE").build();
     mockService.addResponse(resultOperation);
 
     ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]");
@@ -213,8 +207,9 @@ public void getFirewallExceptionTest() throws Exception {
   @SuppressWarnings("all")
   public void insertFirewallTest() throws Exception {
     EmptyMessage expectedResponse = null;
-    Operation resultOperation = Operation.newBuilder().setName("insertFirewallTest").build();
-    mockService.addNullResponse();
+    Operation resultOperation =
+        Operation.newBuilder().setName("insertFirewallTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     Firewall firewallResource = Firewall.newBuilder().build();
@@ -322,8 +317,9 @@ public void listFirewallsExceptionTest() throws Exception {
   @SuppressWarnings("all")
   public void patchFirewallTest() throws Exception {
     EmptyMessage expectedResponse = null;
-    Operation resultOperation = Operation.newBuilder().setName("patchFirewallTest").build();
-    mockService.addNullResponse();
+    Operation resultOperation =
+        Operation.newBuilder().setName("patchFirewallTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]");
     Firewall firewallResource = Firewall.newBuilder().build();
@@ -374,8 +370,9 @@ public void patchFirewallExceptionTest() throws Exception {
   @SuppressWarnings("all")
   public void updateFirewallTest() throws Exception {
     EmptyMessage expectedResponse = null;
-    Operation resultOperation = Operation.newBuilder().setName("updateFirewallTest").build();
-    mockService.addNullResponse();
+    Operation resultOperation =
+        Operation.newBuilder().setName("updateFirewallTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalFirewallName firewall = ProjectGlobalFirewallName.of("[PROJECT]", "[FIREWALL]");
     Firewall firewallResource = Firewall.newBuilder().build();
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ForwardingRuleClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ForwardingRuleClientTest.java
index 4bec9e2bb830..099e297e8dcd 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ForwardingRuleClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ForwardingRuleClientTest.java
@@ -26,6 +26,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -37,12 +38,12 @@
 import com.google.cloud.compute.v1.stub.ForwardingRuleStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -156,19 +157,15 @@ public void aggregatedListForwardingRulesExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteForwardingRuleTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteForwardingRuleTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockForwardingRules.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteForwardingRuleTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionForwardingRuleName forwardingRule =
         ProjectRegionForwardingRuleName.of("[PROJECT]", "[REGION]", "[FORWARDING_RULE]");
 
-    Void actualResponse = client.deleteForwardingRuleAsync(forwardingRule).get();
+    EmptyMessage actualResponse = client.deleteForwardingRuleAsync(forwardingRule).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -203,7 +200,7 @@ public void deleteForwardingRuleExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -298,19 +295,16 @@ public void getForwardingRuleExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertForwardingRuleTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertForwardingRuleTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockForwardingRules.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertForwardingRuleTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
     ForwardingRule forwardingRuleResource = ForwardingRule.newBuilder().build();
 
-    Void actualResponse = client.insertForwardingRuleAsync(region, forwardingRuleResource).get();
+    EmptyMessage actualResponse =
+        client.insertForwardingRuleAsync(region, forwardingRuleResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -345,7 +339,7 @@ public void insertForwardingRuleExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -412,20 +406,16 @@ public void listForwardingRulesExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void setTargetForwardingRuleTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("setTargetForwardingRuleTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockForwardingRules.addResponse(resultOperation);
+        Operation.newBuilder().setName("setTargetForwardingRuleTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionForwardingRuleName forwardingRule =
         ProjectRegionForwardingRuleName.of("[PROJECT]", "[REGION]", "[FORWARDING_RULE]");
     TargetReference targetReferenceResource = TargetReference.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.setTargetForwardingRuleAsync(forwardingRule, targetReferenceResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -462,7 +452,7 @@ public void setTargetForwardingRuleExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalAddressClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalAddressClientTest.java
index 65acb1d950ea..34db076fc424 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalAddressClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalAddressClientTest.java
@@ -23,6 +23,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -34,10 +35,10 @@
 import com.google.cloud.compute.v1.stub.GlobalAddressStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -86,18 +87,14 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteGlobalAddressTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteGlobalAddressTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockGlobalAddresses.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteGlobalAddressTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalAddressName address = ProjectGlobalAddressName.of("[PROJECT]", "[ADDRESS]");
 
-    Void actualResponse = client.deleteGlobalAddressAsync(address).get();
+    EmptyMessage actualResponse = client.deleteGlobalAddressAsync(address).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -131,7 +128,7 @@ public void deleteGlobalAddressExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -217,19 +214,15 @@ public void getGlobalAddressExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertGlobalAddressTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertGlobalAddressTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockGlobalAddresses.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertGlobalAddressTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     Address addressResource = Address.newBuilder().build();
 
-    Void actualResponse = client.insertGlobalAddressAsync(project, addressResource).get();
+    EmptyMessage actualResponse = client.insertGlobalAddressAsync(project, addressResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -264,7 +257,7 @@ public void insertGlobalAddressExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalForwardingRuleClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalForwardingRuleClientTest.java
index 79482b6f100c..cf3468b245cb 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalForwardingRuleClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/GlobalForwardingRuleClientTest.java
@@ -24,6 +24,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -35,10 +36,10 @@
 import com.google.cloud.compute.v1.stub.GlobalForwardingRuleStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -89,19 +90,15 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteGlobalForwardingRuleTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteGlobalForwardingRuleTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockGlobalForwardingRules.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteGlobalForwardingRuleTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalForwardingRuleName forwardingRule =
         ProjectGlobalForwardingRuleName.of("[PROJECT]", "[FORWARDING_RULE]");
 
-    Void actualResponse = client.deleteGlobalForwardingRuleAsync(forwardingRule).get();
+    EmptyMessage actualResponse = client.deleteGlobalForwardingRuleAsync(forwardingRule).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -136,7 +133,7 @@ public void deleteGlobalForwardingRuleExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -231,19 +228,15 @@ public void getGlobalForwardingRuleExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertGlobalForwardingRuleTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertGlobalForwardingRuleTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockGlobalForwardingRules.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertGlobalForwardingRuleTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     ForwardingRule forwardingRuleResource = ForwardingRule.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.insertGlobalForwardingRuleAsync(project, forwardingRuleResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -279,7 +272,7 @@ public void insertGlobalForwardingRuleExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -347,20 +340,19 @@ public void listGlobalForwardingRulesExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void setTargetGlobalForwardingRuleTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("setTargetGlobalForwardingRuleTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockGlobalForwardingRules.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalForwardingRuleName forwardingRule =
         ProjectGlobalForwardingRuleName.of("[PROJECT]", "[FORWARDING_RULE]");
     TargetReference targetReferenceResource = TargetReference.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.setTargetGlobalForwardingRuleAsync(forwardingRule, targetReferenceResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -397,7 +389,7 @@ public void setTargetGlobalForwardingRuleExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HealthCheckClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HealthCheckClientTest.java
index 1693481fdac4..7b01fc5d52ad 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HealthCheckClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HealthCheckClientTest.java
@@ -25,6 +25,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -36,11 +37,11 @@
 import com.google.cloud.compute.v1.stub.HealthCheckStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -91,19 +92,15 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteHealthCheckTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteHealthCheckTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockHealthChecks.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteHealthCheckTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalHealthCheckName healthCheck =
         ProjectGlobalHealthCheckName.of("[PROJECT]", "[HEALTH_CHECK]");
 
-    Void actualResponse = client.deleteHealthCheckAsync(healthCheck).get();
+    EmptyMessage actualResponse = client.deleteHealthCheckAsync(healthCheck).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -138,7 +135,7 @@ public void deleteHealthCheckExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -215,19 +212,15 @@ public void getHealthCheckExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertHealthCheckTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertHealthCheckTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockHealthChecks.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertHealthCheckTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     HealthCheck healthCheckResource = HealthCheck.newBuilder().build();
 
-    Void actualResponse = client.insertHealthCheckAsync(project, healthCheckResource).get();
+    EmptyMessage actualResponse = client.insertHealthCheckAsync(project, healthCheckResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -262,7 +255,7 @@ public void insertHealthCheckExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -329,21 +322,17 @@ public void listHealthChecksExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void patchHealthCheckTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("patchHealthCheckTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockHealthChecks.addResponse(resultOperation);
+        Operation.newBuilder().setName("patchHealthCheckTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalHealthCheckName healthCheck =
         ProjectGlobalHealthCheckName.of("[PROJECT]", "[HEALTH_CHECK]");
     HealthCheck healthCheckResource = HealthCheck.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.patchHealthCheckAsync(healthCheck, healthCheckResource, fieldMask).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -381,28 +370,24 @@ public void patchHealthCheckExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void updateHealthCheckTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("updateHealthCheckTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockHealthChecks.addResponse(resultOperation);
+        Operation.newBuilder().setName("updateHealthCheckTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalHealthCheckName healthCheck =
         ProjectGlobalHealthCheckName.of("[PROJECT]", "[HEALTH_CHECK]");
     HealthCheck healthCheckResource = HealthCheck.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.updateHealthCheckAsync(healthCheck, healthCheckResource, fieldMask).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -440,7 +425,7 @@ public void updateHealthCheckExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpHealthCheckClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpHealthCheckClientTest.java
index 90703347b7b0..7f59fd2f5595 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpHealthCheckClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpHealthCheckClientTest.java
@@ -25,6 +25,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -36,11 +37,11 @@
 import com.google.cloud.compute.v1.stub.HttpHealthCheckStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -91,19 +92,15 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteHttpHealthCheckTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteHttpHealthCheckTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockHttpHealthChecks.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteHttpHealthCheckTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalHttpHealthCheckName httpHealthCheck =
         ProjectGlobalHttpHealthCheckName.of("[PROJECT]", "[HTTP_HEALTH_CHECK]");
 
-    Void actualResponse = client.deleteHttpHealthCheckAsync(httpHealthCheck).get();
+    EmptyMessage actualResponse = client.deleteHttpHealthCheckAsync(httpHealthCheck).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -138,7 +135,7 @@ public void deleteHttpHealthCheckExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -219,19 +216,16 @@ public void getHttpHealthCheckExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertHttpHealthCheckTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertHttpHealthCheckTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockHttpHealthChecks.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertHttpHealthCheckTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     HttpHealthCheck2 httpHealthCheckResource = HttpHealthCheck2.newBuilder().build();
 
-    Void actualResponse = client.insertHttpHealthCheckAsync(project, httpHealthCheckResource).get();
+    EmptyMessage actualResponse =
+        client.insertHttpHealthCheckAsync(project, httpHealthCheckResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -266,7 +260,7 @@ public void insertHttpHealthCheckExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -333,21 +327,17 @@ public void listHttpHealthChecksExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void patchHttpHealthCheckTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("patchHttpHealthCheckTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockHttpHealthChecks.addResponse(resultOperation);
+        Operation.newBuilder().setName("patchHttpHealthCheckTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalHttpHealthCheckName httpHealthCheck =
         ProjectGlobalHttpHealthCheckName.of("[PROJECT]", "[HTTP_HEALTH_CHECK]");
     HttpHealthCheck2 httpHealthCheckResource = HttpHealthCheck2.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.patchHttpHealthCheckAsync(httpHealthCheck, httpHealthCheckResource, fieldMask).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -385,28 +375,24 @@ public void patchHttpHealthCheckExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void updateHttpHealthCheckTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("updateHttpHealthCheckTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockHttpHealthChecks.addResponse(resultOperation);
+        Operation.newBuilder().setName("updateHttpHealthCheckTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalHttpHealthCheckName httpHealthCheck =
         ProjectGlobalHttpHealthCheckName.of("[PROJECT]", "[HTTP_HEALTH_CHECK]");
     HttpHealthCheck2 httpHealthCheckResource = HttpHealthCheck2.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .updateHttpHealthCheckAsync(httpHealthCheck, httpHealthCheckResource, fieldMask)
             .get();
@@ -446,7 +432,7 @@ public void updateHttpHealthCheckExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpsHealthCheckClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpsHealthCheckClientTest.java
index d8d61fe246a4..ae2a18d3a6d2 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpsHealthCheckClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/HttpsHealthCheckClientTest.java
@@ -25,6 +25,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -36,11 +37,11 @@
 import com.google.cloud.compute.v1.stub.HttpsHealthCheckStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -91,19 +92,15 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteHttpsHealthCheckTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteHttpsHealthCheckTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockHttpsHealthChecks.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteHttpsHealthCheckTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalHttpsHealthCheckName httpsHealthCheck =
         ProjectGlobalHttpsHealthCheckName.of("[PROJECT]", "[HTTPS_HEALTH_CHECK]");
 
-    Void actualResponse = client.deleteHttpsHealthCheckAsync(httpsHealthCheck).get();
+    EmptyMessage actualResponse = client.deleteHttpsHealthCheckAsync(httpsHealthCheck).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -138,7 +135,7 @@ public void deleteHttpsHealthCheckExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -219,19 +216,15 @@ public void getHttpsHealthCheckExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertHttpsHealthCheckTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertHttpsHealthCheckTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockHttpsHealthChecks.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertHttpsHealthCheckTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     HttpsHealthCheck2 httpsHealthCheckResource = HttpsHealthCheck2.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.insertHttpsHealthCheckAsync(project, httpsHealthCheckResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -267,7 +260,7 @@ public void insertHttpsHealthCheckExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -334,21 +327,17 @@ public void listHttpsHealthChecksExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void patchHttpsHealthCheckTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("patchHttpsHealthCheckTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockHttpsHealthChecks.addResponse(resultOperation);
+        Operation.newBuilder().setName("patchHttpsHealthCheckTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalHttpsHealthCheckName httpsHealthCheck =
         ProjectGlobalHttpsHealthCheckName.of("[PROJECT]", "[HTTPS_HEALTH_CHECK]");
     HttpsHealthCheck2 httpsHealthCheckResource = HttpsHealthCheck2.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .patchHttpsHealthCheckAsync(httpsHealthCheck, httpsHealthCheckResource, fieldMask)
             .get();
@@ -390,28 +379,24 @@ public void patchHttpsHealthCheckExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void updateHttpsHealthCheckTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("updateHttpsHealthCheckTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockHttpsHealthChecks.addResponse(resultOperation);
+        Operation.newBuilder().setName("updateHttpsHealthCheckTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalHttpsHealthCheckName httpsHealthCheck =
         ProjectGlobalHttpsHealthCheckName.of("[PROJECT]", "[HTTPS_HEALTH_CHECK]");
     HttpsHealthCheck2 httpsHealthCheckResource = HttpsHealthCheck2.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .updateHttpsHealthCheckAsync(httpsHealthCheck, httpsHealthCheckResource, fieldMask)
             .get();
@@ -453,7 +438,7 @@ public void updateHttpsHealthCheckExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ImageClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ImageClientTest.java
index 0e42b637f4c8..866597a6cfa0 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ImageClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ImageClientTest.java
@@ -29,6 +29,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -40,10 +41,10 @@
 import com.google.cloud.compute.v1.stub.ImageStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -98,18 +99,14 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteImageTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteImageTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockImages.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteImageTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalImageName image = ProjectGlobalImageName.of("[PROJECT]", "[IMAGE]");
 
-    Void actualResponse = client.deleteImageAsync(image).get();
+    EmptyMessage actualResponse = client.deleteImageAsync(image).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -143,26 +140,23 @@ public void deleteImageExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void deprecateImageTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deprecateImageTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockImages.addResponse(resultOperation);
+        Operation.newBuilder().setName("deprecateImageTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalImageName image = ProjectGlobalImageName.of("[PROJECT]", "[IMAGE]");
     DeprecationStatus deprecationStatusResource = DeprecationStatus.newBuilder().build();
 
-    Void actualResponse = client.deprecateImageAsync(image, deprecationStatusResource).get();
+    EmptyMessage actualResponse =
+        client.deprecateImageAsync(image, deprecationStatusResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -197,7 +191,7 @@ public void deprecateImageExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -419,20 +413,17 @@ public void getIamPolicyImageExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertImageTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertImageTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockImages.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertImageTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     Boolean forceCreate = true;
     ProjectName project = ProjectName.of("[PROJECT]");
     Image imageResource = Image.newBuilder().build();
 
-    Void actualResponse = client.insertImageAsync(forceCreate, project, imageResource).get();
+    EmptyMessage actualResponse =
+        client.insertImageAsync(forceCreate, project, imageResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -468,7 +459,7 @@ public void insertImageExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -589,21 +580,17 @@ public void setIamPolicyImageExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void setLabelsImageTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("setLabelsImageTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockImages.addResponse(resultOperation);
+        Operation.newBuilder().setName("setLabelsImageTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalImageResourceName resource =
         ProjectGlobalImageResourceName.of("[PROJECT]", "[RESOURCE]");
     GlobalSetLabelsRequest globalSetLabelsRequestResource =
         GlobalSetLabelsRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.setLabelsImageAsync(resource, globalSetLabelsRequestResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -641,7 +628,7 @@ public void setLabelsImageExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceClientTest.java
index 025428a1ebd4..7a04c6766204 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceClientTest.java
@@ -52,6 +52,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -63,13 +64,13 @@
 import com.google.cloud.compute.v1.stub.InstanceStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -145,21 +146,17 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void addAccessConfigInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("addAccessConfigInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstances.addResponse(resultOperation);
+        Operation.newBuilder().setName("addAccessConfigInstanceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceName instance =
         ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
     String networkInterface = "networkInterface902258792";
     AccessConfig accessConfigResource = AccessConfig.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.addAccessConfigInstanceAsync(instance, networkInterface, accessConfigResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -197,7 +194,7 @@ public void addAccessConfigInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -267,21 +264,17 @@ public void aggregatedListInstancesExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void attachDiskInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("attachDiskInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstances.addResponse(resultOperation);
+        Operation.newBuilder().setName("attachDiskInstanceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceName instance =
         ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
     Boolean forceAttach = false;
     AttachedDisk attachedDiskResource = AttachedDisk.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.attachDiskInstanceAsync(instance, forceAttach, attachedDiskResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -319,26 +312,22 @@ public void attachDiskInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void deleteInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstances.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteInstanceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceName instance =
         ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
 
-    Void actualResponse = client.deleteInstanceAsync(instance).get();
+    EmptyMessage actualResponse = client.deleteInstanceAsync(instance).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -373,28 +362,24 @@ public void deleteInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void deleteAccessConfigInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteAccessConfigInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstances.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteAccessConfigInstanceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceName instance =
         ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
     String networkInterface = "networkInterface902258792";
     String accessConfig = "accessConfig-464014723";
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.deleteAccessConfigInstanceAsync(instance, networkInterface, accessConfig).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -432,27 +417,23 @@ public void deleteAccessConfigInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void detachDiskInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("detachDiskInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstances.addResponse(resultOperation);
+        Operation.newBuilder().setName("detachDiskInstanceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceName instance =
         ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
     String deviceName = "deviceName-1543071020";
 
-    Void actualResponse = client.detachDiskInstanceAsync(instance, deviceName).get();
+    EmptyMessage actualResponse = client.detachDiskInstanceAsync(instance, deviceName).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -488,7 +469,7 @@ public void detachDiskInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -690,19 +671,15 @@ public void getSerialPortOutputInstanceExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstances.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertInstanceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
     Instance instanceResource = Instance.newBuilder().build();
 
-    Void actualResponse = client.insertInstanceAsync(zone, instanceResource).get();
+    EmptyMessage actualResponse = client.insertInstanceAsync(zone, instanceResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -737,7 +714,7 @@ public void insertInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -866,19 +843,15 @@ public void listReferrersInstancesExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void resetInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("resetInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstances.addResponse(resultOperation);
+        Operation.newBuilder().setName("resetInstanceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceName instance =
         ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
 
-    Void actualResponse = client.resetInstanceAsync(instance).get();
+    EmptyMessage actualResponse = client.resetInstanceAsync(instance).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -913,27 +886,26 @@ public void resetInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setDeletionProtectionInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("setDeletionProtectionInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockInstances.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceResourceName resource =
         ProjectZoneInstanceResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
     Boolean deletionProtection = true;
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.setDeletionProtectionInstanceAsync(resource, deletionProtection).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -970,28 +942,24 @@ public void setDeletionProtectionInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setDiskAutoDeleteInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("setDiskAutoDeleteInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstances.addResponse(resultOperation);
+        Operation.newBuilder().setName("setDiskAutoDeleteInstanceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceName instance =
         ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
     Boolean autoDelete = false;
     String deviceName = "deviceName-1543071020";
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.setDiskAutoDeleteInstanceAsync(instance, autoDelete, deviceName).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -1029,7 +997,7 @@ public void setDiskAutoDeleteInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -1088,21 +1056,17 @@ public void setIamPolicyInstanceExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void setLabelsInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("setLabelsInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstances.addResponse(resultOperation);
+        Operation.newBuilder().setName("setLabelsInstanceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceName instance =
         ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
     InstancesSetLabelsRequest instancesSetLabelsRequestResource =
         InstancesSetLabelsRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.setLabelsInstanceAsync(instance, instancesSetLabelsRequestResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -1140,28 +1104,24 @@ public void setLabelsInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setMachineResourcesInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("setMachineResourcesInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstances.addResponse(resultOperation);
+        Operation.newBuilder().setName("setMachineResourcesInstanceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceName instance =
         ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
     InstancesSetMachineResourcesRequest instancesSetMachineResourcesRequestResource =
         InstancesSetMachineResourcesRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .setMachineResourcesInstanceAsync(instance, instancesSetMachineResourcesRequestResource)
             .get();
@@ -1203,28 +1163,24 @@ public void setMachineResourcesInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setMachineTypeInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("setMachineTypeInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstances.addResponse(resultOperation);
+        Operation.newBuilder().setName("setMachineTypeInstanceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceName instance =
         ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
     InstancesSetMachineTypeRequest instancesSetMachineTypeRequestResource =
         InstancesSetMachineTypeRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.setMachineTypeInstanceAsync(instance, instancesSetMachineTypeRequestResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -1262,27 +1218,23 @@ public void setMachineTypeInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setMetadataInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("setMetadataInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstances.addResponse(resultOperation);
+        Operation.newBuilder().setName("setMetadataInstanceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceName instance =
         ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
     Metadata metadataResource = Metadata.newBuilder().build();
 
-    Void actualResponse = client.setMetadataInstanceAsync(instance, metadataResource).get();
+    EmptyMessage actualResponse = client.setMetadataInstanceAsync(instance, metadataResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -1318,28 +1270,24 @@ public void setMetadataInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setMinCpuPlatformInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("setMinCpuPlatformInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstances.addResponse(resultOperation);
+        Operation.newBuilder().setName("setMinCpuPlatformInstanceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceName instance =
         ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
     InstancesSetMinCpuPlatformRequest instancesSetMinCpuPlatformRequestResource =
         InstancesSetMinCpuPlatformRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .setMinCpuPlatformInstanceAsync(instance, instancesSetMinCpuPlatformRequestResource)
             .get();
@@ -1381,27 +1329,24 @@ public void setMinCpuPlatformInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setSchedulingInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("setSchedulingInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstances.addResponse(resultOperation);
+        Operation.newBuilder().setName("setSchedulingInstanceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceName instance =
         ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
     Scheduling schedulingResource = Scheduling.newBuilder().build();
 
-    Void actualResponse = client.setSchedulingInstanceAsync(instance, schedulingResource).get();
+    EmptyMessage actualResponse =
+        client.setSchedulingInstanceAsync(instance, schedulingResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -1437,28 +1382,24 @@ public void setSchedulingInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setServiceAccountInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("setServiceAccountInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstances.addResponse(resultOperation);
+        Operation.newBuilder().setName("setServiceAccountInstanceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceName instance =
         ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
     InstancesSetServiceAccountRequest instancesSetServiceAccountRequestResource =
         InstancesSetServiceAccountRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .setServiceAccountInstanceAsync(instance, instancesSetServiceAccountRequestResource)
             .get();
@@ -1500,27 +1441,23 @@ public void setServiceAccountInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setTagsInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("setTagsInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstances.addResponse(resultOperation);
+        Operation.newBuilder().setName("setTagsInstanceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceName instance =
         ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
     Tags tagsResource = Tags.newBuilder().build();
 
-    Void actualResponse = client.setTagsInstanceAsync(instance, tagsResource).get();
+    EmptyMessage actualResponse = client.setTagsInstanceAsync(instance, tagsResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -1556,26 +1493,25 @@ public void setTagsInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void simulateMaintenanceEventInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("simulateMaintenanceEventInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockInstances.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceName instance =
         ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
 
-    Void actualResponse = client.simulateMaintenanceEventInstanceAsync(instance).get();
+    EmptyMessage actualResponse = client.simulateMaintenanceEventInstanceAsync(instance).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -1610,26 +1546,22 @@ public void simulateMaintenanceEventInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void startInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("startInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstances.addResponse(resultOperation);
+        Operation.newBuilder().setName("startInstanceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceName instance =
         ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
 
-    Void actualResponse = client.startInstanceAsync(instance).get();
+    EmptyMessage actualResponse = client.startInstanceAsync(instance).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -1664,28 +1596,27 @@ public void startInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void startWithEncryptionKeyInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("startWithEncryptionKeyInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockInstances.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceName instance =
         ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
     InstancesStartWithEncryptionKeyRequest instancesStartWithEncryptionKeyRequestResource =
         InstancesStartWithEncryptionKeyRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .startWithEncryptionKeyInstanceAsync(
                 instance, instancesStartWithEncryptionKeyRequestResource)
@@ -1729,26 +1660,22 @@ public void startWithEncryptionKeyInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void stopInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("stopInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstances.addResponse(resultOperation);
+        Operation.newBuilder().setName("stopInstanceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceName instance =
         ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
 
-    Void actualResponse = client.stopInstanceAsync(instance).get();
+    EmptyMessage actualResponse = client.stopInstanceAsync(instance).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -1783,7 +1710,7 @@ public void stopInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -1841,21 +1768,17 @@ public void testIamPermissionsInstanceExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void updateAccessConfigInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("updateAccessConfigInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstances.addResponse(resultOperation);
+        Operation.newBuilder().setName("updateAccessConfigInstanceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceName instance =
         ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
     String networkInterface = "networkInterface902258792";
     AccessConfig accessConfigResource = AccessConfig.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .updateAccessConfigInstanceAsync(instance, networkInterface, accessConfigResource)
             .get();
@@ -1897,21 +1820,20 @@ public void updateAccessConfigInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void updateNetworkInterfaceInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("updateNetworkInterfaceInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockInstances.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceName instance =
         ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
@@ -1919,7 +1841,7 @@ public void updateNetworkInterfaceInstanceTest() throws Exception {
     NetworkInterface networkInterfaceResource = NetworkInterface.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .updateNetworkInterfaceInstanceAsync(
                 instance, networkInterface, networkInterfaceResource, fieldMask)
@@ -1964,7 +1886,7 @@ public void updateNetworkInterfaceInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupClientTest.java
index 1ec71502fea0..b223c6cea49d 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupClientTest.java
@@ -30,6 +30,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -41,12 +42,12 @@
 import com.google.cloud.compute.v1.stub.InstanceGroupStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -100,21 +101,17 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void addInstancesInstanceGroupTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("addInstancesInstanceGroupTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstanceGroups.addResponse(resultOperation);
+        Operation.newBuilder().setName("addInstancesInstanceGroupTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceGroupName instanceGroup =
         ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]");
     InstanceGroupsAddInstancesRequest instanceGroupsAddInstancesRequestResource =
         InstanceGroupsAddInstancesRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .addInstancesInstanceGroupAsync(
                 instanceGroup, instanceGroupsAddInstancesRequestResource)
@@ -157,7 +154,7 @@ public void addInstancesInstanceGroupExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -227,19 +224,15 @@ public void aggregatedListInstanceGroupsExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteInstanceGroupTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteInstanceGroupTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstanceGroups.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteInstanceGroupTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceGroupName instanceGroup =
         ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]");
 
-    Void actualResponse = client.deleteInstanceGroupAsync(instanceGroup).get();
+    EmptyMessage actualResponse = client.deleteInstanceGroupAsync(instanceGroup).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -274,7 +267,7 @@ public void deleteInstanceGroupExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -354,19 +347,16 @@ public void getInstanceGroupExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertInstanceGroupTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertInstanceGroupTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstanceGroups.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertInstanceGroupTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
     InstanceGroup instanceGroupResource = InstanceGroup.newBuilder().build();
 
-    Void actualResponse = client.insertInstanceGroupAsync(zone, instanceGroupResource).get();
+    EmptyMessage actualResponse =
+        client.insertInstanceGroupAsync(zone, instanceGroupResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -401,7 +391,7 @@ public void insertInstanceGroupExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -536,21 +526,20 @@ public void listInstancesInstanceGroupsExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void removeInstancesInstanceGroupTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("removeInstancesInstanceGroupTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockInstanceGroups.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceGroupName instanceGroup =
         ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]");
     InstanceGroupsRemoveInstancesRequest instanceGroupsRemoveInstancesRequestResource =
         InstanceGroupsRemoveInstancesRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .removeInstancesInstanceGroupAsync(
                 instanceGroup, instanceGroupsRemoveInstancesRequestResource)
@@ -594,28 +583,24 @@ public void removeInstancesInstanceGroupExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setNamedPortsInstanceGroupTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("setNamedPortsInstanceGroupTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstanceGroups.addResponse(resultOperation);
+        Operation.newBuilder().setName("setNamedPortsInstanceGroupTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceGroupName instanceGroup =
         ProjectZoneInstanceGroupName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP]");
     InstanceGroupsSetNamedPortsRequest instanceGroupsSetNamedPortsRequestResource =
         InstanceGroupsSetNamedPortsRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .setNamedPortsInstanceGroupAsync(
                 instanceGroup, instanceGroupsSetNamedPortsRequestResource)
@@ -659,7 +644,7 @@ public void setNamedPortsInstanceGroupExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupManagerClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupManagerClientTest.java
index b1016470e995..02e6417b7441 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupManagerClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceGroupManagerClientTest.java
@@ -33,6 +33,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -44,13 +45,13 @@
 import com.google.cloud.compute.v1.stub.InstanceGroupManagerStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -109,14 +110,13 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void abandonInstancesInstanceGroupManagerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("abandonInstancesInstanceGroupManagerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockInstanceGroupManagers.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceGroupManagerName instanceGroupManager =
         ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
@@ -124,7 +124,7 @@ public void abandonInstancesInstanceGroupManagerTest() throws Exception {
         instanceGroupManagersAbandonInstancesRequestResource =
             InstanceGroupManagersAbandonInstancesRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .abandonInstancesInstanceGroupManagerAsync(
                 instanceGroupManager, instanceGroupManagersAbandonInstancesRequestResource)
@@ -169,7 +169,7 @@ public void abandonInstancesInstanceGroupManagerExceptionTest() throws Exception
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -241,19 +241,16 @@ public void aggregatedListInstanceGroupManagersExceptionTest() throws Exception
   @Test
   @SuppressWarnings("all")
   public void deleteInstanceGroupManagerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteInstanceGroupManagerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstanceGroupManagers.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteInstanceGroupManagerTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceGroupManagerName instanceGroupManager =
         ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
 
-    Void actualResponse = client.deleteInstanceGroupManagerAsync(instanceGroupManager).get();
+    EmptyMessage actualResponse =
+        client.deleteInstanceGroupManagerAsync(instanceGroupManager).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -288,21 +285,20 @@ public void deleteInstanceGroupManagerExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void deleteInstancesInstanceGroupManagerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("deleteInstancesInstanceGroupManagerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockInstanceGroupManagers.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceGroupManagerName instanceGroupManager =
         ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
@@ -310,7 +306,7 @@ public void deleteInstancesInstanceGroupManagerTest() throws Exception {
         instanceGroupManagersDeleteInstancesRequestResource =
             InstanceGroupManagersDeleteInstancesRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .deleteInstancesInstanceGroupManagerAsync(
                 instanceGroupManager, instanceGroupManagersDeleteInstancesRequestResource)
@@ -355,7 +351,7 @@ public void deleteInstancesInstanceGroupManagerExceptionTest() throws Exception
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -438,19 +434,15 @@ public void getInstanceGroupManagerExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertInstanceGroupManagerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertInstanceGroupManagerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstanceGroupManagers.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertInstanceGroupManagerTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
     InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.insertInstanceGroupManagerAsync(zone, instanceGroupManagerResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -486,7 +478,7 @@ public void insertInstanceGroupManagerExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -602,21 +594,17 @@ public void listManagedInstancesInstanceGroupManagersExceptionTest() throws Exce
   @Test
   @SuppressWarnings("all")
   public void patchInstanceGroupManagerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("patchInstanceGroupManagerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstanceGroupManagers.addResponse(resultOperation);
+        Operation.newBuilder().setName("patchInstanceGroupManagerTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceGroupManagerName instanceGroupManager =
         ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
     InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .patchInstanceGroupManagerAsync(
                 instanceGroupManager, instanceGroupManagerResource, fieldMask)
@@ -660,21 +648,20 @@ public void patchInstanceGroupManagerExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void recreateInstancesInstanceGroupManagerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("recreateInstancesInstanceGroupManagerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockInstanceGroupManagers.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceGroupManagerName instanceGroupManager =
         ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
@@ -682,7 +669,7 @@ public void recreateInstancesInstanceGroupManagerTest() throws Exception {
         instanceGroupManagersRecreateInstancesRequestResource =
             InstanceGroupManagersRecreateInstancesRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .recreateInstancesInstanceGroupManagerAsync(
                 instanceGroupManager, instanceGroupManagersRecreateInstancesRequestResource)
@@ -727,27 +714,24 @@ public void recreateInstancesInstanceGroupManagerExceptionTest() throws Exceptio
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void resizeInstanceGroupManagerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("resizeInstanceGroupManagerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstanceGroupManagers.addResponse(resultOperation);
+        Operation.newBuilder().setName("resizeInstanceGroupManagerTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     Integer size = 3530753;
     ProjectZoneInstanceGroupManagerName instanceGroupManager =
         ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
 
-    Void actualResponse = client.resizeInstanceGroupManagerAsync(size, instanceGroupManager).get();
+    EmptyMessage actualResponse =
+        client.resizeInstanceGroupManagerAsync(size, instanceGroupManager).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -783,21 +767,20 @@ public void resizeInstanceGroupManagerExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setInstanceTemplateInstanceGroupManagerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("setInstanceTemplateInstanceGroupManagerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockInstanceGroupManagers.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceGroupManagerName instanceGroupManager =
         ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
@@ -805,7 +788,7 @@ public void setInstanceTemplateInstanceGroupManagerTest() throws Exception {
         instanceGroupManagersSetInstanceTemplateRequestResource =
             InstanceGroupManagersSetInstanceTemplateRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .setInstanceTemplateInstanceGroupManagerAsync(
                 instanceGroupManager, instanceGroupManagersSetInstanceTemplateRequestResource)
@@ -850,28 +833,27 @@ public void setInstanceTemplateInstanceGroupManagerExceptionTest() throws Except
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setTargetPoolsInstanceGroupManagerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("setTargetPoolsInstanceGroupManagerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockInstanceGroupManagers.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectZoneInstanceGroupManagerName instanceGroupManager =
         ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
     InstanceGroupManagersSetTargetPoolsRequest instanceGroupManagersSetTargetPoolsRequestResource =
         InstanceGroupManagersSetTargetPoolsRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .setTargetPoolsInstanceGroupManagerAsync(
                 instanceGroupManager, instanceGroupManagersSetTargetPoolsRequestResource)
@@ -916,7 +898,7 @@ public void setTargetPoolsInstanceGroupManagerExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceTemplateClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceTemplateClientTest.java
index b7ca5b91acb9..3722628f3190 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceTemplateClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceTemplateClientTest.java
@@ -26,6 +26,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -37,10 +38,10 @@
 import com.google.cloud.compute.v1.stub.InstanceTemplateStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -92,19 +93,15 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteInstanceTemplateTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteInstanceTemplateTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstanceTemplates.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteInstanceTemplateTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalInstanceTemplateName instanceTemplate =
         ProjectGlobalInstanceTemplateName.of("[PROJECT]", "[INSTANCE_TEMPLATE]");
 
-    Void actualResponse = client.deleteInstanceTemplateAsync(instanceTemplate).get();
+    EmptyMessage actualResponse = client.deleteInstanceTemplateAsync(instanceTemplate).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -139,7 +136,7 @@ public void deleteInstanceTemplateExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -258,19 +255,15 @@ public void getIamPolicyInstanceTemplateExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertInstanceTemplateTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertInstanceTemplateTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInstanceTemplates.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertInstanceTemplateTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     InstanceTemplate instanceTemplateResource = InstanceTemplate.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.insertInstanceTemplateAsync(project, instanceTemplateResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -306,7 +299,7 @@ public void insertInstanceTemplateExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectAttachmentClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectAttachmentClientTest.java
index c92a18b8f991..093d9e9d3a74 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectAttachmentClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectAttachmentClientTest.java
@@ -26,6 +26,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -37,13 +38,13 @@
 import com.google.cloud.compute.v1.stub.InterconnectAttachmentStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -160,20 +161,20 @@ public void aggregatedListInterconnectAttachmentsExceptionTest() throws Exceptio
   @Test
   @SuppressWarnings("all")
   public void deleteInterconnectAttachmentTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("deleteInterconnectAttachmentTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockInterconnectAttachments.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectRegionInterconnectAttachmentName interconnectAttachment =
         ProjectRegionInterconnectAttachmentName.of(
             "[PROJECT]", "[REGION]", "[INTERCONNECT_ATTACHMENT]");
 
-    Void actualResponse = client.deleteInterconnectAttachmentAsync(interconnectAttachment).get();
+    EmptyMessage actualResponse =
+        client.deleteInterconnectAttachmentAsync(interconnectAttachment).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -209,7 +210,7 @@ public void deleteInterconnectAttachmentExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -311,20 +312,19 @@ public void getInterconnectAttachmentExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertInterconnectAttachmentTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("insertInterconnectAttachmentTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockInterconnectAttachments.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
     InterconnectAttachment interconnectAttachmentResource =
         InterconnectAttachment.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.insertInterconnectAttachmentAsync(region, interconnectAttachmentResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -361,7 +361,7 @@ public void insertInterconnectAttachmentExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -429,14 +429,10 @@ public void listInterconnectAttachmentsExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void patchInterconnectAttachmentTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("patchInterconnectAttachmentTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInterconnectAttachments.addResponse(resultOperation);
+        Operation.newBuilder().setName("patchInterconnectAttachmentTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionInterconnectAttachmentName interconnectAttachment =
         ProjectRegionInterconnectAttachmentName.of(
@@ -445,7 +441,7 @@ public void patchInterconnectAttachmentTest() throws Exception {
         InterconnectAttachment.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .patchInterconnectAttachmentAsync(
                 interconnectAttachment, interconnectAttachmentResource, fieldMask)
@@ -491,7 +487,7 @@ public void patchInterconnectAttachmentExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectClientTest.java
index d7c6d3b38a16..9c10446345f2 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InterconnectClientTest.java
@@ -25,6 +25,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -36,11 +37,11 @@
 import com.google.cloud.compute.v1.stub.InterconnectStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -91,19 +92,15 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteInterconnectTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteInterconnectTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInterconnects.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteInterconnectTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalInterconnectName interconnect =
         ProjectGlobalInterconnectName.of("[PROJECT]", "[INTERCONNECT]");
 
-    Void actualResponse = client.deleteInterconnectAsync(interconnect).get();
+    EmptyMessage actualResponse = client.deleteInterconnectAsync(interconnect).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -138,7 +135,7 @@ public void deleteInterconnectExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -279,19 +276,16 @@ public void getDiagnosticsInterconnectExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertInterconnectTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertInterconnectTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInterconnects.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertInterconnectTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     Interconnect interconnectResource = Interconnect.newBuilder().build();
 
-    Void actualResponse = client.insertInterconnectAsync(project, interconnectResource).get();
+    EmptyMessage actualResponse =
+        client.insertInterconnectAsync(project, interconnectResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -326,7 +320,7 @@ public void insertInterconnectExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -393,21 +387,17 @@ public void listInterconnectsExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void patchInterconnectTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("patchInterconnectTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockInterconnects.addResponse(resultOperation);
+        Operation.newBuilder().setName("patchInterconnectTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalInterconnectName interconnect =
         ProjectGlobalInterconnectName.of("[PROJECT]", "[INTERCONNECT]");
     Interconnect interconnectResource = Interconnect.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.patchInterconnectAsync(interconnect, interconnectResource, fieldMask).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -445,7 +435,7 @@ public void patchInterconnectExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/LicenseClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/LicenseClientTest.java
index 3d0fe02d25a5..02719a72f961 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/LicenseClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/LicenseClientTest.java
@@ -26,6 +26,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -37,10 +38,10 @@
 import com.google.cloud.compute.v1.stub.LicenseStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -92,18 +93,14 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteLicenseTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteLicenseTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockLicenses.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteLicenseTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalLicenseName license = ProjectGlobalLicenseName.of("[PROJECT]", "[LICENSE]");
 
-    Void actualResponse = client.deleteLicenseAsync(license).get();
+    EmptyMessage actualResponse = client.deleteLicenseAsync(license).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -137,7 +134,7 @@ public void deleteLicenseExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -259,19 +256,15 @@ public void getIamPolicyLicenseExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertLicenseTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertLicenseTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockLicenses.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertLicenseTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     License licenseResource = License.newBuilder().build();
 
-    Void actualResponse = client.insertLicenseAsync(project, licenseResource).get();
+    EmptyMessage actualResponse = client.insertLicenseAsync(project, licenseResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -306,7 +299,7 @@ public void insertLicenseExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworkClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworkClientTest.java
index fc286819f193..1460f00e8405 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworkClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworkClientTest.java
@@ -27,6 +27,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -38,11 +39,11 @@
 import com.google.cloud.compute.v1.stub.NetworkStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -95,20 +96,16 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void addPeeringNetworkTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("addPeeringNetworkTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockNetworks.addResponse(resultOperation);
+        Operation.newBuilder().setName("addPeeringNetworkTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]");
     NetworksAddPeeringRequest networksAddPeeringRequestResource =
         NetworksAddPeeringRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.addPeeringNetworkAsync(network, networksAddPeeringRequestResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -145,25 +142,21 @@ public void addPeeringNetworkExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void deleteNetworkTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteNetworkTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockNetworks.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteNetworkTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]");
 
-    Void actualResponse = client.deleteNetworkAsync(network).get();
+    EmptyMessage actualResponse = client.deleteNetworkAsync(network).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -197,7 +190,7 @@ public void deleteNetworkExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -268,19 +261,15 @@ public void getNetworkExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertNetworkTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertNetworkTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockNetworks.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertNetworkTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     Network networkResource = Network.newBuilder().build();
 
-    Void actualResponse = client.insertNetworkAsync(project, networkResource).get();
+    EmptyMessage actualResponse = client.insertNetworkAsync(project, networkResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -315,7 +304,7 @@ public void insertNetworkExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -382,20 +371,17 @@ public void listNetworksExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void patchNetworkTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("patchNetworkTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockNetworks.addResponse(resultOperation);
+        Operation.newBuilder().setName("patchNetworkTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]");
     Network networkResource = Network.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse = client.patchNetworkAsync(network, networkResource, fieldMask).get();
+    EmptyMessage actualResponse =
+        client.patchNetworkAsync(network, networkResource, fieldMask).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -431,27 +417,23 @@ public void patchNetworkExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void removePeeringNetworkTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("removePeeringNetworkTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockNetworks.addResponse(resultOperation);
+        Operation.newBuilder().setName("removePeeringNetworkTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]");
     NetworksRemovePeeringRequest networksRemovePeeringRequestResource =
         NetworksRemovePeeringRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.removePeeringNetworkAsync(network, networksRemovePeeringRequestResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -488,25 +470,21 @@ public void removePeeringNetworkExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void switchToCustomModeNetworkTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("switchToCustomModeNetworkTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockNetworks.addResponse(resultOperation);
+        Operation.newBuilder().setName("switchToCustomModeNetworkTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]");
 
-    Void actualResponse = client.switchToCustomModeNetworkAsync(network).get();
+    EmptyMessage actualResponse = client.switchToCustomModeNetworkAsync(network).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -540,7 +518,7 @@ public void switchToCustomModeNetworkExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeGroupClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeGroupClientTest.java
index 87af1aaf04c2..c159755accfd 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeGroupClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeGroupClientTest.java
@@ -33,6 +33,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -44,12 +45,12 @@
 import com.google.cloud.compute.v1.stub.NodeGroupStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -106,21 +107,17 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void addNodesNodeGroupTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("addNodesNodeGroupTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockNodeGroups.addResponse(resultOperation);
+        Operation.newBuilder().setName("addNodesNodeGroupTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneNodeGroupName nodeGroup =
         ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]");
     NodeGroupsAddNodesRequest nodeGroupsAddNodesRequestResource =
         NodeGroupsAddNodesRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.addNodesNodeGroupAsync(nodeGroup, nodeGroupsAddNodesRequestResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -158,7 +155,7 @@ public void addNodesNodeGroupExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -228,19 +225,15 @@ public void aggregatedListNodeGroupsExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteNodeGroupTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteNodeGroupTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockNodeGroups.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteNodeGroupTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneNodeGroupName nodeGroup =
         ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]");
 
-    Void actualResponse = client.deleteNodeGroupAsync(nodeGroup).get();
+    EmptyMessage actualResponse = client.deleteNodeGroupAsync(nodeGroup).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -275,28 +268,24 @@ public void deleteNodeGroupExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void deleteNodesNodeGroupTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteNodesNodeGroupTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockNodeGroups.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteNodesNodeGroupTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneNodeGroupName nodeGroup =
         ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]");
     NodeGroupsDeleteNodesRequest nodeGroupsDeleteNodesRequestResource =
         NodeGroupsDeleteNodesRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.deleteNodesNodeGroupAsync(nodeGroup, nodeGroupsDeleteNodesRequestResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -334,7 +323,7 @@ public void deleteNodesNodeGroupExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -460,20 +449,16 @@ public void getIamPolicyNodeGroupExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertNodeGroupTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertNodeGroupTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockNodeGroups.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertNodeGroupTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     Integer initialNodeCount = 1682564205;
     ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
     NodeGroup nodeGroupResource = NodeGroup.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.insertNodeGroupAsync(initialNodeCount, zone, nodeGroupResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -510,7 +495,7 @@ public void insertNodeGroupExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -691,21 +676,17 @@ public void setIamPolicyNodeGroupExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void setNodeTemplateNodeGroupTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("setNodeTemplateNodeGroupTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockNodeGroups.addResponse(resultOperation);
+        Operation.newBuilder().setName("setNodeTemplateNodeGroupTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneNodeGroupName nodeGroup =
         ProjectZoneNodeGroupName.of("[PROJECT]", "[ZONE]", "[NODE_GROUP]");
     NodeGroupsSetNodeTemplateRequest nodeGroupsSetNodeTemplateRequestResource =
         NodeGroupsSetNodeTemplateRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .setNodeTemplateNodeGroupAsync(nodeGroup, nodeGroupsSetNodeTemplateRequestResource)
             .get();
@@ -747,7 +728,7 @@ public void setNodeTemplateNodeGroupExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeTemplateClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeTemplateClientTest.java
index 8dfa8e99557d..1b0eff4de2f2 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeTemplateClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NodeTemplateClientTest.java
@@ -28,6 +28,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -39,12 +40,12 @@
 import com.google.cloud.compute.v1.stub.NodeTemplateStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -160,19 +161,15 @@ public void aggregatedListNodeTemplatesExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteNodeTemplateTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteNodeTemplateTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockNodeTemplates.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteNodeTemplateTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionNodeTemplateName nodeTemplate =
         ProjectRegionNodeTemplateName.of("[PROJECT]", "[REGION]", "[NODE_TEMPLATE]");
 
-    Void actualResponse = client.deleteNodeTemplateAsync(nodeTemplate).get();
+    EmptyMessage actualResponse = client.deleteNodeTemplateAsync(nodeTemplate).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -207,7 +204,7 @@ public void deleteNodeTemplateExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -333,19 +330,16 @@ public void getIamPolicyNodeTemplateExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertNodeTemplateTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertNodeTemplateTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockNodeTemplates.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertNodeTemplateTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
     NodeTemplate nodeTemplateResource = NodeTemplate.newBuilder().build();
 
-    Void actualResponse = client.insertNodeTemplateAsync(region, nodeTemplateResource).get();
+    EmptyMessage actualResponse =
+        client.insertNodeTemplateAsync(region, nodeTemplateResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -380,7 +374,7 @@ public void insertNodeTemplateExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ProjectClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ProjectClientTest.java
index b60ee4ccd899..5ba4971a68b3 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ProjectClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/ProjectClientTest.java
@@ -33,6 +33,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -44,10 +45,10 @@
 import com.google.cloud.compute.v1.stub.ProjectStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -105,18 +106,14 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void disableXpnHostProjectTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("disableXpnHostProjectTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockProjects.addResponse(resultOperation);
+        Operation.newBuilder().setName("disableXpnHostProjectTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
 
-    Void actualResponse = client.disableXpnHostProjectAsync(project).get();
+    EmptyMessage actualResponse = client.disableXpnHostProjectAsync(project).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -150,27 +147,23 @@ public void disableXpnHostProjectExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void disableXpnResourceProjectTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("disableXpnResourceProjectTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockProjects.addResponse(resultOperation);
+        Operation.newBuilder().setName("disableXpnResourceProjectTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     ProjectsDisableXpnResourceRequest projectsDisableXpnResourceRequestResource =
         ProjectsDisableXpnResourceRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .disableXpnResourceProjectAsync(project, projectsDisableXpnResourceRequestResource)
             .get();
@@ -211,25 +204,21 @@ public void disableXpnResourceProjectExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void enableXpnHostProjectTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("enableXpnHostProjectTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockProjects.addResponse(resultOperation);
+        Operation.newBuilder().setName("enableXpnHostProjectTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
 
-    Void actualResponse = client.enableXpnHostProjectAsync(project).get();
+    EmptyMessage actualResponse = client.enableXpnHostProjectAsync(project).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -263,27 +252,23 @@ public void enableXpnHostProjectExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void enableXpnResourceProjectTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("enableXpnResourceProjectTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockProjects.addResponse(resultOperation);
+        Operation.newBuilder().setName("enableXpnResourceProjectTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     ProjectsEnableXpnResourceRequest projectsEnableXpnResourceRequestResource =
         ProjectsEnableXpnResourceRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .enableXpnResourceProjectAsync(project, projectsEnableXpnResourceRequestResource)
             .get();
@@ -322,7 +307,7 @@ public void enableXpnResourceProjectExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -579,19 +564,16 @@ public void listXpnHostsProjectsExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void moveDiskProjectTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("moveDiskProjectTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockProjects.addResponse(resultOperation);
+        Operation.newBuilder().setName("moveDiskProjectTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     DiskMoveRequest diskMoveRequestResource = DiskMoveRequest.newBuilder().build();
 
-    Void actualResponse = client.moveDiskProjectAsync(project, diskMoveRequestResource).get();
+    EmptyMessage actualResponse =
+        client.moveDiskProjectAsync(project, diskMoveRequestResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -626,26 +608,22 @@ public void moveDiskProjectExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void moveInstanceProjectTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("moveInstanceProjectTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockProjects.addResponse(resultOperation);
+        Operation.newBuilder().setName("moveInstanceProjectTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     InstanceMoveRequest instanceMoveRequestResource = InstanceMoveRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.moveInstanceProjectAsync(project, instanceMoveRequestResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -681,26 +659,25 @@ public void moveInstanceProjectExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setCommonInstanceMetadataProjectTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("setCommonInstanceMetadataProjectTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockProjects.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     Metadata metadataResource = Metadata.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.setCommonInstanceMetadataProjectAsync(project, metadataResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -736,27 +713,26 @@ public void setCommonInstanceMetadataProjectExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setDefaultNetworkTierProjectTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("setDefaultNetworkTierProjectTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockProjects.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     ProjectsSetDefaultNetworkTierRequest projectsSetDefaultNetworkTierRequestResource =
         ProjectsSetDefaultNetworkTierRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .setDefaultNetworkTierProjectAsync(
                 project, projectsSetDefaultNetworkTierRequestResource)
@@ -798,26 +774,22 @@ public void setDefaultNetworkTierProjectExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setUsageExportBucketProjectTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("setUsageExportBucketProjectTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockProjects.addResponse(resultOperation);
+        Operation.newBuilder().setName("setUsageExportBucketProjectTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     UsageExportLocation usageExportLocationResource = UsageExportLocation.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.setUsageExportBucketProjectAsync(project, usageExportLocationResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -853,7 +825,7 @@ public void setUsageExportBucketProjectExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionAutoscalerClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionAutoscalerClientTest.java
index 714542857137..14876d90bc6b 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionAutoscalerClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionAutoscalerClientTest.java
@@ -25,6 +25,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -36,11 +37,11 @@
 import com.google.cloud.compute.v1.stub.RegionAutoscalerStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -91,19 +92,15 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteRegionAutoscalerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteRegionAutoscalerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockRegionAutoscalers.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteRegionAutoscalerTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionAutoscalerName autoscaler =
         ProjectRegionAutoscalerName.of("[PROJECT]", "[REGION]", "[AUTOSCALER]");
 
-    Void actualResponse = client.deleteRegionAutoscalerAsync(autoscaler).get();
+    EmptyMessage actualResponse = client.deleteRegionAutoscalerAsync(autoscaler).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -138,7 +135,7 @@ public void deleteRegionAutoscalerExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -213,19 +210,16 @@ public void getRegionAutoscalerExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertRegionAutoscalerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertRegionAutoscalerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockRegionAutoscalers.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertRegionAutoscalerTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
     Autoscaler autoscalerResource = Autoscaler.newBuilder().build();
 
-    Void actualResponse = client.insertRegionAutoscalerAsync(region, autoscalerResource).get();
+    EmptyMessage actualResponse =
+        client.insertRegionAutoscalerAsync(region, autoscalerResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -260,7 +254,7 @@ public void insertRegionAutoscalerExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -327,21 +321,17 @@ public void listRegionAutoscalersExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void patchRegionAutoscalerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("patchRegionAutoscalerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockRegionAutoscalers.addResponse(resultOperation);
+        Operation.newBuilder().setName("patchRegionAutoscalerTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     String autoscaler = "autoscaler517258967";
     ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
     Autoscaler autoscalerResource = Autoscaler.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.patchRegionAutoscalerAsync(autoscaler, region, autoscalerResource, fieldMask).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -379,28 +369,24 @@ public void patchRegionAutoscalerExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void updateRegionAutoscalerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("updateRegionAutoscalerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockRegionAutoscalers.addResponse(resultOperation);
+        Operation.newBuilder().setName("updateRegionAutoscalerTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     String autoscaler = "autoscaler517258967";
     ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
     Autoscaler autoscalerResource = Autoscaler.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.updateRegionAutoscalerAsync(autoscaler, region, autoscalerResource, fieldMask).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -438,7 +424,7 @@ public void updateRegionAutoscalerExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionBackendServiceClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionBackendServiceClientTest.java
index 57d42d5e454c..e75e459cba8d 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionBackendServiceClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionBackendServiceClientTest.java
@@ -26,6 +26,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -37,11 +38,11 @@
 import com.google.cloud.compute.v1.stub.RegionBackendServiceStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -94,19 +95,15 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteRegionBackendServiceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteRegionBackendServiceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockRegionBackendServices.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteRegionBackendServiceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionBackendServiceName backendService =
         ProjectRegionBackendServiceName.of("[PROJECT]", "[REGION]", "[BACKEND_SERVICE]");
 
-    Void actualResponse = client.deleteRegionBackendServiceAsync(backendService).get();
+    EmptyMessage actualResponse = client.deleteRegionBackendServiceAsync(backendService).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -141,7 +138,7 @@ public void deleteRegionBackendServiceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -284,19 +281,15 @@ public void getHealthRegionBackendServiceExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertRegionBackendServiceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertRegionBackendServiceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockRegionBackendServices.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertRegionBackendServiceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
     BackendService backendServiceResource = BackendService.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.insertRegionBackendServiceAsync(region, backendServiceResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -332,7 +325,7 @@ public void insertRegionBackendServiceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -400,21 +393,17 @@ public void listRegionBackendServicesExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void patchRegionBackendServiceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("patchRegionBackendServiceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockRegionBackendServices.addResponse(resultOperation);
+        Operation.newBuilder().setName("patchRegionBackendServiceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionBackendServiceName backendService =
         ProjectRegionBackendServiceName.of("[PROJECT]", "[REGION]", "[BACKEND_SERVICE]");
     BackendService backendServiceResource = BackendService.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .patchRegionBackendServiceAsync(backendService, backendServiceResource, fieldMask)
             .get();
@@ -456,28 +445,24 @@ public void patchRegionBackendServiceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void updateRegionBackendServiceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("updateRegionBackendServiceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockRegionBackendServices.addResponse(resultOperation);
+        Operation.newBuilder().setName("updateRegionBackendServiceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionBackendServiceName backendService =
         ProjectRegionBackendServiceName.of("[PROJECT]", "[REGION]", "[BACKEND_SERVICE]");
     BackendService backendServiceResource = BackendService.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .updateRegionBackendServiceAsync(backendService, backendServiceResource, fieldMask)
             .get();
@@ -519,7 +504,7 @@ public void updateRegionBackendServiceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionCommitmentClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionCommitmentClientTest.java
index 34d49ddfbae4..57c6d96f0fc8 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionCommitmentClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionCommitmentClientTest.java
@@ -24,6 +24,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -35,12 +36,12 @@
 import com.google.cloud.compute.v1.stub.RegionCommitmentStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -224,19 +225,16 @@ public void getRegionCommitmentExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertRegionCommitmentTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertRegionCommitmentTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockRegionCommitments.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertRegionCommitmentTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
     Commitment commitmentResource = Commitment.newBuilder().build();
 
-    Void actualResponse = client.insertRegionCommitmentAsync(region, commitmentResource).get();
+    EmptyMessage actualResponse =
+        client.insertRegionCommitmentAsync(region, commitmentResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -271,7 +269,7 @@ public void insertRegionCommitmentExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionDiskClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionDiskClientTest.java
index 9627fe26b99b..bcefa0aea320 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionDiskClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionDiskClientTest.java
@@ -27,6 +27,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -38,10 +39,10 @@
 import com.google.cloud.compute.v1.stub.RegionDiskStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -94,19 +95,16 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void createSnapshotRegionDiskTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("createSnapshotRegionDiskTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockRegionDisks.addResponse(resultOperation);
+        Operation.newBuilder().setName("createSnapshotRegionDiskTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionDiskName disk = ProjectRegionDiskName.of("[PROJECT]", "[REGION]", "[DISK]");
     Snapshot snapshotResource = Snapshot.newBuilder().build();
 
-    Void actualResponse = client.createSnapshotRegionDiskAsync(disk, snapshotResource).get();
+    EmptyMessage actualResponse =
+        client.createSnapshotRegionDiskAsync(disk, snapshotResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -141,25 +139,21 @@ public void createSnapshotRegionDiskExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void deleteRegionDiskTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteRegionDiskTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockRegionDisks.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteRegionDiskTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionDiskName disk = ProjectRegionDiskName.of("[PROJECT]", "[REGION]", "[DISK]");
 
-    Void actualResponse = client.deleteRegionDiskAsync(disk).get();
+    EmptyMessage actualResponse = client.deleteRegionDiskAsync(disk).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -193,7 +187,7 @@ public void deleteRegionDiskExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -286,19 +280,15 @@ public void getRegionDiskExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertRegionDiskTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertRegionDiskTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockRegionDisks.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertRegionDiskTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
     Disk diskResource = Disk.newBuilder().build();
 
-    Void actualResponse = client.insertRegionDiskAsync(region, diskResource).get();
+    EmptyMessage actualResponse = client.insertRegionDiskAsync(region, diskResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -333,7 +323,7 @@ public void insertRegionDiskExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -400,20 +390,16 @@ public void listRegionDisksExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void resizeRegionDiskTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("resizeRegionDiskTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockRegionDisks.addResponse(resultOperation);
+        Operation.newBuilder().setName("resizeRegionDiskTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionDiskName disk = ProjectRegionDiskName.of("[PROJECT]", "[REGION]", "[DISK]");
     RegionDisksResizeRequest regionDisksResizeRequestResource =
         RegionDisksResizeRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.resizeRegionDiskAsync(disk, regionDisksResizeRequestResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -450,28 +436,24 @@ public void resizeRegionDiskExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setLabelsRegionDiskTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("setLabelsRegionDiskTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockRegionDisks.addResponse(resultOperation);
+        Operation.newBuilder().setName("setLabelsRegionDiskTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionDiskResourceName resource =
         ProjectRegionDiskResourceName.of("[PROJECT]", "[REGION]", "[RESOURCE]");
     RegionSetLabelsRequest regionSetLabelsRequestResource =
         RegionSetLabelsRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.setLabelsRegionDiskAsync(resource, regionSetLabelsRequestResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -509,7 +491,7 @@ public void setLabelsRegionDiskExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupClientTest.java
index 1a9f37f16edd..7a2d256e1fc1 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupClientTest.java
@@ -24,6 +24,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -35,10 +36,10 @@
 import com.google.cloud.compute.v1.stub.RegionInstanceGroupStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -290,21 +291,20 @@ public void listInstancesRegionInstanceGroupsExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void setNamedPortsRegionInstanceGroupTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("setNamedPortsRegionInstanceGroupTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockRegionInstanceGroups.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectRegionInstanceGroupName instanceGroup =
         ProjectRegionInstanceGroupName.of("[PROJECT]", "[REGION]", "[INSTANCE_GROUP]");
     RegionInstanceGroupsSetNamedPortsRequest regionInstanceGroupsSetNamedPortsRequestResource =
         RegionInstanceGroupsSetNamedPortsRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .setNamedPortsRegionInstanceGroupAsync(
                 instanceGroup, regionInstanceGroupsSetNamedPortsRequestResource)
@@ -348,7 +348,7 @@ public void setNamedPortsRegionInstanceGroupExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClientTest.java
index 2d44fee0e1b6..ae06ee553f64 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClientTest.java
@@ -31,6 +31,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -42,11 +43,11 @@
 import com.google.cloud.compute.v1.stub.RegionInstanceGroupManagerStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -104,14 +105,13 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void abandonInstancesRegionInstanceGroupManagerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("abandonInstancesRegionInstanceGroupManagerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockRegionInstanceGroupManagers.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectRegionInstanceGroupManagerName instanceGroupManager =
         ProjectRegionInstanceGroupManagerName.of(
@@ -120,7 +120,7 @@ public void abandonInstancesRegionInstanceGroupManagerTest() throws Exception {
         regionInstanceGroupManagersAbandonInstancesRequestResource =
             RegionInstanceGroupManagersAbandonInstancesRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .abandonInstancesRegionInstanceGroupManagerAsync(
                 instanceGroupManager, regionInstanceGroupManagersAbandonInstancesRequestResource)
@@ -166,27 +166,27 @@ public void abandonInstancesRegionInstanceGroupManagerExceptionTest() throws Exc
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void deleteRegionInstanceGroupManagerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("deleteRegionInstanceGroupManagerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockRegionInstanceGroupManagers.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectRegionInstanceGroupManagerName instanceGroupManager =
         ProjectRegionInstanceGroupManagerName.of(
             "[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]");
 
-    Void actualResponse = client.deleteRegionInstanceGroupManagerAsync(instanceGroupManager).get();
+    EmptyMessage actualResponse =
+        client.deleteRegionInstanceGroupManagerAsync(instanceGroupManager).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -222,21 +222,20 @@ public void deleteRegionInstanceGroupManagerExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void deleteInstancesRegionInstanceGroupManagerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("deleteInstancesRegionInstanceGroupManagerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockRegionInstanceGroupManagers.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectRegionInstanceGroupManagerName instanceGroupManager =
         ProjectRegionInstanceGroupManagerName.of(
@@ -245,7 +244,7 @@ public void deleteInstancesRegionInstanceGroupManagerTest() throws Exception {
         regionInstanceGroupManagersDeleteInstancesRequestResource =
             RegionInstanceGroupManagersDeleteInstancesRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .deleteInstancesRegionInstanceGroupManagerAsync(
                 instanceGroupManager, regionInstanceGroupManagersDeleteInstancesRequestResource)
@@ -291,7 +290,7 @@ public void deleteInstancesRegionInstanceGroupManagerExceptionTest() throws Exce
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -377,19 +376,18 @@ public void getRegionInstanceGroupManagerExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertRegionInstanceGroupManagerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("insertRegionInstanceGroupManagerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockRegionInstanceGroupManagers.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
     InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.insertRegionInstanceGroupManagerAsync(region, instanceGroupManagerResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -425,7 +423,7 @@ public void insertRegionInstanceGroupManagerExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -543,14 +541,13 @@ public void listManagedInstancesRegionInstanceGroupManagersExceptionTest() throw
   @Test
   @SuppressWarnings("all")
   public void patchRegionInstanceGroupManagerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("patchRegionInstanceGroupManagerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockRegionInstanceGroupManagers.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectRegionInstanceGroupManagerName instanceGroupManager =
         ProjectRegionInstanceGroupManagerName.of(
@@ -558,7 +555,7 @@ public void patchRegionInstanceGroupManagerTest() throws Exception {
     InstanceGroupManager instanceGroupManagerResource = InstanceGroupManager.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .patchRegionInstanceGroupManagerAsync(
                 instanceGroupManager, instanceGroupManagerResource, fieldMask)
@@ -603,21 +600,20 @@ public void patchRegionInstanceGroupManagerExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void recreateInstancesRegionInstanceGroupManagerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("recreateInstancesRegionInstanceGroupManagerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockRegionInstanceGroupManagers.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectRegionInstanceGroupManagerName instanceGroupManager =
         ProjectRegionInstanceGroupManagerName.of(
@@ -625,7 +621,7 @@ public void recreateInstancesRegionInstanceGroupManagerTest() throws Exception {
     RegionInstanceGroupManagersRecreateRequest regionInstanceGroupManagersRecreateRequestResource =
         RegionInstanceGroupManagersRecreateRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .recreateInstancesRegionInstanceGroupManagerAsync(
                 instanceGroupManager, regionInstanceGroupManagersRecreateRequestResource)
@@ -671,28 +667,27 @@ public void recreateInstancesRegionInstanceGroupManagerExceptionTest() throws Ex
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void resizeRegionInstanceGroupManagerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("resizeRegionInstanceGroupManagerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockRegionInstanceGroupManagers.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     Integer size = 3530753;
     ProjectRegionInstanceGroupManagerName instanceGroupManager =
         ProjectRegionInstanceGroupManagerName.of(
             "[PROJECT]", "[REGION]", "[INSTANCE_GROUP_MANAGER]");
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.resizeRegionInstanceGroupManagerAsync(size, instanceGroupManager).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -730,21 +725,20 @@ public void resizeRegionInstanceGroupManagerExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setInstanceTemplateRegionInstanceGroupManagerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("setInstanceTemplateRegionInstanceGroupManagerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockRegionInstanceGroupManagers.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectRegionInstanceGroupManagerName instanceGroupManager =
         ProjectRegionInstanceGroupManagerName.of(
@@ -753,7 +747,7 @@ public void setInstanceTemplateRegionInstanceGroupManagerTest() throws Exception
         regionInstanceGroupManagersSetTemplateRequestResource =
             RegionInstanceGroupManagersSetTemplateRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .setInstanceTemplateRegionInstanceGroupManagerAsync(
                 instanceGroupManager, regionInstanceGroupManagersSetTemplateRequestResource)
@@ -799,21 +793,20 @@ public void setInstanceTemplateRegionInstanceGroupManagerExceptionTest() throws
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setTargetPoolsRegionInstanceGroupManagerTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("setTargetPoolsRegionInstanceGroupManagerTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockRegionInstanceGroupManagers.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectRegionInstanceGroupManagerName instanceGroupManager =
         ProjectRegionInstanceGroupManagerName.of(
@@ -822,7 +815,7 @@ public void setTargetPoolsRegionInstanceGroupManagerTest() throws Exception {
         regionInstanceGroupManagersSetTargetPoolsRequestResource =
             RegionInstanceGroupManagersSetTargetPoolsRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .setTargetPoolsRegionInstanceGroupManagerAsync(
                 instanceGroupManager, regionInstanceGroupManagersSetTargetPoolsRequestResource)
@@ -868,7 +861,7 @@ public void setTargetPoolsRegionInstanceGroupManagerExceptionTest() throws Excep
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouteClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouteClientTest.java
index 0b979e12b5a0..2fbb59977682 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouteClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouteClientTest.java
@@ -23,6 +23,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -34,10 +35,10 @@
 import com.google.cloud.compute.v1.stub.RouteStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -86,18 +87,14 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteRouteTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteRouteTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockRoutes.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteRouteTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalRouteName route = ProjectGlobalRouteName.of("[PROJECT]", "[ROUTE]");
 
-    Void actualResponse = client.deleteRouteAsync(route).get();
+    EmptyMessage actualResponse = client.deleteRouteAsync(route).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -131,7 +128,7 @@ public void deleteRouteExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -214,19 +211,15 @@ public void getRouteExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertRouteTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertRouteTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockRoutes.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertRouteTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     Route routeResource = Route.newBuilder().build();
 
-    Void actualResponse = client.insertRouteAsync(project, routeResource).get();
+    EmptyMessage actualResponse = client.insertRouteAsync(project, routeResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -261,7 +254,7 @@ public void insertRouteExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouterClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouterClientTest.java
index 63b2591d2d33..43cccae2c737 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouterClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/RouterClientTest.java
@@ -31,6 +31,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -42,13 +43,13 @@
 import com.google.cloud.compute.v1.stub.RouterStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -165,19 +166,15 @@ public void aggregatedListRoutersExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteRouterTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteRouterTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockRouters.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteRouterTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionRouterName router =
         ProjectRegionRouterName.of("[PROJECT]", "[REGION]", "[ROUTER]");
 
-    Void actualResponse = client.deleteRouterAsync(router).get();
+    EmptyMessage actualResponse = client.deleteRouterAsync(router).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -212,7 +209,7 @@ public void deleteRouterExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -393,19 +390,15 @@ public void getRouterStatusRouterExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertRouterTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertRouterTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockRouters.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertRouterTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
     Router routerResource = Router.newBuilder().build();
 
-    Void actualResponse = client.insertRouterAsync(region, routerResource).get();
+    EmptyMessage actualResponse = client.insertRouterAsync(region, routerResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -440,7 +433,7 @@ public void insertRouterExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -507,21 +500,17 @@ public void listRoutersExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void patchRouterTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("patchRouterTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockRouters.addResponse(resultOperation);
+        Operation.newBuilder().setName("patchRouterTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionRouterName router =
         ProjectRegionRouterName.of("[PROJECT]", "[REGION]", "[ROUTER]");
     Router routerResource = Router.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse = client.patchRouterAsync(router, routerResource, fieldMask).get();
+    EmptyMessage actualResponse = client.patchRouterAsync(router, routerResource, fieldMask).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -558,7 +547,7 @@ public void patchRouterExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -613,21 +602,17 @@ public void previewRouterExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void updateRouterTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("updateRouterTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockRouters.addResponse(resultOperation);
+        Operation.newBuilder().setName("updateRouterTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionRouterName router =
         ProjectRegionRouterName.of("[PROJECT]", "[REGION]", "[ROUTER]");
     Router routerResource = Router.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse = client.updateRouterAsync(router, routerResource, fieldMask).get();
+    EmptyMessage actualResponse = client.updateRouterAsync(router, routerResource, fieldMask).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -664,7 +649,7 @@ public void updateRouterExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SecurityPolicyClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SecurityPolicyClientTest.java
index a55e331b82f1..71104229fef0 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SecurityPolicyClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SecurityPolicyClientTest.java
@@ -28,6 +28,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -39,11 +40,11 @@
 import com.google.cloud.compute.v1.stub.SecurityPolicyStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -97,20 +98,16 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void addRuleSecurityPolicyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("addRuleSecurityPolicyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockSecurityPolicies.addResponse(resultOperation);
+        Operation.newBuilder().setName("addRuleSecurityPolicyTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalSecurityPolicyName securityPolicy =
         ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]");
     SecurityPolicyRule securityPolicyRuleResource = SecurityPolicyRule.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.addRuleSecurityPolicyAsync(securityPolicy, securityPolicyRuleResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -147,26 +144,22 @@ public void addRuleSecurityPolicyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void deleteSecurityPolicyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteSecurityPolicyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockSecurityPolicies.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteSecurityPolicyTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalSecurityPolicyName securityPolicy =
         ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]");
 
-    Void actualResponse = client.deleteSecurityPolicyAsync(securityPolicy).get();
+    EmptyMessage actualResponse = client.deleteSecurityPolicyAsync(securityPolicy).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -201,7 +194,7 @@ public void deleteSecurityPolicyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -330,19 +323,16 @@ public void getRuleSecurityPolicyExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertSecurityPolicyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertSecurityPolicyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockSecurityPolicies.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertSecurityPolicyTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     SecurityPolicy securityPolicyResource = SecurityPolicy.newBuilder().build();
 
-    Void actualResponse = client.insertSecurityPolicyAsync(project, securityPolicyResource).get();
+    EmptyMessage actualResponse =
+        client.insertSecurityPolicyAsync(project, securityPolicyResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -377,7 +367,7 @@ public void insertSecurityPolicyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -442,21 +432,17 @@ public void listSecurityPoliciesExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void patchSecurityPolicyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("patchSecurityPolicyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockSecurityPolicies.addResponse(resultOperation);
+        Operation.newBuilder().setName("patchSecurityPolicyTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalSecurityPolicyName securityPolicy =
         ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]");
     SecurityPolicy securityPolicyResource = SecurityPolicy.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.patchSecurityPolicyAsync(securityPolicy, securityPolicyResource, fieldMask).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -494,28 +480,24 @@ public void patchSecurityPolicyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void patchRuleSecurityPolicyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("patchRuleSecurityPolicyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockSecurityPolicies.addResponse(resultOperation);
+        Operation.newBuilder().setName("patchRuleSecurityPolicyTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     Integer priority = 1165461084;
     ProjectGlobalSecurityPolicyName securityPolicy =
         ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]");
     SecurityPolicyRule securityPolicyRuleResource = SecurityPolicyRule.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .patchRuleSecurityPolicyAsync(priority, securityPolicy, securityPolicyRuleResource)
             .get();
@@ -557,27 +539,24 @@ public void patchRuleSecurityPolicyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void removeRuleSecurityPolicyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("removeRuleSecurityPolicyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockSecurityPolicies.addResponse(resultOperation);
+        Operation.newBuilder().setName("removeRuleSecurityPolicyTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     Integer priority = 1165461084;
     ProjectGlobalSecurityPolicyName securityPolicy =
         ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]");
 
-    Void actualResponse = client.removeRuleSecurityPolicyAsync(priority, securityPolicy).get();
+    EmptyMessage actualResponse =
+        client.removeRuleSecurityPolicyAsync(priority, securityPolicy).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -613,7 +592,7 @@ public void removeRuleSecurityPolicyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SnapshotClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SnapshotClientTest.java
index 77618731a99c..202fd471942a 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SnapshotClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SnapshotClientTest.java
@@ -26,6 +26,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -37,10 +38,10 @@
 import com.google.cloud.compute.v1.stub.SnapshotStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -92,18 +93,14 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteSnapshotTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteSnapshotTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockSnapshots.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteSnapshotTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalSnapshotName snapshot = ProjectGlobalSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
 
-    Void actualResponse = client.deleteSnapshotAsync(snapshot).get();
+    EmptyMessage actualResponse = client.deleteSnapshotAsync(snapshot).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -137,7 +134,7 @@ public void deleteSnapshotExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -380,21 +377,17 @@ public void setIamPolicySnapshotExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void setLabelsSnapshotTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("setLabelsSnapshotTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockSnapshots.addResponse(resultOperation);
+        Operation.newBuilder().setName("setLabelsSnapshotTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalSnapshotResourceName resource =
         ProjectGlobalSnapshotResourceName.of("[PROJECT]", "[RESOURCE]");
     GlobalSetLabelsRequest globalSetLabelsRequestResource =
         GlobalSetLabelsRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.setLabelsSnapshotAsync(resource, globalSetLabelsRequestResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -432,7 +425,7 @@ public void setLabelsSnapshotExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslCertificateClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslCertificateClientTest.java
index 3a5c3961a532..b850ee5a6b5f 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslCertificateClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslCertificateClientTest.java
@@ -23,6 +23,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -34,10 +35,10 @@
 import com.google.cloud.compute.v1.stub.SslCertificateStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -86,19 +87,15 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteSslCertificateTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteSslCertificateTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockSslCertificates.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteSslCertificateTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalSslCertificateName sslCertificate =
         ProjectGlobalSslCertificateName.of("[PROJECT]", "[SSL_CERTIFICATE]");
 
-    Void actualResponse = client.deleteSslCertificateAsync(sslCertificate).get();
+    EmptyMessage actualResponse = client.deleteSslCertificateAsync(sslCertificate).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -133,7 +130,7 @@ public void deleteSslCertificateExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -204,19 +201,16 @@ public void getSslCertificateExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertSslCertificateTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertSslCertificateTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockSslCertificates.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertSslCertificateTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     SslCertificate sslCertificateResource = SslCertificate.newBuilder().build();
 
-    Void actualResponse = client.insertSslCertificateAsync(project, sslCertificateResource).get();
+    EmptyMessage actualResponse =
+        client.insertSslCertificateAsync(project, sslCertificateResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -251,7 +245,7 @@ public void insertSslCertificateExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslPolicyClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslPolicyClientTest.java
index 4b851a04e93f..e0b7da615c75 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslPolicyClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SslPolicyClientTest.java
@@ -25,6 +25,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -36,11 +37,11 @@
 import com.google.cloud.compute.v1.stub.SslPolicyStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -91,19 +92,15 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteSslPolicyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteSslPolicyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockSslPolicies.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteSslPolicyTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalSslPolicyName sslPolicy =
         ProjectGlobalSslPolicyName.of("[PROJECT]", "[SSL_POLICY]");
 
-    Void actualResponse = client.deleteSslPolicyAsync(sslPolicy).get();
+    EmptyMessage actualResponse = client.deleteSslPolicyAsync(sslPolicy).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -138,7 +135,7 @@ public void deleteSslPolicyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -211,19 +208,15 @@ public void getSslPolicyExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertSslPolicyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertSslPolicyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockSslPolicies.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertSslPolicyTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     SslPolicy sslPolicyResource = SslPolicy.newBuilder().build();
 
-    Void actualResponse = client.insertSslPolicyAsync(project, sslPolicyResource).get();
+    EmptyMessage actualResponse = client.insertSslPolicyAsync(project, sslPolicyResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -258,7 +251,7 @@ public void insertSslPolicyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -371,21 +364,18 @@ public void listAvailableFeaturesSslPoliciesExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void patchSslPolicyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("patchSslPolicyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockSslPolicies.addResponse(resultOperation);
+        Operation.newBuilder().setName("patchSslPolicyTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalSslPolicyName sslPolicy =
         ProjectGlobalSslPolicyName.of("[PROJECT]", "[SSL_POLICY]");
     SslPolicy sslPolicyResource = SslPolicy.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse = client.patchSslPolicyAsync(sslPolicy, sslPolicyResource, fieldMask).get();
+    EmptyMessage actualResponse =
+        client.patchSslPolicyAsync(sslPolicy, sslPolicyResource, fieldMask).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -422,7 +412,7 @@ public void patchSslPolicyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SubnetworkClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SubnetworkClientTest.java
index 5f8d36759cd4..f5cda307eeaa 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SubnetworkClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/SubnetworkClientTest.java
@@ -33,6 +33,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -44,13 +45,13 @@
 import com.google.cloud.compute.v1.stub.SubnetworkStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -170,19 +171,15 @@ public void aggregatedListSubnetworksExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteSubnetworkTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteSubnetworkTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockSubnetworks.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteSubnetworkTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionSubnetworkName subnetwork =
         ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]");
 
-    Void actualResponse = client.deleteSubnetworkAsync(subnetwork).get();
+    EmptyMessage actualResponse = client.deleteSubnetworkAsync(subnetwork).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -217,28 +214,24 @@ public void deleteSubnetworkExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void expandIpCidrRangeSubnetworkTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("expandIpCidrRangeSubnetworkTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockSubnetworks.addResponse(resultOperation);
+        Operation.newBuilder().setName("expandIpCidrRangeSubnetworkTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionSubnetworkName subnetwork =
         ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]");
     SubnetworksExpandIpCidrRangeRequest subnetworksExpandIpCidrRangeRequestResource =
         SubnetworksExpandIpCidrRangeRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .expandIpCidrRangeSubnetworkAsync(
                 subnetwork, subnetworksExpandIpCidrRangeRequestResource)
@@ -281,7 +274,7 @@ public void expandIpCidrRangeSubnetworkExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -412,19 +405,15 @@ public void getIamPolicySubnetworkExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertSubnetworkTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertSubnetworkTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockSubnetworks.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertSubnetworkTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
     Subnetwork subnetworkResource = Subnetwork.newBuilder().build();
 
-    Void actualResponse = client.insertSubnetworkAsync(region, subnetworkResource).get();
+    EmptyMessage actualResponse = client.insertSubnetworkAsync(region, subnetworkResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -459,7 +448,7 @@ public void insertSubnetworkExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -586,21 +575,17 @@ public void listUsableSubnetworksExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void patchSubnetworkTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("patchSubnetworkTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockSubnetworks.addResponse(resultOperation);
+        Operation.newBuilder().setName("patchSubnetworkTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionSubnetworkName subnetwork =
         ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]");
     Subnetwork subnetworkResource = Subnetwork.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.patchSubnetworkAsync(subnetwork, subnetworkResource, fieldMask).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -638,7 +623,7 @@ public void patchSubnetworkExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -699,21 +684,20 @@ public void setIamPolicySubnetworkExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void setPrivateIpGoogleAccessSubnetworkTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("setPrivateIpGoogleAccessSubnetworkTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockSubnetworks.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectRegionSubnetworkName subnetwork =
         ProjectRegionSubnetworkName.of("[PROJECT]", "[REGION]", "[SUBNETWORK]");
     SubnetworksSetPrivateIpGoogleAccessRequest subnetworksSetPrivateIpGoogleAccessRequestResource =
         SubnetworksSetPrivateIpGoogleAccessRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .setPrivateIpGoogleAccessSubnetworkAsync(
                 subnetwork, subnetworksSetPrivateIpGoogleAccessRequestResource)
@@ -758,7 +742,7 @@ public void setPrivateIpGoogleAccessSubnetworkExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpProxyClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpProxyClientTest.java
index 039c4d75d25c..ac1feb55f961 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpProxyClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpProxyClientTest.java
@@ -24,6 +24,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -35,10 +36,10 @@
 import com.google.cloud.compute.v1.stub.TargetHttpProxyStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -88,19 +89,15 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteTargetHttpProxyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteTargetHttpProxyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockTargetHttpProxies.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteTargetHttpProxyTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalTargetHttpProxyName targetHttpProxy =
         ProjectGlobalTargetHttpProxyName.of("[PROJECT]", "[TARGET_HTTP_PROXY]");
 
-    Void actualResponse = client.deleteTargetHttpProxyAsync(targetHttpProxy).get();
+    EmptyMessage actualResponse = client.deleteTargetHttpProxyAsync(targetHttpProxy).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -135,7 +132,7 @@ public void deleteTargetHttpProxyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -204,19 +201,16 @@ public void getTargetHttpProxyExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertTargetHttpProxyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertTargetHttpProxyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockTargetHttpProxies.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertTargetHttpProxyTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     TargetHttpProxy targetHttpProxyResource = TargetHttpProxy.newBuilder().build();
 
-    Void actualResponse = client.insertTargetHttpProxyAsync(project, targetHttpProxyResource).get();
+    EmptyMessage actualResponse =
+        client.insertTargetHttpProxyAsync(project, targetHttpProxyResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -251,7 +245,7 @@ public void insertTargetHttpProxyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -318,20 +312,16 @@ public void listTargetHttpProxiesExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void setUrlMapTargetHttpProxyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("setUrlMapTargetHttpProxyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockTargetHttpProxies.addResponse(resultOperation);
+        Operation.newBuilder().setName("setUrlMapTargetHttpProxyTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectTargetHttpProxyName targetHttpProxy =
         ProjectTargetHttpProxyName.of("[PROJECT]", "[TARGET_HTTP_PROXY]");
     UrlMapReference urlMapReferenceResource = UrlMapReference.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.setUrlMapTargetHttpProxyAsync(targetHttpProxy, urlMapReferenceResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -368,7 +358,7 @@ public void setUrlMapTargetHttpProxyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpsProxyClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpsProxyClientTest.java
index 9af2f4e91f5c..760023abfef2 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpsProxyClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetHttpsProxyClientTest.java
@@ -27,6 +27,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -38,10 +39,10 @@
 import com.google.cloud.compute.v1.stub.TargetHttpsProxyStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -94,19 +95,15 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteTargetHttpsProxyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteTargetHttpsProxyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockTargetHttpsProxies.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteTargetHttpsProxyTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalTargetHttpsProxyName targetHttpsProxy =
         ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
 
-    Void actualResponse = client.deleteTargetHttpsProxyAsync(targetHttpsProxy).get();
+    EmptyMessage actualResponse = client.deleteTargetHttpsProxyAsync(targetHttpsProxy).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -141,7 +138,7 @@ public void deleteTargetHttpsProxyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -215,19 +212,15 @@ public void getTargetHttpsProxyExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertTargetHttpsProxyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertTargetHttpsProxyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockTargetHttpsProxies.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertTargetHttpsProxyTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     TargetHttpsProxy targetHttpsProxyResource = TargetHttpsProxy.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.insertTargetHttpsProxyAsync(project, targetHttpsProxyResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -263,7 +256,7 @@ public void insertTargetHttpsProxyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -330,21 +323,20 @@ public void listTargetHttpsProxiesExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void setQuicOverrideTargetHttpsProxyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("setQuicOverrideTargetHttpsProxyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockTargetHttpsProxies.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalTargetHttpsProxyName targetHttpsProxy =
         ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
     TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource =
         TargetHttpsProxiesSetQuicOverrideRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .setQuicOverrideTargetHttpsProxyAsync(
                 targetHttpsProxy, targetHttpsProxiesSetQuicOverrideRequestResource)
@@ -388,21 +380,20 @@ public void setQuicOverrideTargetHttpsProxyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setSslCertificatesTargetHttpsProxyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("setSslCertificatesTargetHttpsProxyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockTargetHttpsProxies.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectTargetHttpsProxyName targetHttpsProxy =
         ProjectTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
@@ -410,7 +401,7 @@ public void setSslCertificatesTargetHttpsProxyTest() throws Exception {
         targetHttpsProxiesSetSslCertificatesRequestResource =
             TargetHttpsProxiesSetSslCertificatesRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .setSslCertificatesTargetHttpsProxyAsync(
                 targetHttpsProxy, targetHttpsProxiesSetSslCertificatesRequestResource)
@@ -455,27 +446,26 @@ public void setSslCertificatesTargetHttpsProxyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setSslPolicyTargetHttpsProxyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("setSslPolicyTargetHttpsProxyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockTargetHttpsProxies.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalTargetHttpsProxyName targetHttpsProxy =
         ProjectGlobalTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
     SslPolicyReference sslPolicyReferenceResource = SslPolicyReference.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .setSslPolicyTargetHttpsProxyAsync(targetHttpsProxy, sslPolicyReferenceResource)
             .get();
@@ -514,27 +504,23 @@ public void setSslPolicyTargetHttpsProxyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setUrlMapTargetHttpsProxyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("setUrlMapTargetHttpsProxyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockTargetHttpsProxies.addResponse(resultOperation);
+        Operation.newBuilder().setName("setUrlMapTargetHttpsProxyTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectTargetHttpsProxyName targetHttpsProxy =
         ProjectTargetHttpsProxyName.of("[PROJECT]", "[TARGET_HTTPS_PROXY]");
     UrlMapReference urlMapReferenceResource = UrlMapReference.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.setUrlMapTargetHttpsProxyAsync(targetHttpsProxy, urlMapReferenceResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -571,7 +557,7 @@ public void setUrlMapTargetHttpsProxyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetInstanceClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetInstanceClientTest.java
index a5be7a09a67e..4ff3f2b0041e 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetInstanceClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetInstanceClientTest.java
@@ -25,6 +25,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -36,12 +37,12 @@
 import com.google.cloud.compute.v1.stub.TargetInstanceStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -154,19 +155,15 @@ public void aggregatedListTargetInstancesExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteTargetInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteTargetInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockTargetInstances.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteTargetInstanceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneTargetInstanceName targetInstance =
         ProjectZoneTargetInstanceName.of("[PROJECT]", "[ZONE]", "[TARGET_INSTANCE]");
 
-    Void actualResponse = client.deleteTargetInstanceAsync(targetInstance).get();
+    EmptyMessage actualResponse = client.deleteTargetInstanceAsync(targetInstance).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -201,7 +198,7 @@ public void deleteTargetInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -275,19 +272,16 @@ public void getTargetInstanceExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertTargetInstanceTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertTargetInstanceTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockTargetInstances.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertTargetInstanceTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]");
     TargetInstance targetInstanceResource = TargetInstance.newBuilder().build();
 
-    Void actualResponse = client.insertTargetInstanceAsync(zone, targetInstanceResource).get();
+    EmptyMessage actualResponse =
+        client.insertTargetInstanceAsync(zone, targetInstanceResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -322,7 +316,7 @@ public void insertTargetInstanceExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetPoolClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetPoolClientTest.java
index 31244c280c46..3c35427c9f20 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetPoolClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetPoolClientTest.java
@@ -31,6 +31,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -42,12 +43,12 @@
 import com.google.cloud.compute.v1.stub.TargetPoolStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -103,21 +104,17 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void addHealthCheckTargetPoolTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("addHealthCheckTargetPoolTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockTargetPools.addResponse(resultOperation);
+        Operation.newBuilder().setName("addHealthCheckTargetPoolTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionTargetPoolName targetPool =
         ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]");
     TargetPoolsAddHealthCheckRequest targetPoolsAddHealthCheckRequestResource =
         TargetPoolsAddHealthCheckRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .addHealthCheckTargetPoolAsync(targetPool, targetPoolsAddHealthCheckRequestResource)
             .get();
@@ -159,28 +156,24 @@ public void addHealthCheckTargetPoolExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void addInstanceTargetPoolTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("addInstanceTargetPoolTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockTargetPools.addResponse(resultOperation);
+        Operation.newBuilder().setName("addInstanceTargetPoolTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionTargetPoolName targetPool =
         ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]");
     TargetPoolsAddInstanceRequest targetPoolsAddInstanceRequestResource =
         TargetPoolsAddInstanceRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.addInstanceTargetPoolAsync(targetPool, targetPoolsAddInstanceRequestResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -218,7 +211,7 @@ public void addInstanceTargetPoolExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -288,19 +281,15 @@ public void aggregatedListTargetPoolsExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteTargetPoolTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteTargetPoolTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockTargetPools.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteTargetPoolTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionTargetPoolName targetPool =
         ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]");
 
-    Void actualResponse = client.deleteTargetPoolAsync(targetPool).get();
+    EmptyMessage actualResponse = client.deleteTargetPoolAsync(targetPool).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -335,7 +324,7 @@ public void deleteTargetPoolExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -461,19 +450,15 @@ public void getHealthTargetPoolExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertTargetPoolTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertTargetPoolTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockTargetPools.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertTargetPoolTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
     TargetPool targetPoolResource = TargetPool.newBuilder().build();
 
-    Void actualResponse = client.insertTargetPoolAsync(region, targetPoolResource).get();
+    EmptyMessage actualResponse = client.insertTargetPoolAsync(region, targetPoolResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -508,7 +493,7 @@ public void insertTargetPoolExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -575,21 +560,17 @@ public void listTargetPoolsExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void removeHealthCheckTargetPoolTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("removeHealthCheckTargetPoolTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockTargetPools.addResponse(resultOperation);
+        Operation.newBuilder().setName("removeHealthCheckTargetPoolTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionTargetPoolName targetPool =
         ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]");
     TargetPoolsRemoveHealthCheckRequest targetPoolsRemoveHealthCheckRequestResource =
         TargetPoolsRemoveHealthCheckRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .removeHealthCheckTargetPoolAsync(
                 targetPool, targetPoolsRemoveHealthCheckRequestResource)
@@ -632,28 +613,24 @@ public void removeHealthCheckTargetPoolExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void removeInstanceTargetPoolTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("removeInstanceTargetPoolTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockTargetPools.addResponse(resultOperation);
+        Operation.newBuilder().setName("removeInstanceTargetPoolTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionTargetPoolName targetPool =
         ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]");
     TargetPoolsRemoveInstanceRequest targetPoolsRemoveInstanceRequestResource =
         TargetPoolsRemoveInstanceRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .removeInstanceTargetPoolAsync(targetPool, targetPoolsRemoveInstanceRequestResource)
             .get();
@@ -695,28 +672,24 @@ public void removeInstanceTargetPoolExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setBackupTargetPoolTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("setBackupTargetPoolTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockTargetPools.addResponse(resultOperation);
+        Operation.newBuilder().setName("setBackupTargetPoolTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionTargetPoolName targetPool =
         ProjectRegionTargetPoolName.of("[PROJECT]", "[REGION]", "[TARGET_POOL]");
     Float failoverRatio = -8.6107481E7F;
     TargetReference targetReferenceResource = TargetReference.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.setBackupTargetPoolAsync(targetPool, failoverRatio, targetReferenceResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -754,7 +727,7 @@ public void setBackupTargetPoolExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetSslProxyClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetSslProxyClientTest.java
index d4d486698d29..c0c1ca767592 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetSslProxyClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetSslProxyClientTest.java
@@ -27,6 +27,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -38,10 +39,10 @@
 import com.google.cloud.compute.v1.stub.TargetSslProxyStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -94,19 +95,15 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteTargetSslProxyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteTargetSslProxyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockTargetSslProxies.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteTargetSslProxyTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalTargetSslProxyName targetSslProxy =
         ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]");
 
-    Void actualResponse = client.deleteTargetSslProxyAsync(targetSslProxy).get();
+    EmptyMessage actualResponse = client.deleteTargetSslProxyAsync(targetSslProxy).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -141,7 +138,7 @@ public void deleteTargetSslProxyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -215,19 +212,16 @@ public void getTargetSslProxyExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertTargetSslProxyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertTargetSslProxyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockTargetSslProxies.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertTargetSslProxyTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     TargetSslProxy targetSslProxyResource = TargetSslProxy.newBuilder().build();
 
-    Void actualResponse = client.insertTargetSslProxyAsync(project, targetSslProxyResource).get();
+    EmptyMessage actualResponse =
+        client.insertTargetSslProxyAsync(project, targetSslProxyResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -262,7 +256,7 @@ public void insertTargetSslProxyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -329,21 +323,20 @@ public void listTargetSslProxiesExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void setBackendServiceTargetSslProxyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("setBackendServiceTargetSslProxyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockTargetSslProxies.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalTargetSslProxyName targetSslProxy =
         ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]");
     TargetSslProxiesSetBackendServiceRequest targetSslProxiesSetBackendServiceRequestResource =
         TargetSslProxiesSetBackendServiceRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .setBackendServiceTargetSslProxyAsync(
                 targetSslProxy, targetSslProxiesSetBackendServiceRequestResource)
@@ -387,28 +380,27 @@ public void setBackendServiceTargetSslProxyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setProxyHeaderTargetSslProxyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("setProxyHeaderTargetSslProxyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockTargetSslProxies.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalTargetSslProxyName targetSslProxy =
         ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]");
     TargetSslProxiesSetProxyHeaderRequest targetSslProxiesSetProxyHeaderRequestResource =
         TargetSslProxiesSetProxyHeaderRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .setProxyHeaderTargetSslProxyAsync(
                 targetSslProxy, targetSslProxiesSetProxyHeaderRequestResource)
@@ -452,28 +444,27 @@ public void setProxyHeaderTargetSslProxyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setSslCertificatesTargetSslProxyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("setSslCertificatesTargetSslProxyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockTargetSslProxies.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalTargetSslProxyName targetSslProxy =
         ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]");
     TargetSslProxiesSetSslCertificatesRequest targetSslProxiesSetSslCertificatesRequestResource =
         TargetSslProxiesSetSslCertificatesRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .setSslCertificatesTargetSslProxyAsync(
                 targetSslProxy, targetSslProxiesSetSslCertificatesRequestResource)
@@ -517,27 +508,23 @@ public void setSslCertificatesTargetSslProxyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setSslPolicyTargetSslProxyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("setSslPolicyTargetSslProxyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockTargetSslProxies.addResponse(resultOperation);
+        Operation.newBuilder().setName("setSslPolicyTargetSslProxyTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalTargetSslProxyName targetSslProxy =
         ProjectGlobalTargetSslProxyName.of("[PROJECT]", "[TARGET_SSL_PROXY]");
     SslPolicyReference sslPolicyReferenceResource = SslPolicyReference.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.setSslPolicyTargetSslProxyAsync(targetSslProxy, sslPolicyReferenceResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -574,7 +561,7 @@ public void setSslPolicyTargetSslProxyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetTcpProxyClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetTcpProxyClientTest.java
index 24c9c3e3a480..6eb2687ed04d 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetTcpProxyClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetTcpProxyClientTest.java
@@ -25,6 +25,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -36,10 +37,10 @@
 import com.google.cloud.compute.v1.stub.TargetTcpProxyStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -90,19 +91,15 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteTargetTcpProxyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteTargetTcpProxyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockTargetTcpProxies.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteTargetTcpProxyTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalTargetTcpProxyName targetTcpProxy =
         ProjectGlobalTargetTcpProxyName.of("[PROJECT]", "[TARGET_TCP_PROXY]");
 
-    Void actualResponse = client.deleteTargetTcpProxyAsync(targetTcpProxy).get();
+    EmptyMessage actualResponse = client.deleteTargetTcpProxyAsync(targetTcpProxy).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -137,7 +134,7 @@ public void deleteTargetTcpProxyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -208,19 +205,16 @@ public void getTargetTcpProxyExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertTargetTcpProxyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertTargetTcpProxyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockTargetTcpProxies.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertTargetTcpProxyTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     TargetTcpProxy targetTcpProxyResource = TargetTcpProxy.newBuilder().build();
 
-    Void actualResponse = client.insertTargetTcpProxyAsync(project, targetTcpProxyResource).get();
+    EmptyMessage actualResponse =
+        client.insertTargetTcpProxyAsync(project, targetTcpProxyResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -255,7 +249,7 @@ public void insertTargetTcpProxyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -322,21 +316,20 @@ public void listTargetTcpProxiesExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void setBackendServiceTargetTcpProxyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("setBackendServiceTargetTcpProxyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockTargetTcpProxies.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalTargetTcpProxyName targetTcpProxy =
         ProjectGlobalTargetTcpProxyName.of("[PROJECT]", "[TARGET_TCP_PROXY]");
     TargetTcpProxiesSetBackendServiceRequest targetTcpProxiesSetBackendServiceRequestResource =
         TargetTcpProxiesSetBackendServiceRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .setBackendServiceTargetTcpProxyAsync(
                 targetTcpProxy, targetTcpProxiesSetBackendServiceRequestResource)
@@ -380,28 +373,27 @@ public void setBackendServiceTargetTcpProxyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void setProxyHeaderTargetTcpProxyTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
         Operation.newBuilder()
             .setName("setProxyHeaderTargetTcpProxyTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
+            .setStatus("DONE")
             .build();
-    mockTargetTcpProxies.addResponse(resultOperation);
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalTargetTcpProxyName targetTcpProxy =
         ProjectGlobalTargetTcpProxyName.of("[PROJECT]", "[TARGET_TCP_PROXY]");
     TargetTcpProxiesSetProxyHeaderRequest targetTcpProxiesSetProxyHeaderRequestResource =
         TargetTcpProxiesSetProxyHeaderRequest.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client
             .setProxyHeaderTargetTcpProxyAsync(
                 targetTcpProxy, targetTcpProxiesSetProxyHeaderRequestResource)
@@ -445,7 +437,7 @@ public void setProxyHeaderTargetTcpProxyExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetVpnGatewayClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetVpnGatewayClientTest.java
index 6e23c62afa69..5f61d068154c 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetVpnGatewayClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/TargetVpnGatewayClientTest.java
@@ -25,6 +25,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -36,12 +37,12 @@
 import com.google.cloud.compute.v1.stub.TargetVpnGatewayStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -155,19 +156,15 @@ public void aggregatedListTargetVpnGatewaysExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteTargetVpnGatewayTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteTargetVpnGatewayTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockTargetVpnGateways.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteTargetVpnGatewayTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionTargetVpnGatewayName targetVpnGateway =
         ProjectRegionTargetVpnGatewayName.of("[PROJECT]", "[REGION]", "[TARGET_VPN_GATEWAY]");
 
-    Void actualResponse = client.deleteTargetVpnGatewayAsync(targetVpnGateway).get();
+    EmptyMessage actualResponse = client.deleteTargetVpnGatewayAsync(targetVpnGateway).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -202,7 +199,7 @@ public void deleteTargetVpnGatewayExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -275,19 +272,15 @@ public void getTargetVpnGatewayExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertTargetVpnGatewayTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertTargetVpnGatewayTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockTargetVpnGateways.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertTargetVpnGatewayTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
     TargetVpnGateway targetVpnGatewayResource = TargetVpnGateway.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.insertTargetVpnGatewayAsync(region, targetVpnGatewayResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -323,7 +316,7 @@ public void insertTargetVpnGatewayExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/UrlMapClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/UrlMapClientTest.java
index f994a25b9339..98ea73829862 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/UrlMapClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/UrlMapClientTest.java
@@ -27,6 +27,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -38,11 +39,11 @@
 import com.google.cloud.compute.v1.stub.UrlMapStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -95,18 +96,14 @@ public static void tearDown() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteUrlMapTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteUrlMapTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockUrlMaps.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteUrlMapTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]");
 
-    Void actualResponse = client.deleteUrlMapAsync(urlMap).get();
+    EmptyMessage actualResponse = client.deleteUrlMapAsync(urlMap).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -140,7 +137,7 @@ public void deleteUrlMapExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -209,19 +206,15 @@ public void getUrlMapExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertUrlMapTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertUrlMapTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockUrlMaps.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertUrlMapTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectName project = ProjectName.of("[PROJECT]");
     UrlMap urlMapResource = UrlMap.newBuilder().build();
 
-    Void actualResponse = client.insertUrlMapAsync(project, urlMapResource).get();
+    EmptyMessage actualResponse = client.insertUrlMapAsync(project, urlMapResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -256,27 +249,23 @@ public void insertUrlMapExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void invalidateCacheUrlMapTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("invalidateCacheUrlMapTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockUrlMaps.addResponse(resultOperation);
+        Operation.newBuilder().setName("invalidateCacheUrlMapTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]");
     CacheInvalidationRule cacheInvalidationRuleResource =
         CacheInvalidationRule.newBuilder().build();
 
-    Void actualResponse =
+    EmptyMessage actualResponse =
         client.invalidateCacheUrlMapAsync(urlMap, cacheInvalidationRuleResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
@@ -313,7 +302,7 @@ public void invalidateCacheUrlMapExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -380,20 +369,16 @@ public void listUrlMapsExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void patchUrlMapTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("patchUrlMapTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockUrlMaps.addResponse(resultOperation);
+        Operation.newBuilder().setName("patchUrlMapTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]");
     UrlMap urlMapResource = UrlMap.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse = client.patchUrlMapAsync(urlMap, urlMapResource, fieldMask).get();
+    EmptyMessage actualResponse = client.patchUrlMapAsync(urlMap, urlMapResource, fieldMask).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -429,27 +414,23 @@ public void patchUrlMapExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
   @Test
   @SuppressWarnings("all")
   public void updateUrlMapTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("updateUrlMapTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockUrlMaps.addResponse(resultOperation);
+        Operation.newBuilder().setName("updateUrlMapTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectGlobalUrlMapName urlMap = ProjectGlobalUrlMapName.of("[PROJECT]", "[URL_MAP]");
     UrlMap urlMapResource = UrlMap.newBuilder().build();
     List fieldMask = new ArrayList<>();
 
-    Void actualResponse = client.updateUrlMapAsync(urlMap, urlMapResource, fieldMask).get();
+    EmptyMessage actualResponse = client.updateUrlMapAsync(urlMap, urlMapResource, fieldMask).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -485,7 +466,7 @@ public void updateUrlMapExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/VpnTunnelClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/VpnTunnelClientTest.java
index d2db0688ee32..e128bbe69732 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/VpnTunnelClientTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/VpnTunnelClientTest.java
@@ -25,6 +25,7 @@
 
 import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.httpjson.ApiMethodDescriptor;
+import com.google.api.gax.httpjson.EmptyMessage;
 import com.google.api.gax.httpjson.GaxHttpJsonProperties;
 import com.google.api.gax.httpjson.testing.MockHttpService;
 import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -36,12 +37,12 @@
 import com.google.cloud.compute.v1.stub.VpnTunnelStubSettings;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Lists;
-import com.google.protobuf.Any;
 import java.io.IOException;
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.AfterClass;
 import org.junit.Assert;
@@ -154,19 +155,15 @@ public void aggregatedListVpnTunnelsExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void deleteVpnTunnelTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("deleteVpnTunnelTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockVpnTunnels.addResponse(resultOperation);
+        Operation.newBuilder().setName("deleteVpnTunnelTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionVpnTunnelName vpnTunnel =
         ProjectRegionVpnTunnelName.of("[PROJECT]", "[REGION]", "[VPN_TUNNEL]");
 
-    Void actualResponse = client.deleteVpnTunnelAsync(vpnTunnel).get();
+    EmptyMessage actualResponse = client.deleteVpnTunnelAsync(vpnTunnel).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -201,7 +198,7 @@ public void deleteVpnTunnelExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
@@ -288,19 +285,15 @@ public void getVpnTunnelExceptionTest() throws Exception {
   @Test
   @SuppressWarnings("all")
   public void insertVpnTunnelTest() throws Exception {
-    Void expectedResponse = null;
+    EmptyMessage expectedResponse = null;
     Operation resultOperation =
-        Operation.newBuilder()
-            .setName("insertVpnTunnelTest")
-            .setDone(true)
-            .setResponse(Any.pack(expectedResponse))
-            .build();
-    mockVpnTunnels.addResponse(resultOperation);
+        Operation.newBuilder().setName("insertVpnTunnelTest").setStatus("DONE").build();
+    mockService.addResponse(resultOperation);
 
     ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
     VpnTunnel vpnTunnelResource = VpnTunnel.newBuilder().build();
 
-    Void actualResponse = client.insertVpnTunnelAsync(region, vpnTunnelResource).get();
+    EmptyMessage actualResponse = client.insertVpnTunnelAsync(region, vpnTunnelResource).get();
     Assert.assertEquals(expectedResponse, actualResponse);
 
     List actualRequests = mockService.getRequestPaths();
@@ -335,7 +328,7 @@ public void insertVpnTunnelExceptionTest() throws Exception {
     } catch (ExecutionException e) {
       Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass());
       InvalidArgumentException apiException = (InvalidArgumentException) e.getCause();
-      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
+      Assert.assertEquals(Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
     }
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/it/ITComputeTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/it/ITComputeTest.java
index 02838f2cbc3f..078b726ca6ba 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/it/ITComputeTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/it/ITComputeTest.java
@@ -18,6 +18,8 @@
 import static com.google.common.truth.Truth.assertThat;
 
 import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.longrunning.OperationFuture;
 import com.google.api.gax.paging.Page;
 import com.google.api.gax.rpc.ApiException;
 import com.google.api.gax.rpc.NotFoundException;
@@ -150,24 +152,24 @@ public static void beforeClass() throws Exception {
   private static void removeResources(List> exceptionTypes)
       throws Exception {
     try {
-      instanceClient.deleteInstance(INSTANCE_NAME);
+      instanceClient.deleteInstanceAsync(INSTANCE_NAME);
       Thread.sleep(10000);
     } catch (Exception e) {
       if (isNotExceptionType(exceptionTypes, e)) throw e;
     }
     Thread.sleep(10000);
     try {
-      diskClient.deleteDisk(DISK_NAME);
+      diskClient.deleteDiskAsync(DISK_NAME);
     } catch (Exception e) {
       if (isNotExceptionType(exceptionTypes, e)) throw e;
     }
     try {
-      instanceClient.deleteInstance(INSTANCE_NAME);
+      instanceClient.deleteInstanceAsync(INSTANCE_NAME);
     } catch (Exception e) {
       if (isNotExceptionType(exceptionTypes, e)) throw e;
     }
     try {
-      imageClient.deleteImage(IMAGE_NAME);
+      imageClient.deleteImageAsync(IMAGE_NAME);
     } catch (Exception e) {
       if (isNotExceptionType(exceptionTypes, e)) throw e;
     }
@@ -235,7 +237,7 @@ public void testDetachDisk() throws Exception {
             .setMachineType(MACHINE_TYPE_NAME.toString())
             .addDisks(bootDisk)
             .build();
-    Operation op1 = instanceClient.insertInstance(PROJECT_ZONE_NAME, instanceResource);
+    OperationFuture op1 = instanceClient.insertInstanceAsync(PROJECT_ZONE_NAME, instanceResource);
     System.out.println(String.format("Instance created: %s", op1.toString()));
 
     // Insert a disk.
@@ -245,7 +247,7 @@ public void testDetachDisk() throws Exception {
             .setSizeGb(String.valueOf(7))
             .setType(diskTypeName.toString())
             .build();
-    Operation op2 = diskClient.insertDisk(PROJECT_ZONE_NAME, disk);
+    OperationFuture op2 = diskClient.insertDiskAsync(PROJECT_ZONE_NAME, disk);
     System.out.println(String.format("Disk created: %s", op2.toString()));
     Thread.sleep(10000);
 
@@ -257,12 +259,12 @@ public void testDetachDisk() throws Exception {
             .setMode("READ_WRITE")
             .setSource(DISK_NAME.toString())
             .build();
-    Operation op3 = instanceClient.attachDiskInstance(INSTANCE_NAME, false, attachedDisk);
+    OperationFuture op3 = instanceClient.attachDiskInstanceAsync(INSTANCE_NAME, false, attachedDisk);
     System.out.println(String.format("Disk attached: %s", op3.toString()));
     Thread.sleep(10000);
     System.out.println("----------------------------------------");
 
-    Operation op4 = instanceClient.detachDiskInstance(INSTANCE_NAME, DISK_NAME.getDisk());
+    OperationFuture op4 = instanceClient.detachDiskInstanceAsync(INSTANCE_NAME, DISK_NAME.getDisk());
     System.out.println(String.format("Disk detached: %s", op4.toString()));
   }
 

From 5be778e0bdd17bb49f4f192caff760ab660088ac Mon Sep 17 00:00:00 2001
From: Andrea Lin 
Date: Thu, 14 Feb 2019 17:06:07 -0800
Subject: [PATCH 16/27] kinda broken, kinda workinggit st

---
 .../cloud/compute/v1/it/ITComputeTest.java    | 40 ++++++++++++-------
 1 file changed, 25 insertions(+), 15 deletions(-)

diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/it/ITComputeTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/it/ITComputeTest.java
index 078b726ca6ba..e48a302f2170 100644
--- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/it/ITComputeTest.java
+++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/it/ITComputeTest.java
@@ -64,6 +64,9 @@
 import java.util.LinkedList;
 import java.util.List;
 import java.util.UUID;
+import java.util.concurrent.TimeUnit;
+import java.util.logging.Level;
+import java.util.logging.Logger;
 import org.junit.AfterClass;
 import org.junit.BeforeClass;
 import org.junit.Rule;
@@ -72,6 +75,8 @@
 
 public class ITComputeTest {
 
+  private static final Logger log = Logger.getLogger(ITComputeTest.class.getName());
+
   private static final String ZONE = "us-west1-a";
   private static final String DISK_TYPE = "local-ssd";
   private static final String DEFAULT_PROJECT = ServiceOptions.getDefaultProjectId();
@@ -109,6 +114,8 @@ public class ITComputeTest {
 
   @BeforeClass
   public static void beforeClass() throws Exception {
+    Logger.getLogger("").setLevel(Level.WARNING);
+
     Credentials credentials =
         GoogleCredentials.getApplicationDefault()
             .createScoped(DiskTypeSettings.getDefaultServiceScopes());
@@ -152,24 +159,26 @@ public static void beforeClass() throws Exception {
   private static void removeResources(List> exceptionTypes)
       throws Exception {
     try {
-      instanceClient.deleteInstanceAsync(INSTANCE_NAME);
-      Thread.sleep(10000);
+      OperationFuture future = instanceClient.deleteInstanceAsync(INSTANCE_NAME);
+      future.get(10, TimeUnit.SECONDS); // Block until operation completes.
     } catch (Exception e) {
       if (isNotExceptionType(exceptionTypes, e)) throw e;
     }
-    Thread.sleep(10000);
     try {
-      diskClient.deleteDiskAsync(DISK_NAME);
+      OperationFuture future = diskClient.deleteDiskAsync(DISK_NAME);
+      future.get(10, TimeUnit.SECONDS); // Block until operation completes.
     } catch (Exception e) {
       if (isNotExceptionType(exceptionTypes, e)) throw e;
     }
     try {
-      instanceClient.deleteInstanceAsync(INSTANCE_NAME);
+      OperationFuture future = instanceClient.deleteInstanceAsync(INSTANCE_NAME);
+      future.get(10, TimeUnit.SECONDS); // Block until operation completes.
     } catch (Exception e) {
       if (isNotExceptionType(exceptionTypes, e)) throw e;
     }
     try {
-      imageClient.deleteImageAsync(IMAGE_NAME);
+      OperationFuture future = imageClient.deleteImageAsync(IMAGE_NAME);
+      future.get(10, TimeUnit.SECONDS); // Block until operation completes.
     } catch (Exception e) {
       if (isNotExceptionType(exceptionTypes, e)) throw e;
     }
@@ -181,6 +190,9 @@ private static boolean isNotExceptionType(
       if (type.isInstance(e)) {
         return false;
       }
+      if (e.getCause() != null && type.isInstance(e.getCause())) {
+        return false;
+      }
     }
     return true;
   }
@@ -206,8 +218,6 @@ public void testDetachDisk() throws Exception {
     // Fetch a subnetwork, assuming there is one. Projects start with a default network.
     Iterable subnetworks =
         subNetworkClient.aggregatedListSubnetworks(DEFAULT_PROJECT).iterateAll();
-    // TODO(andrealin): Implement futures for Compute methods.
-    Thread.sleep(10000);
     Subnetwork subnetwork = subnetworks.iterator().next().getSubnetworksList().get(0);
 
     NetworkInterface networkInterface =
@@ -238,7 +248,8 @@ public void testDetachDisk() throws Exception {
             .addDisks(bootDisk)
             .build();
     OperationFuture op1 = instanceClient.insertInstanceAsync(PROJECT_ZONE_NAME, instanceResource);
-    System.out.println(String.format("Instance created: %s", op1.toString()));
+    op1.get(10, TimeUnit.SECONDS); // Blocking until operation completes or times out.
+    log.log(Level.INFO, (String.format("Instance created: %s", op1.toString())));
 
     // Insert a disk.
     Disk disk =
@@ -248,8 +259,8 @@ public void testDetachDisk() throws Exception {
             .setType(diskTypeName.toString())
             .build();
     OperationFuture op2 = diskClient.insertDiskAsync(PROJECT_ZONE_NAME, disk);
-    System.out.println(String.format("Disk created: %s", op2.toString()));
-    Thread.sleep(10000);
+    log.log(Level.INFO, String.format("Disk created: %s", op2.toString()));
+    op1.get(10, TimeUnit.SECONDS); // Blocking until operation completes or times out.
 
     // Attach the disk to the instance.
     AttachedDisk attachedDisk =
@@ -260,12 +271,11 @@ public void testDetachDisk() throws Exception {
             .setSource(DISK_NAME.toString())
             .build();
     OperationFuture op3 = instanceClient.attachDiskInstanceAsync(INSTANCE_NAME, false, attachedDisk);
-    System.out.println(String.format("Disk attached: %s", op3.toString()));
-    Thread.sleep(10000);
-    System.out.println("----------------------------------------");
+    log.log(Level.INFO, String.format("Disk attached: %s", op3.toString()));
+    op1.get(10, TimeUnit.SECONDS); // Blocking until operation completes or times out.
 
     OperationFuture op4 = instanceClient.detachDiskInstanceAsync(INSTANCE_NAME, DISK_NAME.getDisk());
-    System.out.println(String.format("Disk detached: %s", op4.toString()));
+    log.log(Level.INFO, String.format("Disk detached: %s", op4.toString()));
   }
 
   @Test

From 991225b9f88a56b49c04399771b79e64817bc27f Mon Sep 17 00:00:00 2001
From: Andrea Lin 
Date: Fri, 15 Feb 2019 13:38:53 -0800
Subject: [PATCH 17/27] changes to LRO compute

---
 .../ComputeLongRunningClientFactory.java      | 21 +++++++
 .../ComputeLongRunningInterface.java          | 57 +++++++++++++++++++
 .../longrunning/ComputeOperationSnapshot.java | 11 +++-
 ...ient.java => GlobalLongRunningClient.java} | 17 ++----
 .../longrunning/RegionLongRunningClient.java  | 55 ++++++++++++++++++
 .../longrunning/ZoneLongRunningClient.java    | 55 ++++++++++++++++++
 .../stub/HttpJsonLicenseCallableFactory.java  |  5 +-
 ...sonRegionInstanceGroupCallableFactory.java |  4 +-
 8 files changed, 210 insertions(+), 15 deletions(-)
 create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClientFactory.java
 create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningInterface.java
 rename google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/{ComputeLongRunningClient.java => GlobalLongRunningClient.java} (81%)
 create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/RegionLongRunningClient.java
 create mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ZoneLongRunningClient.java

diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClientFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClientFactory.java
new file mode 100644
index 000000000000..ae581ba0ba69
--- /dev/null
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClientFactory.java
@@ -0,0 +1,21 @@
+package com.google.cloud.compute.longrunning;
+
+import com.google.cloud.compute.v1.stub.GlobalOperationStub;
+import com.google.cloud.compute.v1.stub.RegionOperationStub;
+import com.google.cloud.compute.v1.stub.ZoneOperationStub;
+
+/** Factory for creating Compute LongRunningClients for a given *OperationStub. */
+public class ComputeLongRunningClientFactory {
+
+  public static GlobalLongRunningClient create(GlobalOperationStub operationStub) {
+    return new GlobalLongRunningClient(operationStub);
+  }
+
+  public static ZoneLongRunningClient create(ZoneOperationStub operationStub) {
+    return new ZoneLongRunningClient(operationStub);
+  }
+
+  public static RegionLongRunningClient create(RegionOperationStub operationStub) {
+    return new RegionLongRunningClient(operationStub);
+  }
+}
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningInterface.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningInterface.java
new file mode 100644
index 000000000000..545a47e0a6b3
--- /dev/null
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningInterface.java
@@ -0,0 +1,57 @@
+package com.google.cloud.compute.longrunning;
+
+import com.google.api.core.ApiFunction;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.longrunning.OperationSnapshot;
+import com.google.api.gax.rpc.LongRunningClient;
+import com.google.api.gax.rpc.TranslatingUnaryCallable;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.v1.Operation;
+
+
+/** Implementation of LongRunningClient for the Compute client.
+ *  Package-private for internal use. */
+abstract class ComputeLongRunningInterface implements LongRunningClient {
+
+
+  abstract UnaryCallable getGetOperationCallable();
+  abstract UnaryCallable getDeleteOperationCallable();
+
+  /* Function that takes an Operation name as a String and creates a Get request object from it. */
+  abstract ApiFunction createGetRequest();
+
+  /* Function that takes an Operation name as a String and creates a Delete request object from it. */
+  abstract ApiFunction createDeleteRequest();
+
+
+  @Override
+  public UnaryCallable getOperationCallable() {
+    return TranslatingUnaryCallable.create(
+        getGetOperationCallable(),
+        createGetRequest(),
+        new ApiFunction() {
+          @Override
+          public OperationSnapshot apply(Operation operation) {
+            return ComputeOperationSnapshot.create(operation);
+          }
+        });
+  }
+
+  @Override
+  public UnaryCallable cancelOperationCallable() {
+    throw new UnsupportedOperationException("Cancelling operations is not supported by this API.");
+  }
+
+  @Override
+  public UnaryCallable deleteOperationCallable() {
+    return TranslatingUnaryCallable.create(
+        getDeleteOperationCallable(),
+        createDeleteRequest(),
+        new ApiFunction() {
+          @Override
+          public Void apply(EmptyMessage empty) {
+            return null;
+          }
+        });
+  }
+}
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java
index f233bd0beece..46fe6cfcd427 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java
@@ -4,11 +4,19 @@
 import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.StatusCode;
 import com.google.cloud.compute.v1.Operation;
+import com.google.cloud.compute.v1.ProjectGlobalOperationName;
+import com.google.cloud.compute.v1.ProjectRegionOperationName;
+import com.google.cloud.compute.v1.ProjectZoneOperationName;
+import com.google.common.base.Strings;
+import java.util.logging.Level;
+import java.util.logging.Logger;
 
 /** Implementation of a long-running operation for the Compute client.
  *  Wraps a compute Operation object. */
 public class ComputeOperationSnapshot implements OperationSnapshot {
 
+  private static final Logger logger = Logger.getLogger(ComputeOperationSnapshot.class.getName());
+
   public enum Status {
     PENDING,
     RUNNING,
@@ -26,8 +34,9 @@ public static ComputeOperationSnapshot create(Operation operation) {
   }
 
   @Override
+  // Returns full resource name of the operation.
   public String getName() {
-    return operation.getName();
+    return operation.getSelfLink();
   }
 
   @Override
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/GlobalLongRunningClient.java
similarity index 81%
rename from google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java
rename to google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/GlobalLongRunningClient.java
index 201f8156c616..d0822b2a34fd 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/GlobalLongRunningClient.java
@@ -11,17 +11,16 @@
 import com.google.cloud.compute.v1.GlobalOperationClient;
 import com.google.cloud.compute.v1.Operation;
 import com.google.cloud.compute.v1.stub.GlobalOperationStub;
+import com.google.cloud.compute.v1.stub.RegionOperationStub;
+import com.google.cloud.compute.v1.stub.ZoneOperationStub;
 
-/** Implementation of LongRunningClient for the Compute client. */
-public class ComputeLongRunningClient implements LongRunningClient {
+/** Implementation of LongRunningClient for the Compute client.
+ *  Package-private for internal use. */
+class GlobalLongRunningClient implements LongRunningClient {
 
   private final GlobalOperationStub operationStub;
 
-  public ComputeLongRunningClient(GlobalOperationClient globalOperationClient) {
-    this.operationStub = globalOperationClient.getStub();
-  }
-
-  public ComputeLongRunningClient(GlobalOperationStub operationStub) {
+  public GlobalLongRunningClient(GlobalOperationStub operationStub) {
     this.operationStub = operationStub;
   }
 
@@ -65,8 +64,4 @@ public Void apply(EmptyMessage empty) {
           }
         });
   }
-
-  public static ComputeLongRunningClient create(GlobalOperationStub operationsStub) {
-    return new ComputeLongRunningClient(operationsStub);
-  }
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/RegionLongRunningClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/RegionLongRunningClient.java
new file mode 100644
index 000000000000..8190b945d7cb
--- /dev/null
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/RegionLongRunningClient.java
@@ -0,0 +1,55 @@
+package com.google.cloud.compute.longrunning;
+
+import com.google.api.core.ApiFunction;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.v1.DeleteRegionOperationHttpRequest;
+import com.google.cloud.compute.v1.GetRegionOperationHttpRequest;
+import com.google.cloud.compute.v1.Operation;
+import com.google.cloud.compute.v1.stub.RegionOperationStub;
+
+
+/** Implementation of LongRunningClient for the Compute client.
+ *  Package-private for internal use. */
+class RegionLongRunningClient extends ComputeLongRunningInterface {
+
+  private final RegionOperationStub operationStub;
+
+  private final ApiFunction createGetRequestFunc = new ApiFunction() {
+    public GetRegionOperationHttpRequest apply(String operationSelfLink) {
+      // Make sure operation is a formatted string.
+      return GetRegionOperationHttpRequest.newBuilder().setOperation(operationSelfLink).build();
+    }
+  };
+
+  private final ApiFunction createDeleteRequestFunc = new ApiFunction() {
+    public DeleteRegionOperationHttpRequest apply(String operationSelfLink) {
+      // Make sure operation is a formatted string.
+      return DeleteRegionOperationHttpRequest.newBuilder().setOperation(operationSelfLink).build();
+    }
+  };
+
+  RegionLongRunningClient(RegionOperationStub operationStub) {
+    this.operationStub = operationStub;
+  }
+
+  UnaryCallable getGetOperationCallable() {
+    return operationStub.getRegionOperationCallable();
+  }
+
+  UnaryCallable getDeleteOperationCallable() {
+    return operationStub.deleteRegionOperationCallable();
+  }
+
+  /* Function that takes an Operation name as a String and creates a Get request object from it. */
+  ApiFunction createGetRequest() {
+    return createGetRequestFunc;
+  }
+
+  /* Function that takes an Operation name as a String and creates a Delete request object from it. */
+  ApiFunction createDeleteRequest() {
+    return createDeleteRequestFunc;
+  }
+
+
+}
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ZoneLongRunningClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ZoneLongRunningClient.java
new file mode 100644
index 000000000000..8c0e236ad8a7
--- /dev/null
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ZoneLongRunningClient.java
@@ -0,0 +1,55 @@
+package com.google.cloud.compute.longrunning;
+
+import com.google.api.core.ApiFunction;
+import com.google.api.gax.httpjson.EmptyMessage;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.v1.DeleteZoneOperationHttpRequest;
+import com.google.cloud.compute.v1.GetZoneOperationHttpRequest;
+import com.google.cloud.compute.v1.Operation;
+import com.google.cloud.compute.v1.stub.ZoneOperationStub;
+
+
+/** Implementation of LongRunningClient for the Compute client.
+ *  Package-private for internal use. */
+class ZoneLongRunningClient extends ComputeLongRunningInterface {
+
+  private final ZoneOperationStub operationStub;
+
+  private final ApiFunction createGetRequestFunc = new ApiFunction() {
+    public GetZoneOperationHttpRequest apply(String operationSelfLink) {
+      // Make sure operation is a formatted string.
+      return GetZoneOperationHttpRequest.newBuilder().setOperation(operationSelfLink).build();
+    }
+  };
+
+  private final ApiFunction createDeleteRequestFunc = new ApiFunction() {
+    public DeleteZoneOperationHttpRequest apply(String operationSelfLink) {
+      // Make sure operation is a formatted string.
+      return DeleteZoneOperationHttpRequest.newBuilder().setOperation(operationSelfLink).build();
+    }
+  };
+
+  ZoneLongRunningClient(ZoneOperationStub operationStub) {
+    this.operationStub = operationStub;
+  }
+
+  UnaryCallable getGetOperationCallable() {
+    return operationStub.getZoneOperationCallable();
+  }
+
+  UnaryCallable getDeleteOperationCallable() {
+    return operationStub.deleteZoneOperationCallable();
+  }
+
+  /* Function that takes an Operation name as a String and creates a Get request object from it. */
+  ApiFunction createGetRequest() {
+    return createGetRequestFunc;
+  }
+
+  /* Function that takes an Operation name as a String and creates a Delete request object from it. */
+  ApiFunction createDeleteRequest() {
+    return createDeleteRequestFunc;
+  }
+
+
+}
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCallableFactory.java
index cc5ac6e71ad2..d89e23ba6e6f 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCallableFactory.java
@@ -23,12 +23,13 @@
 import com.google.api.gax.rpc.BatchingCallSettings;
 import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.LongRunningClient;
 import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
-import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory;
 import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
 import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
@@ -67,7 +68,7 @@ OperationCallable createOperationCallable(
             httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
     UnaryCallable initialCallable =
         new OperationSnapshotCallable<>(initialHttpCallable);
-    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub);
     OperationCallable operationCallable =
         Callables.longRunningOperation(
             initialCallable, operationCallSettings, clientContext, longRunningClient);
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java
index be3767a0e20f..230a4a3e0a1f 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java
@@ -23,12 +23,14 @@
 import com.google.api.gax.rpc.BatchingCallSettings;
 import com.google.api.gax.rpc.Callables;
 import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.LongRunningClient;
 import com.google.api.gax.rpc.OperationCallSettings;
 import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.PagedCallSettings;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.longrunning.ComputeLongRunningClient;
+import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory;
 import com.google.cloud.compute.longrunning.OperationSnapshotCallable;
 import com.google.cloud.compute.v1.Operation;
 import javax.annotation.Generated;
@@ -67,7 +69,7 @@ OperationCallable createOperationCallable(
             httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext);
     UnaryCallable initialCallable =
         new OperationSnapshotCallable<>(initialHttpCallable);
-    ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub);
+    LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub);
     OperationCallable operationCallable =
         Callables.longRunningOperation(
             initialCallable, operationCallSettings, clientContext, longRunningClient);

From 3abfff158864895b85b2fdf2e69722c31c28d8d6 Mon Sep 17 00:00:00 2001
From: Andrea Lin 
Date: Fri, 15 Feb 2019 16:42:14 -0800
Subject: [PATCH 18/27] ITCompute Test works!

---
 .../ComputeLongRunningInterface.java          | 10 ++---
 .../longrunning/ComputeOperationSnapshot.java | 11 ++---
 .../longrunning/GlobalLongRunningClient.java  |  6 +--
 .../longrunning/RegionLongRunningClient.java  | 40 +++++++++---------
 .../longrunning/ZoneLongRunningClient.java    | 40 +++++++++---------
 .../cloud/compute/v1/AddressClient.java       | 10 ++---
 .../cloud/compute/v1/AutoscalerClient.java    | 10 ++---
 .../google/cloud/compute/v1/DiskClient.java   | 10 ++---
 .../compute/v1/ForwardingRuleClient.java      | 10 ++---
 .../cloud/compute/v1/InstanceClient.java      | 18 ++++----
 .../cloud/compute/v1/InstanceGroupClient.java | 10 ++---
 .../v1/InstanceGroupManagerClient.java        | 10 ++---
 .../v1/InterconnectAttachmentClient.java      | 10 ++---
 .../cloud/compute/v1/NodeGroupClient.java     | 10 ++---
 .../cloud/compute/v1/NodeTemplateClient.java  | 10 ++---
 .../compute/v1/RegionAutoscalerClient.java    | 10 ++---
 .../v1/RegionBackendServiceClient.java        | 10 ++---
 .../compute/v1/RegionCommitmentClient.java    | 10 ++---
 .../cloud/compute/v1/RegionDiskClient.java    | 10 ++---
 .../compute/v1/RegionInstanceGroupClient.java | 10 ++---
 .../v1/RegionInstanceGroupManagerClient.java  | 10 ++---
 .../google/cloud/compute/v1/RouterClient.java | 10 ++---
 .../cloud/compute/v1/SubnetworkClient.java    | 10 ++---
 .../compute/v1/TargetInstanceClient.java      | 10 ++---
 .../cloud/compute/v1/TargetPoolClient.java    | 10 ++---
 .../compute/v1/TargetVpnGatewayClient.java    | 10 ++---
 .../cloud/compute/v1/VpnTunnelClient.java     | 10 ++---
 .../cloud/compute/v1/stub/AddressStub.java    |  2 +-
 .../cloud/compute/v1/stub/AutoscalerStub.java |  2 +-
 .../cloud/compute/v1/stub/DiskStub.java       |  2 +-
 .../compute/v1/stub/ForwardingRuleStub.java   |  2 +-
 ...ttpJsonAcceleratorTypeCallableFactory.java | 21 ++--------
 .../stub/HttpJsonAddressCallableFactory.java  |  9 ++--
 .../compute/v1/stub/HttpJsonAddressStub.java  |  6 +--
 .../HttpJsonAutoscalerCallableFactory.java    |  9 ++--
 .../v1/stub/HttpJsonAutoscalerStub.java       |  6 +--
 .../HttpJsonBackendBucketCallableFactory.java |  5 ++-
 ...HttpJsonBackendServiceCallableFactory.java |  5 ++-
 .../v1/stub/HttpJsonDiskCallableFactory.java  |  9 ++--
 .../compute/v1/stub/HttpJsonDiskStub.java     |  6 +--
 .../stub/HttpJsonDiskTypeCallableFactory.java | 21 ++--------
 .../stub/HttpJsonFirewallCallableFactory.java |  5 ++-
 ...HttpJsonForwardingRuleCallableFactory.java |  9 ++--
 .../v1/stub/HttpJsonForwardingRuleStub.java   |  6 +--
 .../HttpJsonGlobalAddressCallableFactory.java |  5 ++-
 ...onGlobalForwardingRuleCallableFactory.java |  5 ++-
 ...ttpJsonGlobalOperationCallableFactory.java | 21 ++--------
 .../HttpJsonHealthCheckCallableFactory.java   |  5 ++-
 ...ttpJsonHttpHealthCheckCallableFactory.java |  5 ++-
 ...tpJsonHttpsHealthCheckCallableFactory.java |  5 ++-
 .../v1/stub/HttpJsonImageCallableFactory.java |  5 ++-
 .../stub/HttpJsonInstanceCallableFactory.java |  9 ++--
 .../HttpJsonInstanceGroupCallableFactory.java |  9 ++--
 ...onInstanceGroupManagerCallableFactory.java |  9 ++--
 .../HttpJsonInstanceGroupManagerStub.java     |  6 +--
 .../v1/stub/HttpJsonInstanceGroupStub.java    |  6 +--
 .../compute/v1/stub/HttpJsonInstanceStub.java | 10 ++---
 ...tpJsonInstanceTemplateCallableFactory.java |  5 ++-
 ...InterconnectAttachmentCallableFactory.java |  9 ++--
 .../HttpJsonInterconnectAttachmentStub.java   |  6 +--
 .../HttpJsonInterconnectCallableFactory.java  |  5 ++-
 ...onInterconnectLocationCallableFactory.java | 21 ++--------
 .../HttpJsonLicenseCodeCallableFactory.java   | 21 ++--------
 .../HttpJsonMachineTypeCallableFactory.java   | 21 ++--------
 .../stub/HttpJsonNetworkCallableFactory.java  |  5 ++-
 .../HttpJsonNodeGroupCallableFactory.java     |  9 ++--
 .../v1/stub/HttpJsonNodeGroupStub.java        |  6 +--
 .../HttpJsonNodeTemplateCallableFactory.java  |  9 ++--
 .../v1/stub/HttpJsonNodeTemplateStub.java     |  6 +--
 .../stub/HttpJsonNodeTypeCallableFactory.java | 21 ++--------
 .../stub/HttpJsonProjectCallableFactory.java  |  5 ++-
 ...tpJsonRegionAutoscalerCallableFactory.java |  9 ++--
 .../v1/stub/HttpJsonRegionAutoscalerStub.java |  6 +--
 ...onRegionBackendServiceCallableFactory.java |  9 ++--
 .../HttpJsonRegionBackendServiceStub.java     |  6 +--
 .../stub/HttpJsonRegionCallableFactory.java   | 21 ++--------
 ...tpJsonRegionCommitmentCallableFactory.java |  9 ++--
 .../v1/stub/HttpJsonRegionCommitmentStub.java |  6 +--
 .../HttpJsonRegionDiskCallableFactory.java    |  9 ++--
 .../v1/stub/HttpJsonRegionDiskStub.java       |  6 +--
 ...HttpJsonRegionDiskTypeCallableFactory.java | 21 ++--------
 ...sonRegionInstanceGroupCallableFactory.java |  5 +--
 ...onInstanceGroupManagerCallableFactory.java |  9 ++--
 ...ttpJsonRegionInstanceGroupManagerStub.java |  6 +--
 .../stub/HttpJsonRegionInstanceGroupStub.java |  6 +--
 ...ttpJsonRegionOperationCallableFactory.java | 21 ++--------
 .../v1/stub/HttpJsonRouteCallableFactory.java |  5 ++-
 .../stub/HttpJsonRouterCallableFactory.java   |  9 ++--
 .../compute/v1/stub/HttpJsonRouterStub.java   |  6 +--
 ...HttpJsonSecurityPolicyCallableFactory.java |  5 ++-
 .../stub/HttpJsonSnapshotCallableFactory.java |  5 ++-
 ...HttpJsonSslCertificateCallableFactory.java |  5 ++-
 .../HttpJsonSslPolicyCallableFactory.java     |  5 ++-
 .../HttpJsonSubnetworkCallableFactory.java    |  9 ++--
 .../v1/stub/HttpJsonSubnetworkStub.java       |  6 +--
 ...ttpJsonTargetHttpProxyCallableFactory.java |  5 ++-
 ...tpJsonTargetHttpsProxyCallableFactory.java |  5 ++-
 ...HttpJsonTargetInstanceCallableFactory.java |  9 ++--
 .../v1/stub/HttpJsonTargetInstanceStub.java   |  6 +--
 .../HttpJsonTargetPoolCallableFactory.java    |  9 ++--
 .../v1/stub/HttpJsonTargetPoolStub.java       |  6 +--
 ...HttpJsonTargetSslProxyCallableFactory.java |  5 ++-
 ...HttpJsonTargetTcpProxyCallableFactory.java |  5 ++-
 ...tpJsonTargetVpnGatewayCallableFactory.java |  9 ++--
 .../v1/stub/HttpJsonTargetVpnGatewayStub.java |  6 +--
 .../stub/HttpJsonUrlMapCallableFactory.java   |  5 ++-
 .../HttpJsonVpnTunnelCallableFactory.java     |  9 ++--
 .../v1/stub/HttpJsonVpnTunnelStub.java        |  6 +--
 .../v1/stub/HttpJsonZoneCallableFactory.java  | 21 ++--------
 .../HttpJsonZoneOperationCallableFactory.java | 21 ++--------
 .../v1/stub/InstanceGroupManagerStub.java     |  2 +-
 .../compute/v1/stub/InstanceGroupStub.java    |  2 +-
 .../cloud/compute/v1/stub/InstanceStub.java   |  4 +-
 .../v1/stub/InterconnectAttachmentStub.java   |  2 +-
 .../cloud/compute/v1/stub/NodeGroupStub.java  |  2 +-
 .../compute/v1/stub/NodeTemplateStub.java     |  2 +-
 .../compute/v1/stub/RegionAutoscalerStub.java |  2 +-
 .../v1/stub/RegionBackendServiceStub.java     |  2 +-
 .../compute/v1/stub/RegionCommitmentStub.java |  2 +-
 .../cloud/compute/v1/stub/RegionDiskStub.java |  2 +-
 .../stub/RegionInstanceGroupManagerStub.java  |  2 +-
 .../v1/stub/RegionInstanceGroupStub.java      |  2 +-
 .../cloud/compute/v1/stub/RouterStub.java     |  2 +-
 .../cloud/compute/v1/stub/SubnetworkStub.java |  2 +-
 .../compute/v1/stub/TargetInstanceStub.java   |  2 +-
 .../cloud/compute/v1/stub/TargetPoolStub.java |  2 +-
 .../compute/v1/stub/TargetVpnGatewayStub.java |  2 +-
 .../cloud/compute/v1/stub/VpnTunnelStub.java  |  2 +-
 .../cloud/compute/v1/InstanceClientTest.java  |  2 +-
 .../cloud/compute/v1/it/ITComputeTest.java    | 41 +++++++++++--------
 130 files changed, 506 insertions(+), 615 deletions(-)

diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningInterface.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningInterface.java
index 545a47e0a6b3..a067ff0c8b50 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningInterface.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningInterface.java
@@ -8,13 +8,12 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.Operation;
 
-
-/** Implementation of LongRunningClient for the Compute client.
- *  Package-private for internal use. */
-abstract class ComputeLongRunningInterface implements LongRunningClient {
-
+/** Implementation of LongRunningClient for the Compute client. Package-private for internal use. */
+abstract class ComputeLongRunningInterface
+    implements LongRunningClient {
 
   abstract UnaryCallable getGetOperationCallable();
+
   abstract UnaryCallable getDeleteOperationCallable();
 
   /* Function that takes an Operation name as a String and creates a Get request object from it. */
@@ -23,7 +22,6 @@ abstract class ComputeLongRunningInterface implemen
   /* Function that takes an Operation name as a String and creates a Delete request object from it. */
   abstract ApiFunction createDeleteRequest();
 
-
   @Override
   public UnaryCallable getOperationCallable() {
     return TranslatingUnaryCallable.create(
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java
index 46fe6cfcd427..f0c0807d423e 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java
@@ -4,15 +4,12 @@
 import com.google.api.gax.longrunning.OperationSnapshot;
 import com.google.api.gax.rpc.StatusCode;
 import com.google.cloud.compute.v1.Operation;
-import com.google.cloud.compute.v1.ProjectGlobalOperationName;
-import com.google.cloud.compute.v1.ProjectRegionOperationName;
-import com.google.cloud.compute.v1.ProjectZoneOperationName;
-import com.google.common.base.Strings;
-import java.util.logging.Level;
 import java.util.logging.Logger;
 
-/** Implementation of a long-running operation for the Compute client.
- *  Wraps a compute Operation object. */
+/**
+ * Implementation of a long-running operation for the Compute client. Wraps a compute Operation
+ * object.
+ */
 public class ComputeOperationSnapshot implements OperationSnapshot {
 
   private static final Logger logger = Logger.getLogger(ComputeOperationSnapshot.class.getName());
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/GlobalLongRunningClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/GlobalLongRunningClient.java
index d0822b2a34fd..4798949fb5e5 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/GlobalLongRunningClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/GlobalLongRunningClient.java
@@ -8,14 +8,10 @@
 import com.google.api.gax.rpc.UnaryCallable;
 import com.google.cloud.compute.v1.DeleteGlobalOperationHttpRequest;
 import com.google.cloud.compute.v1.GetGlobalOperationHttpRequest;
-import com.google.cloud.compute.v1.GlobalOperationClient;
 import com.google.cloud.compute.v1.Operation;
 import com.google.cloud.compute.v1.stub.GlobalOperationStub;
-import com.google.cloud.compute.v1.stub.RegionOperationStub;
-import com.google.cloud.compute.v1.stub.ZoneOperationStub;
 
-/** Implementation of LongRunningClient for the Compute client.
- *  Package-private for internal use. */
+/** Implementation of LongRunningClient for the Compute client. Package-private for internal use. */
 class GlobalLongRunningClient implements LongRunningClient {
 
   private final GlobalOperationStub operationStub;
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/RegionLongRunningClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/RegionLongRunningClient.java
index 8190b945d7cb..80b90cf448cb 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/RegionLongRunningClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/RegionLongRunningClient.java
@@ -8,26 +8,30 @@
 import com.google.cloud.compute.v1.Operation;
 import com.google.cloud.compute.v1.stub.RegionOperationStub;
 
-
-/** Implementation of LongRunningClient for the Compute client.
- *  Package-private for internal use. */
-class RegionLongRunningClient extends ComputeLongRunningInterface {
+/** Implementation of LongRunningClient for the Compute client. Package-private for internal use. */
+class RegionLongRunningClient
+    extends ComputeLongRunningInterface<
+        GetRegionOperationHttpRequest, DeleteRegionOperationHttpRequest> {
 
   private final RegionOperationStub operationStub;
 
-  private final ApiFunction createGetRequestFunc = new ApiFunction() {
-    public GetRegionOperationHttpRequest apply(String operationSelfLink) {
-      // Make sure operation is a formatted string.
-      return GetRegionOperationHttpRequest.newBuilder().setOperation(operationSelfLink).build();
-    }
-  };
-
-  private final ApiFunction createDeleteRequestFunc = new ApiFunction() {
-    public DeleteRegionOperationHttpRequest apply(String operationSelfLink) {
-      // Make sure operation is a formatted string.
-      return DeleteRegionOperationHttpRequest.newBuilder().setOperation(operationSelfLink).build();
-    }
-  };
+  private final ApiFunction createGetRequestFunc =
+      new ApiFunction() {
+        public GetRegionOperationHttpRequest apply(String operationSelfLink) {
+          // Make sure operation is a formatted string.
+          return GetRegionOperationHttpRequest.newBuilder().setOperation(operationSelfLink).build();
+        }
+      };
+
+  private final ApiFunction createDeleteRequestFunc =
+      new ApiFunction() {
+        public DeleteRegionOperationHttpRequest apply(String operationSelfLink) {
+          // Make sure operation is a formatted string.
+          return DeleteRegionOperationHttpRequest.newBuilder()
+              .setOperation(operationSelfLink)
+              .build();
+        }
+      };
 
   RegionLongRunningClient(RegionOperationStub operationStub) {
     this.operationStub = operationStub;
@@ -50,6 +54,4 @@ ApiFunction createGetRequest() {
   ApiFunction createDeleteRequest() {
     return createDeleteRequestFunc;
   }
-
-
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ZoneLongRunningClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ZoneLongRunningClient.java
index 8c0e236ad8a7..2f3b83907699 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ZoneLongRunningClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ZoneLongRunningClient.java
@@ -8,26 +8,30 @@
 import com.google.cloud.compute.v1.Operation;
 import com.google.cloud.compute.v1.stub.ZoneOperationStub;
 
-
-/** Implementation of LongRunningClient for the Compute client.
- *  Package-private for internal use. */
-class ZoneLongRunningClient extends ComputeLongRunningInterface {
+/** Implementation of LongRunningClient for the Compute client. Package-private for internal use. */
+class ZoneLongRunningClient
+    extends ComputeLongRunningInterface<
+        GetZoneOperationHttpRequest, DeleteZoneOperationHttpRequest> {
 
   private final ZoneOperationStub operationStub;
 
-  private final ApiFunction createGetRequestFunc = new ApiFunction() {
-    public GetZoneOperationHttpRequest apply(String operationSelfLink) {
-      // Make sure operation is a formatted string.
-      return GetZoneOperationHttpRequest.newBuilder().setOperation(operationSelfLink).build();
-    }
-  };
-
-  private final ApiFunction createDeleteRequestFunc = new ApiFunction() {
-    public DeleteZoneOperationHttpRequest apply(String operationSelfLink) {
-      // Make sure operation is a formatted string.
-      return DeleteZoneOperationHttpRequest.newBuilder().setOperation(operationSelfLink).build();
-    }
-  };
+  private final ApiFunction createGetRequestFunc =
+      new ApiFunction() {
+        public GetZoneOperationHttpRequest apply(String operationSelfLink) {
+          // Make sure operation is a formatted string.
+          return GetZoneOperationHttpRequest.newBuilder().setOperation(operationSelfLink).build();
+        }
+      };
+
+  private final ApiFunction createDeleteRequestFunc =
+      new ApiFunction() {
+        public DeleteZoneOperationHttpRequest apply(String operationSelfLink) {
+          // Make sure operation is a formatted string.
+          return DeleteZoneOperationHttpRequest.newBuilder()
+              .setOperation(operationSelfLink)
+              .build();
+        }
+      };
 
   ZoneLongRunningClient(ZoneOperationStub operationStub) {
     this.operationStub = operationStub;
@@ -50,6 +54,4 @@ ApiFunction createGetRequest() {
   ApiFunction createDeleteRequest() {
     return createDeleteRequestFunc;
   }
-
-
 }
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java
index 07fbeb69fb6e..95100d83a9e2 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java
@@ -106,7 +106,7 @@
 public class AddressClient implements BackgroundResource {
   private final AddressSettings settings;
   private final AddressStub stub;
-  private final GlobalOperationClient operationsClient;
+  private final RegionOperationClient operationsClient;
 
   /** Constructs an instance of AddressClient with default settings. */
   public static final AddressClient create() throws IOException {
@@ -137,14 +137,14 @@ public static final AddressClient create(AddressStub stub) {
   protected AddressClient(AddressSettings settings) throws IOException {
     this.settings = settings;
     this.stub = ((AddressStubSettings) settings.getStubSettings()).createStub();
-    this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub());
+    this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub());
   }
 
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected AddressClient(AddressStub stub) {
     this.settings = null;
     this.stub = stub;
-    this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub());
+    this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub());
   }
 
   public final AddressSettings getSettings() {
@@ -157,12 +157,12 @@ public AddressStub getStub() {
   }
 
   /**
-   * Returns the GlobalOperationClient that can be used to query the status of a long-running
+   * Returns the RegionOperationClient that can be used to query the status of a long-running
    * operation returned by another API method call.
    */
   @BetaApi(
       "The surface for long-running operations is not stable yet and may change in the future.")
-  public final GlobalOperationClient getOperationsClient() {
+  public final RegionOperationClient getOperationsClient() {
     return operationsClient;
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java
index 25a4be2ea9cc..bb2a4f40aaa9 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java
@@ -106,7 +106,7 @@
 public class AutoscalerClient implements BackgroundResource {
   private final AutoscalerSettings settings;
   private final AutoscalerStub stub;
-  private final GlobalOperationClient operationsClient;
+  private final ZoneOperationClient operationsClient;
 
   /** Constructs an instance of AutoscalerClient with default settings. */
   public static final AutoscalerClient create() throws IOException {
@@ -137,14 +137,14 @@ public static final AutoscalerClient create(AutoscalerStub stub) {
   protected AutoscalerClient(AutoscalerSettings settings) throws IOException {
     this.settings = settings;
     this.stub = ((AutoscalerStubSettings) settings.getStubSettings()).createStub();
-    this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub());
+    this.operationsClient = ZoneOperationClient.create(this.stub.getOperationsStub());
   }
 
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected AutoscalerClient(AutoscalerStub stub) {
     this.settings = null;
     this.stub = stub;
-    this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub());
+    this.operationsClient = ZoneOperationClient.create(this.stub.getOperationsStub());
   }
 
   public final AutoscalerSettings getSettings() {
@@ -157,12 +157,12 @@ public AutoscalerStub getStub() {
   }
 
   /**
-   * Returns the GlobalOperationClient that can be used to query the status of a long-running
+   * Returns the ZoneOperationClient that can be used to query the status of a long-running
    * operation returned by another API method call.
    */
   @BetaApi(
       "The surface for long-running operations is not stable yet and may change in the future.")
-  public final GlobalOperationClient getOperationsClient() {
+  public final ZoneOperationClient getOperationsClient() {
     return operationsClient;
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java
index 07a8463ce10b..410751d81e12 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java
@@ -106,7 +106,7 @@
 public class DiskClient implements BackgroundResource {
   private final DiskSettings settings;
   private final DiskStub stub;
-  private final GlobalOperationClient operationsClient;
+  private final ZoneOperationClient operationsClient;
 
   /** Constructs an instance of DiskClient with default settings. */
   public static final DiskClient create() throws IOException {
@@ -137,14 +137,14 @@ public static final DiskClient create(DiskStub stub) {
   protected DiskClient(DiskSettings settings) throws IOException {
     this.settings = settings;
     this.stub = ((DiskStubSettings) settings.getStubSettings()).createStub();
-    this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub());
+    this.operationsClient = ZoneOperationClient.create(this.stub.getOperationsStub());
   }
 
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected DiskClient(DiskStub stub) {
     this.settings = null;
     this.stub = stub;
-    this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub());
+    this.operationsClient = ZoneOperationClient.create(this.stub.getOperationsStub());
   }
 
   public final DiskSettings getSettings() {
@@ -157,12 +157,12 @@ public DiskStub getStub() {
   }
 
   /**
-   * Returns the GlobalOperationClient that can be used to query the status of a long-running
+   * Returns the ZoneOperationClient that can be used to query the status of a long-running
    * operation returned by another API method call.
    */
   @BetaApi(
       "The surface for long-running operations is not stable yet and may change in the future.")
-  public final GlobalOperationClient getOperationsClient() {
+  public final ZoneOperationClient getOperationsClient() {
     return operationsClient;
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java
index 3cfc578b17b1..ea4d20c3cb9c 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java
@@ -106,7 +106,7 @@
 public class ForwardingRuleClient implements BackgroundResource {
   private final ForwardingRuleSettings settings;
   private final ForwardingRuleStub stub;
-  private final GlobalOperationClient operationsClient;
+  private final RegionOperationClient operationsClient;
 
   /** Constructs an instance of ForwardingRuleClient with default settings. */
   public static final ForwardingRuleClient create() throws IOException {
@@ -139,14 +139,14 @@ public static final ForwardingRuleClient create(ForwardingRuleStub stub) {
   protected ForwardingRuleClient(ForwardingRuleSettings settings) throws IOException {
     this.settings = settings;
     this.stub = ((ForwardingRuleStubSettings) settings.getStubSettings()).createStub();
-    this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub());
+    this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub());
   }
 
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected ForwardingRuleClient(ForwardingRuleStub stub) {
     this.settings = null;
     this.stub = stub;
-    this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub());
+    this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub());
   }
 
   public final ForwardingRuleSettings getSettings() {
@@ -159,12 +159,12 @@ public ForwardingRuleStub getStub() {
   }
 
   /**
-   * Returns the GlobalOperationClient that can be used to query the status of a long-running
+   * Returns the RegionOperationClient that can be used to query the status of a long-running
    * operation returned by another API method call.
    */
   @BetaApi(
       "The surface for long-running operations is not stable yet and may change in the future.")
-  public final GlobalOperationClient getOperationsClient() {
+  public final RegionOperationClient getOperationsClient() {
     return operationsClient;
   }
 
diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java
index 7289b7add4b9..5d05fc2fe96c 100644
--- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java
+++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java
@@ -106,7 +106,7 @@
 public class InstanceClient implements BackgroundResource {
   private final InstanceSettings settings;
   private final InstanceStub stub;
-  private final GlobalOperationClient operationsClient;
+  private final ZoneOperationClient operationsClient;
 
   /** Constructs an instance of InstanceClient with default settings. */
   public static final InstanceClient create() throws IOException {
@@ -137,14 +137,14 @@ public static final InstanceClient create(InstanceStub stub) {
   protected InstanceClient(InstanceSettings settings) throws IOException {
     this.settings = settings;
     this.stub = ((InstanceStubSettings) settings.getStubSettings()).createStub();
-    this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub());
+    this.operationsClient = ZoneOperationClient.create(this.stub.getOperationsStub());
   }
 
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   protected InstanceClient(InstanceStub stub) {
     this.settings = null;
     this.stub = stub;
-    this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub());
+    this.operationsClient = ZoneOperationClient.create(this.stub.getOperationsStub());
   }
 
   public final InstanceSettings getSettings() {
@@ -157,12 +157,12 @@ public InstanceStub getStub() {
   }
 
   /**
-   * Returns the GlobalOperationClient that can be used to query the status of a long-running
+   * Returns the ZoneOperationClient that can be used to query the status of a long-running
    * operation returned by another API method call.
    */
   @BetaApi(
       "The surface for long-running operations is not stable yet and may change in the future.")
-  public final GlobalOperationClient getOperationsClient() {
+  public final ZoneOperationClient getOperationsClient() {
     return operationsClient;
   }
 
@@ -1411,7 +1411,7 @@ public final SerialPortOutput getSerialPortOutputInstance(
    */
   @BetaApi(
       "The surface for long-running operations is not stable yet and may change in the future.")
-  public final OperationFuture insertInstanceAsync(
+  public final OperationFuture insertInstanceAsync(
       ProjectZoneName zone, Instance instanceResource) {
 
     InsertInstanceHttpRequest request =
@@ -1443,7 +1443,7 @@ public final OperationFuture insertInstanceAsync(
    */
   @BetaApi(
       "The surface for long-running operations is not stable yet and may change in the future.")
-  public final OperationFuture insertInstanceAsync(
+  public final OperationFuture insertInstanceAsync(
       String zone, Instance instanceResource) {
 
     InsertInstanceHttpRequest request =
@@ -1477,7 +1477,7 @@ public final OperationFuture insertInstanceAsync(
    */
   @BetaApi(
       "The surface for long-running operations is not stable yet and may change in the future.")
-  public final OperationFuture insertInstanceAsync(
+  public final OperationFuture insertInstanceAsync(
       InsertInstanceHttpRequest request) {
     return insertInstanceOperationCallable().futureCall(request);
   }
@@ -1503,7 +1503,7 @@ public final OperationFuture insertInstanceAsync(
    * 
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertInstanceOperationCallable() { return stub.insertInstanceOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java index 75faca6d85ab..b68dc0692889 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java @@ -106,7 +106,7 @@ public class InstanceGroupClient implements BackgroundResource { private final InstanceGroupSettings settings; private final InstanceGroupStub stub; - private final GlobalOperationClient operationsClient; + private final ZoneOperationClient operationsClient; /** Constructs an instance of InstanceGroupClient with default settings. */ public static final InstanceGroupClient create() throws IOException { @@ -139,14 +139,14 @@ public static final InstanceGroupClient create(InstanceGroupStub stub) { protected InstanceGroupClient(InstanceGroupSettings settings) throws IOException { this.settings = settings; this.stub = ((InstanceGroupStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = ZoneOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected InstanceGroupClient(InstanceGroupStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = ZoneOperationClient.create(this.stub.getOperationsStub()); } public final InstanceGroupSettings getSettings() { @@ -159,12 +159,12 @@ public InstanceGroupStub getStub() { } /** - * Returns the GlobalOperationClient that can be used to query the status of a long-running + * Returns the ZoneOperationClient that can be used to query the status of a long-running * operation returned by another API method call. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final GlobalOperationClient getOperationsClient() { + public final ZoneOperationClient getOperationsClient() { return operationsClient; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java index efa73535f16f..3980ee22ae25 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java @@ -107,7 +107,7 @@ public class InstanceGroupManagerClient implements BackgroundResource { private final InstanceGroupManagerSettings settings; private final InstanceGroupManagerStub stub; - private final GlobalOperationClient operationsClient; + private final ZoneOperationClient operationsClient; /** Constructs an instance of InstanceGroupManagerClient with default settings. */ public static final InstanceGroupManagerClient create() throws IOException { @@ -140,14 +140,14 @@ public static final InstanceGroupManagerClient create(InstanceGroupManagerStub s protected InstanceGroupManagerClient(InstanceGroupManagerSettings settings) throws IOException { this.settings = settings; this.stub = ((InstanceGroupManagerStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = ZoneOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected InstanceGroupManagerClient(InstanceGroupManagerStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = ZoneOperationClient.create(this.stub.getOperationsStub()); } public final InstanceGroupManagerSettings getSettings() { @@ -160,12 +160,12 @@ public InstanceGroupManagerStub getStub() { } /** - * Returns the GlobalOperationClient that can be used to query the status of a long-running + * Returns the ZoneOperationClient that can be used to query the status of a long-running * operation returned by another API method call. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final GlobalOperationClient getOperationsClient() { + public final ZoneOperationClient getOperationsClient() { return operationsClient; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentClient.java index e9878317627f..c982618f212c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentClient.java @@ -107,7 +107,7 @@ public class InterconnectAttachmentClient implements BackgroundResource { private final InterconnectAttachmentSettings settings; private final InterconnectAttachmentStub stub; - private final GlobalOperationClient operationsClient; + private final RegionOperationClient operationsClient; /** Constructs an instance of InterconnectAttachmentClient with default settings. */ public static final InterconnectAttachmentClient create() throws IOException { @@ -141,14 +141,14 @@ protected InterconnectAttachmentClient(InterconnectAttachmentSettings settings) throws IOException { this.settings = settings; this.stub = ((InterconnectAttachmentStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected InterconnectAttachmentClient(InterconnectAttachmentStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } public final InterconnectAttachmentSettings getSettings() { @@ -161,12 +161,12 @@ public InterconnectAttachmentStub getStub() { } /** - * Returns the GlobalOperationClient that can be used to query the status of a long-running + * Returns the RegionOperationClient that can be used to query the status of a long-running * operation returned by another API method call. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final GlobalOperationClient getOperationsClient() { + public final RegionOperationClient getOperationsClient() { return operationsClient; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupClient.java index 076ed5fa681b..b8ac22267387 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupClient.java @@ -106,7 +106,7 @@ public class NodeGroupClient implements BackgroundResource { private final NodeGroupSettings settings; private final NodeGroupStub stub; - private final GlobalOperationClient operationsClient; + private final ZoneOperationClient operationsClient; /** Constructs an instance of NodeGroupClient with default settings. */ public static final NodeGroupClient create() throws IOException { @@ -137,14 +137,14 @@ public static final NodeGroupClient create(NodeGroupStub stub) { protected NodeGroupClient(NodeGroupSettings settings) throws IOException { this.settings = settings; this.stub = ((NodeGroupStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = ZoneOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected NodeGroupClient(NodeGroupStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = ZoneOperationClient.create(this.stub.getOperationsStub()); } public final NodeGroupSettings getSettings() { @@ -157,12 +157,12 @@ public NodeGroupStub getStub() { } /** - * Returns the GlobalOperationClient that can be used to query the status of a long-running + * Returns the ZoneOperationClient that can be used to query the status of a long-running * operation returned by another API method call. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final GlobalOperationClient getOperationsClient() { + public final ZoneOperationClient getOperationsClient() { return operationsClient; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateClient.java index 4854859e386d..2303c40b0b41 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateClient.java @@ -106,7 +106,7 @@ public class NodeTemplateClient implements BackgroundResource { private final NodeTemplateSettings settings; private final NodeTemplateStub stub; - private final GlobalOperationClient operationsClient; + private final RegionOperationClient operationsClient; /** Constructs an instance of NodeTemplateClient with default settings. */ public static final NodeTemplateClient create() throws IOException { @@ -138,14 +138,14 @@ public static final NodeTemplateClient create(NodeTemplateStub stub) { protected NodeTemplateClient(NodeTemplateSettings settings) throws IOException { this.settings = settings; this.stub = ((NodeTemplateStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected NodeTemplateClient(NodeTemplateStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } public final NodeTemplateSettings getSettings() { @@ -158,12 +158,12 @@ public NodeTemplateStub getStub() { } /** - * Returns the GlobalOperationClient that can be used to query the status of a long-running + * Returns the RegionOperationClient that can be used to query the status of a long-running * operation returned by another API method call. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final GlobalOperationClient getOperationsClient() { + public final RegionOperationClient getOperationsClient() { return operationsClient; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java index 4e19e8553629..294b65a7ca5a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java @@ -107,7 +107,7 @@ public class RegionAutoscalerClient implements BackgroundResource { private final RegionAutoscalerSettings settings; private final RegionAutoscalerStub stub; - private final GlobalOperationClient operationsClient; + private final RegionOperationClient operationsClient; /** Constructs an instance of RegionAutoscalerClient with default settings. */ public static final RegionAutoscalerClient create() throws IOException { @@ -140,14 +140,14 @@ public static final RegionAutoscalerClient create(RegionAutoscalerStub stub) { protected RegionAutoscalerClient(RegionAutoscalerSettings settings) throws IOException { this.settings = settings; this.stub = ((RegionAutoscalerStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected RegionAutoscalerClient(RegionAutoscalerStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } public final RegionAutoscalerSettings getSettings() { @@ -160,12 +160,12 @@ public RegionAutoscalerStub getStub() { } /** - * Returns the GlobalOperationClient that can be used to query the status of a long-running + * Returns the RegionOperationClient that can be used to query the status of a long-running * operation returned by another API method call. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final GlobalOperationClient getOperationsClient() { + public final RegionOperationClient getOperationsClient() { return operationsClient; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java index 2c69946e06c2..7d3f4dfdcb9d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java @@ -107,7 +107,7 @@ public class RegionBackendServiceClient implements BackgroundResource { private final RegionBackendServiceSettings settings; private final RegionBackendServiceStub stub; - private final GlobalOperationClient operationsClient; + private final RegionOperationClient operationsClient; /** Constructs an instance of RegionBackendServiceClient with default settings. */ public static final RegionBackendServiceClient create() throws IOException { @@ -140,14 +140,14 @@ public static final RegionBackendServiceClient create(RegionBackendServiceStub s protected RegionBackendServiceClient(RegionBackendServiceSettings settings) throws IOException { this.settings = settings; this.stub = ((RegionBackendServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected RegionBackendServiceClient(RegionBackendServiceStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } public final RegionBackendServiceSettings getSettings() { @@ -160,12 +160,12 @@ public RegionBackendServiceStub getStub() { } /** - * Returns the GlobalOperationClient that can be used to query the status of a long-running + * Returns the RegionOperationClient that can be used to query the status of a long-running * operation returned by another API method call. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final GlobalOperationClient getOperationsClient() { + public final RegionOperationClient getOperationsClient() { return operationsClient; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentClient.java index 8007ba75b313..0651d15f293a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentClient.java @@ -107,7 +107,7 @@ public class RegionCommitmentClient implements BackgroundResource { private final RegionCommitmentSettings settings; private final RegionCommitmentStub stub; - private final GlobalOperationClient operationsClient; + private final RegionOperationClient operationsClient; /** Constructs an instance of RegionCommitmentClient with default settings. */ public static final RegionCommitmentClient create() throws IOException { @@ -140,14 +140,14 @@ public static final RegionCommitmentClient create(RegionCommitmentStub stub) { protected RegionCommitmentClient(RegionCommitmentSettings settings) throws IOException { this.settings = settings; this.stub = ((RegionCommitmentStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected RegionCommitmentClient(RegionCommitmentStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } public final RegionCommitmentSettings getSettings() { @@ -160,12 +160,12 @@ public RegionCommitmentStub getStub() { } /** - * Returns the GlobalOperationClient that can be used to query the status of a long-running + * Returns the RegionOperationClient that can be used to query the status of a long-running * operation returned by another API method call. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final GlobalOperationClient getOperationsClient() { + public final RegionOperationClient getOperationsClient() { return operationsClient; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskClient.java index 7b9f04b6825c..ba15fd0d9478 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskClient.java @@ -106,7 +106,7 @@ public class RegionDiskClient implements BackgroundResource { private final RegionDiskSettings settings; private final RegionDiskStub stub; - private final GlobalOperationClient operationsClient; + private final RegionOperationClient operationsClient; /** Constructs an instance of RegionDiskClient with default settings. */ public static final RegionDiskClient create() throws IOException { @@ -137,14 +137,14 @@ public static final RegionDiskClient create(RegionDiskStub stub) { protected RegionDiskClient(RegionDiskSettings settings) throws IOException { this.settings = settings; this.stub = ((RegionDiskStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected RegionDiskClient(RegionDiskStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } public final RegionDiskSettings getSettings() { @@ -157,12 +157,12 @@ public RegionDiskStub getStub() { } /** - * Returns the GlobalOperationClient that can be used to query the status of a long-running + * Returns the RegionOperationClient that can be used to query the status of a long-running * operation returned by another API method call. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final GlobalOperationClient getOperationsClient() { + public final RegionOperationClient getOperationsClient() { return operationsClient; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupClient.java index 7b4c45cfc9da..e00eeadfebe0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupClient.java @@ -107,7 +107,7 @@ public class RegionInstanceGroupClient implements BackgroundResource { private final RegionInstanceGroupSettings settings; private final RegionInstanceGroupStub stub; - private final GlobalOperationClient operationsClient; + private final RegionOperationClient operationsClient; /** Constructs an instance of RegionInstanceGroupClient with default settings. */ public static final RegionInstanceGroupClient create() throws IOException { @@ -140,14 +140,14 @@ public static final RegionInstanceGroupClient create(RegionInstanceGroupStub stu protected RegionInstanceGroupClient(RegionInstanceGroupSettings settings) throws IOException { this.settings = settings; this.stub = ((RegionInstanceGroupStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected RegionInstanceGroupClient(RegionInstanceGroupStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } public final RegionInstanceGroupSettings getSettings() { @@ -160,12 +160,12 @@ public RegionInstanceGroupStub getStub() { } /** - * Returns the GlobalOperationClient that can be used to query the status of a long-running + * Returns the RegionOperationClient that can be used to query the status of a long-running * operation returned by another API method call. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final GlobalOperationClient getOperationsClient() { + public final RegionOperationClient getOperationsClient() { return operationsClient; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java index f5c7ad2d573e..091e7f99b04b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java @@ -107,7 +107,7 @@ public class RegionInstanceGroupManagerClient implements BackgroundResource { private final RegionInstanceGroupManagerSettings settings; private final RegionInstanceGroupManagerStub stub; - private final GlobalOperationClient operationsClient; + private final RegionOperationClient operationsClient; /** Constructs an instance of RegionInstanceGroupManagerClient with default settings. */ public static final RegionInstanceGroupManagerClient create() throws IOException { @@ -142,14 +142,14 @@ protected RegionInstanceGroupManagerClient(RegionInstanceGroupManagerSettings se throws IOException { this.settings = settings; this.stub = ((RegionInstanceGroupManagerStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected RegionInstanceGroupManagerClient(RegionInstanceGroupManagerStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } public final RegionInstanceGroupManagerSettings getSettings() { @@ -162,12 +162,12 @@ public RegionInstanceGroupManagerStub getStub() { } /** - * Returns the GlobalOperationClient that can be used to query the status of a long-running + * Returns the RegionOperationClient that can be used to query the status of a long-running * operation returned by another API method call. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final GlobalOperationClient getOperationsClient() { + public final RegionOperationClient getOperationsClient() { return operationsClient; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java index 2adc332c684e..b2c106bf6180 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java @@ -106,7 +106,7 @@ public class RouterClient implements BackgroundResource { private final RouterSettings settings; private final RouterStub stub; - private final GlobalOperationClient operationsClient; + private final RegionOperationClient operationsClient; /** Constructs an instance of RouterClient with default settings. */ public static final RouterClient create() throws IOException { @@ -137,14 +137,14 @@ public static final RouterClient create(RouterStub stub) { protected RouterClient(RouterSettings settings) throws IOException { this.settings = settings; this.stub = ((RouterStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected RouterClient(RouterStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } public final RouterSettings getSettings() { @@ -157,12 +157,12 @@ public RouterStub getStub() { } /** - * Returns the GlobalOperationClient that can be used to query the status of a long-running + * Returns the RegionOperationClient that can be used to query the status of a long-running * operation returned by another API method call. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final GlobalOperationClient getOperationsClient() { + public final RegionOperationClient getOperationsClient() { return operationsClient; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java index c0329572baaa..c63a9080ab31 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java @@ -106,7 +106,7 @@ public class SubnetworkClient implements BackgroundResource { private final SubnetworkSettings settings; private final SubnetworkStub stub; - private final GlobalOperationClient operationsClient; + private final RegionOperationClient operationsClient; /** Constructs an instance of SubnetworkClient with default settings. */ public static final SubnetworkClient create() throws IOException { @@ -137,14 +137,14 @@ public static final SubnetworkClient create(SubnetworkStub stub) { protected SubnetworkClient(SubnetworkSettings settings) throws IOException { this.settings = settings; this.stub = ((SubnetworkStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected SubnetworkClient(SubnetworkStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } public final SubnetworkSettings getSettings() { @@ -157,12 +157,12 @@ public SubnetworkStub getStub() { } /** - * Returns the GlobalOperationClient that can be used to query the status of a long-running + * Returns the RegionOperationClient that can be used to query the status of a long-running * operation returned by another API method call. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final GlobalOperationClient getOperationsClient() { + public final RegionOperationClient getOperationsClient() { return operationsClient; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceClient.java index dee5c2cbf231..3b2e846668ab 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceClient.java @@ -106,7 +106,7 @@ public class TargetInstanceClient implements BackgroundResource { private final TargetInstanceSettings settings; private final TargetInstanceStub stub; - private final GlobalOperationClient operationsClient; + private final ZoneOperationClient operationsClient; /** Constructs an instance of TargetInstanceClient with default settings. */ public static final TargetInstanceClient create() throws IOException { @@ -139,14 +139,14 @@ public static final TargetInstanceClient create(TargetInstanceStub stub) { protected TargetInstanceClient(TargetInstanceSettings settings) throws IOException { this.settings = settings; this.stub = ((TargetInstanceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = ZoneOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected TargetInstanceClient(TargetInstanceStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = ZoneOperationClient.create(this.stub.getOperationsStub()); } public final TargetInstanceSettings getSettings() { @@ -159,12 +159,12 @@ public TargetInstanceStub getStub() { } /** - * Returns the GlobalOperationClient that can be used to query the status of a long-running + * Returns the ZoneOperationClient that can be used to query the status of a long-running * operation returned by another API method call. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final GlobalOperationClient getOperationsClient() { + public final ZoneOperationClient getOperationsClient() { return operationsClient; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolClient.java index bf54322e52ba..1af4b3152287 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolClient.java @@ -106,7 +106,7 @@ public class TargetPoolClient implements BackgroundResource { private final TargetPoolSettings settings; private final TargetPoolStub stub; - private final GlobalOperationClient operationsClient; + private final RegionOperationClient operationsClient; /** Constructs an instance of TargetPoolClient with default settings. */ public static final TargetPoolClient create() throws IOException { @@ -137,14 +137,14 @@ public static final TargetPoolClient create(TargetPoolStub stub) { protected TargetPoolClient(TargetPoolSettings settings) throws IOException { this.settings = settings; this.stub = ((TargetPoolStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected TargetPoolClient(TargetPoolStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } public final TargetPoolSettings getSettings() { @@ -157,12 +157,12 @@ public TargetPoolStub getStub() { } /** - * Returns the GlobalOperationClient that can be used to query the status of a long-running + * Returns the RegionOperationClient that can be used to query the status of a long-running * operation returned by another API method call. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final GlobalOperationClient getOperationsClient() { + public final RegionOperationClient getOperationsClient() { return operationsClient; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayClient.java index 129792ca5cec..72a1f512f476 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayClient.java @@ -107,7 +107,7 @@ public class TargetVpnGatewayClient implements BackgroundResource { private final TargetVpnGatewaySettings settings; private final TargetVpnGatewayStub stub; - private final GlobalOperationClient operationsClient; + private final RegionOperationClient operationsClient; /** Constructs an instance of TargetVpnGatewayClient with default settings. */ public static final TargetVpnGatewayClient create() throws IOException { @@ -140,14 +140,14 @@ public static final TargetVpnGatewayClient create(TargetVpnGatewayStub stub) { protected TargetVpnGatewayClient(TargetVpnGatewaySettings settings) throws IOException { this.settings = settings; this.stub = ((TargetVpnGatewayStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected TargetVpnGatewayClient(TargetVpnGatewayStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } public final TargetVpnGatewaySettings getSettings() { @@ -160,12 +160,12 @@ public TargetVpnGatewayStub getStub() { } /** - * Returns the GlobalOperationClient that can be used to query the status of a long-running + * Returns the RegionOperationClient that can be used to query the status of a long-running * operation returned by another API method call. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final GlobalOperationClient getOperationsClient() { + public final RegionOperationClient getOperationsClient() { return operationsClient; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelClient.java index bb5705ca653d..7eed794fdb18 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelClient.java @@ -106,7 +106,7 @@ public class VpnTunnelClient implements BackgroundResource { private final VpnTunnelSettings settings; private final VpnTunnelStub stub; - private final GlobalOperationClient operationsClient; + private final RegionOperationClient operationsClient; /** Constructs an instance of VpnTunnelClient with default settings. */ public static final VpnTunnelClient create() throws IOException { @@ -137,14 +137,14 @@ public static final VpnTunnelClient create(VpnTunnelStub stub) { protected VpnTunnelClient(VpnTunnelSettings settings) throws IOException { this.settings = settings; this.stub = ((VpnTunnelStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected VpnTunnelClient(VpnTunnelStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = GlobalOperationClient.create(this.stub.getOperationsStub()); + this.operationsClient = RegionOperationClient.create(this.stub.getOperationsStub()); } public final VpnTunnelSettings getSettings() { @@ -157,12 +157,12 @@ public VpnTunnelStub getStub() { } /** - * Returns the GlobalOperationClient that can be used to query the status of a long-running + * Returns the RegionOperationClient that can be used to query the status of a long-running * operation returned by another API method call. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final GlobalOperationClient getOperationsClient() { + public final RegionOperationClient getOperationsClient() { return operationsClient; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStub.java index 2194b791e1f3..f9122cdb44dd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStub.java @@ -45,7 +45,7 @@ public abstract class AddressStub implements BackgroundResource { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GlobalOperationStub getOperationsStub() { + public RegionOperationStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStub.java index 9e5014e919c7..817725ea4b6e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStub.java @@ -47,7 +47,7 @@ public abstract class AutoscalerStub implements BackgroundResource { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GlobalOperationStub getOperationsStub() { + public ZoneOperationStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStub.java index ee9092d13b5e..dd7d5e20db8e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStub.java @@ -53,7 +53,7 @@ public abstract class DiskStub implements BackgroundResource { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GlobalOperationStub getOperationsStub() { + public ZoneOperationStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStub.java index b62973b6f574..4ff8e0106fa7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStub.java @@ -46,7 +46,7 @@ public abstract class ForwardingRuleStub implements BackgroundResource { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GlobalOperationStub getOperationsStub() { + public RegionOperationStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAcceleratorTypeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAcceleratorTypeCallableFactory.java index 5d497c9a5dbb..7b07f3ad7fda 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAcceleratorTypeCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAcceleratorTypeCallableFactory.java @@ -16,20 +16,17 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +39,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonAcceleratorTypeCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,18 +58,8 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { - UnaryCallable initialHttpCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); - UnaryCallable initialCallable = - new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); - OperationCallable operationCallable = - Callables.longRunningOperation( - initialCallable, operationCallSettings, clientContext, longRunningClient); - return HttpJsonCallableFactory.createOperationCallable( - operationCallSettings, clientContext, longRunningClient, initialCallable); + BackgroundResource operationsStub) { + return null; } @Override diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressCallableFactory.java index e3b34a10b1e0..7486da398a53 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +43,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonAddressCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,13 +62,13 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { + RegionOperationStub operationsStub) { UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressStub.java index 90c8201450ab..1a45af0a7def 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressStub.java @@ -160,7 +160,7 @@ public class HttpJsonAddressStub extends AddressStub { .build(); private final BackgroundResource backgroundResources; - private final HttpJsonGlobalOperationStub operationsStub; + private final HttpJsonRegionOperationStub operationsStub; private final UnaryCallable aggregatedListAddressesCallable; @@ -215,7 +215,7 @@ protected HttpJsonAddressStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory); + this.operationsStub = HttpJsonRegionOperationStub.create(clientContext, callableFactory); HttpJsonCallSettings aggregatedListAddressesTransportSettings = @@ -282,7 +282,7 @@ protected HttpJsonAddressStub( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public HttpJsonGlobalOperationStub getOperationsStub() { + public HttpJsonRegionOperationStub getOperationsStub() { return operationsStub; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerCallableFactory.java index e859817c33f4..343d9bf92584 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +43,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonAutoscalerCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,13 +62,13 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { + ZoneOperationStub operationsStub) { UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerStub.java index c9262c586253..16785b598221 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerStub.java @@ -201,7 +201,7 @@ public class HttpJsonAutoscalerStub extends AutoscalerStub { .build(); private final BackgroundResource backgroundResources; - private final HttpJsonGlobalOperationStub operationsStub; + private final HttpJsonZoneOperationStub operationsStub; private final UnaryCallable aggregatedListAutoscalersCallable; @@ -264,7 +264,7 @@ protected HttpJsonAutoscalerStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory); + this.operationsStub = HttpJsonZoneOperationStub.create(clientContext, callableFactory); HttpJsonCallSettings aggregatedListAutoscalersTransportSettings = @@ -358,7 +358,7 @@ protected HttpJsonAutoscalerStub( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public HttpJsonGlobalOperationStub getOperationsStub() { + public HttpJsonZoneOperationStub getOperationsStub() { return operationsStub; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketCallableFactory.java index c87417343e98..d43a45583bca 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceCallableFactory.java index 1c35c7be8092..c755509d06dc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskCallableFactory.java index feda550011ed..daed5593f737 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +43,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonDiskCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,13 +62,13 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { + ZoneOperationStub operationsStub) { UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskStub.java index 5ce98d567113..bc412bb712f3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskStub.java @@ -290,7 +290,7 @@ public class HttpJsonDiskStub extends DiskStub { .build(); private final BackgroundResource backgroundResources; - private final HttpJsonGlobalOperationStub operationsStub; + private final HttpJsonZoneOperationStub operationsStub; private final UnaryCallable aggregatedListDisksCallable; @@ -354,7 +354,7 @@ protected HttpJsonDiskStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory); + this.operationsStub = HttpJsonZoneOperationStub.create(clientContext, callableFactory); HttpJsonCallSettings aggregatedListDisksTransportSettings = @@ -487,7 +487,7 @@ protected HttpJsonDiskStub( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public HttpJsonGlobalOperationStub getOperationsStub() { + public HttpJsonZoneOperationStub getOperationsStub() { return operationsStub; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskTypeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskTypeCallableFactory.java index 888bfd7f61c1..29e609382d88 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskTypeCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskTypeCallableFactory.java @@ -16,20 +16,17 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +39,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonDiskTypeCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,18 +58,8 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { - UnaryCallable initialHttpCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); - UnaryCallable initialCallable = - new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); - OperationCallable operationCallable = - Callables.longRunningOperation( - initialCallable, operationCallSettings, clientContext, longRunningClient); - return HttpJsonCallableFactory.createOperationCallable( - operationCallSettings, clientContext, longRunningClient, initialCallable); + BackgroundResource operationsStub) { + return null; } @Override diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallCallableFactory.java index 98b0b6f663dc..cdf68039ca68 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleCallableFactory.java index b9c88e49ba5d..be1a9c089db8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +43,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonForwardingRuleCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,13 +62,13 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { + RegionOperationStub operationsStub) { UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleStub.java index 2a480d6661ea..9d2aa1facec2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleStub.java @@ -188,7 +188,7 @@ public class HttpJsonForwardingRuleStub extends ForwardingRuleStub { .build(); private final BackgroundResource backgroundResources; - private final HttpJsonGlobalOperationStub operationsStub; + private final HttpJsonRegionOperationStub operationsStub; private final UnaryCallable< AggregatedListForwardingRulesHttpRequest, ForwardingRuleAggregatedList> @@ -255,7 +255,7 @@ protected HttpJsonForwardingRuleStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory); + this.operationsStub = HttpJsonRegionOperationStub.create(clientContext, callableFactory); HttpJsonCallSettings aggregatedListForwardingRulesTransportSettings = @@ -353,7 +353,7 @@ protected HttpJsonForwardingRuleStub( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public HttpJsonGlobalOperationStub getOperationsStub() { + public HttpJsonRegionOperationStub getOperationsStub() { return operationsStub; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressCallableFactory.java index 62c725035150..1a1ed687ae42 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleCallableFactory.java index 57701f536ef1..42fd6cdcaf55 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationCallableFactory.java index a021b48d336e..c6c545248a48 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalOperationCallableFactory.java @@ -16,20 +16,17 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +39,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonGlobalOperationCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,18 +58,8 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { - UnaryCallable initialHttpCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); - UnaryCallable initialCallable = - new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); - OperationCallable operationCallable = - Callables.longRunningOperation( - initialCallable, operationCallSettings, clientContext, longRunningClient); - return HttpJsonCallableFactory.createOperationCallable( - operationCallSettings, clientContext, longRunningClient, initialCallable); + BackgroundResource operationsStub) { + return null; } @Override diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckCallableFactory.java index f96ac1e81a52..0d0cd42771c8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckCallableFactory.java index c0318229bd38..d6d55c4fe9e2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckCallableFactory.java index 90fc80f50b1b..bb7a4c704ae6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageCallableFactory.java index a9de3d7b86da..222798a1f39a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceCallableFactory.java index 2085598017fd..9e821352ff5b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +43,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonInstanceCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,13 +62,13 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { + ZoneOperationStub operationsStub) { UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupCallableFactory.java index cbadda5f9f3d..3cc64afa8f4b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +43,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonInstanceGroupCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,13 +62,13 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { + ZoneOperationStub operationsStub) { UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerCallableFactory.java index 947e77d2c560..bcb7780d8430 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +43,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonInstanceGroupManagerCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,13 +62,13 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { + ZoneOperationStub operationsStub) { UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerStub.java index f1c6b7328ad2..0cfb05b2551b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerStub.java @@ -368,7 +368,7 @@ public class HttpJsonInstanceGroupManagerStub extends InstanceGroupManagerStub { .build(); private final BackgroundResource backgroundResources; - private final HttpJsonGlobalOperationStub operationsStub; + private final HttpJsonZoneOperationStub operationsStub; private final UnaryCallable abandonInstancesInstanceGroupManagerCallable; @@ -470,7 +470,7 @@ protected HttpJsonInstanceGroupManagerStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory); + this.operationsStub = HttpJsonZoneOperationStub.create(clientContext, callableFactory); HttpJsonCallSettings abandonInstancesInstanceGroupManagerTransportSettings = @@ -688,7 +688,7 @@ protected HttpJsonInstanceGroupManagerStub( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public HttpJsonGlobalOperationStub getOperationsStub() { + public HttpJsonZoneOperationStub getOperationsStub() { return operationsStub; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupStub.java index 65852082309e..21fa479a7abe 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupStub.java @@ -259,7 +259,7 @@ public class HttpJsonInstanceGroupStub extends InstanceGroupStub { .build(); private final BackgroundResource backgroundResources; - private final HttpJsonGlobalOperationStub operationsStub; + private final HttpJsonZoneOperationStub operationsStub; private final UnaryCallable addInstancesInstanceGroupCallable; @@ -338,7 +338,7 @@ protected HttpJsonInstanceGroupStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory); + this.operationsStub = HttpJsonZoneOperationStub.create(clientContext, callableFactory); HttpJsonCallSettings addInstancesInstanceGroupTransportSettings = @@ -481,7 +481,7 @@ protected HttpJsonInstanceGroupStub( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public HttpJsonGlobalOperationStub getOperationsStub() { + public HttpJsonZoneOperationStub getOperationsStub() { return operationsStub; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceStub.java index 7ef34761e3e9..0355fbcf7563 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceStub.java @@ -748,7 +748,7 @@ public class HttpJsonInstanceStub extends InstanceStub { .build(); private final BackgroundResource backgroundResources; - private final HttpJsonGlobalOperationStub operationsStub; + private final HttpJsonZoneOperationStub operationsStub; private final UnaryCallable addAccessConfigInstanceCallable; @@ -777,7 +777,7 @@ public class HttpJsonInstanceStub extends InstanceStub { private final UnaryCallable getSerialPortOutputInstanceCallable; private final UnaryCallable insertInstanceCallable; - private final OperationCallable + private final OperationCallable insertInstanceOperationCallable; private final UnaryCallable listInstancesCallable; private final UnaryCallable @@ -897,7 +897,7 @@ protected HttpJsonInstanceStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory); + this.operationsStub = HttpJsonZoneOperationStub.create(clientContext, callableFactory); HttpJsonCallSettings addAccessConfigInstanceTransportSettings = @@ -1347,7 +1347,7 @@ protected HttpJsonInstanceStub( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public HttpJsonGlobalOperationStub getOperationsStub() { + public HttpJsonZoneOperationStub getOperationsStub() { return operationsStub; } @@ -1437,7 +1437,7 @@ public UnaryCallable getIamPolicyInstan } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertInstanceOperationCallable() { return insertInstanceOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateCallableFactory.java index eb75579585cc..bad13f67c8a1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentCallableFactory.java index 8bb7c424010a..0b8a2308474e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +43,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonInterconnectAttachmentCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,13 +62,13 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { + RegionOperationStub operationsStub) { UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentStub.java index a7a6a06f5013..e5be40252ba0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentStub.java @@ -200,7 +200,7 @@ public class HttpJsonInterconnectAttachmentStub extends InterconnectAttachmentSt .build(); private final BackgroundResource backgroundResources; - private final HttpJsonGlobalOperationStub operationsStub; + private final HttpJsonRegionOperationStub operationsStub; private final UnaryCallable< AggregatedListInterconnectAttachmentsHttpRequest, InterconnectAttachmentAggregatedList> @@ -272,7 +272,7 @@ protected HttpJsonInterconnectAttachmentStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory); + this.operationsStub = HttpJsonRegionOperationStub.create(clientContext, callableFactory); HttpJsonCallSettings< AggregatedListInterconnectAttachmentsHttpRequest, InterconnectAttachmentAggregatedList> @@ -374,7 +374,7 @@ protected HttpJsonInterconnectAttachmentStub( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public HttpJsonGlobalOperationStub getOperationsStub() { + public HttpJsonRegionOperationStub getOperationsStub() { return operationsStub; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectCallableFactory.java index 8eada0d1b15c..786aea998a6f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectLocationCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectLocationCallableFactory.java index 56c57425b350..2c843c5fca45 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectLocationCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectLocationCallableFactory.java @@ -16,20 +16,17 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +39,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonInterconnectLocationCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,18 +58,8 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { - UnaryCallable initialHttpCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); - UnaryCallable initialCallable = - new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); - OperationCallable operationCallable = - Callables.longRunningOperation( - initialCallable, operationCallSettings, clientContext, longRunningClient); - return HttpJsonCallableFactory.createOperationCallable( - operationCallSettings, clientContext, longRunningClient, initialCallable); + BackgroundResource operationsStub) { + return null; } @Override diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCodeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCodeCallableFactory.java index f97fa4516bd8..391a6cb589bc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCodeCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCodeCallableFactory.java @@ -16,20 +16,17 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +39,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonLicenseCodeCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,18 +58,8 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { - UnaryCallable initialHttpCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); - UnaryCallable initialCallable = - new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); - OperationCallable operationCallable = - Callables.longRunningOperation( - initialCallable, operationCallSettings, clientContext, longRunningClient); - return HttpJsonCallableFactory.createOperationCallable( - operationCallSettings, clientContext, longRunningClient, initialCallable); + BackgroundResource operationsStub) { + return null; } @Override diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonMachineTypeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonMachineTypeCallableFactory.java index 640874bad796..6cb90d41db00 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonMachineTypeCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonMachineTypeCallableFactory.java @@ -16,20 +16,17 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +39,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonMachineTypeCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,18 +58,8 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { - UnaryCallable initialHttpCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); - UnaryCallable initialCallable = - new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); - OperationCallable operationCallable = - Callables.longRunningOperation( - initialCallable, operationCallSettings, clientContext, longRunningClient); - return HttpJsonCallableFactory.createOperationCallable( - operationCallSettings, clientContext, longRunningClient, initialCallable); + BackgroundResource operationsStub) { + return null; } @Override diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkCallableFactory.java index 69e0b2933f3d..89c93723336c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupCallableFactory.java index d0e47d38d74f..b6d749f8203c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +43,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonNodeGroupCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,13 +62,13 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { + ZoneOperationStub operationsStub) { UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupStub.java index 98974e880cde..adfd51b337fd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupStub.java @@ -324,7 +324,7 @@ public class HttpJsonNodeGroupStub extends NodeGroupStub { .build(); private final BackgroundResource backgroundResources; - private final HttpJsonGlobalOperationStub operationsStub; + private final HttpJsonZoneOperationStub operationsStub; private final UnaryCallable addNodesNodeGroupCallable; private final OperationCallable @@ -401,7 +401,7 @@ protected HttpJsonNodeGroupStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory); + this.operationsStub = HttpJsonZoneOperationStub.create(clientContext, callableFactory); HttpJsonCallSettings addNodesNodeGroupTransportSettings = @@ -562,7 +562,7 @@ protected HttpJsonNodeGroupStub( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public HttpJsonGlobalOperationStub getOperationsStub() { + public HttpJsonZoneOperationStub getOperationsStub() { return operationsStub; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateCallableFactory.java index 3ffeed250872..c1489ea98904 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +43,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonNodeTemplateCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,13 +62,13 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { + RegionOperationStub operationsStub) { UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateStub.java index 06f788bf0250..dbb59f14ca51 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateStub.java @@ -238,7 +238,7 @@ public class HttpJsonNodeTemplateStub extends NodeTemplateStub { .build(); private final BackgroundResource backgroundResources; - private final HttpJsonGlobalOperationStub operationsStub; + private final HttpJsonRegionOperationStub operationsStub; private final UnaryCallable aggregatedListNodeTemplatesCallable; @@ -303,7 +303,7 @@ protected HttpJsonNodeTemplateStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory); + this.operationsStub = HttpJsonRegionOperationStub.create(clientContext, callableFactory); HttpJsonCallSettings aggregatedListNodeTemplatesTransportSettings = @@ -413,7 +413,7 @@ protected HttpJsonNodeTemplateStub( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public HttpJsonGlobalOperationStub getOperationsStub() { + public HttpJsonRegionOperationStub getOperationsStub() { return operationsStub; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTypeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTypeCallableFactory.java index 30778663e65c..1599bb297540 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTypeCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTypeCallableFactory.java @@ -16,20 +16,17 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +39,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonNodeTypeCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,18 +58,8 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { - UnaryCallable initialHttpCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); - UnaryCallable initialCallable = - new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); - OperationCallable operationCallable = - Callables.longRunningOperation( - initialCallable, operationCallSettings, clientContext, longRunningClient); - return HttpJsonCallableFactory.createOperationCallable( - operationCallSettings, clientContext, longRunningClient, initialCallable); + BackgroundResource operationsStub) { + return null; } @Override diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectCallableFactory.java index ee06ca22d9e9..1c69d95bde27 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java index fb06a8897a69..b300859f6620 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +43,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonRegionAutoscalerCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,13 +62,13 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { + RegionOperationStub operationsStub) { UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerStub.java index ee8924b97bd2..a15ed2662de4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerStub.java @@ -181,7 +181,7 @@ public class HttpJsonRegionAutoscalerStub extends RegionAutoscalerStub { .build(); private final BackgroundResource backgroundResources; - private final HttpJsonGlobalOperationStub operationsStub; + private final HttpJsonRegionOperationStub operationsStub; private final UnaryCallable deleteRegionAutoscalerCallable; @@ -246,7 +246,7 @@ protected HttpJsonRegionAutoscalerStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory); + this.operationsStub = HttpJsonRegionOperationStub.create(clientContext, callableFactory); HttpJsonCallSettings deleteRegionAutoscalerTransportSettings = @@ -344,7 +344,7 @@ protected HttpJsonRegionAutoscalerStub( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public HttpJsonGlobalOperationStub getOperationsStub() { + public HttpJsonRegionOperationStub getOperationsStub() { return operationsStub; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceCallableFactory.java index ae43f910c489..905b7747699a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +43,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonRegionBackendServiceCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,13 +62,13 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { + RegionOperationStub operationsStub) { UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceStub.java index 3577396bfce6..6a7244a157d3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceStub.java @@ -209,7 +209,7 @@ public class HttpJsonRegionBackendServiceStub extends RegionBackendServiceStub { .build(); private final BackgroundResource backgroundResources; - private final HttpJsonGlobalOperationStub operationsStub; + private final HttpJsonRegionOperationStub operationsStub; private final UnaryCallable deleteRegionBackendServiceCallable; @@ -277,7 +277,7 @@ protected HttpJsonRegionBackendServiceStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory); + this.operationsStub = HttpJsonRegionOperationStub.create(clientContext, callableFactory); HttpJsonCallSettings deleteRegionBackendServiceTransportSettings = @@ -386,7 +386,7 @@ protected HttpJsonRegionBackendServiceStub( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public HttpJsonGlobalOperationStub getOperationsStub() { + public HttpJsonRegionOperationStub getOperationsStub() { return operationsStub; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCallableFactory.java index 62f7576a7ed7..7e7fe3ea78e6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCallableFactory.java @@ -16,20 +16,17 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +39,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonRegionCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,18 +58,8 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { - UnaryCallable initialHttpCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); - UnaryCallable initialCallable = - new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); - OperationCallable operationCallable = - Callables.longRunningOperation( - initialCallable, operationCallSettings, clientContext, longRunningClient); - return HttpJsonCallableFactory.createOperationCallable( - operationCallSettings, clientContext, longRunningClient, initialCallable); + BackgroundResource operationsStub) { + return null; } @Override diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentCallableFactory.java index f310d480029f..1bb19fd3f19d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +43,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonRegionCommitmentCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,13 +62,13 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { + RegionOperationStub operationsStub) { UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentStub.java index c7dce3cb5827..fbe4ca7ee130 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentStub.java @@ -144,7 +144,7 @@ public class HttpJsonRegionCommitmentStub extends RegionCommitmentStub { .build(); private final BackgroundResource backgroundResources; - private final HttpJsonGlobalOperationStub operationsStub; + private final HttpJsonRegionOperationStub operationsStub; private final UnaryCallable aggregatedListRegionCommitmentsCallable; @@ -202,7 +202,7 @@ protected HttpJsonRegionCommitmentStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory); + this.operationsStub = HttpJsonRegionOperationStub.create(clientContext, callableFactory); HttpJsonCallSettings aggregatedListRegionCommitmentsTransportSettings = @@ -267,7 +267,7 @@ protected HttpJsonRegionCommitmentStub( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public HttpJsonGlobalOperationStub getOperationsStub() { + public HttpJsonRegionOperationStub getOperationsStub() { return operationsStub; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskCallableFactory.java index cb9086334e74..2e9a3b91b92a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +43,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonRegionDiskCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,13 +62,13 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { + RegionOperationStub operationsStub) { UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskStub.java index 49384da8e552..b7d53129a960 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskStub.java @@ -227,7 +227,7 @@ public class HttpJsonRegionDiskStub extends RegionDiskStub { .build(); private final BackgroundResource backgroundResources; - private final HttpJsonGlobalOperationStub operationsStub; + private final HttpJsonRegionOperationStub operationsStub; private final UnaryCallable createSnapshotRegionDiskCallable; @@ -292,7 +292,7 @@ protected HttpJsonRegionDiskStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory); + this.operationsStub = HttpJsonRegionOperationStub.create(clientContext, callableFactory); HttpJsonCallSettings createSnapshotRegionDiskTransportSettings = @@ -399,7 +399,7 @@ protected HttpJsonRegionDiskStub( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public HttpJsonGlobalOperationStub getOperationsStub() { + public HttpJsonRegionOperationStub getOperationsStub() { return operationsStub; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskTypeCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskTypeCallableFactory.java index b5bd4180beb2..044a28518068 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskTypeCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskTypeCallableFactory.java @@ -16,20 +16,17 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +39,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonRegionDiskTypeCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,18 +58,8 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { - UnaryCallable initialHttpCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); - UnaryCallable initialCallable = - new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); - OperationCallable operationCallable = - Callables.longRunningOperation( - initialCallable, operationCallSettings, clientContext, longRunningClient); - return HttpJsonCallableFactory.createOperationCallable( - operationCallSettings, clientContext, longRunningClient, initialCallable); + BackgroundResource operationsStub) { + return null; } @Override diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java index 230a4a3e0a1f..895aa718c1a4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; @@ -44,7 +43,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonRegionInstanceGroupCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -63,7 +62,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { + RegionOperationStub operationsStub) { UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerCallableFactory.java index 06907cbeb61f..600b2defec53 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +43,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonRegionInstanceGroupManagerCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,13 +62,13 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { + RegionOperationStub operationsStub) { UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerStub.java index 07a52b4488c3..b4c680e7944f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerStub.java @@ -351,7 +351,7 @@ public class HttpJsonRegionInstanceGroupManagerStub extends RegionInstanceGroupM .build(); private final BackgroundResource backgroundResources; - private final HttpJsonGlobalOperationStub operationsStub; + private final HttpJsonRegionOperationStub operationsStub; private final UnaryCallable abandonInstancesRegionInstanceGroupManagerCallable; @@ -454,7 +454,7 @@ protected HttpJsonRegionInstanceGroupManagerStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory); + this.operationsStub = HttpJsonRegionOperationStub.create(clientContext, callableFactory); HttpJsonCallSettings abandonInstancesRegionInstanceGroupManagerTransportSettings = @@ -658,7 +658,7 @@ protected HttpJsonRegionInstanceGroupManagerStub( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public HttpJsonGlobalOperationStub getOperationsStub() { + public HttpJsonRegionOperationStub getOperationsStub() { return operationsStub; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupStub.java index 273c3956c035..d0e37e1246f0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupStub.java @@ -150,7 +150,7 @@ public class HttpJsonRegionInstanceGroupStub extends RegionInstanceGroupStub { .build(); private final BackgroundResource backgroundResources; - private final HttpJsonGlobalOperationStub operationsStub; + private final HttpJsonRegionOperationStub operationsStub; private final UnaryCallable getRegionInstanceGroupCallable; @@ -212,7 +212,7 @@ protected HttpJsonRegionInstanceGroupStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory); + this.operationsStub = HttpJsonRegionOperationStub.create(clientContext, callableFactory); HttpJsonCallSettings getRegionInstanceGroupTransportSettings = @@ -281,7 +281,7 @@ protected HttpJsonRegionInstanceGroupStub( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public HttpJsonGlobalOperationStub getOperationsStub() { + public HttpJsonRegionOperationStub getOperationsStub() { return operationsStub; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationCallableFactory.java index 9b6f7624990b..2d4a53820a97 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionOperationCallableFactory.java @@ -16,20 +16,17 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +39,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonRegionOperationCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,18 +58,8 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { - UnaryCallable initialHttpCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); - UnaryCallable initialCallable = - new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); - OperationCallable operationCallable = - Callables.longRunningOperation( - initialCallable, operationCallSettings, clientContext, longRunningClient); - return HttpJsonCallableFactory.createOperationCallable( - operationCallSettings, clientContext, longRunningClient, initialCallable); + BackgroundResource operationsStub) { + return null; } @Override diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteCallableFactory.java index 7e46f5afc414..bff97e3aa2e7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterCallableFactory.java index c37f3fc59ce4..b5d6e5927d86 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +43,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonRouterCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,13 +62,13 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { + RegionOperationStub operationsStub) { UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterStub.java index b76f44769067..f6143cdc3c29 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterStub.java @@ -273,7 +273,7 @@ public class HttpJsonRouterStub extends RouterStub { .build(); private final BackgroundResource backgroundResources; - private final HttpJsonGlobalOperationStub operationsStub; + private final HttpJsonRegionOperationStub operationsStub; private final UnaryCallable aggregatedListRoutersCallable; @@ -342,7 +342,7 @@ protected HttpJsonRouterStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory); + this.operationsStub = HttpJsonRegionOperationStub.create(clientContext, callableFactory); HttpJsonCallSettings aggregatedListRoutersTransportSettings = @@ -470,7 +470,7 @@ protected HttpJsonRouterStub( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public HttpJsonGlobalOperationStub getOperationsStub() { + public HttpJsonRegionOperationStub getOperationsStub() { return operationsStub; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyCallableFactory.java index bcafdc9004d3..587dcb85c5d2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotCallableFactory.java index 2fa0db53777b..4430aae65414 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateCallableFactory.java index 5b2cde444af3..219627874baa 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyCallableFactory.java index 45c37aaa7140..b822acff8d4e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkCallableFactory.java index 7a6fd7add656..140395dd7b7c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +43,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonSubnetworkCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,13 +62,13 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { + RegionOperationStub operationsStub) { UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkStub.java index ea563667aa2f..950c5f401784 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkStub.java @@ -331,7 +331,7 @@ public class HttpJsonSubnetworkStub extends SubnetworkStub { .build(); private final BackgroundResource backgroundResources; - private final HttpJsonGlobalOperationStub operationsStub; + private final HttpJsonRegionOperationStub operationsStub; private final UnaryCallable aggregatedListSubnetworksCallable; @@ -411,7 +411,7 @@ protected HttpJsonSubnetworkStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory); + this.operationsStub = HttpJsonRegionOperationStub.create(clientContext, callableFactory); HttpJsonCallSettings aggregatedListSubnetworksTransportSettings = @@ -572,7 +572,7 @@ protected HttpJsonSubnetworkStub( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public HttpJsonGlobalOperationStub getOperationsStub() { + public HttpJsonRegionOperationStub getOperationsStub() { return operationsStub; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyCallableFactory.java index d3ce47672342..5928db382479 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyCallableFactory.java index d7f85ead361e..c58be1a7d10d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceCallableFactory.java index 9f2f536fe7e2..64285f15973a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +43,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonTargetInstanceCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,13 +62,13 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { + ZoneOperationStub operationsStub) { UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceStub.java index 8dd7e1b6c34f..10e6107e47ae 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceStub.java @@ -166,7 +166,7 @@ public class HttpJsonTargetInstanceStub extends TargetInstanceStub { .build(); private final BackgroundResource backgroundResources; - private final HttpJsonGlobalOperationStub operationsStub; + private final HttpJsonZoneOperationStub operationsStub; private final UnaryCallable< AggregatedListTargetInstancesHttpRequest, TargetInstanceAggregatedList> @@ -229,7 +229,7 @@ protected HttpJsonTargetInstanceStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory); + this.operationsStub = HttpJsonZoneOperationStub.create(clientContext, callableFactory); HttpJsonCallSettings aggregatedListTargetInstancesTransportSettings = @@ -311,7 +311,7 @@ protected HttpJsonTargetInstanceStub( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public HttpJsonGlobalOperationStub getOperationsStub() { + public HttpJsonZoneOperationStub getOperationsStub() { return operationsStub; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolCallableFactory.java index 6a529d5b4385..283f79ee181e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +43,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonTargetPoolCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,13 +62,13 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { + RegionOperationStub operationsStub) { UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolStub.java index 898d25adf919..0dce222af969 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolStub.java @@ -299,7 +299,7 @@ public class HttpJsonTargetPoolStub extends TargetPoolStub { .build(); private final BackgroundResource backgroundResources; - private final HttpJsonGlobalOperationStub operationsStub; + private final HttpJsonRegionOperationStub operationsStub; private final UnaryCallable addHealthCheckTargetPoolCallable; @@ -379,7 +379,7 @@ protected HttpJsonTargetPoolStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory); + this.operationsStub = HttpJsonRegionOperationStub.create(clientContext, callableFactory); HttpJsonCallSettings addHealthCheckTargetPoolTransportSettings = @@ -538,7 +538,7 @@ protected HttpJsonTargetPoolStub( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public HttpJsonGlobalOperationStub getOperationsStub() { + public HttpJsonRegionOperationStub getOperationsStub() { return operationsStub; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyCallableFactory.java index 41a460976c75..64b5c8b8c25a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyCallableFactory.java index c1c9880fea1f..7d7502636593 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayCallableFactory.java index 93a20e2f2631..f25f6d57a49a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +43,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonTargetVpnGatewayCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,13 +62,13 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { + RegionOperationStub operationsStub) { UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayStub.java index 0125641742a4..9b502a0becdf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayStub.java @@ -168,7 +168,7 @@ public class HttpJsonTargetVpnGatewayStub extends TargetVpnGatewayStub { .build(); private final BackgroundResource backgroundResources; - private final HttpJsonGlobalOperationStub operationsStub; + private final HttpJsonRegionOperationStub operationsStub; private final UnaryCallable< AggregatedListTargetVpnGatewaysHttpRequest, TargetVpnGatewayAggregatedList> @@ -231,7 +231,7 @@ protected HttpJsonTargetVpnGatewayStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory); + this.operationsStub = HttpJsonRegionOperationStub.create(clientContext, callableFactory); HttpJsonCallSettings aggregatedListTargetVpnGatewaysTransportSettings = @@ -314,7 +314,7 @@ protected HttpJsonTargetVpnGatewayStub( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public HttpJsonGlobalOperationStub getOperationsStub() { + public HttpJsonRegionOperationStub getOperationsStub() { return operationsStub; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapCallableFactory.java index 5c7cc2167570..d3688a2728df 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -67,7 +68,7 @@ OperationCallable createOperationCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelCallableFactory.java index 386574ec508a..6a5483e3508c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelCallableFactory.java @@ -23,12 +23,13 @@ import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LongRunningClient; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; +import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +43,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonVpnTunnelCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,13 +62,13 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { + RegionOperationStub operationsStub) { UnaryCallable initialHttpCallable = HttpJsonCallableFactory.createBaseUnaryCallable( httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); UnaryCallable initialCallable = new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); + LongRunningClient longRunningClient = ComputeLongRunningClientFactory.create(operationsStub); OperationCallable operationCallable = Callables.longRunningOperation( initialCallable, operationCallSettings, clientContext, longRunningClient); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelStub.java index 1e7044ed03fa..ac3f525731ee 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelStub.java @@ -161,7 +161,7 @@ public class HttpJsonVpnTunnelStub extends VpnTunnelStub { .build(); private final BackgroundResource backgroundResources; - private final HttpJsonGlobalOperationStub operationsStub; + private final HttpJsonRegionOperationStub operationsStub; private final UnaryCallable aggregatedListVpnTunnelsCallable; @@ -217,7 +217,7 @@ protected HttpJsonVpnTunnelStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; - this.operationsStub = HttpJsonGlobalOperationStub.create(clientContext, callableFactory); + this.operationsStub = HttpJsonRegionOperationStub.create(clientContext, callableFactory); HttpJsonCallSettings aggregatedListVpnTunnelsTransportSettings = @@ -284,7 +284,7 @@ protected HttpJsonVpnTunnelStub( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public HttpJsonGlobalOperationStub getOperationsStub() { + public HttpJsonRegionOperationStub getOperationsStub() { return operationsStub; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneCallableFactory.java index f2b59bb6a2f0..1c26e0bff3b5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneCallableFactory.java @@ -16,20 +16,17 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +39,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonZoneCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,18 +58,8 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { - UnaryCallable initialHttpCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); - UnaryCallable initialCallable = - new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); - OperationCallable operationCallable = - Callables.longRunningOperation( - initialCallable, operationCallSettings, clientContext, longRunningClient); - return HttpJsonCallableFactory.createOperationCallable( - operationCallSettings, clientContext, longRunningClient, initialCallable); + BackgroundResource operationsStub) { + return null; } @Override diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationCallableFactory.java index e36d4f1fd238..67b2a4bed15b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonZoneOperationCallableFactory.java @@ -16,20 +16,17 @@ package com.google.cloud.compute.v1.stub; import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.Callables; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClient; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; @@ -42,7 +39,7 @@ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public class HttpJsonZoneOperationCallableFactory - implements HttpJsonStubCallableFactory { + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( HttpJsonCallSettings httpJsonCallSettings, @@ -61,18 +58,8 @@ OperationCallable createOperationCallable( httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, - GlobalOperationStub operationsStub) { - UnaryCallable initialHttpCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, operationCallSettings.getInitialCallSettings(), clientContext); - UnaryCallable initialCallable = - new OperationSnapshotCallable<>(initialHttpCallable); - ComputeLongRunningClient longRunningClient = ComputeLongRunningClient.create(operationsStub); - OperationCallable operationCallable = - Callables.longRunningOperation( - initialCallable, operationCallSettings, clientContext, longRunningClient); - return HttpJsonCallableFactory.createOperationCallable( - operationCallSettings, clientContext, longRunningClient, initialCallable); + BackgroundResource operationsStub) { + return null; } @Override diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStub.java index 143fb3101164..d7cd0cc68816 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStub.java @@ -54,7 +54,7 @@ public abstract class InstanceGroupManagerStub implements BackgroundResource { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GlobalOperationStub getOperationsStub() { + public ZoneOperationStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStub.java index 5b5b7e57cc26..b3d5e7e357ed 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStub.java @@ -51,7 +51,7 @@ public abstract class InstanceGroupStub implements BackgroundResource { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GlobalOperationStub getOperationsStub() { + public ZoneOperationStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStub.java index 727c2cb9bafe..85c6106cb411 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStub.java @@ -76,7 +76,7 @@ public abstract class InstanceStub implements BackgroundResource { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GlobalOperationStub getOperationsStub() { + public ZoneOperationStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } @@ -173,7 +173,7 @@ public UnaryCallable getIamPolicyInstan } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertInstanceOperationCallable() { throw new UnsupportedOperationException("Not implemented: insertInstanceOperationCallable()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStub.java index 624b712beba4..3d7aefe18a5a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStub.java @@ -46,7 +46,7 @@ public abstract class InterconnectAttachmentStub implements BackgroundResource { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GlobalOperationStub getOperationsStub() { + public RegionOperationStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStub.java index 242c8abd330b..34525e2ed0b0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStub.java @@ -56,7 +56,7 @@ public abstract class NodeGroupStub implements BackgroundResource { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GlobalOperationStub getOperationsStub() { + public ZoneOperationStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStub.java index 0a92ce30969a..e90b20dea4d5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStub.java @@ -50,7 +50,7 @@ public abstract class NodeTemplateStub implements BackgroundResource { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GlobalOperationStub getOperationsStub() { + public RegionOperationStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStub.java index cbe63b79dd98..5c8460d8a8d2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStub.java @@ -44,7 +44,7 @@ public abstract class RegionAutoscalerStub implements BackgroundResource { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GlobalOperationStub getOperationsStub() { + public RegionOperationStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStub.java index 9a4e4465dd58..bb7be782a2f9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStub.java @@ -46,7 +46,7 @@ public abstract class RegionBackendServiceStub implements BackgroundResource { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GlobalOperationStub getOperationsStub() { + public RegionOperationStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStub.java index 4853d7cd11a4..000603fa04a3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStub.java @@ -44,7 +44,7 @@ public abstract class RegionCommitmentStub implements BackgroundResource { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GlobalOperationStub getOperationsStub() { + public RegionOperationStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStub.java index 159466ebada9..3ca886872b44 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStub.java @@ -47,7 +47,7 @@ public abstract class RegionDiskStub implements BackgroundResource { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GlobalOperationStub getOperationsStub() { + public RegionOperationStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStub.java index 23aeb4df4a9a..2db8a92f93e5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStub.java @@ -51,7 +51,7 @@ public abstract class RegionInstanceGroupManagerStub implements BackgroundResource { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GlobalOperationStub getOperationsStub() { + public RegionOperationStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStub.java index 3dd9911d026e..9bb1d453c5ee 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStub.java @@ -44,7 +44,7 @@ public abstract class RegionInstanceGroupStub implements BackgroundResource { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GlobalOperationStub getOperationsStub() { + public RegionOperationStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStub.java index a6d6d05669cc..e0cedfe25b34 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStub.java @@ -54,7 +54,7 @@ public abstract class RouterStub implements BackgroundResource { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GlobalOperationStub getOperationsStub() { + public RegionOperationStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStub.java index 967b9026de16..5510e47c6c35 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStub.java @@ -56,7 +56,7 @@ public abstract class SubnetworkStub implements BackgroundResource { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GlobalOperationStub getOperationsStub() { + public RegionOperationStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStub.java index b9464e043e90..d87f48efb5fa 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStub.java @@ -45,7 +45,7 @@ public abstract class TargetInstanceStub implements BackgroundResource { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GlobalOperationStub getOperationsStub() { + public ZoneOperationStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStub.java index 67089043cdc6..8ddde7ec2e2e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStub.java @@ -52,7 +52,7 @@ public abstract class TargetPoolStub implements BackgroundResource { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GlobalOperationStub getOperationsStub() { + public RegionOperationStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStub.java index ec19cf915b4d..eca2f12e1b88 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStub.java @@ -45,7 +45,7 @@ public abstract class TargetVpnGatewayStub implements BackgroundResource { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GlobalOperationStub getOperationsStub() { + public RegionOperationStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStub.java index 2dcd0244840d..7b76f84258dd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStub.java @@ -45,7 +45,7 @@ public abstract class VpnTunnelStub implements BackgroundResource { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public GlobalOperationStub getOperationsStub() { + public RegionOperationStub getOperationsStub() { throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceClientTest.java index 7a04c6766204..fd18f43a1592 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceClientTest.java @@ -679,7 +679,7 @@ public void insertInstanceTest() throws Exception { ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); Instance instanceResource = Instance.newBuilder().build(); - EmptyMessage actualResponse = client.insertInstanceAsync(zone, instanceResource).get(); + Operation actualResponse = client.insertInstanceAsync(zone, instanceResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/it/ITComputeTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/it/ITComputeTest.java index e48a302f2170..e87a5af777be 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/it/ITComputeTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/it/ITComputeTest.java @@ -20,6 +20,7 @@ import com.google.api.gax.core.FixedCredentialsProvider; import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.paging.Page; import com.google.api.gax.rpc.ApiException; import com.google.api.gax.rpc.NotFoundException; @@ -81,6 +82,7 @@ public class ITComputeTest { private static final String DISK_TYPE = "local-ssd"; private static final String DEFAULT_PROJECT = ServiceOptions.getDefaultProjectId(); private static final String UUID_INSTANCE = UUID.randomUUID().toString().replaceAll("-", ""); + private static final String INSTANCE_NAME_FORMAT = String.format("test-api-instance-%s", UUID_INSTANCE); private static final String REGION = "us-west1"; @@ -114,7 +116,7 @@ public class ITComputeTest { @BeforeClass public static void beforeClass() throws Exception { - Logger.getLogger("").setLevel(Level.WARNING); + Logger.getLogger("").setLevel(Level.ALL); Credentials credentials = GoogleCredentials.getApplicationDefault() @@ -156,32 +158,35 @@ public static void beforeClass() throws Exception { } // Remove resources that are created in this test class to avoid overbilling and 403s. + // This may take up to a minute. private static void removeResources(List> exceptionTypes) throws Exception { + long startAt = System.currentTimeMillis(); + log.log(Level.INFO, String.format("Attempting to remove the created Instance %sms.", INSTANCE_NAME)); try { - OperationFuture future = instanceClient.deleteInstanceAsync(INSTANCE_NAME); - future.get(10, TimeUnit.SECONDS); // Block until operation completes. + OperationFuture future = + instanceClient.deleteInstanceAsync(INSTANCE_NAME); + future.get(50, TimeUnit.SECONDS); } catch (Exception e) { if (isNotExceptionType(exceptionTypes, e)) throw e; } + log.log(Level.INFO, String.format("Removed the created Instance %s in %dms", INSTANCE_NAME, System.currentTimeMillis() - startAt)); + startAt = System.currentTimeMillis(); try { OperationFuture future = diskClient.deleteDiskAsync(DISK_NAME); - future.get(10, TimeUnit.SECONDS); // Block until operation completes. - } catch (Exception e) { - if (isNotExceptionType(exceptionTypes, e)) throw e; - } - try { - OperationFuture future = instanceClient.deleteInstanceAsync(INSTANCE_NAME); - future.get(10, TimeUnit.SECONDS); // Block until operation completes. + future.get(20, TimeUnit.SECONDS); // Block until operation completes. } catch (Exception e) { if (isNotExceptionType(exceptionTypes, e)) throw e; } + log.log(Level.INFO, String.format("Removed the created Disk %s in %dms", INSTANCE_NAME, System.currentTimeMillis() - startAt)); + startAt = System.currentTimeMillis(); try { OperationFuture future = imageClient.deleteImageAsync(IMAGE_NAME); - future.get(10, TimeUnit.SECONDS); // Block until operation completes. + future.get(20, TimeUnit.SECONDS); // Block until operation completes. } catch (Exception e) { if (isNotExceptionType(exceptionTypes, e)) throw e; } + log.log(Level.INFO, String.format("Removed the created Image %s in %dms.", IMAGE_NAME, System.currentTimeMillis() - startAt)); } private static boolean isNotExceptionType( @@ -247,8 +252,9 @@ public void testDetachDisk() throws Exception { .setMachineType(MACHINE_TYPE_NAME.toString()) .addDisks(bootDisk) .build(); - OperationFuture op1 = instanceClient.insertInstanceAsync(PROJECT_ZONE_NAME, instanceResource); - op1.get(10, TimeUnit.SECONDS); // Blocking until operation completes or times out. + OperationFuture op1 = + instanceClient.insertInstanceAsync(PROJECT_ZONE_NAME, instanceResource); + Operation operationSnapshot = op1.get(20, TimeUnit.SECONDS); // Blocking until operation completes or times out. log.log(Level.INFO, (String.format("Instance created: %s", op1.toString()))); // Insert a disk. @@ -258,7 +264,8 @@ public void testDetachDisk() throws Exception { .setSizeGb(String.valueOf(7)) .setType(diskTypeName.toString()) .build(); - OperationFuture op2 = diskClient.insertDiskAsync(PROJECT_ZONE_NAME, disk); + OperationFuture op2 = + diskClient.insertDiskAsync(PROJECT_ZONE_NAME, disk); log.log(Level.INFO, String.format("Disk created: %s", op2.toString())); op1.get(10, TimeUnit.SECONDS); // Blocking until operation completes or times out. @@ -270,11 +277,13 @@ public void testDetachDisk() throws Exception { .setMode("READ_WRITE") .setSource(DISK_NAME.toString()) .build(); - OperationFuture op3 = instanceClient.attachDiskInstanceAsync(INSTANCE_NAME, false, attachedDisk); + OperationFuture op3 = + instanceClient.attachDiskInstanceAsync(INSTANCE_NAME, false, attachedDisk); log.log(Level.INFO, String.format("Disk attached: %s", op3.toString())); op1.get(10, TimeUnit.SECONDS); // Blocking until operation completes or times out. - OperationFuture op4 = instanceClient.detachDiskInstanceAsync(INSTANCE_NAME, DISK_NAME.getDisk()); + OperationFuture op4 = + instanceClient.detachDiskInstanceAsync(INSTANCE_NAME, DISK_NAME.getDisk()); log.log(Level.INFO, String.format("Disk detached: %s", op4.toString())); } From fc160db536c5d29b0230c45c6dc2ddbada19818b Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Fri, 15 Feb 2019 17:58:33 -0800 Subject: [PATCH 19/27] better log messages --- .../longrunning/ComputeOperationSnapshot.java | 7 +- .../cloud/compute/v1/AddressClient.java | 20 +- .../cloud/compute/v1/AddressSettings.java | 8 +- .../cloud/compute/v1/AutoscalerClient.java | 41 ++- .../cloud/compute/v1/AutoscalerSettings.java | 16 +- .../cloud/compute/v1/BackendBucketClient.java | 61 ++-- .../compute/v1/BackendBucketSettings.java | 25 +- .../compute/v1/BackendServiceClient.java | 71 +++-- .../compute/v1/BackendServiceSettings.java | 33 +- .../google/cloud/compute/v1/DiskClient.java | 51 ++- .../google/cloud/compute/v1/DiskSettings.java | 20 +- .../cloud/compute/v1/FirewallClient.java | 40 +-- .../cloud/compute/v1/FirewallSettings.java | 16 +- .../compute/v1/ForwardingRuleClient.java | 30 +- .../compute/v1/ForwardingRuleSettings.java | 14 +- .../cloud/compute/v1/GlobalAddressClient.java | 21 +- .../compute/v1/GlobalAddressSettings.java | 8 +- .../v1/GlobalForwardingRuleClient.java | 31 +- .../v1/GlobalForwardingRuleSettings.java | 12 +- .../cloud/compute/v1/HealthCheckClient.java | 41 ++- .../cloud/compute/v1/HealthCheckSettings.java | 16 +- .../compute/v1/HttpHealthCheckClient.java | 40 +-- .../compute/v1/HttpHealthCheckSettings.java | 20 +- .../compute/v1/HttpsHealthCheckClient.java | 40 +-- .../compute/v1/HttpsHealthCheckSettings.java | 20 +- .../google/cloud/compute/v1/ImageClient.java | 40 +-- .../cloud/compute/v1/ImageSettings.java | 16 +- .../cloud/compute/v1/InstanceClient.java | 233 +++++++------- .../cloud/compute/v1/InstanceGroupClient.java | 51 ++- .../v1/InstanceGroupManagerClient.java | 124 ++++---- .../v1/InstanceGroupManagerSettings.java | 36 +-- .../compute/v1/InstanceGroupSettings.java | 20 +- .../cloud/compute/v1/InstanceSettings.java | 97 +++--- .../compute/v1/InstanceTemplateClient.java | 20 +- .../compute/v1/InstanceTemplateSettings.java | 10 +- .../v1/InterconnectAttachmentClient.java | 32 +- .../v1/InterconnectAttachmentSettings.java | 12 +- .../cloud/compute/v1/InterconnectClient.java | 30 +- .../compute/v1/InterconnectSettings.java | 12 +- .../cloud/compute/v1/LicenseClient.java | 20 +- .../cloud/compute/v1/LicenseSettings.java | 8 +- .../cloud/compute/v1/NetworkClient.java | 60 ++-- .../cloud/compute/v1/NetworkSettings.java | 25 +- .../cloud/compute/v1/NodeGroupClient.java | 50 +-- .../cloud/compute/v1/NodeGroupSettings.java | 21 +- .../cloud/compute/v1/NodeTemplateClient.java | 20 +- .../compute/v1/NodeTemplateSettings.java | 8 +- .../cloud/compute/v1/ProjectClient.java | 93 +++--- .../cloud/compute/v1/ProjectSettings.java | 39 ++- .../compute/v1/RegionAutoscalerClient.java | 40 +-- .../compute/v1/RegionAutoscalerSettings.java | 20 +- .../v1/RegionBackendServiceClient.java | 40 +-- .../v1/RegionBackendServiceSettings.java | 16 +- .../compute/v1/RegionCommitmentClient.java | 10 +- .../compute/v1/RegionCommitmentSettings.java | 5 +- .../cloud/compute/v1/RegionDiskClient.java | 50 +-- .../cloud/compute/v1/RegionDiskSettings.java | 20 +- .../compute/v1/RegionInstanceGroupClient.java | 10 +- .../v1/RegionInstanceGroupManagerClient.java | 90 +++--- .../RegionInstanceGroupManagerSettings.java | 40 ++- .../v1/RegionInstanceGroupSettings.java | 5 +- .../google/cloud/compute/v1/RouteClient.java | 20 +- .../cloud/compute/v1/RouteSettings.java | 8 +- .../google/cloud/compute/v1/RouterClient.java | 40 +-- .../cloud/compute/v1/RouterSettings.java | 16 +- .../compute/v1/SecurityPolicyClient.java | 60 ++-- .../compute/v1/SecurityPolicySettings.java | 27 +- .../cloud/compute/v1/SnapshotClient.java | 20 +- .../cloud/compute/v1/SnapshotSettings.java | 8 +- .../compute/v1/SslCertificateClient.java | 20 +- .../compute/v1/SslCertificateSettings.java | 10 +- .../cloud/compute/v1/SslPolicyClient.java | 30 +- .../cloud/compute/v1/SslPolicySettings.java | 12 +- .../cloud/compute/v1/SubnetworkClient.java | 51 ++- .../cloud/compute/v1/SubnetworkSettings.java | 20 +- .../compute/v1/TargetHttpProxyClient.java | 30 +- .../compute/v1/TargetHttpProxySettings.java | 14 +- .../compute/v1/TargetHttpsProxyClient.java | 61 ++-- .../compute/v1/TargetHttpsProxySettings.java | 27 +- .../compute/v1/TargetInstanceClient.java | 20 +- .../compute/v1/TargetInstanceSettings.java | 10 +- .../cloud/compute/v1/TargetPoolClient.java | 71 +++-- .../cloud/compute/v1/TargetPoolSettings.java | 29 +- .../compute/v1/TargetSslProxyClient.java | 61 ++-- .../compute/v1/TargetSslProxySettings.java | 28 +- .../compute/v1/TargetTcpProxyClient.java | 41 ++- .../compute/v1/TargetTcpProxySettings.java | 19 +- .../compute/v1/TargetVpnGatewayClient.java | 20 +- .../compute/v1/TargetVpnGatewaySettings.java | 10 +- .../google/cloud/compute/v1/UrlMapClient.java | 50 +-- .../cloud/compute/v1/UrlMapSettings.java | 21 +- .../cloud/compute/v1/VpnTunnelClient.java | 20 +- .../cloud/compute/v1/VpnTunnelSettings.java | 8 +- .../cloud/compute/v1/stub/AddressStub.java | 4 +- .../compute/v1/stub/AddressStubSettings.java | 26 +- .../cloud/compute/v1/stub/AutoscalerStub.java | 8 +- .../v1/stub/AutoscalerStubSettings.java | 49 ++- .../compute/v1/stub/BackendBucketStub.java | 12 +- .../v1/stub/BackendBucketStubSettings.java | 73 +++-- .../compute/v1/stub/BackendServiceStub.java | 14 +- .../v1/stub/BackendServiceStubSettings.java | 89 +++--- .../cloud/compute/v1/stub/DiskStub.java | 10 +- .../compute/v1/stub/DiskStubSettings.java | 61 ++-- .../cloud/compute/v1/stub/FirewallStub.java | 8 +- .../compute/v1/stub/FirewallStubSettings.java | 52 ++-- .../compute/v1/stub/ForwardingRuleStub.java | 6 +- .../v1/stub/ForwardingRuleStubSettings.java | 39 ++- .../compute/v1/stub/GlobalAddressStub.java | 4 +- .../v1/stub/GlobalAddressStubSettings.java | 24 +- .../v1/stub/GlobalForwardingRuleStub.java | 6 +- .../GlobalForwardingRuleStubSettings.java | 36 +-- .../compute/v1/stub/HealthCheckStub.java | 8 +- .../v1/stub/HealthCheckStubSettings.java | 48 +-- .../compute/v1/stub/HttpHealthCheckStub.java | 8 +- .../v1/stub/HttpHealthCheckStubSettings.java | 52 ++-- .../compute/v1/stub/HttpJsonAddressStub.java | 8 +- .../v1/stub/HttpJsonAutoscalerStub.java | 16 +- .../v1/stub/HttpJsonBackendBucketStub.java | 25 +- .../v1/stub/HttpJsonBackendServiceStub.java | 29 +- .../compute/v1/stub/HttpJsonDiskStub.java | 20 +- .../compute/v1/stub/HttpJsonFirewallStub.java | 16 +- .../v1/stub/HttpJsonForwardingRuleStub.java | 12 +- .../v1/stub/HttpJsonGlobalAddressStub.java | 8 +- .../HttpJsonGlobalForwardingRuleStub.java | 13 +- .../v1/stub/HttpJsonHealthCheckStub.java | 16 +- .../v1/stub/HttpJsonHttpHealthCheckStub.java | 16 +- .../v1/stub/HttpJsonHttpsHealthCheckStub.java | 16 +- .../compute/v1/stub/HttpJsonImageStub.java | 16 +- .../HttpJsonInstanceGroupManagerStub.java | 39 ++- .../v1/stub/HttpJsonInstanceGroupStub.java | 21 +- .../compute/v1/stub/HttpJsonInstanceStub.java | 94 +++--- .../v1/stub/HttpJsonInstanceTemplateStub.java | 8 +- .../HttpJsonInterconnectAttachmentStub.java | 15 +- .../v1/stub/HttpJsonInterconnectStub.java | 12 +- .../compute/v1/stub/HttpJsonLicenseStub.java | 8 +- .../compute/v1/stub/HttpJsonNetworkStub.java | 24 +- .../v1/stub/HttpJsonNodeGroupStub.java | 20 +- .../v1/stub/HttpJsonNodeTemplateStub.java | 8 +- .../compute/v1/stub/HttpJsonProjectStub.java | 38 ++- .../v1/stub/HttpJsonRegionAutoscalerStub.java | 16 +- .../HttpJsonRegionBackendServiceStub.java | 16 +- .../v1/stub/HttpJsonRegionCommitmentStub.java | 4 +- .../v1/stub/HttpJsonRegionDiskStub.java | 20 +- ...ttpJsonRegionInstanceGroupManagerStub.java | 36 +-- .../stub/HttpJsonRegionInstanceGroupStub.java | 4 +- .../compute/v1/stub/HttpJsonRouteStub.java | 8 +- .../compute/v1/stub/HttpJsonRouterStub.java | 16 +- .../v1/stub/HttpJsonSecurityPolicyStub.java | 24 +- .../compute/v1/stub/HttpJsonSnapshotStub.java | 8 +- .../v1/stub/HttpJsonSslCertificateStub.java | 8 +- .../v1/stub/HttpJsonSslPolicyStub.java | 12 +- .../v1/stub/HttpJsonSubnetworkStub.java | 22 +- .../v1/stub/HttpJsonTargetHttpProxyStub.java | 12 +- .../v1/stub/HttpJsonTargetHttpsProxyStub.java | 26 +- .../v1/stub/HttpJsonTargetInstanceStub.java | 8 +- .../v1/stub/HttpJsonTargetPoolStub.java | 29 +- .../v1/stub/HttpJsonTargetSslProxyStub.java | 25 +- .../v1/stub/HttpJsonTargetTcpProxyStub.java | 17 +- .../v1/stub/HttpJsonTargetVpnGatewayStub.java | 8 +- .../compute/v1/stub/HttpJsonUrlMapStub.java | 20 +- .../v1/stub/HttpJsonVpnTunnelStub.java | 8 +- .../compute/v1/stub/HttpsHealthCheckStub.java | 8 +- .../v1/stub/HttpsHealthCheckStubSettings.java | 52 ++-- .../cloud/compute/v1/stub/ImageStub.java | 8 +- .../compute/v1/stub/ImageStubSettings.java | 50 ++- .../v1/stub/InstanceGroupManagerStub.java | 21 +- .../InstanceGroupManagerStubSettings.java | 109 ++++--- .../compute/v1/stub/InstanceGroupStub.java | 10 +- .../v1/stub/InstanceGroupStubSettings.java | 61 ++-- .../cloud/compute/v1/stub/InstanceStub.java | 46 +-- .../compute/v1/stub/InstanceStubSettings.java | 290 +++++++++--------- .../compute/v1/stub/InstanceTemplateStub.java | 4 +- .../v1/stub/InstanceTemplateStubSettings.java | 26 +- .../v1/stub/InterconnectAttachmentStub.java | 6 +- .../InterconnectAttachmentStubSettings.java | 36 +-- .../compute/v1/stub/InterconnectStub.java | 6 +- .../v1/stub/InterconnectStubSettings.java | 36 +-- .../cloud/compute/v1/stub/LicenseStub.java | 4 +- .../compute/v1/stub/LicenseStubSettings.java | 26 +- .../cloud/compute/v1/stub/NetworkStub.java | 12 +- .../compute/v1/stub/NetworkStubSettings.java | 76 +++-- .../cloud/compute/v1/stub/NodeGroupStub.java | 10 +- .../v1/stub/NodeGroupStubSettings.java | 64 ++-- .../compute/v1/stub/NodeTemplateStub.java | 4 +- .../v1/stub/NodeTemplateStubSettings.java | 24 +- .../cloud/compute/v1/stub/ProjectStub.java | 18 +- .../compute/v1/stub/ProjectStubSettings.java | 114 ++++--- .../compute/v1/stub/RegionAutoscalerStub.java | 8 +- .../v1/stub/RegionAutoscalerStubSettings.java | 52 ++-- .../v1/stub/RegionBackendServiceStub.java | 8 +- .../RegionBackendServiceStubSettings.java | 49 ++- .../compute/v1/stub/RegionCommitmentStub.java | 2 +- .../v1/stub/RegionCommitmentStubSettings.java | 13 +- .../cloud/compute/v1/stub/RegionDiskStub.java | 10 +- .../v1/stub/RegionDiskStubSettings.java | 61 ++-- .../stub/RegionInstanceGroupManagerStub.java | 18 +- ...egionInstanceGroupManagerStubSettings.java | 112 ++++--- .../v1/stub/RegionInstanceGroupStub.java | 2 +- .../stub/RegionInstanceGroupStubSettings.java | 13 +- .../cloud/compute/v1/stub/RouteStub.java | 4 +- .../compute/v1/stub/RouteStubSettings.java | 24 +- .../cloud/compute/v1/stub/RouterStub.java | 8 +- .../compute/v1/stub/RouterStubSettings.java | 48 +-- .../compute/v1/stub/SecurityPolicyStub.java | 12 +- .../v1/stub/SecurityPolicyStubSettings.java | 77 +++-- .../cloud/compute/v1/stub/SnapshotStub.java | 4 +- .../compute/v1/stub/SnapshotStubSettings.java | 25 +- .../compute/v1/stub/SslCertificateStub.java | 4 +- .../v1/stub/SslCertificateStubSettings.java | 26 +- .../cloud/compute/v1/stub/SslPolicyStub.java | 6 +- .../v1/stub/SslPolicyStubSettings.java | 39 ++- .../cloud/compute/v1/stub/SubnetworkStub.java | 11 +- .../v1/stub/SubnetworkStubSettings.java | 61 ++-- .../compute/v1/stub/TargetHttpProxyStub.java | 6 +- .../v1/stub/TargetHttpProxyStubSettings.java | 39 ++- .../compute/v1/stub/TargetHttpsProxyStub.java | 13 +- .../v1/stub/TargetHttpsProxyStubSettings.java | 76 +++-- .../compute/v1/stub/TargetInstanceStub.java | 4 +- .../v1/stub/TargetInstanceStubSettings.java | 26 +- .../cloud/compute/v1/stub/TargetPoolStub.java | 14 +- .../v1/stub/TargetPoolStubSettings.java | 87 +++--- .../compute/v1/stub/TargetSslProxyStub.java | 12 +- .../v1/stub/TargetSslProxyStubSettings.java | 76 +++-- .../compute/v1/stub/TargetTcpProxyStub.java | 8 +- .../v1/stub/TargetTcpProxyStubSettings.java | 51 ++- .../compute/v1/stub/TargetVpnGatewayStub.java | 4 +- .../v1/stub/TargetVpnGatewayStubSettings.java | 26 +- .../cloud/compute/v1/stub/UrlMapStub.java | 10 +- .../compute/v1/stub/UrlMapStubSettings.java | 61 ++-- .../cloud/compute/v1/stub/VpnTunnelStub.java | 4 +- .../v1/stub/VpnTunnelStubSettings.java | 26 +- .../cloud/compute/v1/InstanceClientTest.java | 2 +- .../cloud/compute/v1/it/ITComputeTest.java | 53 +++- 233 files changed, 3352 insertions(+), 3553 deletions(-) diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java index f0c0807d423e..11456e174194 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java @@ -37,8 +37,10 @@ public String getName() { } @Override - public Object getMetadata() { - return null; + // Returns the underlying Compute Operation object that is natively returned by + // longrunning methods. + public Operation getMetadata() { + return operation; } @Override @@ -48,6 +50,7 @@ public boolean isDone() { @Override public Object getResponse() { + // Compute methods do not have responses. return null; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java index 95100d83a9e2..11ea2e0a2174 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressClient.java @@ -323,7 +323,7 @@ public final AggregatedListAddressesPagedResponse aggregatedListAddresses( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteAddressAsync( + public final OperationFuture deleteAddressAsync( ProjectRegionAddressName address) { DeleteAddressHttpRequest request = @@ -351,7 +351,7 @@ public final OperationFuture deleteAddressAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteAddressAsync(String address) { + public final OperationFuture deleteAddressAsync(String address) { DeleteAddressHttpRequest request = DeleteAddressHttpRequest.newBuilder().setAddress(address).build(); @@ -379,7 +379,7 @@ public final OperationFuture deleteAddressAsync(Stri */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteAddressAsync( + public final OperationFuture deleteAddressAsync( DeleteAddressHttpRequest request) { return deleteAddressOperationCallable().futureCall(request); } @@ -396,14 +396,14 @@ public final OperationFuture deleteAddressAsync( * DeleteAddressHttpRequest request = DeleteAddressHttpRequest.newBuilder() * .setAddress(address.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = addressClient.deleteAddressOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = addressClient.deleteAddressOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteAddressOperationCallable() { return stub.deleteAddressOperationCallable(); } @@ -549,7 +549,7 @@ public final UnaryCallable getAddressCallable() */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertAddressAsync( + public final OperationFuture insertAddressAsync( ProjectRegionName region, Address addressResource) { InsertAddressHttpRequest request = @@ -582,7 +582,7 @@ public final OperationFuture insertAddressAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertAddressAsync( + public final OperationFuture insertAddressAsync( String region, Address addressResource) { InsertAddressHttpRequest request = @@ -616,7 +616,7 @@ public final OperationFuture insertAddressAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertAddressAsync( + public final OperationFuture insertAddressAsync( InsertAddressHttpRequest request) { return insertAddressOperationCallable().futureCall(request); } @@ -635,14 +635,14 @@ public final OperationFuture insertAddressAsync( * .setRegion(region.toString()) * .setAddressResource(addressResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = addressClient.insertAddressOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = addressClient.insertAddressOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertAddressOperationCallable() { return stub.insertAddressOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressSettings.java index daf12e58d37e..30b0b485a72d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddressSettings.java @@ -83,7 +83,7 @@ public UnaryCallSettings deleteAddressSetti /** Returns the object with the settings used for calls to deleteAddress. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteAddressOperationSettings() { return ((AddressStubSettings) getStubSettings()).deleteAddressOperationSettings(); } @@ -101,7 +101,7 @@ public UnaryCallSettings insertAddressSetti /** Returns the object with the settings used for calls to insertAddress. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertAddressOperationSettings() { return ((AddressStubSettings) getStubSettings()).insertAddressOperationSettings(); } @@ -230,7 +230,7 @@ public UnaryCallSettings.Builder deleteAddr /** Returns the builder for the settings used for calls to deleteAddress. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteAddressOperationSettings() { return getStubSettingsBuilder().deleteAddressOperationSettings(); } @@ -248,7 +248,7 @@ public UnaryCallSettings.Builder insertAddr /** Returns the builder for the settings used for calls to insertAddress. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertAddressOperationSettings() { return getStubSettingsBuilder().insertAddressOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java index bb2a4f40aaa9..b7145323b3c8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java @@ -324,7 +324,7 @@ public final AggregatedListAutoscalersPagedResponse aggregatedListAutoscalers( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteAutoscalerAsync( + public final OperationFuture deleteAutoscalerAsync( ProjectZoneAutoscalerName autoscaler) { DeleteAutoscalerHttpRequest request = @@ -352,8 +352,7 @@ public final OperationFuture deleteAutoscalerAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteAutoscalerAsync( - String autoscaler) { + public final OperationFuture deleteAutoscalerAsync(String autoscaler) { DeleteAutoscalerHttpRequest request = DeleteAutoscalerHttpRequest.newBuilder().setAutoscaler(autoscaler).build(); @@ -381,7 +380,7 @@ public final OperationFuture deleteAutoscalerAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteAutoscalerAsync( + public final OperationFuture deleteAutoscalerAsync( DeleteAutoscalerHttpRequest request) { return deleteAutoscalerOperationCallable().futureCall(request); } @@ -398,14 +397,14 @@ public final OperationFuture deleteAutoscalerAsync( * DeleteAutoscalerHttpRequest request = DeleteAutoscalerHttpRequest.newBuilder() * .setAutoscaler(autoscaler.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = autoscalerClient.deleteAutoscalerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = autoscalerClient.deleteAutoscalerOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteAutoscalerOperationCallable() { return stub.deleteAutoscalerOperationCallable(); } @@ -558,7 +557,7 @@ public final UnaryCallable getAutoscalerCa */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertAutoscalerAsync( + public final OperationFuture insertAutoscalerAsync( ProjectZoneName zone, Autoscaler autoscalerResource) { InsertAutoscalerHttpRequest request = @@ -593,7 +592,7 @@ public final OperationFuture insertAutoscalerAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertAutoscalerAsync( + public final OperationFuture insertAutoscalerAsync( String zone, Autoscaler autoscalerResource) { InsertAutoscalerHttpRequest request = @@ -627,7 +626,7 @@ public final OperationFuture insertAutoscalerAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertAutoscalerAsync( + public final OperationFuture insertAutoscalerAsync( InsertAutoscalerHttpRequest request) { return insertAutoscalerOperationCallable().futureCall(request); } @@ -646,14 +645,14 @@ public final OperationFuture insertAutoscalerAsync( * .setZone(zone.toString()) * .setAutoscalerResource(autoscalerResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = autoscalerClient.insertAutoscalerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = autoscalerClient.insertAutoscalerOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertAutoscalerOperationCallable() { return stub.insertAutoscalerOperationCallable(); } @@ -851,7 +850,7 @@ public final UnaryCallable listAutos */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchAutoscalerAsync( + public final OperationFuture patchAutoscalerAsync( String autoscaler, ProjectZoneName zone, Autoscaler autoscalerResource, @@ -899,7 +898,7 @@ public final OperationFuture patchAutoscalerAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchAutoscalerAsync( + public final OperationFuture patchAutoscalerAsync( String autoscaler, String zone, Autoscaler autoscalerResource, List fieldMask) { PatchAutoscalerHttpRequest request = @@ -940,7 +939,7 @@ public final OperationFuture patchAutoscalerAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchAutoscalerAsync( + public final OperationFuture patchAutoscalerAsync( PatchAutoscalerHttpRequest request) { return patchAutoscalerOperationCallable().futureCall(request); } @@ -964,14 +963,14 @@ public final OperationFuture patchAutoscalerAsync( * .setAutoscalerResource(autoscalerResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = autoscalerClient.patchAutoscalerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = autoscalerClient.patchAutoscalerOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable patchAutoscalerOperationCallable() { return stub.patchAutoscalerOperationCallable(); } @@ -1037,7 +1036,7 @@ public final UnaryCallable patchAutoscale */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateAutoscalerAsync( + public final OperationFuture updateAutoscalerAsync( String autoscaler, ProjectZoneName zone, Autoscaler autoscalerResource, @@ -1084,7 +1083,7 @@ public final OperationFuture updateAutoscalerAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateAutoscalerAsync( + public final OperationFuture updateAutoscalerAsync( String autoscaler, String zone, Autoscaler autoscalerResource, List fieldMask) { UpdateAutoscalerHttpRequest request = @@ -1124,7 +1123,7 @@ public final OperationFuture updateAutoscalerAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateAutoscalerAsync( + public final OperationFuture updateAutoscalerAsync( UpdateAutoscalerHttpRequest request) { return updateAutoscalerOperationCallable().futureCall(request); } @@ -1147,14 +1146,14 @@ public final OperationFuture updateAutoscalerAsync( * .setAutoscalerResource(autoscalerResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = autoscalerClient.updateAutoscalerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = autoscalerClient.updateAutoscalerOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable updateAutoscalerOperationCallable() { return stub.updateAutoscalerOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerSettings.java index 2f3706681c78..5291dda1f328 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerSettings.java @@ -83,7 +83,7 @@ public UnaryCallSettings deleteAutoscale /** Returns the object with the settings used for calls to deleteAutoscaler. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteAutoscalerOperationSettings() { return ((AutoscalerStubSettings) getStubSettings()).deleteAutoscalerOperationSettings(); } @@ -101,7 +101,7 @@ public UnaryCallSettings insertAutoscale /** Returns the object with the settings used for calls to insertAutoscaler. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertAutoscalerOperationSettings() { return ((AutoscalerStubSettings) getStubSettings()).insertAutoscalerOperationSettings(); } @@ -120,7 +120,7 @@ public UnaryCallSettings patchAutoscalerS /** Returns the object with the settings used for calls to patchAutoscaler. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchAutoscalerOperationSettings() { return ((AutoscalerStubSettings) getStubSettings()).patchAutoscalerOperationSettings(); } @@ -133,7 +133,7 @@ public UnaryCallSettings updateAutoscale /** Returns the object with the settings used for calls to updateAutoscaler. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings updateAutoscalerOperationSettings() { return ((AutoscalerStubSettings) getStubSettings()).updateAutoscalerOperationSettings(); } @@ -257,7 +257,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteAutoscaler. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteAutoscalerOperationSettings() { return getStubSettingsBuilder().deleteAutoscalerOperationSettings(); } @@ -276,7 +276,7 @@ public UnaryCallSettings.Builder getAutosc /** Returns the builder for the settings used for calls to insertAutoscaler. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertAutoscalerOperationSettings() { return getStubSettingsBuilder().insertAutoscalerOperationSettings(); } @@ -297,7 +297,7 @@ public UnaryCallSettings.Builder getAutosc /** Returns the builder for the settings used for calls to patchAutoscaler. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchAutoscalerOperationSettings() { return getStubSettingsBuilder().patchAutoscalerOperationSettings(); } @@ -311,7 +311,7 @@ public UnaryCallSettings.Builder getAutosc /** Returns the builder for the settings used for calls to updateAutoscaler. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder updateAutoscalerOperationSettings() { return getStubSettingsBuilder().updateAutoscalerOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java index 3a50315f82a5..06b8a3c63179 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java @@ -190,7 +190,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addSignedUrlKeyBackendBucketAsync( + public final OperationFuture addSignedUrlKeyBackendBucketAsync( ProjectGlobalBackendBucketName backendBucket, SignedUrlKey signedUrlKeyResource) { AddSignedUrlKeyBackendBucketHttpRequest request = @@ -223,7 +223,7 @@ public final OperationFuture addSignedUrlKeyBackendB */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addSignedUrlKeyBackendBucketAsync( + public final OperationFuture addSignedUrlKeyBackendBucketAsync( String backendBucket, SignedUrlKey signedUrlKeyResource) { AddSignedUrlKeyBackendBucketHttpRequest request = @@ -257,7 +257,7 @@ public final OperationFuture addSignedUrlKeyBackendB */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addSignedUrlKeyBackendBucketAsync( + public final OperationFuture addSignedUrlKeyBackendBucketAsync( AddSignedUrlKeyBackendBucketHttpRequest request) { return addSignedUrlKeyBackendBucketOperationCallable().futureCall(request); } @@ -276,15 +276,14 @@ public final OperationFuture addSignedUrlKeyBackendB * .setBackendBucket(backendBucket.toString()) * .setSignedUrlKeyResource(signedUrlKeyResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = backendBucketClient.addSignedUrlKeyBackendBucketOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = backendBucketClient.addSignedUrlKeyBackendBucketOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - AddSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage> + public final OperationCallable addSignedUrlKeyBackendBucketOperationCallable() { return stub.addSignedUrlKeyBackendBucketOperationCallable(); } @@ -333,7 +332,7 @@ public final OperationFuture addSignedUrlKeyBackendB */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteBackendBucketAsync( + public final OperationFuture deleteBackendBucketAsync( ProjectGlobalBackendBucketName backendBucket) { DeleteBackendBucketHttpRequest request = @@ -361,7 +360,7 @@ public final OperationFuture deleteBackendBucketAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteBackendBucketAsync( + public final OperationFuture deleteBackendBucketAsync( String backendBucket) { DeleteBackendBucketHttpRequest request = @@ -390,7 +389,7 @@ public final OperationFuture deleteBackendBucketAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteBackendBucketAsync( + public final OperationFuture deleteBackendBucketAsync( DeleteBackendBucketHttpRequest request) { return deleteBackendBucketOperationCallable().futureCall(request); } @@ -407,14 +406,14 @@ public final OperationFuture deleteBackendBucketAsyn * DeleteBackendBucketHttpRequest request = DeleteBackendBucketHttpRequest.newBuilder() * .setBackendBucket(backendBucket.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = backendBucketClient.deleteBackendBucketOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = backendBucketClient.deleteBackendBucketOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteBackendBucketOperationCallable() { return stub.deleteBackendBucketOperationCallable(); } @@ -464,7 +463,7 @@ public final OperationFuture deleteBackendBucketAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteSignedUrlKeyBackendBucketAsync( + public final OperationFuture deleteSignedUrlKeyBackendBucketAsync( ProjectGlobalBackendBucketName backendBucket, String keyName) { DeleteSignedUrlKeyBackendBucketHttpRequest request = @@ -496,7 +495,7 @@ public final OperationFuture deleteSignedUrlKeyBacke */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteSignedUrlKeyBackendBucketAsync( + public final OperationFuture deleteSignedUrlKeyBackendBucketAsync( String backendBucket, String keyName) { DeleteSignedUrlKeyBackendBucketHttpRequest request = @@ -530,7 +529,7 @@ public final OperationFuture deleteSignedUrlKeyBacke */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteSignedUrlKeyBackendBucketAsync( + public final OperationFuture deleteSignedUrlKeyBackendBucketAsync( DeleteSignedUrlKeyBackendBucketHttpRequest request) { return deleteSignedUrlKeyBackendBucketOperationCallable().futureCall(request); } @@ -549,7 +548,7 @@ public final OperationFuture deleteSignedUrlKeyBacke * .setBackendBucket(backendBucket.toString()) * .setKeyName(keyName) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = backendBucketClient.deleteSignedUrlKeyBackendBucketOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = backendBucketClient.deleteSignedUrlKeyBackendBucketOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -557,7 +556,7 @@ public final OperationFuture deleteSignedUrlKeyBacke */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - DeleteSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage> + DeleteSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, Operation> deleteSignedUrlKeyBackendBucketOperationCallable() { return stub.deleteSignedUrlKeyBackendBucketOperationCallable(); } @@ -712,7 +711,7 @@ public final BackendBucket getBackendBucket(GetBackendBucketHttpRequest request) */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertBackendBucketAsync( + public final OperationFuture insertBackendBucketAsync( ProjectName project, BackendBucket backendBucketResource) { InsertBackendBucketHttpRequest request = @@ -745,7 +744,7 @@ public final OperationFuture insertBackendBucketAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertBackendBucketAsync( + public final OperationFuture insertBackendBucketAsync( String project, BackendBucket backendBucketResource) { InsertBackendBucketHttpRequest request = @@ -780,7 +779,7 @@ public final OperationFuture insertBackendBucketAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertBackendBucketAsync( + public final OperationFuture insertBackendBucketAsync( InsertBackendBucketHttpRequest request) { return insertBackendBucketOperationCallable().futureCall(request); } @@ -800,14 +799,14 @@ public final OperationFuture insertBackendBucketAsyn * .setProject(project.toString()) * .setBackendBucketResource(backendBucketResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = backendBucketClient.insertBackendBucketOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = backendBucketClient.insertBackendBucketOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertBackendBucketOperationCallable() { return stub.insertBackendBucketOperationCallable(); } @@ -1004,7 +1003,7 @@ public final ListBackendBucketsPagedResponse listBackendBuckets( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchBackendBucketAsync( + public final OperationFuture patchBackendBucketAsync( ProjectGlobalBackendBucketName backendBucket, BackendBucket backendBucketResource, List fieldMask) { @@ -1045,7 +1044,7 @@ public final OperationFuture patchBackendBucketAsync */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchBackendBucketAsync( + public final OperationFuture patchBackendBucketAsync( String backendBucket, BackendBucket backendBucketResource, List fieldMask) { PatchBackendBucketHttpRequest request = @@ -1083,7 +1082,7 @@ public final OperationFuture patchBackendBucketAsync */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchBackendBucketAsync( + public final OperationFuture patchBackendBucketAsync( PatchBackendBucketHttpRequest request) { return patchBackendBucketOperationCallable().futureCall(request); } @@ -1105,14 +1104,14 @@ public final OperationFuture patchBackendBucketAsync * .setBackendBucketResource(backendBucketResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = backendBucketClient.patchBackendBucketOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = backendBucketClient.patchBackendBucketOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable patchBackendBucketOperationCallable() { return stub.patchBackendBucketOperationCallable(); } @@ -1172,7 +1171,7 @@ public final OperationFuture patchBackendBucketAsync */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateBackendBucketAsync( + public final OperationFuture updateBackendBucketAsync( ProjectGlobalBackendBucketName backendBucket, BackendBucket backendBucketResource, List fieldMask) { @@ -1212,7 +1211,7 @@ public final OperationFuture updateBackendBucketAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateBackendBucketAsync( + public final OperationFuture updateBackendBucketAsync( String backendBucket, BackendBucket backendBucketResource, List fieldMask) { UpdateBackendBucketHttpRequest request = @@ -1249,7 +1248,7 @@ public final OperationFuture updateBackendBucketAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateBackendBucketAsync( + public final OperationFuture updateBackendBucketAsync( UpdateBackendBucketHttpRequest request) { return updateBackendBucketOperationCallable().futureCall(request); } @@ -1270,14 +1269,14 @@ public final OperationFuture updateBackendBucketAsyn * .setBackendBucketResource(backendBucketResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = backendBucketClient.updateBackendBucketOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = backendBucketClient.updateBackendBucketOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable updateBackendBucketOperationCallable() { return stub.updateBackendBucketOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketSettings.java index ef892b72fdab..c21a0ac021ce 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketSettings.java @@ -74,7 +74,7 @@ public class BackendBucketSettings extends ClientSettings /** Returns the object with the settings used for calls to addSignedUrlKeyBackendBucket. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings addSignedUrlKeyBackendBucketOperationSettings() { return ((BackendBucketStubSettings) getStubSettings()) .addSignedUrlKeyBackendBucketOperationSettings(); @@ -89,7 +89,7 @@ public class BackendBucketSettings extends ClientSettings /** Returns the object with the settings used for calls to deleteBackendBucket. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteBackendBucketOperationSettings() { return ((BackendBucketStubSettings) getStubSettings()).deleteBackendBucketOperationSettings(); } @@ -104,8 +104,7 @@ public class BackendBucketSettings extends ClientSettings /** Returns the object with the settings used for calls to deleteSignedUrlKeyBackendBucket. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings< - DeleteSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings deleteSignedUrlKeyBackendBucketOperationSettings() { return ((BackendBucketStubSettings) getStubSettings()) .deleteSignedUrlKeyBackendBucketOperationSettings(); @@ -125,7 +124,7 @@ public UnaryCallSettings getBackendB /** Returns the object with the settings used for calls to insertBackendBucket. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertBackendBucketOperationSettings() { return ((BackendBucketStubSettings) getStubSettings()).insertBackendBucketOperationSettings(); } @@ -145,7 +144,7 @@ public UnaryCallSettings patchBackendB /** Returns the object with the settings used for calls to patchBackendBucket. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchBackendBucketOperationSettings() { return ((BackendBucketStubSettings) getStubSettings()).patchBackendBucketOperationSettings(); } @@ -159,7 +158,7 @@ public UnaryCallSettings patchBackendB /** Returns the object with the settings used for calls to updateBackendBucket. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings updateBackendBucketOperationSettings() { return ((BackendBucketStubSettings) getStubSettings()).updateBackendBucketOperationSettings(); } @@ -276,7 +275,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - AddSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage> + AddSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, Operation> addSignedUrlKeyBackendBucketOperationSettings() { return getStubSettingsBuilder().addSignedUrlKeyBackendBucketOperationSettings(); } @@ -290,7 +289,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteBackendBucket. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteBackendBucketOperationSettings() { return getStubSettingsBuilder().deleteBackendBucketOperationSettings(); } @@ -305,7 +304,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - DeleteSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage> + DeleteSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, Operation> deleteSignedUrlKeyBackendBucketOperationSettings() { return getStubSettingsBuilder().deleteSignedUrlKeyBackendBucketOperationSettings(); } @@ -325,7 +324,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertBackendBucket. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertBackendBucketOperationSettings() { return getStubSettingsBuilder().insertBackendBucketOperationSettings(); } @@ -346,7 +345,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to patchBackendBucket. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchBackendBucketOperationSettings() { return getStubSettingsBuilder().patchBackendBucketOperationSettings(); } @@ -360,7 +359,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to updateBackendBucket. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder updateBackendBucketOperationSettings() { return getStubSettingsBuilder().updateBackendBucketOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java index 35d3fe5d6de7..8a3742c98662 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java @@ -190,7 +190,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addSignedUrlKeyBackendServiceAsync( + public final OperationFuture addSignedUrlKeyBackendServiceAsync( ProjectGlobalBackendServiceName backendService, SignedUrlKey signedUrlKeyResource) { AddSignedUrlKeyBackendServiceHttpRequest request = @@ -223,7 +223,7 @@ public final OperationFuture addSignedUrlKeyBackendS */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addSignedUrlKeyBackendServiceAsync( + public final OperationFuture addSignedUrlKeyBackendServiceAsync( String backendService, SignedUrlKey signedUrlKeyResource) { AddSignedUrlKeyBackendServiceHttpRequest request = @@ -257,7 +257,7 @@ public final OperationFuture addSignedUrlKeyBackendS */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addSignedUrlKeyBackendServiceAsync( + public final OperationFuture addSignedUrlKeyBackendServiceAsync( AddSignedUrlKeyBackendServiceHttpRequest request) { return addSignedUrlKeyBackendServiceOperationCallable().futureCall(request); } @@ -276,15 +276,14 @@ public final OperationFuture addSignedUrlKeyBackendS * .setBackendService(backendService.toString()) * .setSignedUrlKeyResource(signedUrlKeyResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = backendServiceClient.addSignedUrlKeyBackendServiceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = backendServiceClient.addSignedUrlKeyBackendServiceOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - AddSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + public final OperationCallable addSignedUrlKeyBackendServiceOperationCallable() { return stub.addSignedUrlKeyBackendServiceOperationCallable(); } @@ -479,7 +478,7 @@ public final AggregatedListBackendServicesPagedResponse aggregatedListBackendSer */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteBackendServiceAsync( + public final OperationFuture deleteBackendServiceAsync( ProjectGlobalBackendServiceName backendService) { DeleteBackendServiceHttpRequest request = @@ -507,7 +506,7 @@ public final OperationFuture deleteBackendServiceAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteBackendServiceAsync( + public final OperationFuture deleteBackendServiceAsync( String backendService) { DeleteBackendServiceHttpRequest request = @@ -536,7 +535,7 @@ public final OperationFuture deleteBackendServiceAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteBackendServiceAsync( + public final OperationFuture deleteBackendServiceAsync( DeleteBackendServiceHttpRequest request) { return deleteBackendServiceOperationCallable().futureCall(request); } @@ -553,14 +552,14 @@ public final OperationFuture deleteBackendServiceAsy * DeleteBackendServiceHttpRequest request = DeleteBackendServiceHttpRequest.newBuilder() * .setBackendService(backendService.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = backendServiceClient.deleteBackendServiceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = backendServiceClient.deleteBackendServiceOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteBackendServiceOperationCallable() { return stub.deleteBackendServiceOperationCallable(); } @@ -610,7 +609,7 @@ public final OperationFuture deleteBackendServiceAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteSignedUrlKeyBackendServiceAsync( + public final OperationFuture deleteSignedUrlKeyBackendServiceAsync( ProjectGlobalBackendServiceName backendService, String keyName) { DeleteSignedUrlKeyBackendServiceHttpRequest request = @@ -642,7 +641,7 @@ public final OperationFuture deleteSignedUrlKeyBacke */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteSignedUrlKeyBackendServiceAsync( + public final OperationFuture deleteSignedUrlKeyBackendServiceAsync( String backendService, String keyName) { DeleteSignedUrlKeyBackendServiceHttpRequest request = @@ -676,7 +675,7 @@ public final OperationFuture deleteSignedUrlKeyBacke */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteSignedUrlKeyBackendServiceAsync( + public final OperationFuture deleteSignedUrlKeyBackendServiceAsync( DeleteSignedUrlKeyBackendServiceHttpRequest request) { return deleteSignedUrlKeyBackendServiceOperationCallable().futureCall(request); } @@ -695,7 +694,7 @@ public final OperationFuture deleteSignedUrlKeyBacke * .setBackendService(backendService.toString()) * .setKeyName(keyName) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = backendServiceClient.deleteSignedUrlKeyBackendServiceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = backendServiceClient.deleteSignedUrlKeyBackendServiceOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -703,7 +702,7 @@ public final OperationFuture deleteSignedUrlKeyBacke */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - DeleteSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + DeleteSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, Operation> deleteSignedUrlKeyBackendServiceOperationCallable() { return stub.deleteSignedUrlKeyBackendServiceOperationCallable(); } @@ -972,7 +971,7 @@ public final BackendServiceGroupHealth getHealthBackendService( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertBackendServiceAsync( + public final OperationFuture insertBackendServiceAsync( ProjectName project, BackendService backendServiceResource) { InsertBackendServiceHttpRequest request = @@ -1007,7 +1006,7 @@ public final OperationFuture insertBackendServiceAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertBackendServiceAsync( + public final OperationFuture insertBackendServiceAsync( String project, BackendService backendServiceResource) { InsertBackendServiceHttpRequest request = @@ -1043,7 +1042,7 @@ public final OperationFuture insertBackendServiceAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertBackendServiceAsync( + public final OperationFuture insertBackendServiceAsync( InsertBackendServiceHttpRequest request) { return insertBackendServiceOperationCallable().futureCall(request); } @@ -1064,14 +1063,14 @@ public final OperationFuture insertBackendServiceAsy * .setProject(project.toString()) * .setBackendServiceResource(backendServiceResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = backendServiceClient.insertBackendServiceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = backendServiceClient.insertBackendServiceOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertBackendServiceOperationCallable() { return stub.insertBackendServiceOperationCallable(); } @@ -1272,7 +1271,7 @@ public final ListBackendServicesPagedResponse listBackendServices( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchBackendServiceAsync( + public final OperationFuture patchBackendServiceAsync( ProjectGlobalBackendServiceName backendService, BackendService backendServiceResource, List fieldMask) { @@ -1316,7 +1315,7 @@ public final OperationFuture patchBackendServiceAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchBackendServiceAsync( + public final OperationFuture patchBackendServiceAsync( String backendService, BackendService backendServiceResource, List fieldMask) { PatchBackendServiceHttpRequest request = @@ -1356,7 +1355,7 @@ public final OperationFuture patchBackendServiceAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchBackendServiceAsync( + public final OperationFuture patchBackendServiceAsync( PatchBackendServiceHttpRequest request) { return patchBackendServiceOperationCallable().futureCall(request); } @@ -1380,14 +1379,14 @@ public final OperationFuture patchBackendServiceAsyn * .setBackendServiceResource(backendServiceResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = backendServiceClient.patchBackendServiceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = backendServiceClient.patchBackendServiceOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable patchBackendServiceOperationCallable() { return stub.patchBackendServiceOperationCallable(); } @@ -1444,7 +1443,7 @@ public final OperationFuture patchBackendServiceAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setSecurityPolicyBackendServiceAsync( + public final OperationFuture setSecurityPolicyBackendServiceAsync( ProjectGlobalBackendServiceName backendService, SecurityPolicyReference securityPolicyReferenceResource) { @@ -1477,7 +1476,7 @@ public final OperationFuture setSecurityPolicyBacken */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setSecurityPolicyBackendServiceAsync( + public final OperationFuture setSecurityPolicyBackendServiceAsync( String backendService, SecurityPolicyReference securityPolicyReferenceResource) { SetSecurityPolicyBackendServiceHttpRequest request = @@ -1511,7 +1510,7 @@ public final OperationFuture setSecurityPolicyBacken */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setSecurityPolicyBackendServiceAsync( + public final OperationFuture setSecurityPolicyBackendServiceAsync( SetSecurityPolicyBackendServiceHttpRequest request) { return setSecurityPolicyBackendServiceOperationCallable().futureCall(request); } @@ -1530,7 +1529,7 @@ public final OperationFuture setSecurityPolicyBacken * .setBackendService(backendService.toString()) * .setSecurityPolicyReferenceResource(securityPolicyReferenceResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = backendServiceClient.setSecurityPolicyBackendServiceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = backendServiceClient.setSecurityPolicyBackendServiceOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -1538,7 +1537,7 @@ public final OperationFuture setSecurityPolicyBacken */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - SetSecurityPolicyBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + SetSecurityPolicyBackendServiceHttpRequest, EmptyMessage, Operation> setSecurityPolicyBackendServiceOperationCallable() { return stub.setSecurityPolicyBackendServiceOperationCallable(); } @@ -1598,7 +1597,7 @@ public final OperationFuture setSecurityPolicyBacken */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateBackendServiceAsync( + public final OperationFuture updateBackendServiceAsync( ProjectGlobalBackendServiceName backendService, BackendService backendServiceResource, List fieldMask) { @@ -1641,7 +1640,7 @@ public final OperationFuture updateBackendServiceAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateBackendServiceAsync( + public final OperationFuture updateBackendServiceAsync( String backendService, BackendService backendServiceResource, List fieldMask) { UpdateBackendServiceHttpRequest request = @@ -1680,7 +1679,7 @@ public final OperationFuture updateBackendServiceAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateBackendServiceAsync( + public final OperationFuture updateBackendServiceAsync( UpdateBackendServiceHttpRequest request) { return updateBackendServiceOperationCallable().futureCall(request); } @@ -1703,14 +1702,14 @@ public final OperationFuture updateBackendServiceAsy * .setBackendServiceResource(backendServiceResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = backendServiceClient.updateBackendServiceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = backendServiceClient.updateBackendServiceOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable updateBackendServiceOperationCallable() { return stub.updateBackendServiceOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceSettings.java index add4b6ba6b5d..6bdb5bfa5099 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceSettings.java @@ -75,7 +75,7 @@ public class BackendServiceSettings extends ClientSettings + public OperationCallSettings addSignedUrlKeyBackendServiceOperationSettings() { return ((BackendServiceStubSettings) getStubSettings()) .addSignedUrlKeyBackendServiceOperationSettings(); @@ -99,7 +99,7 @@ public class BackendServiceSettings extends ClientSettings + public OperationCallSettings deleteBackendServiceOperationSettings() { return ((BackendServiceStubSettings) getStubSettings()).deleteBackendServiceOperationSettings(); } @@ -114,8 +114,7 @@ public class BackendServiceSettings extends ClientSettings + public OperationCallSettings deleteSignedUrlKeyBackendServiceOperationSettings() { return ((BackendServiceStubSettings) getStubSettings()) .deleteSignedUrlKeyBackendServiceOperationSettings(); @@ -142,7 +141,7 @@ public class BackendServiceSettings extends ClientSettings + public OperationCallSettings insertBackendServiceOperationSettings() { return ((BackendServiceStubSettings) getStubSettings()).insertBackendServiceOperationSettings(); } @@ -163,7 +162,7 @@ public class BackendServiceSettings extends ClientSettings + public OperationCallSettings patchBackendServiceOperationSettings() { return ((BackendServiceStubSettings) getStubSettings()).patchBackendServiceOperationSettings(); } @@ -178,8 +177,7 @@ public class BackendServiceSettings extends ClientSettings + public OperationCallSettings setSecurityPolicyBackendServiceOperationSettings() { return ((BackendServiceStubSettings) getStubSettings()) .setSecurityPolicyBackendServiceOperationSettings(); @@ -194,7 +192,7 @@ public class BackendServiceSettings extends ClientSettings + public OperationCallSettings updateBackendServiceOperationSettings() { return ((BackendServiceStubSettings) getStubSettings()).updateBackendServiceOperationSettings(); } @@ -311,7 +309,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - AddSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + AddSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, Operation> addSignedUrlKeyBackendServiceOperationSettings() { return getStubSettingsBuilder().addSignedUrlKeyBackendServiceOperationSettings(); } @@ -334,8 +332,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteBackendService. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteBackendServiceOperationSettings() { return getStubSettingsBuilder().deleteBackendServiceOperationSettings(); } @@ -350,7 +347,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - DeleteSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + DeleteSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, Operation> deleteSignedUrlKeyBackendServiceOperationSettings() { return getStubSettingsBuilder().deleteSignedUrlKeyBackendServiceOperationSettings(); } @@ -376,8 +373,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertBackendService. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertBackendServiceOperationSettings() { return getStubSettingsBuilder().insertBackendServiceOperationSettings(); } @@ -398,7 +394,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to patchBackendService. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchBackendServiceOperationSettings() { return getStubSettingsBuilder().patchBackendServiceOperationSettings(); } @@ -413,7 +409,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetSecurityPolicyBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + SetSecurityPolicyBackendServiceHttpRequest, EmptyMessage, Operation> setSecurityPolicyBackendServiceOperationSettings() { return getStubSettingsBuilder().setSecurityPolicyBackendServiceOperationSettings(); } @@ -427,8 +423,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to updateBackendService. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - UpdateBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder updateBackendServiceOperationSettings() { return getStubSettingsBuilder().updateBackendServiceOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java index 410751d81e12..de966bdc2323 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskClient.java @@ -327,7 +327,7 @@ public final AggregatedListDisksPagedResponse aggregatedListDisks( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture createSnapshotDiskAsync( + public final OperationFuture createSnapshotDiskAsync( ProjectZoneDiskName disk, Boolean guestFlush, Snapshot snapshotResource) { CreateSnapshotDiskHttpRequest request = @@ -362,7 +362,7 @@ public final OperationFuture createSnapshotDiskAsync */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture createSnapshotDiskAsync( + public final OperationFuture createSnapshotDiskAsync( String disk, Boolean guestFlush, Snapshot snapshotResource) { CreateSnapshotDiskHttpRequest request = @@ -399,7 +399,7 @@ public final OperationFuture createSnapshotDiskAsync */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture createSnapshotDiskAsync( + public final OperationFuture createSnapshotDiskAsync( CreateSnapshotDiskHttpRequest request) { return createSnapshotDiskOperationCallable().futureCall(request); } @@ -420,14 +420,14 @@ public final OperationFuture createSnapshotDiskAsync * .setGuestFlush(guestFlush) * .setSnapshotResource(snapshotResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = diskClient.createSnapshotDiskOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = diskClient.createSnapshotDiskOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable createSnapshotDiskOperationCallable() { return stub.createSnapshotDiskOperationCallable(); } @@ -480,8 +480,7 @@ public final OperationFuture createSnapshotDiskAsync */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteDiskAsync( - ProjectZoneDiskName disk) { + public final OperationFuture deleteDiskAsync(ProjectZoneDiskName disk) { DeleteDiskHttpRequest request = DeleteDiskHttpRequest.newBuilder().setDisk(disk == null ? null : disk.toString()).build(); @@ -508,7 +507,7 @@ public final OperationFuture deleteDiskAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteDiskAsync(String disk) { + public final OperationFuture deleteDiskAsync(String disk) { DeleteDiskHttpRequest request = DeleteDiskHttpRequest.newBuilder().setDisk(disk).build(); return deleteDiskAsync(request); @@ -537,7 +536,7 @@ public final OperationFuture deleteDiskAsync(String */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteDiskAsync( + public final OperationFuture deleteDiskAsync( DeleteDiskHttpRequest request) { return deleteDiskOperationCallable().futureCall(request); } @@ -556,14 +555,14 @@ public final OperationFuture deleteDiskAsync( * DeleteDiskHttpRequest request = DeleteDiskHttpRequest.newBuilder() * .setDisk(disk.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = diskClient.deleteDiskOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = diskClient.deleteDiskOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteDiskOperationCallable() { return stub.deleteDiskOperationCallable(); } @@ -816,7 +815,7 @@ public final UnaryCallable getIamPolicyDisk */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertDiskAsync( + public final OperationFuture insertDiskAsync( ProjectZoneName zone, Disk diskResource) { InsertDiskHttpRequest request = @@ -851,7 +850,7 @@ public final OperationFuture insertDiskAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertDiskAsync( + public final OperationFuture insertDiskAsync( String zone, Disk diskResource) { InsertDiskHttpRequest request = @@ -885,7 +884,7 @@ public final OperationFuture insertDiskAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertDiskAsync( + public final OperationFuture insertDiskAsync( InsertDiskHttpRequest request) { return insertDiskOperationCallable().futureCall(request); } @@ -907,14 +906,14 @@ public final OperationFuture insertDiskAsync( * .setZone(zone.toString()) * .setDiskResource(diskResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = diskClient.insertDiskOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = diskClient.insertDiskOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertDiskOperationCallable() { return stub.insertDiskOperationCallable(); } @@ -1100,7 +1099,7 @@ public final UnaryCallable listDisksCallable() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture resizeDiskAsync( + public final OperationFuture resizeDiskAsync( ProjectZoneDiskName disk, DisksResizeRequest disksResizeRequestResource) { ResizeDiskHttpRequest request = @@ -1131,7 +1130,7 @@ public final OperationFuture resizeDiskAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture resizeDiskAsync( + public final OperationFuture resizeDiskAsync( String disk, DisksResizeRequest disksResizeRequestResource) { ResizeDiskHttpRequest request = @@ -1165,7 +1164,7 @@ public final OperationFuture resizeDiskAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture resizeDiskAsync( + public final OperationFuture resizeDiskAsync( ResizeDiskHttpRequest request) { return resizeDiskOperationCallable().futureCall(request); } @@ -1184,14 +1183,14 @@ public final OperationFuture resizeDiskAsync( * .setDisk(disk.toString()) * .setDisksResizeRequestResource(disksResizeRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = diskClient.resizeDiskOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = diskClient.resizeDiskOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable resizeDiskOperationCallable() { return stub.resizeDiskOperationCallable(); } @@ -1353,7 +1352,7 @@ public final UnaryCallable setIamPolicyDisk */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setLabelsDiskAsync( + public final OperationFuture setLabelsDiskAsync( ProjectZoneDiskResourceName resource, ZoneSetLabelsRequest zoneSetLabelsRequestResource) { SetLabelsDiskHttpRequest request = @@ -1385,7 +1384,7 @@ public final OperationFuture setLabelsDiskAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setLabelsDiskAsync( + public final OperationFuture setLabelsDiskAsync( String resource, ZoneSetLabelsRequest zoneSetLabelsRequestResource) { SetLabelsDiskHttpRequest request = @@ -1420,7 +1419,7 @@ public final OperationFuture setLabelsDiskAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setLabelsDiskAsync( + public final OperationFuture setLabelsDiskAsync( SetLabelsDiskHttpRequest request) { return setLabelsDiskOperationCallable().futureCall(request); } @@ -1440,14 +1439,14 @@ public final OperationFuture setLabelsDiskAsync( * .setResource(resource.toString()) * .setZoneSetLabelsRequestResource(zoneSetLabelsRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = diskClient.setLabelsDiskOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = diskClient.setLabelsDiskOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable setLabelsDiskOperationCallable() { return stub.setLabelsDiskOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskSettings.java index 8b7915bc4192..1199f58f497c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/DiskSettings.java @@ -81,7 +81,7 @@ public UnaryCallSettings createSnapsho /** Returns the object with the settings used for calls to createSnapshotDisk. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings createSnapshotDiskOperationSettings() { return ((DiskStubSettings) getStubSettings()).createSnapshotDiskOperationSettings(); } @@ -94,7 +94,7 @@ public UnaryCallSettings deleteDiskSettings() /** Returns the object with the settings used for calls to deleteDisk. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteDiskOperationSettings() { return ((DiskStubSettings) getStubSettings()).deleteDiskOperationSettings(); } @@ -117,7 +117,7 @@ public UnaryCallSettings insertDiskSettings() /** Returns the object with the settings used for calls to insertDisk. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertDiskOperationSettings() { return ((DiskStubSettings) getStubSettings()).insertDiskOperationSettings(); } @@ -136,7 +136,7 @@ public UnaryCallSettings resizeDiskSettings() /** Returns the object with the settings used for calls to resizeDisk. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings resizeDiskOperationSettings() { return ((DiskStubSettings) getStubSettings()).resizeDiskOperationSettings(); } @@ -154,7 +154,7 @@ public UnaryCallSettings setLabelsDiskSetti /** Returns the object with the settings used for calls to setLabelsDisk. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setLabelsDiskOperationSettings() { return ((DiskStubSettings) getStubSettings()).setLabelsDiskOperationSettings(); } @@ -282,7 +282,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to createSnapshotDisk. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder createSnapshotDiskOperationSettings() { return getStubSettingsBuilder().createSnapshotDiskOperationSettings(); } @@ -295,7 +295,7 @@ public UnaryCallSettings.Builder deleteDiskSet /** Returns the builder for the settings used for calls to deleteDisk. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteDiskOperationSettings() { return getStubSettingsBuilder().deleteDiskOperationSettings(); } @@ -319,7 +319,7 @@ public UnaryCallSettings.Builder insertDiskSet /** Returns the builder for the settings used for calls to insertDisk. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertDiskOperationSettings() { return getStubSettingsBuilder().insertDiskOperationSettings(); } @@ -338,7 +338,7 @@ public UnaryCallSettings.Builder resizeDiskSet /** Returns the builder for the settings used for calls to resizeDisk. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder resizeDiskOperationSettings() { return getStubSettingsBuilder().resizeDiskOperationSettings(); } @@ -357,7 +357,7 @@ public UnaryCallSettings.Builder setLabelsD /** Returns the builder for the settings used for calls to setLabelsDisk. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder setLabelsDiskOperationSettings() { return getStubSettingsBuilder().setLabelsDiskOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java index c1d3a7967577..f63c55a87760 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallClient.java @@ -184,7 +184,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteFirewallAsync( + public final OperationFuture deleteFirewallAsync( ProjectGlobalFirewallName firewall) { DeleteFirewallHttpRequest request = @@ -212,7 +212,7 @@ public final OperationFuture deleteFirewallAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteFirewallAsync(String firewall) { + public final OperationFuture deleteFirewallAsync(String firewall) { DeleteFirewallHttpRequest request = DeleteFirewallHttpRequest.newBuilder().setFirewall(firewall).build(); @@ -240,7 +240,7 @@ public final OperationFuture deleteFirewallAsync(Str */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteFirewallAsync( + public final OperationFuture deleteFirewallAsync( DeleteFirewallHttpRequest request) { return deleteFirewallOperationCallable().futureCall(request); } @@ -257,14 +257,14 @@ public final OperationFuture deleteFirewallAsync( * DeleteFirewallHttpRequest request = DeleteFirewallHttpRequest.newBuilder() * .setFirewall(firewall.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = firewallClient.deleteFirewallOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = firewallClient.deleteFirewallOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteFirewallOperationCallable() { return stub.deleteFirewallOperationCallable(); } @@ -409,7 +409,7 @@ public final UnaryCallable getFirewallCallable */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertFirewallAsync( + public final OperationFuture insertFirewallAsync( ProjectName project, Firewall firewallResource) { InsertFirewallHttpRequest request = @@ -440,7 +440,7 @@ public final OperationFuture insertFirewallAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertFirewallAsync( + public final OperationFuture insertFirewallAsync( String project, Firewall firewallResource) { InsertFirewallHttpRequest request = @@ -474,7 +474,7 @@ public final OperationFuture insertFirewallAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertFirewallAsync( + public final OperationFuture insertFirewallAsync( InsertFirewallHttpRequest request) { return insertFirewallOperationCallable().futureCall(request); } @@ -493,14 +493,14 @@ public final OperationFuture insertFirewallAsync( * .setProject(project.toString()) * .setFirewallResource(firewallResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = firewallClient.insertFirewallOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = firewallClient.insertFirewallOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertFirewallOperationCallable() { return stub.insertFirewallOperationCallable(); } @@ -692,7 +692,7 @@ public final UnaryCallable listFirewalls */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchFirewallAsync( + public final OperationFuture patchFirewallAsync( ProjectGlobalFirewallName firewall, Firewall firewallResource, List fieldMask) { PatchFirewallHttpRequest request = @@ -730,7 +730,7 @@ public final OperationFuture patchFirewallAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchFirewallAsync( + public final OperationFuture patchFirewallAsync( String firewall, Firewall firewallResource, List fieldMask) { PatchFirewallHttpRequest request = @@ -768,7 +768,7 @@ public final OperationFuture patchFirewallAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchFirewallAsync( + public final OperationFuture patchFirewallAsync( PatchFirewallHttpRequest request) { return patchFirewallOperationCallable().futureCall(request); } @@ -790,14 +790,14 @@ public final OperationFuture patchFirewallAsync( * .setFirewallResource(firewallResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = firewallClient.patchFirewallOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = firewallClient.patchFirewallOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable patchFirewallOperationCallable() { return stub.patchFirewallOperationCallable(); } @@ -857,7 +857,7 @@ public final UnaryCallable patchFirewallCal */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateFirewallAsync( + public final OperationFuture updateFirewallAsync( ProjectGlobalFirewallName firewall, Firewall firewallResource, List fieldMask) { UpdateFirewallHttpRequest request = @@ -896,7 +896,7 @@ public final OperationFuture updateFirewallAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateFirewallAsync( + public final OperationFuture updateFirewallAsync( String firewall, Firewall firewallResource, List fieldMask) { UpdateFirewallHttpRequest request = @@ -935,7 +935,7 @@ public final OperationFuture updateFirewallAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateFirewallAsync( + public final OperationFuture updateFirewallAsync( UpdateFirewallHttpRequest request) { return updateFirewallOperationCallable().futureCall(request); } @@ -958,14 +958,14 @@ public final OperationFuture updateFirewallAsync( * .setFirewallResource(firewallResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = firewallClient.updateFirewallOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = firewallClient.updateFirewallOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable updateFirewallOperationCallable() { return stub.updateFirewallOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallSettings.java index f68f98d4e38e..abb4d5b0fa4f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/FirewallSettings.java @@ -73,7 +73,7 @@ public UnaryCallSettings deleteFirewallSet /** Returns the object with the settings used for calls to deleteFirewall. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteFirewallOperationSettings() { return ((FirewallStubSettings) getStubSettings()).deleteFirewallOperationSettings(); } @@ -91,7 +91,7 @@ public UnaryCallSettings insertFirewallSet /** Returns the object with the settings used for calls to insertFirewall. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertFirewallOperationSettings() { return ((FirewallStubSettings) getStubSettings()).insertFirewallOperationSettings(); } @@ -110,7 +110,7 @@ public UnaryCallSettings patchFirewallSetti /** Returns the object with the settings used for calls to patchFirewall. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchFirewallOperationSettings() { return ((FirewallStubSettings) getStubSettings()).patchFirewallOperationSettings(); } @@ -123,7 +123,7 @@ public UnaryCallSettings updateFirewallSet /** Returns the object with the settings used for calls to updateFirewall. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings updateFirewallOperationSettings() { return ((FirewallStubSettings) getStubSettings()).updateFirewallOperationSettings(); } @@ -238,7 +238,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteFirewall. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteFirewallOperationSettings() { return getStubSettingsBuilder().deleteFirewallOperationSettings(); } @@ -257,7 +257,7 @@ public UnaryCallSettings.Builder getFirewallSe /** Returns the builder for the settings used for calls to insertFirewall. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertFirewallOperationSettings() { return getStubSettingsBuilder().insertFirewallOperationSettings(); } @@ -277,7 +277,7 @@ public UnaryCallSettings.Builder patchFirew /** Returns the builder for the settings used for calls to patchFirewall. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchFirewallOperationSettings() { return getStubSettingsBuilder().patchFirewallOperationSettings(); } @@ -291,7 +291,7 @@ public UnaryCallSettings.Builder patchFirew /** Returns the builder for the settings used for calls to updateFirewall. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder updateFirewallOperationSettings() { return getStubSettingsBuilder().updateFirewallOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java index ea4d20c3cb9c..18ff46d57b03 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java @@ -327,7 +327,7 @@ public final AggregatedListForwardingRulesPagedResponse aggregatedListForwarding */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteForwardingRuleAsync( + public final OperationFuture deleteForwardingRuleAsync( ProjectRegionForwardingRuleName forwardingRule) { DeleteForwardingRuleHttpRequest request = @@ -355,7 +355,7 @@ public final OperationFuture deleteForwardingRuleAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteForwardingRuleAsync( + public final OperationFuture deleteForwardingRuleAsync( String forwardingRule) { DeleteForwardingRuleHttpRequest request = @@ -384,7 +384,7 @@ public final OperationFuture deleteForwardingRuleAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteForwardingRuleAsync( + public final OperationFuture deleteForwardingRuleAsync( DeleteForwardingRuleHttpRequest request) { return deleteForwardingRuleOperationCallable().futureCall(request); } @@ -401,14 +401,14 @@ public final OperationFuture deleteForwardingRuleAsy * DeleteForwardingRuleHttpRequest request = DeleteForwardingRuleHttpRequest.newBuilder() * .setForwardingRule(forwardingRule.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = forwardingRuleClient.deleteForwardingRuleOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = forwardingRuleClient.deleteForwardingRuleOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteForwardingRuleOperationCallable() { return stub.deleteForwardingRuleOperationCallable(); } @@ -561,7 +561,7 @@ public final ForwardingRule getForwardingRule(GetForwardingRuleHttpRequest reque */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertForwardingRuleAsync( + public final OperationFuture insertForwardingRuleAsync( ProjectRegionName region, ForwardingRule forwardingRuleResource) { InsertForwardingRuleHttpRequest request = @@ -598,7 +598,7 @@ public final OperationFuture insertForwardingRuleAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertForwardingRuleAsync( + public final OperationFuture insertForwardingRuleAsync( String region, ForwardingRule forwardingRuleResource) { InsertForwardingRuleHttpRequest request = @@ -633,7 +633,7 @@ public final OperationFuture insertForwardingRuleAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertForwardingRuleAsync( + public final OperationFuture insertForwardingRuleAsync( InsertForwardingRuleHttpRequest request) { return insertForwardingRuleOperationCallable().futureCall(request); } @@ -653,14 +653,14 @@ public final OperationFuture insertForwardingRuleAsy * .setRegion(region.toString()) * .setForwardingRuleResource(forwardingRuleResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = forwardingRuleClient.insertForwardingRuleOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = forwardingRuleClient.insertForwardingRuleOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertForwardingRuleOperationCallable() { return stub.insertForwardingRuleOperationCallable(); } @@ -851,7 +851,7 @@ public final ListForwardingRulesPagedResponse listForwardingRules( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setTargetForwardingRuleAsync( + public final OperationFuture setTargetForwardingRuleAsync( ProjectRegionForwardingRuleName forwardingRule, TargetReference targetReferenceResource) { SetTargetForwardingRuleHttpRequest request = @@ -883,7 +883,7 @@ public final OperationFuture setTargetForwardingRule */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setTargetForwardingRuleAsync( + public final OperationFuture setTargetForwardingRuleAsync( String forwardingRule, TargetReference targetReferenceResource) { SetTargetForwardingRuleHttpRequest request = @@ -918,7 +918,7 @@ public final OperationFuture setTargetForwardingRule */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setTargetForwardingRuleAsync( + public final OperationFuture setTargetForwardingRuleAsync( SetTargetForwardingRuleHttpRequest request) { return setTargetForwardingRuleOperationCallable().futureCall(request); } @@ -938,14 +938,14 @@ public final OperationFuture setTargetForwardingRule * .setForwardingRule(forwardingRule.toString()) * .setTargetReferenceResource(targetReferenceResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = forwardingRuleClient.setTargetForwardingRuleOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = forwardingRuleClient.setTargetForwardingRuleOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable setTargetForwardingRuleOperationCallable() { return stub.setTargetForwardingRuleOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleSettings.java index 2572bc42f37d..007ca1c730ca 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRuleSettings.java @@ -84,7 +84,7 @@ public class ForwardingRuleSettings extends ClientSettings + public OperationCallSettings deleteForwardingRuleOperationSettings() { return ((ForwardingRuleStubSettings) getStubSettings()).deleteForwardingRuleOperationSettings(); } @@ -104,7 +104,7 @@ public class ForwardingRuleSettings extends ClientSettings + public OperationCallSettings insertForwardingRuleOperationSettings() { return ((ForwardingRuleStubSettings) getStubSettings()).insertForwardingRuleOperationSettings(); } @@ -125,7 +125,7 @@ public class ForwardingRuleSettings extends ClientSettings + public OperationCallSettings setTargetForwardingRuleOperationSettings() { return ((ForwardingRuleStubSettings) getStubSettings()) .setTargetForwardingRuleOperationSettings(); @@ -251,8 +251,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteForwardingRule. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteForwardingRuleOperationSettings() { return getStubSettingsBuilder().deleteForwardingRuleOperationSettings(); } @@ -272,8 +271,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertForwardingRule. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertForwardingRuleOperationSettings() { return getStubSettingsBuilder().insertForwardingRuleOperationSettings(); } @@ -295,7 +293,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetTargetForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + SetTargetForwardingRuleHttpRequest, EmptyMessage, Operation> setTargetForwardingRuleOperationSettings() { return getStubSettingsBuilder().setTargetForwardingRuleOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressClient.java index 4f0c8e3c034d..1783e026afe3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressClient.java @@ -186,7 +186,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteGlobalAddressAsync( + public final OperationFuture deleteGlobalAddressAsync( ProjectGlobalAddressName address) { DeleteGlobalAddressHttpRequest request = @@ -214,8 +214,7 @@ public final OperationFuture deleteGlobalAddressAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteGlobalAddressAsync( - String address) { + public final OperationFuture deleteGlobalAddressAsync(String address) { DeleteGlobalAddressHttpRequest request = DeleteGlobalAddressHttpRequest.newBuilder().setAddress(address).build(); @@ -243,7 +242,7 @@ public final OperationFuture deleteGlobalAddressAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteGlobalAddressAsync( + public final OperationFuture deleteGlobalAddressAsync( DeleteGlobalAddressHttpRequest request) { return deleteGlobalAddressOperationCallable().futureCall(request); } @@ -260,14 +259,14 @@ public final OperationFuture deleteGlobalAddressAsyn * DeleteGlobalAddressHttpRequest request = DeleteGlobalAddressHttpRequest.newBuilder() * .setAddress(address.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = globalAddressClient.deleteGlobalAddressOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = globalAddressClient.deleteGlobalAddressOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteGlobalAddressOperationCallable() { return stub.deleteGlobalAddressOperationCallable(); } @@ -419,7 +418,7 @@ public final UnaryCallable getGlobalAddres */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertGlobalAddressAsync( + public final OperationFuture insertGlobalAddressAsync( ProjectName project, Address addressResource) { InsertGlobalAddressHttpRequest request = @@ -452,7 +451,7 @@ public final OperationFuture insertGlobalAddressAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertGlobalAddressAsync( + public final OperationFuture insertGlobalAddressAsync( String project, Address addressResource) { InsertGlobalAddressHttpRequest request = @@ -486,7 +485,7 @@ public final OperationFuture insertGlobalAddressAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertGlobalAddressAsync( + public final OperationFuture insertGlobalAddressAsync( InsertGlobalAddressHttpRequest request) { return insertGlobalAddressOperationCallable().futureCall(request); } @@ -505,14 +504,14 @@ public final OperationFuture insertGlobalAddressAsyn * .setProject(project.toString()) * .setAddressResource(addressResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = globalAddressClient.insertGlobalAddressOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = globalAddressClient.insertGlobalAddressOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertGlobalAddressOperationCallable() { return stub.insertGlobalAddressOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressSettings.java index 1c3e55ca4d7d..dfff9be07efb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalAddressSettings.java @@ -74,7 +74,7 @@ public class GlobalAddressSettings extends ClientSettings /** Returns the object with the settings used for calls to deleteGlobalAddress. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteGlobalAddressOperationSettings() { return ((GlobalAddressStubSettings) getStubSettings()).deleteGlobalAddressOperationSettings(); } @@ -93,7 +93,7 @@ public UnaryCallSettings getGlobalAddressS /** Returns the object with the settings used for calls to insertGlobalAddress. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertGlobalAddressOperationSettings() { return ((GlobalAddressStubSettings) getStubSettings()).insertGlobalAddressOperationSettings(); } @@ -216,7 +216,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteGlobalAddress. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteGlobalAddressOperationSettings() { return getStubSettingsBuilder().deleteGlobalAddressOperationSettings(); } @@ -236,7 +236,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertGlobalAddress. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertGlobalAddressOperationSettings() { return getStubSettingsBuilder().insertGlobalAddressOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleClient.java index 9983577a18b4..e7543a904b64 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleClient.java @@ -187,7 +187,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteGlobalForwardingRuleAsync( + public final OperationFuture deleteGlobalForwardingRuleAsync( ProjectGlobalForwardingRuleName forwardingRule) { DeleteGlobalForwardingRuleHttpRequest request = @@ -215,7 +215,7 @@ public final OperationFuture deleteGlobalForwardingR */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteGlobalForwardingRuleAsync( + public final OperationFuture deleteGlobalForwardingRuleAsync( String forwardingRule) { DeleteGlobalForwardingRuleHttpRequest request = @@ -246,7 +246,7 @@ public final OperationFuture deleteGlobalForwardingR */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteGlobalForwardingRuleAsync( + public final OperationFuture deleteGlobalForwardingRuleAsync( DeleteGlobalForwardingRuleHttpRequest request) { return deleteGlobalForwardingRuleOperationCallable().futureCall(request); } @@ -263,14 +263,14 @@ public final OperationFuture deleteGlobalForwardingR * DeleteGlobalForwardingRuleHttpRequest request = DeleteGlobalForwardingRuleHttpRequest.newBuilder() * .setForwardingRule(forwardingRule.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = globalForwardingRuleClient.deleteGlobalForwardingRuleOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = globalForwardingRuleClient.deleteGlobalForwardingRuleOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteGlobalForwardingRuleOperationCallable() { return stub.deleteGlobalForwardingRuleOperationCallable(); } @@ -428,7 +428,7 @@ public final ForwardingRule getGlobalForwardingRule(GetGlobalForwardingRuleHttpR */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertGlobalForwardingRuleAsync( + public final OperationFuture insertGlobalForwardingRuleAsync( ProjectName project, ForwardingRule forwardingRuleResource) { InsertGlobalForwardingRuleHttpRequest request = @@ -465,7 +465,7 @@ public final OperationFuture insertGlobalForwardingR */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertGlobalForwardingRuleAsync( + public final OperationFuture insertGlobalForwardingRuleAsync( String project, ForwardingRule forwardingRuleResource) { InsertGlobalForwardingRuleHttpRequest request = @@ -500,7 +500,7 @@ public final OperationFuture insertGlobalForwardingR */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertGlobalForwardingRuleAsync( + public final OperationFuture insertGlobalForwardingRuleAsync( InsertGlobalForwardingRuleHttpRequest request) { return insertGlobalForwardingRuleOperationCallable().futureCall(request); } @@ -520,14 +520,14 @@ public final OperationFuture insertGlobalForwardingR * .setProject(project.toString()) * .setForwardingRuleResource(forwardingRuleResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = globalForwardingRuleClient.insertGlobalForwardingRuleOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = globalForwardingRuleClient.insertGlobalForwardingRuleOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertGlobalForwardingRuleOperationCallable() { return stub.insertGlobalForwardingRuleOperationCallable(); } @@ -720,7 +720,7 @@ public final ListGlobalForwardingRulesPagedResponse listGlobalForwardingRules( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setTargetGlobalForwardingRuleAsync( + public final OperationFuture setTargetGlobalForwardingRuleAsync( ProjectGlobalForwardingRuleName forwardingRule, TargetReference targetReferenceResource) { SetTargetGlobalForwardingRuleHttpRequest request = @@ -752,7 +752,7 @@ public final OperationFuture setTargetGlobalForwardi */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setTargetGlobalForwardingRuleAsync( + public final OperationFuture setTargetGlobalForwardingRuleAsync( String forwardingRule, TargetReference targetReferenceResource) { SetTargetGlobalForwardingRuleHttpRequest request = @@ -787,7 +787,7 @@ public final OperationFuture setTargetGlobalForwardi */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setTargetGlobalForwardingRuleAsync( + public final OperationFuture setTargetGlobalForwardingRuleAsync( SetTargetGlobalForwardingRuleHttpRequest request) { return setTargetGlobalForwardingRuleOperationCallable().futureCall(request); } @@ -807,15 +807,14 @@ public final OperationFuture setTargetGlobalForwardi * .setForwardingRule(forwardingRule.toString()) * .setTargetReferenceResource(targetReferenceResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = globalForwardingRuleClient.setTargetGlobalForwardingRuleOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = globalForwardingRuleClient.setTargetGlobalForwardingRuleOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - SetTargetGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + public final OperationCallable setTargetGlobalForwardingRuleOperationCallable() { return stub.setTargetGlobalForwardingRuleOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleSettings.java index 5c3ab923fe2e..3f79d7d5dcac 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleSettings.java @@ -75,7 +75,7 @@ public class GlobalForwardingRuleSettings extends ClientSettings + public OperationCallSettings deleteGlobalForwardingRuleOperationSettings() { return ((GlobalForwardingRuleStubSettings) getStubSettings()) .deleteGlobalForwardingRuleOperationSettings(); @@ -97,7 +97,7 @@ public class GlobalForwardingRuleSettings extends ClientSettings + public OperationCallSettings insertGlobalForwardingRuleOperationSettings() { return ((GlobalForwardingRuleStubSettings) getStubSettings()) .insertGlobalForwardingRuleOperationSettings(); @@ -123,7 +123,7 @@ public class GlobalForwardingRuleSettings extends ClientSettings + public OperationCallSettings setTargetGlobalForwardingRuleOperationSettings() { return ((GlobalForwardingRuleStubSettings) getStubSettings()) .setTargetGlobalForwardingRuleOperationSettings(); @@ -242,7 +242,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - DeleteGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + DeleteGlobalForwardingRuleHttpRequest, EmptyMessage, Operation> deleteGlobalForwardingRuleOperationSettings() { return getStubSettingsBuilder().deleteGlobalForwardingRuleOperationSettings(); } @@ -263,7 +263,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - InsertGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + InsertGlobalForwardingRuleHttpRequest, EmptyMessage, Operation> insertGlobalForwardingRuleOperationSettings() { return getStubSettingsBuilder().insertGlobalForwardingRuleOperationSettings(); } @@ -287,7 +287,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetTargetGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + SetTargetGlobalForwardingRuleHttpRequest, EmptyMessage, Operation> setTargetGlobalForwardingRuleOperationSettings() { return getStubSettingsBuilder().setTargetGlobalForwardingRuleOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java index 41976ede3f3f..04edf93c2b4f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java @@ -185,7 +185,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteHealthCheckAsync( + public final OperationFuture deleteHealthCheckAsync( ProjectGlobalHealthCheckName healthCheck) { DeleteHealthCheckHttpRequest request = @@ -213,8 +213,7 @@ public final OperationFuture deleteHealthCheckAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteHealthCheckAsync( - String healthCheck) { + public final OperationFuture deleteHealthCheckAsync(String healthCheck) { DeleteHealthCheckHttpRequest request = DeleteHealthCheckHttpRequest.newBuilder().setHealthCheck(healthCheck).build(); @@ -242,7 +241,7 @@ public final OperationFuture deleteHealthCheckAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteHealthCheckAsync( + public final OperationFuture deleteHealthCheckAsync( DeleteHealthCheckHttpRequest request) { return deleteHealthCheckOperationCallable().futureCall(request); } @@ -259,14 +258,14 @@ public final OperationFuture deleteHealthCheckAsync( * DeleteHealthCheckHttpRequest request = DeleteHealthCheckHttpRequest.newBuilder() * .setHealthCheck(healthCheck.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = healthCheckClient.deleteHealthCheckOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = healthCheckClient.deleteHealthCheckOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteHealthCheckOperationCallable() { return stub.deleteHealthCheckOperationCallable(); } @@ -417,7 +416,7 @@ public final UnaryCallable getHealthChec */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertHealthCheckAsync( + public final OperationFuture insertHealthCheckAsync( ProjectName project, HealthCheck healthCheckResource) { InsertHealthCheckHttpRequest request = @@ -450,7 +449,7 @@ public final OperationFuture insertHealthCheckAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertHealthCheckAsync( + public final OperationFuture insertHealthCheckAsync( String project, HealthCheck healthCheckResource) { InsertHealthCheckHttpRequest request = @@ -484,7 +483,7 @@ public final OperationFuture insertHealthCheckAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertHealthCheckAsync( + public final OperationFuture insertHealthCheckAsync( InsertHealthCheckHttpRequest request) { return insertHealthCheckOperationCallable().futureCall(request); } @@ -503,14 +502,14 @@ public final OperationFuture insertHealthCheckAsync( * .setProject(project.toString()) * .setHealthCheckResource(healthCheckResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = healthCheckClient.insertHealthCheckOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = healthCheckClient.insertHealthCheckOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertHealthCheckOperationCallable() { return stub.insertHealthCheckOperationCallable(); } @@ -705,7 +704,7 @@ public final ListHealthChecksPagedResponse listHealthChecks(ListHealthChecksHttp */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchHealthCheckAsync( + public final OperationFuture patchHealthCheckAsync( ProjectGlobalHealthCheckName healthCheck, HealthCheck healthCheckResource, List fieldMask) { @@ -747,7 +746,7 @@ public final OperationFuture patchHealthCheckAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchHealthCheckAsync( + public final OperationFuture patchHealthCheckAsync( String healthCheck, HealthCheck healthCheckResource, List fieldMask) { PatchHealthCheckHttpRequest request = @@ -785,7 +784,7 @@ public final OperationFuture patchHealthCheckAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchHealthCheckAsync( + public final OperationFuture patchHealthCheckAsync( PatchHealthCheckHttpRequest request) { return patchHealthCheckOperationCallable().futureCall(request); } @@ -807,14 +806,14 @@ public final OperationFuture patchHealthCheckAsync( * .setHealthCheckResource(healthCheckResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = healthCheckClient.patchHealthCheckOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = healthCheckClient.patchHealthCheckOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable patchHealthCheckOperationCallable() { return stub.patchHealthCheckOperationCallable(); } @@ -874,7 +873,7 @@ public final UnaryCallable patchHealthCh */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateHealthCheckAsync( + public final OperationFuture updateHealthCheckAsync( ProjectGlobalHealthCheckName healthCheck, HealthCheck healthCheckResource, List fieldMask) { @@ -915,7 +914,7 @@ public final OperationFuture updateHealthCheckAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateHealthCheckAsync( + public final OperationFuture updateHealthCheckAsync( String healthCheck, HealthCheck healthCheckResource, List fieldMask) { UpdateHealthCheckHttpRequest request = @@ -952,7 +951,7 @@ public final OperationFuture updateHealthCheckAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateHealthCheckAsync( + public final OperationFuture updateHealthCheckAsync( UpdateHealthCheckHttpRequest request) { return updateHealthCheckOperationCallable().futureCall(request); } @@ -973,14 +972,14 @@ public final OperationFuture updateHealthCheckAsync( * .setHealthCheckResource(healthCheckResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = healthCheckClient.updateHealthCheckOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = healthCheckClient.updateHealthCheckOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable updateHealthCheckOperationCallable() { return stub.updateHealthCheckOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckSettings.java index 9c603f3f8705..9b53d4674629 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HealthCheckSettings.java @@ -73,7 +73,7 @@ public UnaryCallSettings deleteHealthCh /** Returns the object with the settings used for calls to deleteHealthCheck. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteHealthCheckOperationSettings() { return ((HealthCheckStubSettings) getStubSettings()).deleteHealthCheckOperationSettings(); } @@ -91,7 +91,7 @@ public UnaryCallSettings insertHealthCh /** Returns the object with the settings used for calls to insertHealthCheck. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertHealthCheckOperationSettings() { return ((HealthCheckStubSettings) getStubSettings()).insertHealthCheckOperationSettings(); } @@ -111,7 +111,7 @@ public UnaryCallSettings patchHealthChec /** Returns the object with the settings used for calls to patchHealthCheck. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchHealthCheckOperationSettings() { return ((HealthCheckStubSettings) getStubSettings()).patchHealthCheckOperationSettings(); } @@ -124,7 +124,7 @@ public UnaryCallSettings updateHealthCh /** Returns the object with the settings used for calls to updateHealthCheck. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings updateHealthCheckOperationSettings() { return ((HealthCheckStubSettings) getStubSettings()).updateHealthCheckOperationSettings(); } @@ -239,7 +239,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteHealthCheck. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteHealthCheckOperationSettings() { return getStubSettingsBuilder().deleteHealthCheckOperationSettings(); } @@ -259,7 +259,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertHealthCheck. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertHealthCheckOperationSettings() { return getStubSettingsBuilder().insertHealthCheckOperationSettings(); } @@ -280,7 +280,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to patchHealthCheck. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchHealthCheckOperationSettings() { return getStubSettingsBuilder().patchHealthCheckOperationSettings(); } @@ -294,7 +294,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to updateHealthCheck. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder updateHealthCheckOperationSettings() { return getStubSettingsBuilder().updateHealthCheckOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckClient.java index 29d1bda095b4..b514566de3e5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckClient.java @@ -187,7 +187,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteHttpHealthCheckAsync( + public final OperationFuture deleteHttpHealthCheckAsync( ProjectGlobalHttpHealthCheckName httpHealthCheck) { DeleteHttpHealthCheckHttpRequest request = @@ -215,7 +215,7 @@ public final OperationFuture deleteHttpHealthCheckAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteHttpHealthCheckAsync( + public final OperationFuture deleteHttpHealthCheckAsync( String httpHealthCheck) { DeleteHttpHealthCheckHttpRequest request = @@ -244,7 +244,7 @@ public final OperationFuture deleteHttpHealthCheckAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteHttpHealthCheckAsync( + public final OperationFuture deleteHttpHealthCheckAsync( DeleteHttpHealthCheckHttpRequest request) { return deleteHttpHealthCheckOperationCallable().futureCall(request); } @@ -261,14 +261,14 @@ public final OperationFuture deleteHttpHealthCheckAs * DeleteHttpHealthCheckHttpRequest request = DeleteHttpHealthCheckHttpRequest.newBuilder() * .setHttpHealthCheck(httpHealthCheck.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = httpHealthCheckClient.deleteHttpHealthCheckOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = httpHealthCheckClient.deleteHttpHealthCheckOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteHttpHealthCheckOperationCallable() { return stub.deleteHttpHealthCheckOperationCallable(); } @@ -422,7 +422,7 @@ public final HttpHealthCheck2 getHttpHealthCheck(GetHttpHealthCheckHttpRequest r */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertHttpHealthCheckAsync( + public final OperationFuture insertHttpHealthCheckAsync( ProjectName project, HttpHealthCheck2 httpHealthCheckResource) { InsertHttpHealthCheckHttpRequest request = @@ -455,7 +455,7 @@ public final OperationFuture insertHttpHealthCheckAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertHttpHealthCheckAsync( + public final OperationFuture insertHttpHealthCheckAsync( String project, HttpHealthCheck2 httpHealthCheckResource) { InsertHttpHealthCheckHttpRequest request = @@ -490,7 +490,7 @@ public final OperationFuture insertHttpHealthCheckAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertHttpHealthCheckAsync( + public final OperationFuture insertHttpHealthCheckAsync( InsertHttpHealthCheckHttpRequest request) { return insertHttpHealthCheckOperationCallable().futureCall(request); } @@ -510,14 +510,14 @@ public final OperationFuture insertHttpHealthCheckAs * .setProject(project.toString()) * .setHttpHealthCheckResource(httpHealthCheckResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = httpHealthCheckClient.insertHttpHealthCheckOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = httpHealthCheckClient.insertHttpHealthCheckOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertHttpHealthCheckOperationCallable() { return stub.insertHttpHealthCheckOperationCallable(); } @@ -715,7 +715,7 @@ public final ListHttpHealthChecksPagedResponse listHttpHealthChecks( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchHttpHealthCheckAsync( + public final OperationFuture patchHttpHealthCheckAsync( ProjectGlobalHttpHealthCheckName httpHealthCheck, HttpHealthCheck2 httpHealthCheckResource, List fieldMask) { @@ -757,7 +757,7 @@ public final OperationFuture patchHttpHealthCheckAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchHttpHealthCheckAsync( + public final OperationFuture patchHttpHealthCheckAsync( String httpHealthCheck, HttpHealthCheck2 httpHealthCheckResource, List fieldMask) { PatchHttpHealthCheckHttpRequest request = @@ -796,7 +796,7 @@ public final OperationFuture patchHttpHealthCheckAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchHttpHealthCheckAsync( + public final OperationFuture patchHttpHealthCheckAsync( PatchHttpHealthCheckHttpRequest request) { return patchHttpHealthCheckOperationCallable().futureCall(request); } @@ -819,14 +819,14 @@ public final OperationFuture patchHttpHealthCheckAsy * .setHttpHealthCheckResource(httpHealthCheckResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = httpHealthCheckClient.patchHttpHealthCheckOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = httpHealthCheckClient.patchHttpHealthCheckOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable patchHttpHealthCheckOperationCallable() { return stub.patchHttpHealthCheckOperationCallable(); } @@ -888,7 +888,7 @@ public final OperationFuture patchHttpHealthCheckAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateHttpHealthCheckAsync( + public final OperationFuture updateHttpHealthCheckAsync( ProjectGlobalHttpHealthCheckName httpHealthCheck, HttpHealthCheck2 httpHealthCheckResource, List fieldMask) { @@ -929,7 +929,7 @@ public final OperationFuture updateHttpHealthCheckAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateHttpHealthCheckAsync( + public final OperationFuture updateHttpHealthCheckAsync( String httpHealthCheck, HttpHealthCheck2 httpHealthCheckResource, List fieldMask) { UpdateHttpHealthCheckHttpRequest request = @@ -967,7 +967,7 @@ public final OperationFuture updateHttpHealthCheckAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateHttpHealthCheckAsync( + public final OperationFuture updateHttpHealthCheckAsync( UpdateHttpHealthCheckHttpRequest request) { return updateHttpHealthCheckOperationCallable().futureCall(request); } @@ -989,14 +989,14 @@ public final OperationFuture updateHttpHealthCheckAs * .setHttpHealthCheckResource(httpHealthCheckResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = httpHealthCheckClient.updateHttpHealthCheckOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = httpHealthCheckClient.updateHttpHealthCheckOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable updateHttpHealthCheckOperationCallable() { return stub.updateHttpHealthCheckOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckSettings.java index 2d8a505e4647..d3c72cd9e928 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpHealthCheckSettings.java @@ -74,7 +74,7 @@ public class HttpHealthCheckSettings extends ClientSettings + public OperationCallSettings deleteHttpHealthCheckOperationSettings() { return ((HttpHealthCheckStubSettings) getStubSettings()) .deleteHttpHealthCheckOperationSettings(); @@ -95,7 +95,7 @@ public class HttpHealthCheckSettings extends ClientSettings + public OperationCallSettings insertHttpHealthCheckOperationSettings() { return ((HttpHealthCheckStubSettings) getStubSettings()) .insertHttpHealthCheckOperationSettings(); @@ -117,7 +117,7 @@ public class HttpHealthCheckSettings extends ClientSettings + public OperationCallSettings patchHttpHealthCheckOperationSettings() { return ((HttpHealthCheckStubSettings) getStubSettings()) .patchHttpHealthCheckOperationSettings(); @@ -132,7 +132,7 @@ public class HttpHealthCheckSettings extends ClientSettings + public OperationCallSettings updateHttpHealthCheckOperationSettings() { return ((HttpHealthCheckStubSettings) getStubSettings()) .updateHttpHealthCheckOperationSettings(); @@ -249,8 +249,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteHttpHealthCheck. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteHttpHealthCheckOperationSettings() { return getStubSettingsBuilder().deleteHttpHealthCheckOperationSettings(); } @@ -270,8 +269,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertHttpHealthCheck. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertHttpHealthCheckOperationSettings() { return getStubSettingsBuilder().insertHttpHealthCheckOperationSettings(); } @@ -292,8 +290,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to patchHttpHealthCheck. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - PatchHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder patchHttpHealthCheckOperationSettings() { return getStubSettingsBuilder().patchHttpHealthCheckOperationSettings(); } @@ -307,8 +304,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to updateHttpHealthCheck. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - UpdateHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder updateHttpHealthCheckOperationSettings() { return getStubSettingsBuilder().updateHttpHealthCheckOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckClient.java index aeea9e5e6a7a..ed2f564546eb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckClient.java @@ -187,7 +187,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteHttpsHealthCheckAsync( + public final OperationFuture deleteHttpsHealthCheckAsync( ProjectGlobalHttpsHealthCheckName httpsHealthCheck) { DeleteHttpsHealthCheckHttpRequest request = @@ -215,7 +215,7 @@ public final OperationFuture deleteHttpsHealthCheckA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteHttpsHealthCheckAsync( + public final OperationFuture deleteHttpsHealthCheckAsync( String httpsHealthCheck) { DeleteHttpsHealthCheckHttpRequest request = @@ -246,7 +246,7 @@ public final OperationFuture deleteHttpsHealthCheckA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteHttpsHealthCheckAsync( + public final OperationFuture deleteHttpsHealthCheckAsync( DeleteHttpsHealthCheckHttpRequest request) { return deleteHttpsHealthCheckOperationCallable().futureCall(request); } @@ -263,14 +263,14 @@ public final OperationFuture deleteHttpsHealthCheckA * DeleteHttpsHealthCheckHttpRequest request = DeleteHttpsHealthCheckHttpRequest.newBuilder() * .setHttpsHealthCheck(httpsHealthCheck.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = httpsHealthCheckClient.deleteHttpsHealthCheckOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = httpsHealthCheckClient.deleteHttpsHealthCheckOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteHttpsHealthCheckOperationCallable() { return stub.deleteHttpsHealthCheckOperationCallable(); } @@ -424,7 +424,7 @@ public final HttpsHealthCheck2 getHttpsHealthCheck(GetHttpsHealthCheckHttpReques */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertHttpsHealthCheckAsync( + public final OperationFuture insertHttpsHealthCheckAsync( ProjectName project, HttpsHealthCheck2 httpsHealthCheckResource) { InsertHttpsHealthCheckHttpRequest request = @@ -457,7 +457,7 @@ public final OperationFuture insertHttpsHealthCheckA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertHttpsHealthCheckAsync( + public final OperationFuture insertHttpsHealthCheckAsync( String project, HttpsHealthCheck2 httpsHealthCheckResource) { InsertHttpsHealthCheckHttpRequest request = @@ -492,7 +492,7 @@ public final OperationFuture insertHttpsHealthCheckA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertHttpsHealthCheckAsync( + public final OperationFuture insertHttpsHealthCheckAsync( InsertHttpsHealthCheckHttpRequest request) { return insertHttpsHealthCheckOperationCallable().futureCall(request); } @@ -512,14 +512,14 @@ public final OperationFuture insertHttpsHealthCheckA * .setProject(project.toString()) * .setHttpsHealthCheckResource(httpsHealthCheckResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = httpsHealthCheckClient.insertHttpsHealthCheckOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = httpsHealthCheckClient.insertHttpsHealthCheckOperationCallable().futureCall(request); * // Do something * future.get(); * } *
*/ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertHttpsHealthCheckOperationCallable() { return stub.insertHttpsHealthCheckOperationCallable(); } @@ -717,7 +717,7 @@ public final ListHttpsHealthChecksPagedResponse listHttpsHealthChecks( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchHttpsHealthCheckAsync( + public final OperationFuture patchHttpsHealthCheckAsync( ProjectGlobalHttpsHealthCheckName httpsHealthCheck, HttpsHealthCheck2 httpsHealthCheckResource, List fieldMask) { @@ -759,7 +759,7 @@ public final OperationFuture patchHttpsHealthCheckAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchHttpsHealthCheckAsync( + public final OperationFuture patchHttpsHealthCheckAsync( String httpsHealthCheck, HttpsHealthCheck2 httpsHealthCheckResource, List fieldMask) { PatchHttpsHealthCheckHttpRequest request = @@ -798,7 +798,7 @@ public final OperationFuture patchHttpsHealthCheckAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchHttpsHealthCheckAsync( + public final OperationFuture patchHttpsHealthCheckAsync( PatchHttpsHealthCheckHttpRequest request) { return patchHttpsHealthCheckOperationCallable().futureCall(request); } @@ -821,14 +821,14 @@ public final OperationFuture patchHttpsHealthCheckAs * .setHttpsHealthCheckResource(httpsHealthCheckResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = httpsHealthCheckClient.patchHttpsHealthCheckOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = httpsHealthCheckClient.patchHttpsHealthCheckOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable patchHttpsHealthCheckOperationCallable() { return stub.patchHttpsHealthCheckOperationCallable(); } @@ -890,7 +890,7 @@ public final OperationFuture patchHttpsHealthCheckAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateHttpsHealthCheckAsync( + public final OperationFuture updateHttpsHealthCheckAsync( ProjectGlobalHttpsHealthCheckName httpsHealthCheck, HttpsHealthCheck2 httpsHealthCheckResource, List fieldMask) { @@ -931,7 +931,7 @@ public final OperationFuture updateHttpsHealthCheckA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateHttpsHealthCheckAsync( + public final OperationFuture updateHttpsHealthCheckAsync( String httpsHealthCheck, HttpsHealthCheck2 httpsHealthCheckResource, List fieldMask) { UpdateHttpsHealthCheckHttpRequest request = @@ -969,7 +969,7 @@ public final OperationFuture updateHttpsHealthCheckA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateHttpsHealthCheckAsync( + public final OperationFuture updateHttpsHealthCheckAsync( UpdateHttpsHealthCheckHttpRequest request) { return updateHttpsHealthCheckOperationCallable().futureCall(request); } @@ -991,14 +991,14 @@ public final OperationFuture updateHttpsHealthCheckA * .setHttpsHealthCheckResource(httpsHealthCheckResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = httpsHealthCheckClient.updateHttpsHealthCheckOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = httpsHealthCheckClient.updateHttpsHealthCheckOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable updateHttpsHealthCheckOperationCallable() { return stub.updateHttpsHealthCheckOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckSettings.java index 626745586825..2990b4ab6402 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/HttpsHealthCheckSettings.java @@ -74,7 +74,7 @@ public class HttpsHealthCheckSettings extends ClientSettings + public OperationCallSettings deleteHttpsHealthCheckOperationSettings() { return ((HttpsHealthCheckStubSettings) getStubSettings()) .deleteHttpsHealthCheckOperationSettings(); @@ -95,7 +95,7 @@ public class HttpsHealthCheckSettings extends ClientSettings + public OperationCallSettings insertHttpsHealthCheckOperationSettings() { return ((HttpsHealthCheckStubSettings) getStubSettings()) .insertHttpsHealthCheckOperationSettings(); @@ -119,7 +119,7 @@ public class HttpsHealthCheckSettings extends ClientSettings + public OperationCallSettings patchHttpsHealthCheckOperationSettings() { return ((HttpsHealthCheckStubSettings) getStubSettings()) .patchHttpsHealthCheckOperationSettings(); @@ -134,7 +134,7 @@ public class HttpsHealthCheckSettings extends ClientSettings + public OperationCallSettings updateHttpsHealthCheckOperationSettings() { return ((HttpsHealthCheckStubSettings) getStubSettings()) .updateHttpsHealthCheckOperationSettings(); @@ -251,8 +251,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteHttpsHealthCheck. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteHttpsHealthCheckOperationSettings() { return getStubSettingsBuilder().deleteHttpsHealthCheckOperationSettings(); } @@ -272,8 +271,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertHttpsHealthCheck. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertHttpsHealthCheckOperationSettings() { return getStubSettingsBuilder().insertHttpsHealthCheckOperationSettings(); } @@ -296,8 +294,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to patchHttpsHealthCheck. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - PatchHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder patchHttpsHealthCheckOperationSettings() { return getStubSettingsBuilder().patchHttpsHealthCheckOperationSettings(); } @@ -311,8 +308,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to updateHttpsHealthCheck. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - UpdateHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder updateHttpsHealthCheckOperationSettings() { return getStubSettingsBuilder().updateHttpsHealthCheckOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageClient.java index 8d0e3b880a4b..24a5f90c5231 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageClient.java @@ -184,7 +184,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteImageAsync( + public final OperationFuture deleteImageAsync( ProjectGlobalImageName image) { DeleteImageHttpRequest request = @@ -212,7 +212,7 @@ public final OperationFuture deleteImageAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteImageAsync(String image) { + public final OperationFuture deleteImageAsync(String image) { DeleteImageHttpRequest request = DeleteImageHttpRequest.newBuilder().setImage(image).build(); return deleteImageAsync(request); @@ -239,7 +239,7 @@ public final OperationFuture deleteImageAsync(String */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteImageAsync( + public final OperationFuture deleteImageAsync( DeleteImageHttpRequest request) { return deleteImageOperationCallable().futureCall(request); } @@ -256,14 +256,14 @@ public final OperationFuture deleteImageAsync( * DeleteImageHttpRequest request = DeleteImageHttpRequest.newBuilder() * .setImage(image.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = imageClient.deleteImageOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = imageClient.deleteImageOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteImageOperationCallable() { return stub.deleteImageOperationCallable(); } @@ -313,7 +313,7 @@ public final UnaryCallable deleteImageCallabl */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deprecateImageAsync( + public final OperationFuture deprecateImageAsync( ProjectGlobalImageName image, DeprecationStatus deprecationStatusResource) { DeprecateImageHttpRequest request = @@ -346,7 +346,7 @@ public final OperationFuture deprecateImageAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deprecateImageAsync( + public final OperationFuture deprecateImageAsync( String image, DeprecationStatus deprecationStatusResource) { DeprecateImageHttpRequest request = @@ -382,7 +382,7 @@ public final OperationFuture deprecateImageAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deprecateImageAsync( + public final OperationFuture deprecateImageAsync( DeprecateImageHttpRequest request) { return deprecateImageOperationCallable().futureCall(request); } @@ -403,14 +403,14 @@ public final OperationFuture deprecateImageAsync( * .setImage(image.toString()) * .setDeprecationStatusResource(deprecationStatusResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = imageClient.deprecateImageOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = imageClient.deprecateImageOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deprecateImageOperationCallable() { return stub.deprecateImageOperationCallable(); } @@ -757,7 +757,7 @@ public final UnaryCallable getIamPolicyIma */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertImageAsync( + public final OperationFuture insertImageAsync( Boolean forceCreate, ProjectName project, Image imageResource) { InsertImageHttpRequest request = @@ -792,7 +792,7 @@ public final OperationFuture insertImageAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertImageAsync( + public final OperationFuture insertImageAsync( Boolean forceCreate, String project, Image imageResource) { InsertImageHttpRequest request = @@ -829,7 +829,7 @@ public final OperationFuture insertImageAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertImageAsync( + public final OperationFuture insertImageAsync( InsertImageHttpRequest request) { return insertImageOperationCallable().futureCall(request); } @@ -850,14 +850,14 @@ public final OperationFuture insertImageAsync( * .setProject(project.toString()) * .setImageResource(imageResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = imageClient.insertImageOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = imageClient.insertImageOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertImageOperationCallable() { return stub.insertImageOperationCallable(); } @@ -1177,7 +1177,7 @@ public final UnaryCallable setIamPolicyIma */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setLabelsImageAsync( + public final OperationFuture setLabelsImageAsync( ProjectGlobalImageResourceName resource, GlobalSetLabelsRequest globalSetLabelsRequestResource) { @@ -1210,7 +1210,7 @@ public final OperationFuture setLabelsImageAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setLabelsImageAsync( + public final OperationFuture setLabelsImageAsync( String resource, GlobalSetLabelsRequest globalSetLabelsRequestResource) { SetLabelsImageHttpRequest request = @@ -1245,7 +1245,7 @@ public final OperationFuture setLabelsImageAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setLabelsImageAsync( + public final OperationFuture setLabelsImageAsync( SetLabelsImageHttpRequest request) { return setLabelsImageOperationCallable().futureCall(request); } @@ -1265,14 +1265,14 @@ public final OperationFuture setLabelsImageAsync( * .setResource(resource.toString()) * .setGlobalSetLabelsRequestResource(globalSetLabelsRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = imageClient.setLabelsImageOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = imageClient.setLabelsImageOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable setLabelsImageOperationCallable() { return stub.setLabelsImageOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageSettings.java index 2d1d20fdada7..7555ab9339b4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ImageSettings.java @@ -73,7 +73,7 @@ public UnaryCallSettings deleteImageSettings( /** Returns the object with the settings used for calls to deleteImage. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteImageOperationSettings() { return ((ImageStubSettings) getStubSettings()).deleteImageOperationSettings(); } @@ -86,7 +86,7 @@ public UnaryCallSettings deprecateImageSet /** Returns the object with the settings used for calls to deprecateImage. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deprecateImageOperationSettings() { return ((ImageStubSettings) getStubSettings()).deprecateImageOperationSettings(); } @@ -114,7 +114,7 @@ public UnaryCallSettings insertImageSettings( /** Returns the object with the settings used for calls to insertImage. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertImageOperationSettings() { return ((ImageStubSettings) getStubSettings()).insertImageOperationSettings(); } @@ -138,7 +138,7 @@ public UnaryCallSettings setLabelsImageSet /** Returns the object with the settings used for calls to setLabelsImage. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setLabelsImageOperationSettings() { return ((ImageStubSettings) getStubSettings()).setLabelsImageOperationSettings(); } @@ -258,7 +258,7 @@ public UnaryCallSettings.Builder deleteImageS /** Returns the builder for the settings used for calls to deleteImage. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteImageOperationSettings() { return getStubSettingsBuilder().deleteImageOperationSettings(); } @@ -272,7 +272,7 @@ public UnaryCallSettings.Builder deleteImageS /** Returns the builder for the settings used for calls to deprecateImage. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deprecateImageOperationSettings() { return getStubSettingsBuilder().deprecateImageOperationSettings(); } @@ -302,7 +302,7 @@ public UnaryCallSettings.Builder insertImageS /** Returns the builder for the settings used for calls to insertImage. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertImageOperationSettings() { return getStubSettingsBuilder().insertImageOperationSettings(); } @@ -328,7 +328,7 @@ public UnaryCallSettings.Builder insertImageS /** Returns the builder for the settings used for calls to setLabelsImage. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder setLabelsImageOperationSettings() { return getStubSettingsBuilder().setLabelsImageOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java index 5d05fc2fe96c..611aef241520 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceClient.java @@ -189,7 +189,7 @@ public final ZoneOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addAccessConfigInstanceAsync( + public final OperationFuture addAccessConfigInstanceAsync( ProjectZoneInstanceName instance, String networkInterface, AccessConfig accessConfigResource) { @@ -226,7 +226,7 @@ public final OperationFuture addAccessConfigInstance */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addAccessConfigInstanceAsync( + public final OperationFuture addAccessConfigInstanceAsync( String instance, String networkInterface, AccessConfig accessConfigResource) { AddAccessConfigInstanceHttpRequest request = @@ -263,7 +263,7 @@ public final OperationFuture addAccessConfigInstance */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addAccessConfigInstanceAsync( + public final OperationFuture addAccessConfigInstanceAsync( AddAccessConfigInstanceHttpRequest request) { return addAccessConfigInstanceOperationCallable().futureCall(request); } @@ -284,14 +284,14 @@ public final OperationFuture addAccessConfigInstance * .setNetworkInterface(networkInterface) * .setAccessConfigResource(accessConfigResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.addAccessConfigInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.addAccessConfigInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable addAccessConfigInstanceOperationCallable() { return stub.addAccessConfigInstanceOperationCallable(); } @@ -488,7 +488,7 @@ public final AggregatedListInstancesPagedResponse aggregatedListInstances( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture attachDiskInstanceAsync( + public final OperationFuture attachDiskInstanceAsync( ProjectZoneInstanceName instance, Boolean forceAttach, AttachedDisk attachedDiskResource) { AttachDiskInstanceHttpRequest request = @@ -525,7 +525,7 @@ public final OperationFuture attachDiskInstanceAsync */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture attachDiskInstanceAsync( + public final OperationFuture attachDiskInstanceAsync( String instance, Boolean forceAttach, AttachedDisk attachedDiskResource) { AttachDiskInstanceHttpRequest request = @@ -564,7 +564,7 @@ public final OperationFuture attachDiskInstanceAsync */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture attachDiskInstanceAsync( + public final OperationFuture attachDiskInstanceAsync( AttachDiskInstanceHttpRequest request) { return attachDiskInstanceOperationCallable().futureCall(request); } @@ -587,14 +587,14 @@ public final OperationFuture attachDiskInstanceAsync * .setForceAttach(forceAttach) * .setAttachedDiskResource(attachedDiskResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.attachDiskInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.attachDiskInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable attachDiskInstanceOperationCallable() { return stub.attachDiskInstanceOperationCallable(); } @@ -648,7 +648,7 @@ public final OperationFuture attachDiskInstanceAsync */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteInstanceAsync( + public final OperationFuture deleteInstanceAsync( ProjectZoneInstanceName instance) { DeleteInstanceHttpRequest request = @@ -677,7 +677,7 @@ public final OperationFuture deleteInstanceAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteInstanceAsync(String instance) { + public final OperationFuture deleteInstanceAsync(String instance) { DeleteInstanceHttpRequest request = DeleteInstanceHttpRequest.newBuilder().setInstance(instance).build(); @@ -706,7 +706,7 @@ public final OperationFuture deleteInstanceAsync(Str */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteInstanceAsync( + public final OperationFuture deleteInstanceAsync( DeleteInstanceHttpRequest request) { return deleteInstanceOperationCallable().futureCall(request); } @@ -724,14 +724,14 @@ public final OperationFuture deleteInstanceAsync( * DeleteInstanceHttpRequest request = DeleteInstanceHttpRequest.newBuilder() * .setInstance(instance.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.deleteInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.deleteInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteInstanceOperationCallable() { return stub.deleteInstanceOperationCallable(); } @@ -782,7 +782,7 @@ public final UnaryCallable deleteInstanceC */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteAccessConfigInstanceAsync( + public final OperationFuture deleteAccessConfigInstanceAsync( ProjectZoneInstanceName instance, String networkInterface, String accessConfig) { DeleteAccessConfigInstanceHttpRequest request = @@ -816,7 +816,7 @@ public final OperationFuture deleteAccessConfigInsta */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteAccessConfigInstanceAsync( + public final OperationFuture deleteAccessConfigInstanceAsync( String instance, String networkInterface, String accessConfig) { DeleteAccessConfigInstanceHttpRequest request = @@ -853,7 +853,7 @@ public final OperationFuture deleteAccessConfigInsta */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteAccessConfigInstanceAsync( + public final OperationFuture deleteAccessConfigInstanceAsync( DeleteAccessConfigInstanceHttpRequest request) { return deleteAccessConfigInstanceOperationCallable().futureCall(request); } @@ -874,14 +874,14 @@ public final OperationFuture deleteAccessConfigInsta * .setNetworkInterface(networkInterface) * .setAccessConfig(accessConfig) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.deleteAccessConfigInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.deleteAccessConfigInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteAccessConfigInstanceOperationCallable() { return stub.deleteAccessConfigInstanceOperationCallable(); } @@ -935,7 +935,7 @@ public final OperationFuture deleteAccessConfigInsta */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture detachDiskInstanceAsync( + public final OperationFuture detachDiskInstanceAsync( ProjectZoneInstanceName instance, String deviceName) { DetachDiskInstanceHttpRequest request = @@ -967,7 +967,7 @@ public final OperationFuture detachDiskInstanceAsync */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture detachDiskInstanceAsync( + public final OperationFuture detachDiskInstanceAsync( String instance, String deviceName) { DetachDiskInstanceHttpRequest request = @@ -1001,7 +1001,7 @@ public final OperationFuture detachDiskInstanceAsync */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture detachDiskInstanceAsync( + public final OperationFuture detachDiskInstanceAsync( DetachDiskInstanceHttpRequest request) { return detachDiskInstanceOperationCallable().futureCall(request); } @@ -1020,14 +1020,14 @@ public final OperationFuture detachDiskInstanceAsync * .setInstance(instance.toString()) * .setDeviceName(deviceName) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.detachDiskInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.detachDiskInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable detachDiskInstanceOperationCallable() { return stub.detachDiskInstanceOperationCallable(); } @@ -1411,7 +1411,7 @@ public final SerialPortOutput getSerialPortOutputInstance( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertInstanceAsync( + public final OperationFuture insertInstanceAsync( ProjectZoneName zone, Instance instanceResource) { InsertInstanceHttpRequest request = @@ -1443,7 +1443,7 @@ public final OperationFuture insertInstanceAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertInstanceAsync( + public final OperationFuture insertInstanceAsync( String zone, Instance instanceResource) { InsertInstanceHttpRequest request = @@ -1477,7 +1477,7 @@ public final OperationFuture insertInstanceAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertInstanceAsync( + public final OperationFuture insertInstanceAsync( InsertInstanceHttpRequest request) { return insertInstanceOperationCallable().futureCall(request); } @@ -1496,14 +1496,14 @@ public final OperationFuture insertInstanceAsync( * .setZone(zone.toString()) * .setInstanceResource(instanceResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.insertInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.insertInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertInstanceOperationCallable() { return stub.insertInstanceOperationCallable(); } @@ -1833,7 +1833,7 @@ public final ListReferrersInstancesPagedResponse listReferrersInstances( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture resetInstanceAsync( + public final OperationFuture resetInstanceAsync( ProjectZoneInstanceName instance) { ResetInstanceHttpRequest request = @@ -1862,7 +1862,7 @@ public final OperationFuture resetInstanceAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture resetInstanceAsync(String instance) { + public final OperationFuture resetInstanceAsync(String instance) { ResetInstanceHttpRequest request = ResetInstanceHttpRequest.newBuilder().setInstance(instance).build(); @@ -1891,7 +1891,7 @@ public final OperationFuture resetInstanceAsync(Stri */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture resetInstanceAsync( + public final OperationFuture resetInstanceAsync( ResetInstanceHttpRequest request) { return resetInstanceOperationCallable().futureCall(request); } @@ -1909,14 +1909,14 @@ public final OperationFuture resetInstanceAsync( * ResetInstanceHttpRequest request = ResetInstanceHttpRequest.newBuilder() * .setInstance(instance.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.resetInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.resetInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable resetInstanceOperationCallable() { return stub.resetInstanceOperationCallable(); } @@ -1965,7 +1965,7 @@ public final UnaryCallable resetInstanceCal */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setDeletionProtectionInstanceAsync( + public final OperationFuture setDeletionProtectionInstanceAsync( ProjectZoneInstanceResourceName resource, Boolean deletionProtection) { SetDeletionProtectionInstanceHttpRequest request = @@ -1996,7 +1996,7 @@ public final OperationFuture setDeletionProtectionIn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setDeletionProtectionInstanceAsync( + public final OperationFuture setDeletionProtectionInstanceAsync( String resource, Boolean deletionProtection) { SetDeletionProtectionInstanceHttpRequest request = @@ -2030,7 +2030,7 @@ public final OperationFuture setDeletionProtectionIn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setDeletionProtectionInstanceAsync( + public final OperationFuture setDeletionProtectionInstanceAsync( SetDeletionProtectionInstanceHttpRequest request) { return setDeletionProtectionInstanceOperationCallable().futureCall(request); } @@ -2049,15 +2049,14 @@ public final OperationFuture setDeletionProtectionIn * .setResource(resource.toString()) * .setDeletionProtection(deletionProtection) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.setDeletionProtectionInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.setDeletionProtectionInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - SetDeletionProtectionInstanceHttpRequest, EmptyMessage, EmptyMessage> + public final OperationCallable setDeletionProtectionInstanceOperationCallable() { return stub.setDeletionProtectionInstanceOperationCallable(); } @@ -2111,7 +2110,7 @@ public final OperationFuture setDeletionProtectionIn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setDiskAutoDeleteInstanceAsync( + public final OperationFuture setDiskAutoDeleteInstanceAsync( ProjectZoneInstanceName instance, Boolean autoDelete, String deviceName) { SetDiskAutoDeleteInstanceHttpRequest request = @@ -2146,7 +2145,7 @@ public final OperationFuture setDiskAutoDeleteInstan */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setDiskAutoDeleteInstanceAsync( + public final OperationFuture setDiskAutoDeleteInstanceAsync( String instance, Boolean autoDelete, String deviceName) { SetDiskAutoDeleteInstanceHttpRequest request = @@ -2183,7 +2182,7 @@ public final OperationFuture setDiskAutoDeleteInstan */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setDiskAutoDeleteInstanceAsync( + public final OperationFuture setDiskAutoDeleteInstanceAsync( SetDiskAutoDeleteInstanceHttpRequest request) { return setDiskAutoDeleteInstanceOperationCallable().futureCall(request); } @@ -2204,14 +2203,14 @@ public final OperationFuture setDiskAutoDeleteInstan * .setAutoDelete(autoDelete) * .setDeviceName(deviceName) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.setDiskAutoDeleteInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.setDiskAutoDeleteInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable setDiskAutoDeleteInstanceOperationCallable() { return stub.setDiskAutoDeleteInstanceOperationCallable(); } @@ -2377,7 +2376,7 @@ public final Policy setIamPolicyInstance(SetIamPolicyInstanceHttpRequest request */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setLabelsInstanceAsync( + public final OperationFuture setLabelsInstanceAsync( ProjectZoneInstanceName instance, InstancesSetLabelsRequest instancesSetLabelsRequestResource) { @@ -2410,7 +2409,7 @@ public final OperationFuture setLabelsInstanceAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setLabelsInstanceAsync( + public final OperationFuture setLabelsInstanceAsync( String instance, InstancesSetLabelsRequest instancesSetLabelsRequestResource) { SetLabelsInstanceHttpRequest request = @@ -2445,7 +2444,7 @@ public final OperationFuture setLabelsInstanceAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setLabelsInstanceAsync( + public final OperationFuture setLabelsInstanceAsync( SetLabelsInstanceHttpRequest request) { return setLabelsInstanceOperationCallable().futureCall(request); } @@ -2465,14 +2464,14 @@ public final OperationFuture setLabelsInstanceAsync( * .setInstance(instance.toString()) * .setInstancesSetLabelsRequestResource(instancesSetLabelsRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.setLabelsInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.setLabelsInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable setLabelsInstanceOperationCallable() { return stub.setLabelsInstanceOperationCallable(); } @@ -2524,7 +2523,7 @@ public final UnaryCallable setLabelsIns */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setMachineResourcesInstanceAsync( + public final OperationFuture setMachineResourcesInstanceAsync( ProjectZoneInstanceName instance, InstancesSetMachineResourcesRequest instancesSetMachineResourcesRequestResource) { @@ -2558,7 +2557,7 @@ public final OperationFuture setMachineResourcesInst */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setMachineResourcesInstanceAsync( + public final OperationFuture setMachineResourcesInstanceAsync( String instance, InstancesSetMachineResourcesRequest instancesSetMachineResourcesRequestResource) { @@ -2595,7 +2594,7 @@ public final OperationFuture setMachineResourcesInst */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setMachineResourcesInstanceAsync( + public final OperationFuture setMachineResourcesInstanceAsync( SetMachineResourcesInstanceHttpRequest request) { return setMachineResourcesInstanceOperationCallable().futureCall(request); } @@ -2615,14 +2614,14 @@ public final OperationFuture setMachineResourcesInst * .setInstance(instance.toString()) * .setInstancesSetMachineResourcesRequestResource(instancesSetMachineResourcesRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.setMachineResourcesInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.setMachineResourcesInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable setMachineResourcesInstanceOperationCallable() { return stub.setMachineResourcesInstanceOperationCallable(); } @@ -2674,7 +2673,7 @@ public final OperationFuture setMachineResourcesInst */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setMachineTypeInstanceAsync( + public final OperationFuture setMachineTypeInstanceAsync( ProjectZoneInstanceName instance, InstancesSetMachineTypeRequest instancesSetMachineTypeRequestResource) { @@ -2706,7 +2705,7 @@ public final OperationFuture setMachineTypeInstanceA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setMachineTypeInstanceAsync( + public final OperationFuture setMachineTypeInstanceAsync( String instance, InstancesSetMachineTypeRequest instancesSetMachineTypeRequestResource) { SetMachineTypeInstanceHttpRequest request = @@ -2740,7 +2739,7 @@ public final OperationFuture setMachineTypeInstanceA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setMachineTypeInstanceAsync( + public final OperationFuture setMachineTypeInstanceAsync( SetMachineTypeInstanceHttpRequest request) { return setMachineTypeInstanceOperationCallable().futureCall(request); } @@ -2759,14 +2758,14 @@ public final OperationFuture setMachineTypeInstanceA * .setInstance(instance.toString()) * .setInstancesSetMachineTypeRequestResource(instancesSetMachineTypeRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.setMachineTypeInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.setMachineTypeInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable setMachineTypeInstanceOperationCallable() { return stub.setMachineTypeInstanceOperationCallable(); } @@ -2817,7 +2816,7 @@ public final OperationFuture setMachineTypeInstanceA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setMetadataInstanceAsync( + public final OperationFuture setMetadataInstanceAsync( ProjectZoneInstanceName instance, Metadata metadataResource) { SetMetadataInstanceHttpRequest request = @@ -2848,7 +2847,7 @@ public final OperationFuture setMetadataInstanceAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setMetadataInstanceAsync( + public final OperationFuture setMetadataInstanceAsync( String instance, Metadata metadataResource) { SetMetadataInstanceHttpRequest request = @@ -2882,7 +2881,7 @@ public final OperationFuture setMetadataInstanceAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setMetadataInstanceAsync( + public final OperationFuture setMetadataInstanceAsync( SetMetadataInstanceHttpRequest request) { return setMetadataInstanceOperationCallable().futureCall(request); } @@ -2901,14 +2900,14 @@ public final OperationFuture setMetadataInstanceAsyn * .setInstance(instance.toString()) * .setMetadataResource(metadataResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.setMetadataInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.setMetadataInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable setMetadataInstanceOperationCallable() { return stub.setMetadataInstanceOperationCallable(); } @@ -2960,7 +2959,7 @@ public final OperationFuture setMetadataInstanceAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setMinCpuPlatformInstanceAsync( + public final OperationFuture setMinCpuPlatformInstanceAsync( ProjectZoneInstanceName instance, InstancesSetMinCpuPlatformRequest instancesSetMinCpuPlatformRequestResource) { @@ -2993,7 +2992,7 @@ public final OperationFuture setMinCpuPlatformInstan */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setMinCpuPlatformInstanceAsync( + public final OperationFuture setMinCpuPlatformInstanceAsync( String instance, InstancesSetMinCpuPlatformRequest instancesSetMinCpuPlatformRequestResource) { @@ -3029,7 +3028,7 @@ public final OperationFuture setMinCpuPlatformInstan */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setMinCpuPlatformInstanceAsync( + public final OperationFuture setMinCpuPlatformInstanceAsync( SetMinCpuPlatformInstanceHttpRequest request) { return setMinCpuPlatformInstanceOperationCallable().futureCall(request); } @@ -3049,14 +3048,14 @@ public final OperationFuture setMinCpuPlatformInstan * .setInstance(instance.toString()) * .setInstancesSetMinCpuPlatformRequestResource(instancesSetMinCpuPlatformRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.setMinCpuPlatformInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.setMinCpuPlatformInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable setMinCpuPlatformInstanceOperationCallable() { return stub.setMinCpuPlatformInstanceOperationCallable(); } @@ -3108,7 +3107,7 @@ public final OperationFuture setMinCpuPlatformInstan */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setSchedulingInstanceAsync( + public final OperationFuture setSchedulingInstanceAsync( ProjectZoneInstanceName instance, Scheduling schedulingResource) { SetSchedulingInstanceHttpRequest request = @@ -3139,7 +3138,7 @@ public final OperationFuture setSchedulingInstanceAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setSchedulingInstanceAsync( + public final OperationFuture setSchedulingInstanceAsync( String instance, Scheduling schedulingResource) { SetSchedulingInstanceHttpRequest request = @@ -3173,7 +3172,7 @@ public final OperationFuture setSchedulingInstanceAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setSchedulingInstanceAsync( + public final OperationFuture setSchedulingInstanceAsync( SetSchedulingInstanceHttpRequest request) { return setSchedulingInstanceOperationCallable().futureCall(request); } @@ -3192,14 +3191,14 @@ public final OperationFuture setSchedulingInstanceAs * .setInstance(instance.toString()) * .setSchedulingResource(schedulingResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.setSchedulingInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.setSchedulingInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable setSchedulingInstanceOperationCallable() { return stub.setSchedulingInstanceOperationCallable(); } @@ -3251,7 +3250,7 @@ public final OperationFuture setSchedulingInstanceAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setServiceAccountInstanceAsync( + public final OperationFuture setServiceAccountInstanceAsync( ProjectZoneInstanceName instance, InstancesSetServiceAccountRequest instancesSetServiceAccountRequestResource) { @@ -3284,7 +3283,7 @@ public final OperationFuture setServiceAccountInstan */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setServiceAccountInstanceAsync( + public final OperationFuture setServiceAccountInstanceAsync( String instance, InstancesSetServiceAccountRequest instancesSetServiceAccountRequestResource) { @@ -3320,7 +3319,7 @@ public final OperationFuture setServiceAccountInstan */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setServiceAccountInstanceAsync( + public final OperationFuture setServiceAccountInstanceAsync( SetServiceAccountInstanceHttpRequest request) { return setServiceAccountInstanceOperationCallable().futureCall(request); } @@ -3340,14 +3339,14 @@ public final OperationFuture setServiceAccountInstan * .setInstance(instance.toString()) * .setInstancesSetServiceAccountRequestResource(instancesSetServiceAccountRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.setServiceAccountInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.setServiceAccountInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable setServiceAccountInstanceOperationCallable() { return stub.setServiceAccountInstanceOperationCallable(); } @@ -3399,7 +3398,7 @@ public final OperationFuture setServiceAccountInstan */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setTagsInstanceAsync( + public final OperationFuture setTagsInstanceAsync( ProjectZoneInstanceName instance, Tags tagsResource) { SetTagsInstanceHttpRequest request = @@ -3430,7 +3429,7 @@ public final OperationFuture setTagsInstanceAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setTagsInstanceAsync( + public final OperationFuture setTagsInstanceAsync( String instance, Tags tagsResource) { SetTagsInstanceHttpRequest request = @@ -3464,7 +3463,7 @@ public final OperationFuture setTagsInstanceAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setTagsInstanceAsync( + public final OperationFuture setTagsInstanceAsync( SetTagsInstanceHttpRequest request) { return setTagsInstanceOperationCallable().futureCall(request); } @@ -3483,14 +3482,14 @@ public final OperationFuture setTagsInstanceAsync( * .setInstance(instance.toString()) * .setTagsResource(tagsResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.setTagsInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.setTagsInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable setTagsInstanceOperationCallable() { return stub.setTagsInstanceOperationCallable(); } @@ -3538,7 +3537,7 @@ public final UnaryCallable setTagsInstanc */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture simulateMaintenanceEventInstanceAsync( + public final OperationFuture simulateMaintenanceEventInstanceAsync( ProjectZoneInstanceName instance) { SimulateMaintenanceEventInstanceHttpRequest request = @@ -3566,7 +3565,7 @@ public final OperationFuture simulateMaintenanceEven */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture simulateMaintenanceEventInstanceAsync( + public final OperationFuture simulateMaintenanceEventInstanceAsync( String instance) { SimulateMaintenanceEventInstanceHttpRequest request = @@ -3595,7 +3594,7 @@ public final OperationFuture simulateMaintenanceEven */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture simulateMaintenanceEventInstanceAsync( + public final OperationFuture simulateMaintenanceEventInstanceAsync( SimulateMaintenanceEventInstanceHttpRequest request) { return simulateMaintenanceEventInstanceOperationCallable().futureCall(request); } @@ -3612,7 +3611,7 @@ public final OperationFuture simulateMaintenanceEven * SimulateMaintenanceEventInstanceHttpRequest request = SimulateMaintenanceEventInstanceHttpRequest.newBuilder() * .setInstance(instance.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.simulateMaintenanceEventInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.simulateMaintenanceEventInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -3620,7 +3619,7 @@ public final OperationFuture simulateMaintenanceEven */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - SimulateMaintenanceEventInstanceHttpRequest, EmptyMessage, EmptyMessage> + SimulateMaintenanceEventInstanceHttpRequest, EmptyMessage, Operation> simulateMaintenanceEventInstanceOperationCallable() { return stub.simulateMaintenanceEventInstanceOperationCallable(); } @@ -3668,7 +3667,7 @@ public final OperationFuture simulateMaintenanceEven */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture startInstanceAsync( + public final OperationFuture startInstanceAsync( ProjectZoneInstanceName instance) { StartInstanceHttpRequest request = @@ -3697,7 +3696,7 @@ public final OperationFuture startInstanceAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture startInstanceAsync(String instance) { + public final OperationFuture startInstanceAsync(String instance) { StartInstanceHttpRequest request = StartInstanceHttpRequest.newBuilder().setInstance(instance).build(); @@ -3726,7 +3725,7 @@ public final OperationFuture startInstanceAsync(Stri */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture startInstanceAsync( + public final OperationFuture startInstanceAsync( StartInstanceHttpRequest request) { return startInstanceOperationCallable().futureCall(request); } @@ -3744,14 +3743,14 @@ public final OperationFuture startInstanceAsync( * StartInstanceHttpRequest request = StartInstanceHttpRequest.newBuilder() * .setInstance(instance.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.startInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.startInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable startInstanceOperationCallable() { return stub.startInstanceOperationCallable(); } @@ -3801,7 +3800,7 @@ public final UnaryCallable startInstanceCal */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture startWithEncryptionKeyInstanceAsync( + public final OperationFuture startWithEncryptionKeyInstanceAsync( ProjectZoneInstanceName instance, InstancesStartWithEncryptionKeyRequest instancesStartWithEncryptionKeyRequestResource) { @@ -3835,7 +3834,7 @@ public final OperationFuture startWithEncryptionKeyI */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture startWithEncryptionKeyInstanceAsync( + public final OperationFuture startWithEncryptionKeyInstanceAsync( String instance, InstancesStartWithEncryptionKeyRequest instancesStartWithEncryptionKeyRequestResource) { @@ -3872,7 +3871,7 @@ public final OperationFuture startWithEncryptionKeyI */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture startWithEncryptionKeyInstanceAsync( + public final OperationFuture startWithEncryptionKeyInstanceAsync( StartWithEncryptionKeyInstanceHttpRequest request) { return startWithEncryptionKeyInstanceOperationCallable().futureCall(request); } @@ -3892,15 +3891,14 @@ public final OperationFuture startWithEncryptionKeyI * .setInstance(instance.toString()) * .setInstancesStartWithEncryptionKeyRequestResource(instancesStartWithEncryptionKeyRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.startWithEncryptionKeyInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.startWithEncryptionKeyInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - StartWithEncryptionKeyInstanceHttpRequest, EmptyMessage, EmptyMessage> + public final OperationCallable startWithEncryptionKeyInstanceOperationCallable() { return stub.startWithEncryptionKeyInstanceOperationCallable(); } @@ -3953,7 +3951,7 @@ public final OperationFuture startWithEncryptionKeyI */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture stopInstanceAsync( + public final OperationFuture stopInstanceAsync( ProjectZoneInstanceName instance) { StopInstanceHttpRequest request = @@ -3984,7 +3982,7 @@ public final OperationFuture stopInstanceAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture stopInstanceAsync(String instance) { + public final OperationFuture stopInstanceAsync(String instance) { StopInstanceHttpRequest request = StopInstanceHttpRequest.newBuilder().setInstance(instance).build(); @@ -4015,7 +4013,7 @@ public final OperationFuture stopInstanceAsync(Strin */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture stopInstanceAsync( + public final OperationFuture stopInstanceAsync( StopInstanceHttpRequest request) { return stopInstanceOperationCallable().futureCall(request); } @@ -4035,14 +4033,14 @@ public final OperationFuture stopInstanceAsync( * StopInstanceHttpRequest request = StopInstanceHttpRequest.newBuilder() * .setInstance(instance.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.stopInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.stopInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable stopInstanceOperationCallable() { return stub.stopInstanceOperationCallable(); } @@ -4212,7 +4210,7 @@ public final TestPermissionsResponse testIamPermissionsInstance( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateAccessConfigInstanceAsync( + public final OperationFuture updateAccessConfigInstanceAsync( ProjectZoneInstanceName instance, String networkInterface, AccessConfig accessConfigResource) { @@ -4251,7 +4249,7 @@ public final OperationFuture updateAccessConfigInsta */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateAccessConfigInstanceAsync( + public final OperationFuture updateAccessConfigInstanceAsync( String instance, String networkInterface, AccessConfig accessConfigResource) { UpdateAccessConfigInstanceHttpRequest request = @@ -4290,7 +4288,7 @@ public final OperationFuture updateAccessConfigInsta */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateAccessConfigInstanceAsync( + public final OperationFuture updateAccessConfigInstanceAsync( UpdateAccessConfigInstanceHttpRequest request) { return updateAccessConfigInstanceOperationCallable().futureCall(request); } @@ -4313,14 +4311,14 @@ public final OperationFuture updateAccessConfigInsta * .setNetworkInterface(networkInterface) * .setAccessConfigResource(accessConfigResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.updateAccessConfigInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.updateAccessConfigInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable updateAccessConfigInstanceOperationCallable() { return stub.updateAccessConfigInstanceOperationCallable(); } @@ -4382,7 +4380,7 @@ public final OperationFuture updateAccessConfigInsta */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateNetworkInterfaceInstanceAsync( + public final OperationFuture updateNetworkInterfaceInstanceAsync( ProjectZoneInstanceName instance, String networkInterface, NetworkInterface networkInterfaceResource, @@ -4425,7 +4423,7 @@ public final OperationFuture updateNetworkInterfaceI */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateNetworkInterfaceInstanceAsync( + public final OperationFuture updateNetworkInterfaceInstanceAsync( String instance, String networkInterface, NetworkInterface networkInterfaceResource, @@ -4468,7 +4466,7 @@ public final OperationFuture updateNetworkInterfaceI */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateNetworkInterfaceInstanceAsync( + public final OperationFuture updateNetworkInterfaceInstanceAsync( UpdateNetworkInterfaceInstanceHttpRequest request) { return updateNetworkInterfaceInstanceOperationCallable().futureCall(request); } @@ -4491,15 +4489,14 @@ public final OperationFuture updateNetworkInterfaceI * .setNetworkInterfaceResource(networkInterfaceResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceClient.updateNetworkInterfaceInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceClient.updateNetworkInterfaceInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - UpdateNetworkInterfaceInstanceHttpRequest, EmptyMessage, EmptyMessage> + public final OperationCallable updateNetworkInterfaceInstanceOperationCallable() { return stub.updateNetworkInterfaceInstanceOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java index b68dc0692889..c2ec5613a36d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java @@ -189,7 +189,7 @@ public final ZoneOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addInstancesInstanceGroupAsync( + public final OperationFuture addInstancesInstanceGroupAsync( ProjectZoneInstanceGroupName instanceGroup, InstanceGroupsAddInstancesRequest instanceGroupsAddInstancesRequestResource) { @@ -222,7 +222,7 @@ public final OperationFuture addInstancesInstanceGro */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addInstancesInstanceGroupAsync( + public final OperationFuture addInstancesInstanceGroupAsync( String instanceGroup, InstanceGroupsAddInstancesRequest instanceGroupsAddInstancesRequestResource) { @@ -258,7 +258,7 @@ public final OperationFuture addInstancesInstanceGro */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addInstancesInstanceGroupAsync( + public final OperationFuture addInstancesInstanceGroupAsync( AddInstancesInstanceGroupHttpRequest request) { return addInstancesInstanceGroupOperationCallable().futureCall(request); } @@ -278,14 +278,14 @@ public final OperationFuture addInstancesInstanceGro * .setInstanceGroup(instanceGroup.toString()) * .setInstanceGroupsAddInstancesRequestResource(instanceGroupsAddInstancesRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupClient.addInstancesInstanceGroupOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceGroupClient.addInstancesInstanceGroupOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable addInstancesInstanceGroupOperationCallable() { return stub.addInstancesInstanceGroupOperationCallable(); } @@ -478,7 +478,7 @@ public final AggregatedListInstanceGroupsPagedResponse aggregatedListInstanceGro */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteInstanceGroupAsync( + public final OperationFuture deleteInstanceGroupAsync( ProjectZoneInstanceGroupName instanceGroup) { DeleteInstanceGroupHttpRequest request = @@ -508,7 +508,7 @@ public final OperationFuture deleteInstanceGroupAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteInstanceGroupAsync( + public final OperationFuture deleteInstanceGroupAsync( String instanceGroup) { DeleteInstanceGroupHttpRequest request = @@ -539,7 +539,7 @@ public final OperationFuture deleteInstanceGroupAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteInstanceGroupAsync( + public final OperationFuture deleteInstanceGroupAsync( DeleteInstanceGroupHttpRequest request) { return deleteInstanceGroupOperationCallable().futureCall(request); } @@ -558,14 +558,14 @@ public final OperationFuture deleteInstanceGroupAsyn * DeleteInstanceGroupHttpRequest request = DeleteInstanceGroupHttpRequest.newBuilder() * .setInstanceGroup(instanceGroup.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupClient.deleteInstanceGroupOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceGroupClient.deleteInstanceGroupOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteInstanceGroupOperationCallable() { return stub.deleteInstanceGroupOperationCallable(); } @@ -721,7 +721,7 @@ public final InstanceGroup getInstanceGroup(GetInstanceGroupHttpRequest request) */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertInstanceGroupAsync( + public final OperationFuture insertInstanceGroupAsync( ProjectZoneName zone, InstanceGroup instanceGroupResource) { InsertInstanceGroupHttpRequest request = @@ -755,7 +755,7 @@ public final OperationFuture insertInstanceGroupAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertInstanceGroupAsync( + public final OperationFuture insertInstanceGroupAsync( String zone, InstanceGroup instanceGroupResource) { InsertInstanceGroupHttpRequest request = @@ -790,7 +790,7 @@ public final OperationFuture insertInstanceGroupAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertInstanceGroupAsync( + public final OperationFuture insertInstanceGroupAsync( InsertInstanceGroupHttpRequest request) { return insertInstanceGroupOperationCallable().futureCall(request); } @@ -810,14 +810,14 @@ public final OperationFuture insertInstanceGroupAsyn * .setZone(zone.toString()) * .setInstanceGroupResource(instanceGroupResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupClient.insertInstanceGroupOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceGroupClient.insertInstanceGroupOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertInstanceGroupOperationCallable() { return stub.insertInstanceGroupOperationCallable(); } @@ -1174,7 +1174,7 @@ public final ListInstancesInstanceGroupsPagedResponse listInstancesInstanceGroup */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture removeInstancesInstanceGroupAsync( + public final OperationFuture removeInstancesInstanceGroupAsync( ProjectZoneInstanceGroupName instanceGroup, InstanceGroupsRemoveInstancesRequest instanceGroupsRemoveInstancesRequestResource) { @@ -1213,7 +1213,7 @@ public final OperationFuture removeInstancesInstance */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture removeInstancesInstanceGroupAsync( + public final OperationFuture removeInstancesInstanceGroupAsync( String instanceGroup, InstanceGroupsRemoveInstancesRequest instanceGroupsRemoveInstancesRequestResource) { @@ -1254,7 +1254,7 @@ public final OperationFuture removeInstancesInstance */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture removeInstancesInstanceGroupAsync( + public final OperationFuture removeInstancesInstanceGroupAsync( RemoveInstancesInstanceGroupHttpRequest request) { return removeInstancesInstanceGroupOperationCallable().futureCall(request); } @@ -1278,15 +1278,14 @@ public final OperationFuture removeInstancesInstance * .setInstanceGroup(instanceGroup.toString()) * .setInstanceGroupsRemoveInstancesRequestResource(instanceGroupsRemoveInstancesRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupClient.removeInstancesInstanceGroupOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceGroupClient.removeInstancesInstanceGroupOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - RemoveInstancesInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + public final OperationCallable removeInstancesInstanceGroupOperationCallable() { return stub.removeInstancesInstanceGroupOperationCallable(); } @@ -1342,7 +1341,7 @@ public final OperationFuture removeInstancesInstance */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setNamedPortsInstanceGroupAsync( + public final OperationFuture setNamedPortsInstanceGroupAsync( ProjectZoneInstanceGroupName instanceGroup, InstanceGroupsSetNamedPortsRequest instanceGroupsSetNamedPortsRequestResource) { @@ -1375,7 +1374,7 @@ public final OperationFuture setNamedPortsInstanceGr */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setNamedPortsInstanceGroupAsync( + public final OperationFuture setNamedPortsInstanceGroupAsync( String instanceGroup, InstanceGroupsSetNamedPortsRequest instanceGroupsSetNamedPortsRequestResource) { @@ -1411,7 +1410,7 @@ public final OperationFuture setNamedPortsInstanceGr */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setNamedPortsInstanceGroupAsync( + public final OperationFuture setNamedPortsInstanceGroupAsync( SetNamedPortsInstanceGroupHttpRequest request) { return setNamedPortsInstanceGroupOperationCallable().futureCall(request); } @@ -1430,14 +1429,14 @@ public final OperationFuture setNamedPortsInstanceGr * .setInstanceGroup(instanceGroup.toString()) * .setInstanceGroupsSetNamedPortsRequestResource(instanceGroupsSetNamedPortsRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupClient.setNamedPortsInstanceGroupOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceGroupClient.setNamedPortsInstanceGroupOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable setNamedPortsInstanceGroupOperationCallable() { return stub.setNamedPortsInstanceGroupOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java index 3980ee22ae25..6c678ea2ad63 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java @@ -201,11 +201,10 @@ public final ZoneOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - abandonInstancesInstanceGroupManagerAsync( - ProjectZoneInstanceGroupManagerName instanceGroupManager, - InstanceGroupManagersAbandonInstancesRequest - instanceGroupManagersAbandonInstancesRequestResource) { + public final OperationFuture abandonInstancesInstanceGroupManagerAsync( + ProjectZoneInstanceGroupManagerName instanceGroupManager, + InstanceGroupManagersAbandonInstancesRequest + instanceGroupManagersAbandonInstancesRequestResource) { AbandonInstancesInstanceGroupManagerHttpRequest request = AbandonInstancesInstanceGroupManagerHttpRequest.newBuilder() @@ -249,11 +248,10 @@ public final ZoneOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - abandonInstancesInstanceGroupManagerAsync( - String instanceGroupManager, - InstanceGroupManagersAbandonInstancesRequest - instanceGroupManagersAbandonInstancesRequestResource) { + public final OperationFuture abandonInstancesInstanceGroupManagerAsync( + String instanceGroupManager, + InstanceGroupManagersAbandonInstancesRequest + instanceGroupManagersAbandonInstancesRequestResource) { AbandonInstancesInstanceGroupManagerHttpRequest request = AbandonInstancesInstanceGroupManagerHttpRequest.newBuilder() @@ -299,9 +297,8 @@ public final ZoneOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - abandonInstancesInstanceGroupManagerAsync( - AbandonInstancesInstanceGroupManagerHttpRequest request) { + public final OperationFuture abandonInstancesInstanceGroupManagerAsync( + AbandonInstancesInstanceGroupManagerHttpRequest request) { return abandonInstancesInstanceGroupManagerOperationCallable().futureCall(request); } @@ -331,7 +328,7 @@ public final ZoneOperationClient getOperationsClient() { * .setInstanceGroupManager(instanceGroupManager.toString()) * .setInstanceGroupManagersAbandonInstancesRequestResource(instanceGroupManagersAbandonInstancesRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupManagerClient.abandonInstancesInstanceGroupManagerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceGroupManagerClient.abandonInstancesInstanceGroupManagerOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -339,7 +336,7 @@ public final ZoneOperationClient getOperationsClient() { */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> abandonInstancesInstanceGroupManagerOperationCallable() { return stub.abandonInstancesInstanceGroupManagerOperationCallable(); } @@ -545,7 +542,7 @@ public final AggregatedListInstanceGroupManagersPagedResponse aggregatedListInst */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteInstanceGroupManagerAsync( + public final OperationFuture deleteInstanceGroupManagerAsync( ProjectZoneInstanceGroupManagerName instanceGroupManager) { DeleteInstanceGroupManagerHttpRequest request = @@ -576,7 +573,7 @@ public final OperationFuture deleteInstanceGroupMana */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteInstanceGroupManagerAsync( + public final OperationFuture deleteInstanceGroupManagerAsync( String instanceGroupManager) { DeleteInstanceGroupManagerHttpRequest request = @@ -609,7 +606,7 @@ public final OperationFuture deleteInstanceGroupMana */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteInstanceGroupManagerAsync( + public final OperationFuture deleteInstanceGroupManagerAsync( DeleteInstanceGroupManagerHttpRequest request) { return deleteInstanceGroupManagerOperationCallable().futureCall(request); } @@ -628,14 +625,14 @@ public final OperationFuture deleteInstanceGroupMana * DeleteInstanceGroupManagerHttpRequest request = DeleteInstanceGroupManagerHttpRequest.newBuilder() * .setInstanceGroupManager(instanceGroupManager.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupManagerClient.deleteInstanceGroupManagerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceGroupManagerClient.deleteInstanceGroupManagerOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteInstanceGroupManagerOperationCallable() { return stub.deleteInstanceGroupManagerOperationCallable(); } @@ -697,7 +694,7 @@ public final OperationFuture deleteInstanceGroupMana */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteInstancesInstanceGroupManagerAsync( + public final OperationFuture deleteInstancesInstanceGroupManagerAsync( ProjectZoneInstanceGroupManagerName instanceGroupManager, InstanceGroupManagersDeleteInstancesRequest instanceGroupManagersDeleteInstancesRequestResource) { @@ -743,7 +740,7 @@ public final OperationFuture deleteInstancesInstance */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteInstancesInstanceGroupManagerAsync( + public final OperationFuture deleteInstancesInstanceGroupManagerAsync( String instanceGroupManager, InstanceGroupManagersDeleteInstancesRequest instanceGroupManagersDeleteInstancesRequestResource) { @@ -791,7 +788,7 @@ public final OperationFuture deleteInstancesInstance */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteInstancesInstanceGroupManagerAsync( + public final OperationFuture deleteInstancesInstanceGroupManagerAsync( DeleteInstancesInstanceGroupManagerHttpRequest request) { return deleteInstancesInstanceGroupManagerOperationCallable().futureCall(request); } @@ -821,7 +818,7 @@ public final OperationFuture deleteInstancesInstance * .setInstanceGroupManager(instanceGroupManager.toString()) * .setInstanceGroupManagersDeleteInstancesRequestResource(instanceGroupManagersDeleteInstancesRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupManagerClient.deleteInstancesInstanceGroupManagerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceGroupManagerClient.deleteInstancesInstanceGroupManagerOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -829,7 +826,7 @@ public final OperationFuture deleteInstancesInstance */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteInstancesInstanceGroupManagerOperationCallable() { return stub.deleteInstancesInstanceGroupManagerOperationCallable(); } @@ -1008,7 +1005,7 @@ public final InstanceGroupManager getInstanceGroupManager( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertInstanceGroupManagerAsync( + public final OperationFuture insertInstanceGroupManagerAsync( ProjectZoneName zone, InstanceGroupManager instanceGroupManagerResource) { InsertInstanceGroupManagerHttpRequest request = @@ -1049,7 +1046,7 @@ public final OperationFuture insertInstanceGroupMana */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertInstanceGroupManagerAsync( + public final OperationFuture insertInstanceGroupManagerAsync( String zone, InstanceGroupManager instanceGroupManagerResource) { InsertInstanceGroupManagerHttpRequest request = @@ -1090,7 +1087,7 @@ public final OperationFuture insertInstanceGroupMana */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertInstanceGroupManagerAsync( + public final OperationFuture insertInstanceGroupManagerAsync( InsertInstanceGroupManagerHttpRequest request) { return insertInstanceGroupManagerOperationCallable().futureCall(request); } @@ -1116,14 +1113,14 @@ public final OperationFuture insertInstanceGroupMana * .setZone(zone.toString()) * .setInstanceGroupManagerResource(instanceGroupManagerResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupManagerClient.insertInstanceGroupManagerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceGroupManagerClient.insertInstanceGroupManagerOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertInstanceGroupManagerOperationCallable() { return stub.insertInstanceGroupManagerOperationCallable(); } @@ -1458,7 +1455,7 @@ public final ListInstanceGroupManagersPagedResponse listInstanceGroupManagers( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchInstanceGroupManagerAsync( + public final OperationFuture patchInstanceGroupManagerAsync( ProjectZoneInstanceGroupManagerName instanceGroupManager, InstanceGroupManager instanceGroupManagerResource, List fieldMask) { @@ -1505,7 +1502,7 @@ public final OperationFuture patchInstanceGroupManag */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchInstanceGroupManagerAsync( + public final OperationFuture patchInstanceGroupManagerAsync( String instanceGroupManager, InstanceGroupManager instanceGroupManagerResource, List fieldMask) { @@ -1548,7 +1545,7 @@ public final OperationFuture patchInstanceGroupManag */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchInstanceGroupManagerAsync( + public final OperationFuture patchInstanceGroupManagerAsync( PatchInstanceGroupManagerHttpRequest request) { return patchInstanceGroupManagerOperationCallable().futureCall(request); } @@ -1573,14 +1570,14 @@ public final OperationFuture patchInstanceGroupManag * .setInstanceGroupManagerResource(instanceGroupManagerResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupManagerClient.patchInstanceGroupManagerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceGroupManagerClient.patchInstanceGroupManagerOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable patchInstanceGroupManagerOperationCallable() { return stub.patchInstanceGroupManagerOperationCallable(); } @@ -1647,11 +1644,10 @@ public final OperationFuture patchInstanceGroupManag */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - recreateInstancesInstanceGroupManagerAsync( - ProjectZoneInstanceGroupManagerName instanceGroupManager, - InstanceGroupManagersRecreateInstancesRequest - instanceGroupManagersRecreateInstancesRequestResource) { + public final OperationFuture recreateInstancesInstanceGroupManagerAsync( + ProjectZoneInstanceGroupManagerName instanceGroupManager, + InstanceGroupManagersRecreateInstancesRequest + instanceGroupManagersRecreateInstancesRequestResource) { RecreateInstancesInstanceGroupManagerHttpRequest request = RecreateInstancesInstanceGroupManagerHttpRequest.newBuilder() @@ -1693,11 +1689,10 @@ public final OperationFuture patchInstanceGroupManag */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - recreateInstancesInstanceGroupManagerAsync( - String instanceGroupManager, - InstanceGroupManagersRecreateInstancesRequest - instanceGroupManagersRecreateInstancesRequestResource) { + public final OperationFuture recreateInstancesInstanceGroupManagerAsync( + String instanceGroupManager, + InstanceGroupManagersRecreateInstancesRequest + instanceGroupManagersRecreateInstancesRequestResource) { RecreateInstancesInstanceGroupManagerHttpRequest request = RecreateInstancesInstanceGroupManagerHttpRequest.newBuilder() @@ -1741,9 +1736,8 @@ public final OperationFuture patchInstanceGroupManag */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture - recreateInstancesInstanceGroupManagerAsync( - RecreateInstancesInstanceGroupManagerHttpRequest request) { + public final OperationFuture recreateInstancesInstanceGroupManagerAsync( + RecreateInstancesInstanceGroupManagerHttpRequest request) { return recreateInstancesInstanceGroupManagerOperationCallable().futureCall(request); } @@ -1771,7 +1765,7 @@ public final OperationFuture patchInstanceGroupManag * .setInstanceGroupManager(instanceGroupManager.toString()) * .setInstanceGroupManagersRecreateInstancesRequestResource(instanceGroupManagersRecreateInstancesRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupManagerClient.recreateInstancesInstanceGroupManagerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceGroupManagerClient.recreateInstancesInstanceGroupManagerOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -1779,7 +1773,7 @@ public final OperationFuture patchInstanceGroupManag */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> recreateInstancesInstanceGroupManagerOperationCallable() { return stub.recreateInstancesInstanceGroupManagerOperationCallable(); } @@ -1859,7 +1853,7 @@ public final OperationFuture patchInstanceGroupManag */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture resizeInstanceGroupManagerAsync( + public final OperationFuture resizeInstanceGroupManagerAsync( Integer size, ProjectZoneInstanceGroupManagerName instanceGroupManager) { ResizeInstanceGroupManagerHttpRequest request = @@ -1910,7 +1904,7 @@ public final OperationFuture resizeInstanceGroupMana */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture resizeInstanceGroupManagerAsync( + public final OperationFuture resizeInstanceGroupManagerAsync( Integer size, String instanceGroupManager) { ResizeInstanceGroupManagerHttpRequest request = @@ -1961,7 +1955,7 @@ public final OperationFuture resizeInstanceGroupMana */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture resizeInstanceGroupManagerAsync( + public final OperationFuture resizeInstanceGroupManagerAsync( ResizeInstanceGroupManagerHttpRequest request) { return resizeInstanceGroupManagerOperationCallable().futureCall(request); } @@ -1997,14 +1991,14 @@ public final OperationFuture resizeInstanceGroupMana * .setSize(size) * .setInstanceGroupManager(instanceGroupManager.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupManagerClient.resizeInstanceGroupManagerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceGroupManagerClient.resizeInstanceGroupManagerOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable resizeInstanceGroupManagerOperationCallable() { return stub.resizeInstanceGroupManagerOperationCallable(); } @@ -2073,7 +2067,7 @@ public final OperationFuture resizeInstanceGroupMana */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture + public final OperationFuture setInstanceTemplateInstanceGroupManagerAsync( ProjectZoneInstanceGroupManagerName instanceGroupManager, InstanceGroupManagersSetInstanceTemplateRequest @@ -2110,7 +2104,7 @@ public final OperationFuture resizeInstanceGroupMana */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture + public final OperationFuture setInstanceTemplateInstanceGroupManagerAsync( String instanceGroupManager, InstanceGroupManagersSetInstanceTemplateRequest @@ -2149,7 +2143,7 @@ public final OperationFuture resizeInstanceGroupMana */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture + public final OperationFuture setInstanceTemplateInstanceGroupManagerAsync( SetInstanceTemplateInstanceGroupManagerHttpRequest request) { return setInstanceTemplateInstanceGroupManagerOperationCallable().futureCall(request); @@ -2170,7 +2164,7 @@ public final OperationFuture resizeInstanceGroupMana * .setInstanceGroupManager(instanceGroupManager.toString()) * .setInstanceGroupManagersSetInstanceTemplateRequestResource(instanceGroupManagersSetInstanceTemplateRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupManagerClient.setInstanceTemplateInstanceGroupManagerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceGroupManagerClient.setInstanceTemplateInstanceGroupManagerOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -2178,7 +2172,7 @@ public final OperationFuture resizeInstanceGroupMana */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setInstanceTemplateInstanceGroupManagerOperationCallable() { return stub.setInstanceTemplateInstanceGroupManagerOperationCallable(); } @@ -2234,7 +2228,7 @@ public final OperationFuture resizeInstanceGroupMana */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setTargetPoolsInstanceGroupManagerAsync( + public final OperationFuture setTargetPoolsInstanceGroupManagerAsync( ProjectZoneInstanceGroupManagerName instanceGroupManager, InstanceGroupManagersSetTargetPoolsRequest instanceGroupManagersSetTargetPoolsRequestResource) { @@ -2273,7 +2267,7 @@ public final OperationFuture setTargetPoolsInstanceG */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setTargetPoolsInstanceGroupManagerAsync( + public final OperationFuture setTargetPoolsInstanceGroupManagerAsync( String instanceGroupManager, InstanceGroupManagersSetTargetPoolsRequest instanceGroupManagersSetTargetPoolsRequestResource) { @@ -2314,7 +2308,7 @@ public final OperationFuture setTargetPoolsInstanceG */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setTargetPoolsInstanceGroupManagerAsync( + public final OperationFuture setTargetPoolsInstanceGroupManagerAsync( SetTargetPoolsInstanceGroupManagerHttpRequest request) { return setTargetPoolsInstanceGroupManagerOperationCallable().futureCall(request); } @@ -2337,7 +2331,7 @@ public final OperationFuture setTargetPoolsInstanceG * .setInstanceGroupManager(instanceGroupManager.toString()) * .setInstanceGroupManagersSetTargetPoolsRequestResource(instanceGroupManagersSetTargetPoolsRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceGroupManagerClient.setTargetPoolsInstanceGroupManagerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceGroupManagerClient.setTargetPoolsInstanceGroupManagerOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -2345,7 +2339,7 @@ public final OperationFuture setTargetPoolsInstanceG */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setTargetPoolsInstanceGroupManagerOperationCallable() { return stub.setTargetPoolsInstanceGroupManagerOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerSettings.java index c373fb344adb..0a90f6151462 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerSettings.java @@ -81,7 +81,7 @@ public class InstanceGroupManagerSettings extends ClientSettings + AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> abandonInstancesInstanceGroupManagerOperationSettings() { return ((InstanceGroupManagerStubSettings) getStubSettings()) .abandonInstancesInstanceGroupManagerOperationSettings(); @@ -107,7 +107,7 @@ public class InstanceGroupManagerSettings extends ClientSettings + public OperationCallSettings deleteInstanceGroupManagerOperationSettings() { return ((InstanceGroupManagerStubSettings) getStubSettings()) .deleteInstanceGroupManagerOperationSettings(); @@ -124,7 +124,7 @@ public class InstanceGroupManagerSettings extends ClientSettings + DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteInstancesInstanceGroupManagerOperationSettings() { return ((InstanceGroupManagerStubSettings) getStubSettings()) .deleteInstancesInstanceGroupManagerOperationSettings(); @@ -146,7 +146,7 @@ public class InstanceGroupManagerSettings extends ClientSettings + public OperationCallSettings insertInstanceGroupManagerOperationSettings() { return ((InstanceGroupManagerStubSettings) getStubSettings()) .insertInstanceGroupManagerOperationSettings(); @@ -184,7 +184,7 @@ public class InstanceGroupManagerSettings extends ClientSettings + public OperationCallSettings patchInstanceGroupManagerOperationSettings() { return ((InstanceGroupManagerStubSettings) getStubSettings()) .patchInstanceGroupManagerOperationSettings(); @@ -205,7 +205,7 @@ public class InstanceGroupManagerSettings extends ClientSettings + RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> recreateInstancesInstanceGroupManagerOperationSettings() { return ((InstanceGroupManagerStubSettings) getStubSettings()) .recreateInstancesInstanceGroupManagerOperationSettings(); @@ -221,7 +221,7 @@ public class InstanceGroupManagerSettings extends ClientSettings + public OperationCallSettings resizeInstanceGroupManagerOperationSettings() { return ((InstanceGroupManagerStubSettings) getStubSettings()) .resizeInstanceGroupManagerOperationSettings(); @@ -242,7 +242,7 @@ public class InstanceGroupManagerSettings extends ClientSettings + SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setInstanceTemplateInstanceGroupManagerOperationSettings() { return ((InstanceGroupManagerStubSettings) getStubSettings()) .setInstanceTemplateInstanceGroupManagerOperationSettings(); @@ -259,7 +259,7 @@ public class InstanceGroupManagerSettings extends ClientSettings + SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setTargetPoolsInstanceGroupManagerOperationSettings() { return ((InstanceGroupManagerStubSettings) getStubSettings()) .setTargetPoolsInstanceGroupManagerOperationSettings(); @@ -382,7 +382,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> abandonInstancesInstanceGroupManagerOperationSettings() { return getStubSettingsBuilder().abandonInstancesInstanceGroupManagerOperationSettings(); } @@ -408,7 +408,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - DeleteInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteInstanceGroupManagerOperationSettings() { return getStubSettingsBuilder().deleteInstanceGroupManagerOperationSettings(); } @@ -427,7 +427,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteInstancesInstanceGroupManagerOperationSettings() { return getStubSettingsBuilder().deleteInstancesInstanceGroupManagerOperationSettings(); } @@ -448,7 +448,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - InsertInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + InsertInstanceGroupManagerHttpRequest, EmptyMessage, Operation> insertInstanceGroupManagerOperationSettings() { return getStubSettingsBuilder().insertInstanceGroupManagerOperationSettings(); } @@ -483,7 +483,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - PatchInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + PatchInstanceGroupManagerHttpRequest, EmptyMessage, Operation> patchInstanceGroupManagerOperationSettings() { return getStubSettingsBuilder().patchInstanceGroupManagerOperationSettings(); } @@ -502,7 +502,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> recreateInstancesInstanceGroupManagerOperationSettings() { return getStubSettingsBuilder().recreateInstancesInstanceGroupManagerOperationSettings(); } @@ -517,7 +517,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - ResizeInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + ResizeInstanceGroupManagerHttpRequest, EmptyMessage, Operation> resizeInstanceGroupManagerOperationSettings() { return getStubSettingsBuilder().resizeInstanceGroupManagerOperationSettings(); } @@ -538,7 +538,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setInstanceTemplateInstanceGroupManagerOperationSettings() { return getStubSettingsBuilder().setInstanceTemplateInstanceGroupManagerOperationSettings(); } @@ -557,7 +557,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setTargetPoolsInstanceGroupManagerOperationSettings() { return getStubSettingsBuilder().setTargetPoolsInstanceGroupManagerOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupSettings.java index 38969ed3a1a0..db04043ed1f3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupSettings.java @@ -76,7 +76,7 @@ public class InstanceGroupSettings extends ClientSettings /** Returns the object with the settings used for calls to addInstancesInstanceGroup. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings addInstancesInstanceGroupOperationSettings() { return ((InstanceGroupStubSettings) getStubSettings()) .addInstancesInstanceGroupOperationSettings(); @@ -100,7 +100,7 @@ public class InstanceGroupSettings extends ClientSettings /** Returns the object with the settings used for calls to deleteInstanceGroup. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteInstanceGroupOperationSettings() { return ((InstanceGroupStubSettings) getStubSettings()).deleteInstanceGroupOperationSettings(); } @@ -119,7 +119,7 @@ public UnaryCallSettings getInstance /** Returns the object with the settings used for calls to insertInstanceGroup. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertInstanceGroupOperationSettings() { return ((InstanceGroupStubSettings) getStubSettings()).insertInstanceGroupOperationSettings(); } @@ -149,7 +149,7 @@ public UnaryCallSettings getInstance /** Returns the object with the settings used for calls to removeInstancesInstanceGroup. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings removeInstancesInstanceGroupOperationSettings() { return ((InstanceGroupStubSettings) getStubSettings()) .removeInstancesInstanceGroupOperationSettings(); @@ -164,7 +164,7 @@ public UnaryCallSettings getInstance /** Returns the object with the settings used for calls to setNamedPortsInstanceGroup. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setNamedPortsInstanceGroupOperationSettings() { return ((InstanceGroupStubSettings) getStubSettings()) .setNamedPortsInstanceGroupOperationSettings(); @@ -282,7 +282,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - AddInstancesInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + AddInstancesInstanceGroupHttpRequest, EmptyMessage, Operation> addInstancesInstanceGroupOperationSettings() { return getStubSettingsBuilder().addInstancesInstanceGroupOperationSettings(); } @@ -305,7 +305,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteInstanceGroup. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteInstanceGroupOperationSettings() { return getStubSettingsBuilder().deleteInstanceGroupOperationSettings(); } @@ -325,7 +325,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertInstanceGroup. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertInstanceGroupOperationSettings() { return getStubSettingsBuilder().insertInstanceGroupOperationSettings(); } @@ -356,7 +356,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - RemoveInstancesInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + RemoveInstancesInstanceGroupHttpRequest, EmptyMessage, Operation> removeInstancesInstanceGroupOperationSettings() { return getStubSettingsBuilder().removeInstancesInstanceGroupOperationSettings(); } @@ -371,7 +371,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetNamedPortsInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + SetNamedPortsInstanceGroupHttpRequest, EmptyMessage, Operation> setNamedPortsInstanceGroupOperationSettings() { return getStubSettingsBuilder().setNamedPortsInstanceGroupOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettings.java index d8a254dff56b..d88ccc631cff 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettings.java @@ -76,7 +76,7 @@ public class InstanceSettings extends ClientSettings { /** Returns the object with the settings used for calls to addAccessConfigInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings addAccessConfigInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()).addAccessConfigInstanceOperationSettings(); } @@ -98,7 +98,7 @@ public UnaryCallSettings attachDiskIns /** Returns the object with the settings used for calls to attachDiskInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings attachDiskInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()).attachDiskInstanceOperationSettings(); } @@ -111,7 +111,7 @@ public UnaryCallSettings deleteInstanceSet /** Returns the object with the settings used for calls to deleteInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()).deleteInstanceOperationSettings(); } @@ -125,7 +125,7 @@ public UnaryCallSettings deleteInstanceSet /** Returns the object with the settings used for calls to deleteAccessConfigInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteAccessConfigInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()).deleteAccessConfigInstanceOperationSettings(); } @@ -138,7 +138,7 @@ public UnaryCallSettings detachDiskIns /** Returns the object with the settings used for calls to detachDiskInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings detachDiskInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()).detachDiskInstanceOperationSettings(); } @@ -167,7 +167,7 @@ public UnaryCallSettings insertInstanceSet /** Returns the object with the settings used for calls to insertInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()).insertInstanceOperationSettings(); } @@ -195,7 +195,7 @@ public UnaryCallSettings resetInstanceSetti /** Returns the object with the settings used for calls to resetInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings resetInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()).resetInstanceOperationSettings(); } @@ -209,7 +209,7 @@ public UnaryCallSettings resetInstanceSetti /** Returns the object with the settings used for calls to setDeletionProtectionInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setDeletionProtectionInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()) .setDeletionProtectionInstanceOperationSettings(); @@ -224,7 +224,7 @@ public UnaryCallSettings resetInstanceSetti /** Returns the object with the settings used for calls to setDiskAutoDeleteInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setDiskAutoDeleteInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()).setDiskAutoDeleteInstanceOperationSettings(); } @@ -242,7 +242,7 @@ public UnaryCallSettings setLabelsInsta /** Returns the object with the settings used for calls to setLabelsInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setLabelsInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()).setLabelsInstanceOperationSettings(); } @@ -256,7 +256,7 @@ public UnaryCallSettings setLabelsInsta /** Returns the object with the settings used for calls to setMachineResourcesInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setMachineResourcesInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()) .setMachineResourcesInstanceOperationSettings(); @@ -271,7 +271,7 @@ public UnaryCallSettings setLabelsInsta /** Returns the object with the settings used for calls to setMachineTypeInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setMachineTypeInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()).setMachineTypeInstanceOperationSettings(); } @@ -285,7 +285,7 @@ public UnaryCallSettings setLabelsInsta /** Returns the object with the settings used for calls to setMetadataInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setMetadataInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()).setMetadataInstanceOperationSettings(); } @@ -299,7 +299,7 @@ public UnaryCallSettings setLabelsInsta /** Returns the object with the settings used for calls to setMinCpuPlatformInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setMinCpuPlatformInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()).setMinCpuPlatformInstanceOperationSettings(); } @@ -313,7 +313,7 @@ public UnaryCallSettings setLabelsInsta /** Returns the object with the settings used for calls to setSchedulingInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setSchedulingInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()).setSchedulingInstanceOperationSettings(); } @@ -327,7 +327,7 @@ public UnaryCallSettings setLabelsInsta /** Returns the object with the settings used for calls to setServiceAccountInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setServiceAccountInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()).setServiceAccountInstanceOperationSettings(); } @@ -340,7 +340,7 @@ public UnaryCallSettings setTagsInstanceS /** Returns the object with the settings used for calls to setTagsInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setTagsInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()).setTagsInstanceOperationSettings(); } @@ -354,8 +354,7 @@ public UnaryCallSettings setTagsInstanceS /** Returns the object with the settings used for calls to simulateMaintenanceEventInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings< - SimulateMaintenanceEventInstanceHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings simulateMaintenanceEventInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()) .simulateMaintenanceEventInstanceOperationSettings(); @@ -369,7 +368,7 @@ public UnaryCallSettings startInstanceSetti /** Returns the object with the settings used for calls to startInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings startInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()).startInstanceOperationSettings(); } @@ -383,8 +382,7 @@ public UnaryCallSettings startInstanceSetti /** Returns the object with the settings used for calls to startWithEncryptionKeyInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings< - StartWithEncryptionKeyInstanceHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings startWithEncryptionKeyInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()) .startWithEncryptionKeyInstanceOperationSettings(); @@ -398,7 +396,7 @@ public UnaryCallSettings stopInstanceSetting /** Returns the object with the settings used for calls to stopInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings stopInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()).stopInstanceOperationSettings(); } @@ -418,7 +416,7 @@ public UnaryCallSettings stopInstanceSetting /** Returns the object with the settings used for calls to updateAccessConfigInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings updateAccessConfigInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()).updateAccessConfigInstanceOperationSettings(); } @@ -432,8 +430,7 @@ public UnaryCallSettings stopInstanceSetting /** Returns the object with the settings used for calls to updateNetworkInterfaceInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings< - UpdateNetworkInterfaceInstanceHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings updateNetworkInterfaceInstanceOperationSettings() { return ((InstanceStubSettings) getStubSettings()) .updateNetworkInterfaceInstanceOperationSettings(); @@ -550,7 +547,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - AddAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage> + AddAccessConfigInstanceHttpRequest, EmptyMessage, Operation> addAccessConfigInstanceOperationSettings() { return getStubSettingsBuilder().addAccessConfigInstanceOperationSettings(); } @@ -573,7 +570,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to attachDiskInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder attachDiskInstanceOperationSettings() { return getStubSettingsBuilder().attachDiskInstanceOperationSettings(); } @@ -587,7 +584,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteInstanceOperationSettings() { return getStubSettingsBuilder().deleteInstanceOperationSettings(); } @@ -602,7 +599,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - DeleteAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage> + DeleteAccessConfigInstanceHttpRequest, EmptyMessage, Operation> deleteAccessConfigInstanceOperationSettings() { return getStubSettingsBuilder().deleteAccessConfigInstanceOperationSettings(); } @@ -616,7 +613,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to detachDiskInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder detachDiskInstanceOperationSettings() { return getStubSettingsBuilder().detachDiskInstanceOperationSettings(); } @@ -647,7 +644,7 @@ public UnaryCallSettings.Builder getInstanceSe /** Returns the builder for the settings used for calls to insertInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertInstanceOperationSettings() { return getStubSettingsBuilder().insertInstanceOperationSettings(); } @@ -676,7 +673,7 @@ public UnaryCallSettings.Builder resetInsta /** Returns the builder for the settings used for calls to resetInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder resetInstanceOperationSettings() { return getStubSettingsBuilder().resetInstanceOperationSettings(); } @@ -691,7 +688,7 @@ public UnaryCallSettings.Builder resetInsta @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetDeletionProtectionInstanceHttpRequest, EmptyMessage, EmptyMessage> + SetDeletionProtectionInstanceHttpRequest, EmptyMessage, Operation> setDeletionProtectionInstanceOperationSettings() { return getStubSettingsBuilder().setDeletionProtectionInstanceOperationSettings(); } @@ -706,7 +703,7 @@ public UnaryCallSettings.Builder resetInsta @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetDiskAutoDeleteInstanceHttpRequest, EmptyMessage, EmptyMessage> + SetDiskAutoDeleteInstanceHttpRequest, EmptyMessage, Operation> setDiskAutoDeleteInstanceOperationSettings() { return getStubSettingsBuilder().setDiskAutoDeleteInstanceOperationSettings(); } @@ -726,7 +723,7 @@ public UnaryCallSettings.Builder resetInsta /** Returns the builder for the settings used for calls to setLabelsInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder setLabelsInstanceOperationSettings() { return getStubSettingsBuilder().setLabelsInstanceOperationSettings(); } @@ -741,7 +738,7 @@ public UnaryCallSettings.Builder resetInsta @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetMachineResourcesInstanceHttpRequest, EmptyMessage, EmptyMessage> + SetMachineResourcesInstanceHttpRequest, EmptyMessage, Operation> setMachineResourcesInstanceOperationSettings() { return getStubSettingsBuilder().setMachineResourcesInstanceOperationSettings(); } @@ -755,8 +752,7 @@ public UnaryCallSettings.Builder resetInsta /** Returns the builder for the settings used for calls to setMachineTypeInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - SetMachineTypeInstanceHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder setMachineTypeInstanceOperationSettings() { return getStubSettingsBuilder().setMachineTypeInstanceOperationSettings(); } @@ -770,7 +766,7 @@ public UnaryCallSettings.Builder resetInsta /** Returns the builder for the settings used for calls to setMetadataInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder setMetadataInstanceOperationSettings() { return getStubSettingsBuilder().setMetadataInstanceOperationSettings(); } @@ -785,7 +781,7 @@ public UnaryCallSettings.Builder resetInsta @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetMinCpuPlatformInstanceHttpRequest, EmptyMessage, EmptyMessage> + SetMinCpuPlatformInstanceHttpRequest, EmptyMessage, Operation> setMinCpuPlatformInstanceOperationSettings() { return getStubSettingsBuilder().setMinCpuPlatformInstanceOperationSettings(); } @@ -799,8 +795,7 @@ public UnaryCallSettings.Builder resetInsta /** Returns the builder for the settings used for calls to setSchedulingInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - SetSchedulingInstanceHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder setSchedulingInstanceOperationSettings() { return getStubSettingsBuilder().setSchedulingInstanceOperationSettings(); } @@ -815,7 +810,7 @@ public UnaryCallSettings.Builder resetInsta @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetServiceAccountInstanceHttpRequest, EmptyMessage, EmptyMessage> + SetServiceAccountInstanceHttpRequest, EmptyMessage, Operation> setServiceAccountInstanceOperationSettings() { return getStubSettingsBuilder().setServiceAccountInstanceOperationSettings(); } @@ -829,7 +824,7 @@ public UnaryCallSettings.Builder resetInsta /** Returns the builder for the settings used for calls to setTagsInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder setTagsInstanceOperationSettings() { return getStubSettingsBuilder().setTagsInstanceOperationSettings(); } @@ -844,7 +839,7 @@ public UnaryCallSettings.Builder resetInsta @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SimulateMaintenanceEventInstanceHttpRequest, EmptyMessage, EmptyMessage> + SimulateMaintenanceEventInstanceHttpRequest, EmptyMessage, Operation> simulateMaintenanceEventInstanceOperationSettings() { return getStubSettingsBuilder().simulateMaintenanceEventInstanceOperationSettings(); } @@ -857,7 +852,7 @@ public UnaryCallSettings.Builder startInsta /** Returns the builder for the settings used for calls to startInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder startInstanceOperationSettings() { return getStubSettingsBuilder().startInstanceOperationSettings(); } @@ -872,7 +867,7 @@ public UnaryCallSettings.Builder startInsta @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - StartWithEncryptionKeyInstanceHttpRequest, EmptyMessage, EmptyMessage> + StartWithEncryptionKeyInstanceHttpRequest, EmptyMessage, Operation> startWithEncryptionKeyInstanceOperationSettings() { return getStubSettingsBuilder().startWithEncryptionKeyInstanceOperationSettings(); } @@ -885,7 +880,7 @@ public UnaryCallSettings.Builder stopInstanc /** Returns the builder for the settings used for calls to stopInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder stopInstanceOperationSettings() { return getStubSettingsBuilder().stopInstanceOperationSettings(); } @@ -906,7 +901,7 @@ public UnaryCallSettings.Builder stopInstanc @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - UpdateAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage> + UpdateAccessConfigInstanceHttpRequest, EmptyMessage, Operation> updateAccessConfigInstanceOperationSettings() { return getStubSettingsBuilder().updateAccessConfigInstanceOperationSettings(); } @@ -921,7 +916,7 @@ public UnaryCallSettings.Builder stopInstanc @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - UpdateNetworkInterfaceInstanceHttpRequest, EmptyMessage, EmptyMessage> + UpdateNetworkInterfaceInstanceHttpRequest, EmptyMessage, Operation> updateNetworkInterfaceInstanceOperationSettings() { return getStubSettingsBuilder().updateNetworkInterfaceInstanceOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateClient.java index d93a29b033db..fc5cb0c6e515 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateClient.java @@ -189,7 +189,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteInstanceTemplateAsync( + public final OperationFuture deleteInstanceTemplateAsync( ProjectGlobalInstanceTemplateName instanceTemplate) { DeleteInstanceTemplateHttpRequest request = @@ -219,7 +219,7 @@ public final OperationFuture deleteInstanceTemplateA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteInstanceTemplateAsync( + public final OperationFuture deleteInstanceTemplateAsync( String instanceTemplate) { DeleteInstanceTemplateHttpRequest request = @@ -252,7 +252,7 @@ public final OperationFuture deleteInstanceTemplateA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteInstanceTemplateAsync( + public final OperationFuture deleteInstanceTemplateAsync( DeleteInstanceTemplateHttpRequest request) { return deleteInstanceTemplateOperationCallable().futureCall(request); } @@ -271,14 +271,14 @@ public final OperationFuture deleteInstanceTemplateA * DeleteInstanceTemplateHttpRequest request = DeleteInstanceTemplateHttpRequest.newBuilder() * .setInstanceTemplate(instanceTemplate.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceTemplateClient.deleteInstanceTemplateOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceTemplateClient.deleteInstanceTemplateOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteInstanceTemplateOperationCallable() { return stub.deleteInstanceTemplateOperationCallable(); } @@ -540,7 +540,7 @@ public final Policy getIamPolicyInstanceTemplate( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertInstanceTemplateAsync( + public final OperationFuture insertInstanceTemplateAsync( ProjectName project, InstanceTemplate instanceTemplateResource) { InsertInstanceTemplateHttpRequest request = @@ -575,7 +575,7 @@ public final OperationFuture insertInstanceTemplateA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertInstanceTemplateAsync( + public final OperationFuture insertInstanceTemplateAsync( String project, InstanceTemplate instanceTemplateResource) { InsertInstanceTemplateHttpRequest request = @@ -612,7 +612,7 @@ public final OperationFuture insertInstanceTemplateA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertInstanceTemplateAsync( + public final OperationFuture insertInstanceTemplateAsync( InsertInstanceTemplateHttpRequest request) { return insertInstanceTemplateOperationCallable().futureCall(request); } @@ -634,14 +634,14 @@ public final OperationFuture insertInstanceTemplateA * .setProject(project.toString()) * .setInstanceTemplateResource(instanceTemplateResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = instanceTemplateClient.insertInstanceTemplateOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = instanceTemplateClient.insertInstanceTemplateOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertInstanceTemplateOperationCallable() { return stub.insertInstanceTemplateOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateSettings.java index c9d40c3ae7f4..ff5a5171f9fd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceTemplateSettings.java @@ -74,7 +74,7 @@ public class InstanceTemplateSettings extends ClientSettings + public OperationCallSettings deleteInstanceTemplateOperationSettings() { return ((InstanceTemplateStubSettings) getStubSettings()) .deleteInstanceTemplateOperationSettings(); @@ -102,7 +102,7 @@ public class InstanceTemplateSettings extends ClientSettings + public OperationCallSettings insertInstanceTemplateOperationSettings() { return ((InstanceTemplateStubSettings) getStubSettings()) .insertInstanceTemplateOperationSettings(); @@ -242,8 +242,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteInstanceTemplate. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteInstanceTemplateHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteInstanceTemplateOperationSettings() { return getStubSettingsBuilder().deleteInstanceTemplateOperationSettings(); } @@ -269,8 +268,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertInstanceTemplate. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertInstanceTemplateHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertInstanceTemplateOperationSettings() { return getStubSettingsBuilder().insertInstanceTemplateOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentClient.java index c982618f212c..2ef70cfae745 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentClient.java @@ -332,7 +332,7 @@ public final RegionOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteInterconnectAttachmentAsync( + public final OperationFuture deleteInterconnectAttachmentAsync( ProjectRegionInterconnectAttachmentName interconnectAttachment) { DeleteInterconnectAttachmentHttpRequest request = @@ -361,7 +361,7 @@ public final OperationFuture deleteInterconnectAttac */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteInterconnectAttachmentAsync( + public final OperationFuture deleteInterconnectAttachmentAsync( String interconnectAttachment) { DeleteInterconnectAttachmentHttpRequest request = @@ -392,7 +392,7 @@ public final OperationFuture deleteInterconnectAttac */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteInterconnectAttachmentAsync( + public final OperationFuture deleteInterconnectAttachmentAsync( DeleteInterconnectAttachmentHttpRequest request) { return deleteInterconnectAttachmentOperationCallable().futureCall(request); } @@ -409,15 +409,14 @@ public final OperationFuture deleteInterconnectAttac * DeleteInterconnectAttachmentHttpRequest request = DeleteInterconnectAttachmentHttpRequest.newBuilder() * .setInterconnectAttachment(interconnectAttachment.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = interconnectAttachmentClient.deleteInterconnectAttachmentOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = interconnectAttachmentClient.deleteInterconnectAttachmentOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - DeleteInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage> + public final OperationCallable deleteInterconnectAttachmentOperationCallable() { return stub.deleteInterconnectAttachmentOperationCallable(); } @@ -572,7 +571,7 @@ public final InterconnectAttachment getInterconnectAttachment( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertInterconnectAttachmentAsync( + public final OperationFuture insertInterconnectAttachmentAsync( ProjectRegionName region, InterconnectAttachment interconnectAttachmentResource) { InsertInterconnectAttachmentHttpRequest request = @@ -606,7 +605,7 @@ public final OperationFuture insertInterconnectAttac */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertInterconnectAttachmentAsync( + public final OperationFuture insertInterconnectAttachmentAsync( String region, InterconnectAttachment interconnectAttachmentResource) { InsertInterconnectAttachmentHttpRequest request = @@ -641,7 +640,7 @@ public final OperationFuture insertInterconnectAttac */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertInterconnectAttachmentAsync( + public final OperationFuture insertInterconnectAttachmentAsync( InsertInterconnectAttachmentHttpRequest request) { return insertInterconnectAttachmentOperationCallable().futureCall(request); } @@ -661,15 +660,14 @@ public final OperationFuture insertInterconnectAttac * .setRegion(region.toString()) * .setInterconnectAttachmentResource(interconnectAttachmentResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = interconnectAttachmentClient.insertInterconnectAttachmentOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = interconnectAttachmentClient.insertInterconnectAttachmentOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - InsertInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage> + public final OperationCallable insertInterconnectAttachmentOperationCallable() { return stub.insertInterconnectAttachmentOperationCallable(); } @@ -869,7 +867,7 @@ public final ListInterconnectAttachmentsPagedResponse listInterconnectAttachment */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchInterconnectAttachmentAsync( + public final OperationFuture patchInterconnectAttachmentAsync( ProjectRegionInterconnectAttachmentName interconnectAttachment, InterconnectAttachment interconnectAttachmentResource, List fieldMask) { @@ -912,7 +910,7 @@ public final OperationFuture patchInterconnectAttach */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchInterconnectAttachmentAsync( + public final OperationFuture patchInterconnectAttachmentAsync( String interconnectAttachment, InterconnectAttachment interconnectAttachmentResource, List fieldMask) { @@ -952,7 +950,7 @@ public final OperationFuture patchInterconnectAttach */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchInterconnectAttachmentAsync( + public final OperationFuture patchInterconnectAttachmentAsync( PatchInterconnectAttachmentHttpRequest request) { return patchInterconnectAttachmentOperationCallable().futureCall(request); } @@ -974,14 +972,14 @@ public final OperationFuture patchInterconnectAttach * .setInterconnectAttachmentResource(interconnectAttachmentResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = interconnectAttachmentClient.patchInterconnectAttachmentOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = interconnectAttachmentClient.patchInterconnectAttachmentOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable patchInterconnectAttachmentOperationCallable() { return stub.patchInterconnectAttachmentOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentSettings.java index eb6e5b80b774..45d0effc36a8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentSettings.java @@ -88,7 +88,7 @@ public class InterconnectAttachmentSettings extends ClientSettings + public OperationCallSettings deleteInterconnectAttachmentOperationSettings() { return ((InterconnectAttachmentStubSettings) getStubSettings()) .deleteInterconnectAttachmentOperationSettings(); @@ -111,7 +111,7 @@ public class InterconnectAttachmentSettings extends ClientSettings + public OperationCallSettings insertInterconnectAttachmentOperationSettings() { return ((InterconnectAttachmentStubSettings) getStubSettings()) .insertInterconnectAttachmentOperationSettings(); @@ -137,7 +137,7 @@ public class InterconnectAttachmentSettings extends ClientSettings + public OperationCallSettings patchInterconnectAttachmentOperationSettings() { return ((InterconnectAttachmentStubSettings) getStubSettings()) .patchInterconnectAttachmentOperationSettings(); @@ -267,7 +267,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - DeleteInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage> + DeleteInterconnectAttachmentHttpRequest, EmptyMessage, Operation> deleteInterconnectAttachmentOperationSettings() { return getStubSettingsBuilder().deleteInterconnectAttachmentOperationSettings(); } @@ -288,7 +288,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - InsertInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage> + InsertInterconnectAttachmentHttpRequest, EmptyMessage, Operation> insertInterconnectAttachmentOperationSettings() { return getStubSettingsBuilder().insertInterconnectAttachmentOperationSettings(); } @@ -312,7 +312,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - PatchInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage> + PatchInterconnectAttachmentHttpRequest, EmptyMessage, Operation> patchInterconnectAttachmentOperationSettings() { return getStubSettingsBuilder().patchInterconnectAttachmentOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectClient.java index c91305c937e7..6bfcf522c785 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectClient.java @@ -185,7 +185,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteInterconnectAsync( + public final OperationFuture deleteInterconnectAsync( ProjectGlobalInterconnectName interconnect) { DeleteInterconnectHttpRequest request = @@ -213,7 +213,7 @@ public final OperationFuture deleteInterconnectAsync */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteInterconnectAsync( + public final OperationFuture deleteInterconnectAsync( String interconnect) { DeleteInterconnectHttpRequest request = @@ -242,7 +242,7 @@ public final OperationFuture deleteInterconnectAsync */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteInterconnectAsync( + public final OperationFuture deleteInterconnectAsync( DeleteInterconnectHttpRequest request) { return deleteInterconnectOperationCallable().futureCall(request); } @@ -259,14 +259,14 @@ public final OperationFuture deleteInterconnectAsync * DeleteInterconnectHttpRequest request = DeleteInterconnectHttpRequest.newBuilder() * .setInterconnect(interconnect.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = interconnectClient.deleteInterconnectOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = interconnectClient.deleteInterconnectOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteInterconnectOperationCallable() { return stub.deleteInterconnectOperationCallable(); } @@ -520,7 +520,7 @@ public final InterconnectsGetDiagnosticsResponse getDiagnosticsInterconnect( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertInterconnectAsync( + public final OperationFuture insertInterconnectAsync( ProjectName project, Interconnect interconnectResource) { InsertInterconnectHttpRequest request = @@ -554,7 +554,7 @@ public final OperationFuture insertInterconnectAsync */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertInterconnectAsync( + public final OperationFuture insertInterconnectAsync( String project, Interconnect interconnectResource) { InsertInterconnectHttpRequest request = @@ -588,7 +588,7 @@ public final OperationFuture insertInterconnectAsync */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertInterconnectAsync( + public final OperationFuture insertInterconnectAsync( InsertInterconnectHttpRequest request) { return insertInterconnectOperationCallable().futureCall(request); } @@ -607,14 +607,14 @@ public final OperationFuture insertInterconnectAsync * .setProject(project.toString()) * .setInterconnectResource(interconnectResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = interconnectClient.insertInterconnectOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = interconnectClient.insertInterconnectOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertInterconnectOperationCallable() { return stub.insertInterconnectOperationCallable(); } @@ -812,7 +812,7 @@ public final ListInterconnectsPagedResponse listInterconnects( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchInterconnectAsync( + public final OperationFuture patchInterconnectAsync( ProjectGlobalInterconnectName interconnect, Interconnect interconnectResource, List fieldMask) { @@ -855,7 +855,7 @@ public final OperationFuture patchInterconnectAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchInterconnectAsync( + public final OperationFuture patchInterconnectAsync( String interconnect, Interconnect interconnectResource, List fieldMask) { PatchInterconnectHttpRequest request = @@ -893,7 +893,7 @@ public final OperationFuture patchInterconnectAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchInterconnectAsync( + public final OperationFuture patchInterconnectAsync( PatchInterconnectHttpRequest request) { return patchInterconnectOperationCallable().futureCall(request); } @@ -915,14 +915,14 @@ public final OperationFuture patchInterconnectAsync( * .setInterconnectResource(interconnectResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = interconnectClient.patchInterconnectOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = interconnectClient.patchInterconnectOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable patchInterconnectOperationCallable() { return stub.patchInterconnectOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectSettings.java index 8c580d23a256..1e56f60eb0a9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InterconnectSettings.java @@ -73,7 +73,7 @@ public UnaryCallSettings deleteInterco /** Returns the object with the settings used for calls to deleteInterconnect. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteInterconnectOperationSettings() { return ((InterconnectStubSettings) getStubSettings()).deleteInterconnectOperationSettings(); } @@ -98,7 +98,7 @@ public UnaryCallSettings insertInterco /** Returns the object with the settings used for calls to insertInterconnect. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertInterconnectOperationSettings() { return ((InterconnectStubSettings) getStubSettings()).insertInterconnectOperationSettings(); } @@ -118,7 +118,7 @@ public UnaryCallSettings patchInterconn /** Returns the object with the settings used for calls to patchInterconnect. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchInterconnectOperationSettings() { return ((InterconnectStubSettings) getStubSettings()).patchInterconnectOperationSettings(); } @@ -234,7 +234,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteInterconnect. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteInterconnectOperationSettings() { return getStubSettingsBuilder().deleteInterconnectOperationSettings(); } @@ -261,7 +261,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertInterconnect. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertInterconnectOperationSettings() { return getStubSettingsBuilder().insertInterconnectOperationSettings(); } @@ -282,7 +282,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to patchInterconnect. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchInterconnectOperationSettings() { return getStubSettingsBuilder().patchInterconnectOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseClient.java index 1dd9a39fac1c..6edfcdbc7e6d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseClient.java @@ -184,7 +184,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteLicenseAsync( + public final OperationFuture deleteLicenseAsync( ProjectGlobalLicenseName license) { DeleteLicenseHttpRequest request = @@ -212,7 +212,7 @@ public final OperationFuture deleteLicenseAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteLicenseAsync(String license) { + public final OperationFuture deleteLicenseAsync(String license) { DeleteLicenseHttpRequest request = DeleteLicenseHttpRequest.newBuilder().setLicense(license).build(); @@ -240,7 +240,7 @@ public final OperationFuture deleteLicenseAsync(Stri */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteLicenseAsync( + public final OperationFuture deleteLicenseAsync( DeleteLicenseHttpRequest request) { return deleteLicenseOperationCallable().futureCall(request); } @@ -257,14 +257,14 @@ public final OperationFuture deleteLicenseAsync( * DeleteLicenseHttpRequest request = DeleteLicenseHttpRequest.newBuilder() * .setLicense(license.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = licenseClient.deleteLicenseOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = licenseClient.deleteLicenseOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteLicenseOperationCallable() { return stub.deleteLicenseOperationCallable(); } @@ -509,7 +509,7 @@ public final UnaryCallable getIamPolicyL */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertLicenseAsync( + public final OperationFuture insertLicenseAsync( ProjectName project, License licenseResource) { InsertLicenseHttpRequest request = @@ -540,7 +540,7 @@ public final OperationFuture insertLicenseAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertLicenseAsync( + public final OperationFuture insertLicenseAsync( String project, License licenseResource) { InsertLicenseHttpRequest request = @@ -574,7 +574,7 @@ public final OperationFuture insertLicenseAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertLicenseAsync( + public final OperationFuture insertLicenseAsync( InsertLicenseHttpRequest request) { return insertLicenseOperationCallable().futureCall(request); } @@ -593,14 +593,14 @@ public final OperationFuture insertLicenseAsync( * .setProject(project.toString()) * .setLicenseResource(licenseResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = licenseClient.insertLicenseOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = licenseClient.insertLicenseOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertLicenseOperationCallable() { return stub.insertLicenseOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseSettings.java index 7adcdb5266f7..99dd250418ce 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicenseSettings.java @@ -73,7 +73,7 @@ public UnaryCallSettings deleteLicenseSetti /** Returns the object with the settings used for calls to deleteLicense. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteLicenseOperationSettings() { return ((LicenseStubSettings) getStubSettings()).deleteLicenseOperationSettings(); } @@ -96,7 +96,7 @@ public UnaryCallSettings insertLicenseSetti /** Returns the object with the settings used for calls to insertLicense. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertLicenseOperationSettings() { return ((LicenseStubSettings) getStubSettings()).insertLicenseOperationSettings(); } @@ -227,7 +227,7 @@ public UnaryCallSettings.Builder deleteLice /** Returns the builder for the settings used for calls to deleteLicense. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteLicenseOperationSettings() { return getStubSettingsBuilder().deleteLicenseOperationSettings(); } @@ -251,7 +251,7 @@ public UnaryCallSettings.Builder insertLice /** Returns the builder for the settings used for calls to insertLicense. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertLicenseOperationSettings() { return getStubSettingsBuilder().insertLicenseOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkClient.java index 09449dac5775..6da61b37aa4f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkClient.java @@ -186,7 +186,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addPeeringNetworkAsync( + public final OperationFuture addPeeringNetworkAsync( ProjectGlobalNetworkName network, NetworksAddPeeringRequest networksAddPeeringRequestResource) { @@ -218,7 +218,7 @@ public final OperationFuture addPeeringNetworkAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addPeeringNetworkAsync( + public final OperationFuture addPeeringNetworkAsync( String network, NetworksAddPeeringRequest networksAddPeeringRequestResource) { AddPeeringNetworkHttpRequest request = @@ -252,7 +252,7 @@ public final OperationFuture addPeeringNetworkAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addPeeringNetworkAsync( + public final OperationFuture addPeeringNetworkAsync( AddPeeringNetworkHttpRequest request) { return addPeeringNetworkOperationCallable().futureCall(request); } @@ -271,14 +271,14 @@ public final OperationFuture addPeeringNetworkAsync( * .setNetwork(network.toString()) * .setNetworksAddPeeringRequestResource(networksAddPeeringRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = networkClient.addPeeringNetworkOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = networkClient.addPeeringNetworkOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable addPeeringNetworkOperationCallable() { return stub.addPeeringNetworkOperationCallable(); } @@ -326,7 +326,7 @@ public final UnaryCallable addPeeringNe */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteNetworkAsync( + public final OperationFuture deleteNetworkAsync( ProjectGlobalNetworkName network) { DeleteNetworkHttpRequest request = @@ -354,7 +354,7 @@ public final OperationFuture deleteNetworkAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteNetworkAsync(String network) { + public final OperationFuture deleteNetworkAsync(String network) { DeleteNetworkHttpRequest request = DeleteNetworkHttpRequest.newBuilder().setNetwork(network).build(); @@ -382,7 +382,7 @@ public final OperationFuture deleteNetworkAsync(Stri */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteNetworkAsync( + public final OperationFuture deleteNetworkAsync( DeleteNetworkHttpRequest request) { return deleteNetworkOperationCallable().futureCall(request); } @@ -399,14 +399,14 @@ public final OperationFuture deleteNetworkAsync( * DeleteNetworkHttpRequest request = DeleteNetworkHttpRequest.newBuilder() * .setNetwork(network.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = networkClient.deleteNetworkOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = networkClient.deleteNetworkOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteNetworkOperationCallable() { return stub.deleteNetworkOperationCallable(); } @@ -552,7 +552,7 @@ public final UnaryCallable getNetworkCallable() */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertNetworkAsync( + public final OperationFuture insertNetworkAsync( ProjectName project, Network networkResource) { InsertNetworkHttpRequest request = @@ -585,7 +585,7 @@ public final OperationFuture insertNetworkAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertNetworkAsync( + public final OperationFuture insertNetworkAsync( String project, Network networkResource) { InsertNetworkHttpRequest request = @@ -619,7 +619,7 @@ public final OperationFuture insertNetworkAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertNetworkAsync( + public final OperationFuture insertNetworkAsync( InsertNetworkHttpRequest request) { return insertNetworkOperationCallable().futureCall(request); } @@ -638,14 +638,14 @@ public final OperationFuture insertNetworkAsync( * .setProject(project.toString()) * .setNetworkResource(networkResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = networkClient.insertNetworkOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = networkClient.insertNetworkOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertNetworkOperationCallable() { return stub.insertNetworkOperationCallable(); } @@ -839,7 +839,7 @@ public final UnaryCallable listNetworksCal */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchNetworkAsync( + public final OperationFuture patchNetworkAsync( ProjectGlobalNetworkName network, Network networkResource, List fieldMask) { PatchNetworkHttpRequest request = @@ -879,7 +879,7 @@ public final OperationFuture patchNetworkAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchNetworkAsync( + public final OperationFuture patchNetworkAsync( String network, Network networkResource, List fieldMask) { PatchNetworkHttpRequest request = @@ -917,7 +917,7 @@ public final OperationFuture patchNetworkAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchNetworkAsync( + public final OperationFuture patchNetworkAsync( PatchNetworkHttpRequest request) { return patchNetworkOperationCallable().futureCall(request); } @@ -939,14 +939,14 @@ public final OperationFuture patchNetworkAsync( * .setNetworkResource(networkResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = networkClient.patchNetworkOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = networkClient.patchNetworkOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable patchNetworkOperationCallable() { return stub.patchNetworkOperationCallable(); } @@ -999,7 +999,7 @@ public final UnaryCallable patchNetworkCalla */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture removePeeringNetworkAsync( + public final OperationFuture removePeeringNetworkAsync( ProjectGlobalNetworkName network, NetworksRemovePeeringRequest networksRemovePeeringRequestResource) { @@ -1031,7 +1031,7 @@ public final OperationFuture removePeeringNetworkAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture removePeeringNetworkAsync( + public final OperationFuture removePeeringNetworkAsync( String network, NetworksRemovePeeringRequest networksRemovePeeringRequestResource) { RemovePeeringNetworkHttpRequest request = @@ -1065,7 +1065,7 @@ public final OperationFuture removePeeringNetworkAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture removePeeringNetworkAsync( + public final OperationFuture removePeeringNetworkAsync( RemovePeeringNetworkHttpRequest request) { return removePeeringNetworkOperationCallable().futureCall(request); } @@ -1084,14 +1084,14 @@ public final OperationFuture removePeeringNetworkAsy * .setNetwork(network.toString()) * .setNetworksRemovePeeringRequestResource(networksRemovePeeringRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = networkClient.removePeeringNetworkOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = networkClient.removePeeringNetworkOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable removePeeringNetworkOperationCallable() { return stub.removePeeringNetworkOperationCallable(); } @@ -1140,7 +1140,7 @@ public final OperationFuture removePeeringNetworkAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture switchToCustomModeNetworkAsync( + public final OperationFuture switchToCustomModeNetworkAsync( ProjectGlobalNetworkName network) { SwitchToCustomModeNetworkHttpRequest request = @@ -1168,7 +1168,7 @@ public final OperationFuture switchToCustomModeNetwo */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture switchToCustomModeNetworkAsync( + public final OperationFuture switchToCustomModeNetworkAsync( String network) { SwitchToCustomModeNetworkHttpRequest request = @@ -1197,7 +1197,7 @@ public final OperationFuture switchToCustomModeNetwo */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture switchToCustomModeNetworkAsync( + public final OperationFuture switchToCustomModeNetworkAsync( SwitchToCustomModeNetworkHttpRequest request) { return switchToCustomModeNetworkOperationCallable().futureCall(request); } @@ -1214,14 +1214,14 @@ public final OperationFuture switchToCustomModeNetwo * SwitchToCustomModeNetworkHttpRequest request = SwitchToCustomModeNetworkHttpRequest.newBuilder() * .setNetwork(network.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = networkClient.switchToCustomModeNetworkOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = networkClient.switchToCustomModeNetworkOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable switchToCustomModeNetworkOperationCallable() { return stub.switchToCustomModeNetworkOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkSettings.java index 79eca2d6e8eb..6a275a33beff 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkSettings.java @@ -73,7 +73,7 @@ public UnaryCallSettings addPeeringNetw /** Returns the object with the settings used for calls to addPeeringNetwork. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings addPeeringNetworkOperationSettings() { return ((NetworkStubSettings) getStubSettings()).addPeeringNetworkOperationSettings(); } @@ -86,7 +86,7 @@ public UnaryCallSettings deleteNetworkSetti /** Returns the object with the settings used for calls to deleteNetwork. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteNetworkOperationSettings() { return ((NetworkStubSettings) getStubSettings()).deleteNetworkOperationSettings(); } @@ -104,7 +104,7 @@ public UnaryCallSettings insertNetworkSetti /** Returns the object with the settings used for calls to insertNetwork. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertNetworkOperationSettings() { return ((NetworkStubSettings) getStubSettings()).insertNetworkOperationSettings(); } @@ -123,7 +123,7 @@ public UnaryCallSettings patchNetworkSetting /** Returns the object with the settings used for calls to patchNetwork. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchNetworkOperationSettings() { return ((NetworkStubSettings) getStubSettings()).patchNetworkOperationSettings(); } @@ -137,7 +137,7 @@ public UnaryCallSettings patchNetworkSetting /** Returns the object with the settings used for calls to removePeeringNetwork. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings removePeeringNetworkOperationSettings() { return ((NetworkStubSettings) getStubSettings()).removePeeringNetworkOperationSettings(); } @@ -151,7 +151,7 @@ public UnaryCallSettings patchNetworkSetting /** Returns the object with the settings used for calls to switchToCustomModeNetwork. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings switchToCustomModeNetworkOperationSettings() { return ((NetworkStubSettings) getStubSettings()).switchToCustomModeNetworkOperationSettings(); } @@ -266,7 +266,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to addPeeringNetwork. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder addPeeringNetworkOperationSettings() { return getStubSettingsBuilder().addPeeringNetworkOperationSettings(); } @@ -279,7 +279,7 @@ public UnaryCallSettings.Builder deleteNetw /** Returns the builder for the settings used for calls to deleteNetwork. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteNetworkOperationSettings() { return getStubSettingsBuilder().deleteNetworkOperationSettings(); } @@ -297,7 +297,7 @@ public UnaryCallSettings.Builder insertNetw /** Returns the builder for the settings used for calls to insertNetwork. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertNetworkOperationSettings() { return getStubSettingsBuilder().insertNetworkOperationSettings(); } @@ -317,7 +317,7 @@ public UnaryCallSettings.Builder patchNetwor /** Returns the builder for the settings used for calls to patchNetwork. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchNetworkOperationSettings() { return getStubSettingsBuilder().patchNetworkOperationSettings(); } @@ -331,8 +331,7 @@ public UnaryCallSettings.Builder patchNetwor /** Returns the builder for the settings used for calls to removePeeringNetwork. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - RemovePeeringNetworkHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder removePeeringNetworkOperationSettings() { return getStubSettingsBuilder().removePeeringNetworkOperationSettings(); } @@ -347,7 +346,7 @@ public UnaryCallSettings.Builder patchNetwor @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SwitchToCustomModeNetworkHttpRequest, EmptyMessage, EmptyMessage> + SwitchToCustomModeNetworkHttpRequest, EmptyMessage, Operation> switchToCustomModeNetworkOperationSettings() { return getStubSettingsBuilder().switchToCustomModeNetworkOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupClient.java index b8ac22267387..a7dc87d0b545 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupClient.java @@ -186,7 +186,7 @@ public final ZoneOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addNodesNodeGroupAsync( + public final OperationFuture addNodesNodeGroupAsync( ProjectZoneNodeGroupName nodeGroup, NodeGroupsAddNodesRequest nodeGroupsAddNodesRequestResource) { @@ -218,7 +218,7 @@ public final OperationFuture addNodesNodeGroupAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addNodesNodeGroupAsync( + public final OperationFuture addNodesNodeGroupAsync( String nodeGroup, NodeGroupsAddNodesRequest nodeGroupsAddNodesRequestResource) { AddNodesNodeGroupHttpRequest request = @@ -252,7 +252,7 @@ public final OperationFuture addNodesNodeGroupAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addNodesNodeGroupAsync( + public final OperationFuture addNodesNodeGroupAsync( AddNodesNodeGroupHttpRequest request) { return addNodesNodeGroupOperationCallable().futureCall(request); } @@ -271,14 +271,14 @@ public final OperationFuture addNodesNodeGroupAsync( * .setNodeGroup(nodeGroup.toString()) * .setNodeGroupsAddNodesRequestResource(nodeGroupsAddNodesRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = nodeGroupClient.addNodesNodeGroupOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = nodeGroupClient.addNodesNodeGroupOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable addNodesNodeGroupOperationCallable() { return stub.addNodesNodeGroupOperationCallable(); } @@ -470,7 +470,7 @@ public final AggregatedListNodeGroupsPagedResponse aggregatedListNodeGroups( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteNodeGroupAsync( + public final OperationFuture deleteNodeGroupAsync( ProjectZoneNodeGroupName nodeGroup) { DeleteNodeGroupHttpRequest request = @@ -498,7 +498,7 @@ public final OperationFuture deleteNodeGroupAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteNodeGroupAsync(String nodeGroup) { + public final OperationFuture deleteNodeGroupAsync(String nodeGroup) { DeleteNodeGroupHttpRequest request = DeleteNodeGroupHttpRequest.newBuilder().setNodeGroup(nodeGroup).build(); @@ -526,7 +526,7 @@ public final OperationFuture deleteNodeGroupAsync(St */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteNodeGroupAsync( + public final OperationFuture deleteNodeGroupAsync( DeleteNodeGroupHttpRequest request) { return deleteNodeGroupOperationCallable().futureCall(request); } @@ -543,14 +543,14 @@ public final OperationFuture deleteNodeGroupAsync( * DeleteNodeGroupHttpRequest request = DeleteNodeGroupHttpRequest.newBuilder() * .setNodeGroup(nodeGroup.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = nodeGroupClient.deleteNodeGroupOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = nodeGroupClient.deleteNodeGroupOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteNodeGroupOperationCallable() { return stub.deleteNodeGroupOperationCallable(); } @@ -598,7 +598,7 @@ public final UnaryCallable deleteNodeGrou */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteNodesNodeGroupAsync( + public final OperationFuture deleteNodesNodeGroupAsync( ProjectZoneNodeGroupName nodeGroup, NodeGroupsDeleteNodesRequest nodeGroupsDeleteNodesRequestResource) { @@ -630,7 +630,7 @@ public final OperationFuture deleteNodesNodeGroupAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteNodesNodeGroupAsync( + public final OperationFuture deleteNodesNodeGroupAsync( String nodeGroup, NodeGroupsDeleteNodesRequest nodeGroupsDeleteNodesRequestResource) { DeleteNodesNodeGroupHttpRequest request = @@ -664,7 +664,7 @@ public final OperationFuture deleteNodesNodeGroupAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteNodesNodeGroupAsync( + public final OperationFuture deleteNodesNodeGroupAsync( DeleteNodesNodeGroupHttpRequest request) { return deleteNodesNodeGroupOperationCallable().futureCall(request); } @@ -683,14 +683,14 @@ public final OperationFuture deleteNodesNodeGroupAsy * .setNodeGroup(nodeGroup.toString()) * .setNodeGroupsDeleteNodesRequestResource(nodeGroupsDeleteNodesRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = nodeGroupClient.deleteNodesNodeGroupOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = nodeGroupClient.deleteNodesNodeGroupOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteNodesNodeGroupOperationCallable() { return stub.deleteNodesNodeGroupOperationCallable(); } @@ -946,7 +946,7 @@ public final Policy getIamPolicyNodeGroup(GetIamPolicyNodeGroupHttpRequest reque */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertNodeGroupAsync( + public final OperationFuture insertNodeGroupAsync( Integer initialNodeCount, ProjectZoneName zone, NodeGroup nodeGroupResource) { InsertNodeGroupHttpRequest request = @@ -980,7 +980,7 @@ public final OperationFuture insertNodeGroupAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertNodeGroupAsync( + public final OperationFuture insertNodeGroupAsync( Integer initialNodeCount, String zone, NodeGroup nodeGroupResource) { InsertNodeGroupHttpRequest request = @@ -1017,7 +1017,7 @@ public final OperationFuture insertNodeGroupAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertNodeGroupAsync( + public final OperationFuture insertNodeGroupAsync( InsertNodeGroupHttpRequest request) { return insertNodeGroupOperationCallable().futureCall(request); } @@ -1038,14 +1038,14 @@ public final OperationFuture insertNodeGroupAsync( * .setZone(zone.toString()) * .setNodeGroupResource(nodeGroupResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = nodeGroupClient.insertNodeGroupOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = nodeGroupClient.insertNodeGroupOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertNodeGroupOperationCallable() { return stub.insertNodeGroupOperationCallable(); } @@ -1490,7 +1490,7 @@ public final Policy setIamPolicyNodeGroup(SetIamPolicyNodeGroupHttpRequest reque */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setNodeTemplateNodeGroupAsync( + public final OperationFuture setNodeTemplateNodeGroupAsync( ProjectZoneNodeGroupName nodeGroup, NodeGroupsSetNodeTemplateRequest nodeGroupsSetNodeTemplateRequestResource) { @@ -1522,7 +1522,7 @@ public final OperationFuture setNodeTemplateNodeGrou */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setNodeTemplateNodeGroupAsync( + public final OperationFuture setNodeTemplateNodeGroupAsync( String nodeGroup, NodeGroupsSetNodeTemplateRequest nodeGroupsSetNodeTemplateRequestResource) { SetNodeTemplateNodeGroupHttpRequest request = @@ -1556,7 +1556,7 @@ public final OperationFuture setNodeTemplateNodeGrou */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setNodeTemplateNodeGroupAsync( + public final OperationFuture setNodeTemplateNodeGroupAsync( SetNodeTemplateNodeGroupHttpRequest request) { return setNodeTemplateNodeGroupOperationCallable().futureCall(request); } @@ -1575,14 +1575,14 @@ public final OperationFuture setNodeTemplateNodeGrou * .setNodeGroup(nodeGroup.toString()) * .setNodeGroupsSetNodeTemplateRequestResource(nodeGroupsSetNodeTemplateRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = nodeGroupClient.setNodeTemplateNodeGroupOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = nodeGroupClient.setNodeTemplateNodeGroupOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable setNodeTemplateNodeGroupOperationCallable() { return stub.setNodeTemplateNodeGroupOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupSettings.java index aaa4defd940f..8cd37f9a3eae 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupSettings.java @@ -75,7 +75,7 @@ public UnaryCallSettings addNodesNodeGr /** Returns the object with the settings used for calls to addNodesNodeGroup. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings addNodesNodeGroupOperationSettings() { return ((NodeGroupStubSettings) getStubSettings()).addNodesNodeGroupOperationSettings(); } @@ -97,7 +97,7 @@ public UnaryCallSettings deleteNodeGroupS /** Returns the object with the settings used for calls to deleteNodeGroup. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteNodeGroupOperationSettings() { return ((NodeGroupStubSettings) getStubSettings()).deleteNodeGroupOperationSettings(); } @@ -111,7 +111,7 @@ public UnaryCallSettings deleteNodeGroupS /** Returns the object with the settings used for calls to deleteNodesNodeGroup. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteNodesNodeGroupOperationSettings() { return ((NodeGroupStubSettings) getStubSettings()).deleteNodesNodeGroupOperationSettings(); } @@ -135,7 +135,7 @@ public UnaryCallSettings insertNodeGroupS /** Returns the object with the settings used for calls to insertNodeGroup. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertNodeGroupOperationSettings() { return ((NodeGroupStubSettings) getStubSettings()).insertNodeGroupOperationSettings(); } @@ -168,7 +168,7 @@ public UnaryCallSettings insertNodeGroupS /** Returns the object with the settings used for calls to setNodeTemplateNodeGroup. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setNodeTemplateNodeGroupOperationSettings() { return ((NodeGroupStubSettings) getStubSettings()).setNodeTemplateNodeGroupOperationSettings(); } @@ -289,7 +289,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to addNodesNodeGroup. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder addNodesNodeGroupOperationSettings() { return getStubSettingsBuilder().addNodesNodeGroupOperationSettings(); } @@ -312,7 +312,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteNodeGroup. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteNodeGroupOperationSettings() { return getStubSettingsBuilder().deleteNodeGroupOperationSettings(); } @@ -326,8 +326,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteNodesNodeGroup. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteNodesNodeGroupHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteNodesNodeGroupOperationSettings() { return getStubSettingsBuilder().deleteNodesNodeGroupOperationSettings(); } @@ -352,7 +351,7 @@ public UnaryCallSettings.Builder getNodeGrou /** Returns the builder for the settings used for calls to insertNodeGroup. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertNodeGroupOperationSettings() { return getStubSettingsBuilder().insertNodeGroupOperationSettings(); } @@ -387,7 +386,7 @@ public UnaryCallSettings.Builder getNodeGrou @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetNodeTemplateNodeGroupHttpRequest, EmptyMessage, EmptyMessage> + SetNodeTemplateNodeGroupHttpRequest, EmptyMessage, Operation> setNodeTemplateNodeGroupOperationSettings() { return getStubSettingsBuilder().setNodeTemplateNodeGroupOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateClient.java index 2303c40b0b41..a31919a723c5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateClient.java @@ -326,7 +326,7 @@ public final AggregatedListNodeTemplatesPagedResponse aggregatedListNodeTemplate */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteNodeTemplateAsync( + public final OperationFuture deleteNodeTemplateAsync( ProjectRegionNodeTemplateName nodeTemplate) { DeleteNodeTemplateHttpRequest request = @@ -354,7 +354,7 @@ public final OperationFuture deleteNodeTemplateAsync */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteNodeTemplateAsync( + public final OperationFuture deleteNodeTemplateAsync( String nodeTemplate) { DeleteNodeTemplateHttpRequest request = @@ -383,7 +383,7 @@ public final OperationFuture deleteNodeTemplateAsync */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteNodeTemplateAsync( + public final OperationFuture deleteNodeTemplateAsync( DeleteNodeTemplateHttpRequest request) { return deleteNodeTemplateOperationCallable().futureCall(request); } @@ -400,14 +400,14 @@ public final OperationFuture deleteNodeTemplateAsync * DeleteNodeTemplateHttpRequest request = DeleteNodeTemplateHttpRequest.newBuilder() * .setNodeTemplate(nodeTemplate.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = nodeTemplateClient.deleteNodeTemplateOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = nodeTemplateClient.deleteNodeTemplateOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteNodeTemplateOperationCallable() { return stub.deleteNodeTemplateOperationCallable(); } @@ -660,7 +660,7 @@ public final Policy getIamPolicyNodeTemplate(GetIamPolicyNodeTemplateHttpRequest */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertNodeTemplateAsync( + public final OperationFuture insertNodeTemplateAsync( ProjectRegionName region, NodeTemplate nodeTemplateResource) { InsertNodeTemplateHttpRequest request = @@ -692,7 +692,7 @@ public final OperationFuture insertNodeTemplateAsync */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertNodeTemplateAsync( + public final OperationFuture insertNodeTemplateAsync( String region, NodeTemplate nodeTemplateResource) { InsertNodeTemplateHttpRequest request = @@ -727,7 +727,7 @@ public final OperationFuture insertNodeTemplateAsync */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertNodeTemplateAsync( + public final OperationFuture insertNodeTemplateAsync( InsertNodeTemplateHttpRequest request) { return insertNodeTemplateOperationCallable().futureCall(request); } @@ -747,14 +747,14 @@ public final OperationFuture insertNodeTemplateAsync * .setRegion(region.toString()) * .setNodeTemplateResource(nodeTemplateResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = nodeTemplateClient.insertNodeTemplateOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = nodeTemplateClient.insertNodeTemplateOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertNodeTemplateOperationCallable() { return stub.insertNodeTemplateOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateSettings.java index 6ff6e5947079..5291284bff3e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeTemplateSettings.java @@ -83,7 +83,7 @@ public UnaryCallSettings deleteNodeTem /** Returns the object with the settings used for calls to deleteNodeTemplate. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteNodeTemplateOperationSettings() { return ((NodeTemplateStubSettings) getStubSettings()).deleteNodeTemplateOperationSettings(); } @@ -107,7 +107,7 @@ public UnaryCallSettings insertNodeTem /** Returns the object with the settings used for calls to insertNodeTemplate. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertNodeTemplateOperationSettings() { return ((NodeTemplateStubSettings) getStubSettings()).insertNodeTemplateOperationSettings(); } @@ -251,7 +251,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteNodeTemplate. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteNodeTemplateOperationSettings() { return getStubSettingsBuilder().deleteNodeTemplateOperationSettings(); } @@ -277,7 +277,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertNodeTemplate. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertNodeTemplateOperationSettings() { return getStubSettingsBuilder().insertNodeTemplateOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectClient.java index 6c6f0d7a020d..1382ca60ef33 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectClient.java @@ -184,7 +184,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture disableXpnHostProjectAsync( + public final OperationFuture disableXpnHostProjectAsync( ProjectName project) { DisableXpnHostProjectHttpRequest request = @@ -212,8 +212,7 @@ public final OperationFuture disableXpnHostProjectAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture disableXpnHostProjectAsync( - String project) { + public final OperationFuture disableXpnHostProjectAsync(String project) { DisableXpnHostProjectHttpRequest request = DisableXpnHostProjectHttpRequest.newBuilder().setProject(project).build(); @@ -241,7 +240,7 @@ public final OperationFuture disableXpnHostProjectAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture disableXpnHostProjectAsync( + public final OperationFuture disableXpnHostProjectAsync( DisableXpnHostProjectHttpRequest request) { return disableXpnHostProjectOperationCallable().futureCall(request); } @@ -258,14 +257,14 @@ public final OperationFuture disableXpnHostProjectAs * DisableXpnHostProjectHttpRequest request = DisableXpnHostProjectHttpRequest.newBuilder() * .setProject(project.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = projectClient.disableXpnHostProjectOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = projectClient.disableXpnHostProjectOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable disableXpnHostProjectOperationCallable() { return stub.disableXpnHostProjectOperationCallable(); } @@ -314,7 +313,7 @@ public final OperationFuture disableXpnHostProjectAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture disableXpnResourceProjectAsync( + public final OperationFuture disableXpnResourceProjectAsync( ProjectName project, ProjectsDisableXpnResourceRequest projectsDisableXpnResourceRequestResource) { @@ -346,7 +345,7 @@ public final OperationFuture disableXpnResourceProje */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture disableXpnResourceProjectAsync( + public final OperationFuture disableXpnResourceProjectAsync( String project, ProjectsDisableXpnResourceRequest projectsDisableXpnResourceRequestResource) { DisableXpnResourceProjectHttpRequest request = @@ -380,7 +379,7 @@ public final OperationFuture disableXpnResourceProje */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture disableXpnResourceProjectAsync( + public final OperationFuture disableXpnResourceProjectAsync( DisableXpnResourceProjectHttpRequest request) { return disableXpnResourceProjectOperationCallable().futureCall(request); } @@ -399,14 +398,14 @@ public final OperationFuture disableXpnResourceProje * .setProject(project.toString()) * .setProjectsDisableXpnResourceRequestResource(projectsDisableXpnResourceRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = projectClient.disableXpnResourceProjectOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = projectClient.disableXpnResourceProjectOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable disableXpnResourceProjectOperationCallable() { return stub.disableXpnResourceProjectOperationCallable(); } @@ -455,7 +454,7 @@ public final OperationFuture disableXpnResourceProje */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture enableXpnHostProjectAsync( + public final OperationFuture enableXpnHostProjectAsync( ProjectName project) { EnableXpnHostProjectHttpRequest request = @@ -483,8 +482,7 @@ public final OperationFuture enableXpnHostProjectAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture enableXpnHostProjectAsync( - String project) { + public final OperationFuture enableXpnHostProjectAsync(String project) { EnableXpnHostProjectHttpRequest request = EnableXpnHostProjectHttpRequest.newBuilder().setProject(project).build(); @@ -512,7 +510,7 @@ public final OperationFuture enableXpnHostProjectAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture enableXpnHostProjectAsync( + public final OperationFuture enableXpnHostProjectAsync( EnableXpnHostProjectHttpRequest request) { return enableXpnHostProjectOperationCallable().futureCall(request); } @@ -529,14 +527,14 @@ public final OperationFuture enableXpnHostProjectAsy * EnableXpnHostProjectHttpRequest request = EnableXpnHostProjectHttpRequest.newBuilder() * .setProject(project.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = projectClient.enableXpnHostProjectOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = projectClient.enableXpnHostProjectOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable enableXpnHostProjectOperationCallable() { return stub.enableXpnHostProjectOperationCallable(); } @@ -586,7 +584,7 @@ public final OperationFuture enableXpnHostProjectAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture enableXpnResourceProjectAsync( + public final OperationFuture enableXpnResourceProjectAsync( ProjectName project, ProjectsEnableXpnResourceRequest projectsEnableXpnResourceRequestResource) { @@ -619,7 +617,7 @@ public final OperationFuture enableXpnResourceProjec */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture enableXpnResourceProjectAsync( + public final OperationFuture enableXpnResourceProjectAsync( String project, ProjectsEnableXpnResourceRequest projectsEnableXpnResourceRequestResource) { EnableXpnResourceProjectHttpRequest request = @@ -654,7 +652,7 @@ public final OperationFuture enableXpnResourceProjec */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture enableXpnResourceProjectAsync( + public final OperationFuture enableXpnResourceProjectAsync( EnableXpnResourceProjectHttpRequest request) { return enableXpnResourceProjectOperationCallable().futureCall(request); } @@ -674,14 +672,14 @@ public final OperationFuture enableXpnResourceProjec * .setProject(project.toString()) * .setProjectsEnableXpnResourceRequestResource(projectsEnableXpnResourceRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = projectClient.enableXpnResourceProjectOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = projectClient.enableXpnResourceProjectOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable enableXpnResourceProjectOperationCallable() { return stub.enableXpnResourceProjectOperationCallable(); } @@ -1219,7 +1217,7 @@ public final ListXpnHostsProjectsPagedResponse listXpnHostsProjects( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture moveDiskProjectAsync( + public final OperationFuture moveDiskProjectAsync( ProjectName project, DiskMoveRequest diskMoveRequestResource) { MoveDiskProjectHttpRequest request = @@ -1250,7 +1248,7 @@ public final OperationFuture moveDiskProjectAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture moveDiskProjectAsync( + public final OperationFuture moveDiskProjectAsync( String project, DiskMoveRequest diskMoveRequestResource) { MoveDiskProjectHttpRequest request = @@ -1284,7 +1282,7 @@ public final OperationFuture moveDiskProjectAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture moveDiskProjectAsync( + public final OperationFuture moveDiskProjectAsync( MoveDiskProjectHttpRequest request) { return moveDiskProjectOperationCallable().futureCall(request); } @@ -1303,14 +1301,14 @@ public final OperationFuture moveDiskProjectAsync( * .setProject(project.toString()) * .setDiskMoveRequestResource(diskMoveRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = projectClient.moveDiskProjectOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = projectClient.moveDiskProjectOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable moveDiskProjectOperationCallable() { return stub.moveDiskProjectOperationCallable(); } @@ -1360,7 +1358,7 @@ public final UnaryCallable moveDiskProjec */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture moveInstanceProjectAsync( + public final OperationFuture moveInstanceProjectAsync( ProjectName project, InstanceMoveRequest instanceMoveRequestResource) { MoveInstanceProjectHttpRequest request = @@ -1391,7 +1389,7 @@ public final OperationFuture moveInstanceProjectAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture moveInstanceProjectAsync( + public final OperationFuture moveInstanceProjectAsync( String project, InstanceMoveRequest instanceMoveRequestResource) { MoveInstanceProjectHttpRequest request = @@ -1425,7 +1423,7 @@ public final OperationFuture moveInstanceProjectAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture moveInstanceProjectAsync( + public final OperationFuture moveInstanceProjectAsync( MoveInstanceProjectHttpRequest request) { return moveInstanceProjectOperationCallable().futureCall(request); } @@ -1444,14 +1442,14 @@ public final OperationFuture moveInstanceProjectAsyn * .setProject(project.toString()) * .setInstanceMoveRequestResource(instanceMoveRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = projectClient.moveInstanceProjectOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = projectClient.moveInstanceProjectOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable moveInstanceProjectOperationCallable() { return stub.moveInstanceProjectOperationCallable(); } @@ -1503,7 +1501,7 @@ public final OperationFuture moveInstanceProjectAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setCommonInstanceMetadataProjectAsync( + public final OperationFuture setCommonInstanceMetadataProjectAsync( ProjectName project, Metadata metadataResource) { SetCommonInstanceMetadataProjectHttpRequest request = @@ -1535,7 +1533,7 @@ public final OperationFuture setCommonInstanceMetada */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setCommonInstanceMetadataProjectAsync( + public final OperationFuture setCommonInstanceMetadataProjectAsync( String project, Metadata metadataResource) { SetCommonInstanceMetadataProjectHttpRequest request = @@ -1570,7 +1568,7 @@ public final OperationFuture setCommonInstanceMetada */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setCommonInstanceMetadataProjectAsync( + public final OperationFuture setCommonInstanceMetadataProjectAsync( SetCommonInstanceMetadataProjectHttpRequest request) { return setCommonInstanceMetadataProjectOperationCallable().futureCall(request); } @@ -1590,7 +1588,7 @@ public final OperationFuture setCommonInstanceMetada * .setProject(project.toString()) * .setMetadataResource(metadataResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = projectClient.setCommonInstanceMetadataProjectOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = projectClient.setCommonInstanceMetadataProjectOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -1598,7 +1596,7 @@ public final OperationFuture setCommonInstanceMetada */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - SetCommonInstanceMetadataProjectHttpRequest, EmptyMessage, EmptyMessage> + SetCommonInstanceMetadataProjectHttpRequest, EmptyMessage, Operation> setCommonInstanceMetadataProjectOperationCallable() { return stub.setCommonInstanceMetadataProjectOperationCallable(); } @@ -1651,7 +1649,7 @@ public final OperationFuture setCommonInstanceMetada */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setDefaultNetworkTierProjectAsync( + public final OperationFuture setDefaultNetworkTierProjectAsync( ProjectName project, ProjectsSetDefaultNetworkTierRequest projectsSetDefaultNetworkTierRequestResource) { @@ -1685,7 +1683,7 @@ public final OperationFuture setDefaultNetworkTierPr */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setDefaultNetworkTierProjectAsync( + public final OperationFuture setDefaultNetworkTierProjectAsync( String project, ProjectsSetDefaultNetworkTierRequest projectsSetDefaultNetworkTierRequestResource) { @@ -1722,7 +1720,7 @@ public final OperationFuture setDefaultNetworkTierPr */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setDefaultNetworkTierProjectAsync( + public final OperationFuture setDefaultNetworkTierProjectAsync( SetDefaultNetworkTierProjectHttpRequest request) { return setDefaultNetworkTierProjectOperationCallable().futureCall(request); } @@ -1742,15 +1740,14 @@ public final OperationFuture setDefaultNetworkTierPr * .setProject(project.toString()) * .setProjectsSetDefaultNetworkTierRequestResource(projectsSetDefaultNetworkTierRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = projectClient.setDefaultNetworkTierProjectOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = projectClient.setDefaultNetworkTierProjectOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - SetDefaultNetworkTierProjectHttpRequest, EmptyMessage, EmptyMessage> + public final OperationCallable setDefaultNetworkTierProjectOperationCallable() { return stub.setDefaultNetworkTierProjectOperationCallable(); } @@ -1804,7 +1801,7 @@ public final OperationFuture setDefaultNetworkTierPr */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setUsageExportBucketProjectAsync( + public final OperationFuture setUsageExportBucketProjectAsync( ProjectName project, UsageExportLocation usageExportLocationResource) { SetUsageExportBucketProjectHttpRequest request = @@ -1837,7 +1834,7 @@ public final OperationFuture setUsageExportBucketPro */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setUsageExportBucketProjectAsync( + public final OperationFuture setUsageExportBucketProjectAsync( String project, UsageExportLocation usageExportLocationResource) { SetUsageExportBucketProjectHttpRequest request = @@ -1872,7 +1869,7 @@ public final OperationFuture setUsageExportBucketPro */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setUsageExportBucketProjectAsync( + public final OperationFuture setUsageExportBucketProjectAsync( SetUsageExportBucketProjectHttpRequest request) { return setUsageExportBucketProjectOperationCallable().futureCall(request); } @@ -1892,14 +1889,14 @@ public final OperationFuture setUsageExportBucketPro * .setProject(project.toString()) * .setUsageExportLocationResource(usageExportLocationResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = projectClient.setUsageExportBucketProjectOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = projectClient.setUsageExportBucketProjectOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable setUsageExportBucketProjectOperationCallable() { return stub.setUsageExportBucketProjectOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectSettings.java index 8f22df397b81..c1c9f5db74aa 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ProjectSettings.java @@ -75,7 +75,7 @@ public class ProjectSettings extends ClientSettings { /** Returns the object with the settings used for calls to disableXpnHostProject. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings disableXpnHostProjectOperationSettings() { return ((ProjectStubSettings) getStubSettings()).disableXpnHostProjectOperationSettings(); } @@ -89,7 +89,7 @@ public class ProjectSettings extends ClientSettings { /** Returns the object with the settings used for calls to disableXpnResourceProject. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings disableXpnResourceProjectOperationSettings() { return ((ProjectStubSettings) getStubSettings()).disableXpnResourceProjectOperationSettings(); } @@ -103,7 +103,7 @@ public class ProjectSettings extends ClientSettings { /** Returns the object with the settings used for calls to enableXpnHostProject. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings enableXpnHostProjectOperationSettings() { return ((ProjectStubSettings) getStubSettings()).enableXpnHostProjectOperationSettings(); } @@ -117,7 +117,7 @@ public class ProjectSettings extends ClientSettings { /** Returns the object with the settings used for calls to enableXpnResourceProject. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings enableXpnResourceProjectOperationSettings() { return ((ProjectStubSettings) getStubSettings()).enableXpnResourceProjectOperationSettings(); } @@ -156,7 +156,7 @@ public UnaryCallSettings moveDiskProjectS /** Returns the object with the settings used for calls to moveDiskProject. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings moveDiskProjectOperationSettings() { return ((ProjectStubSettings) getStubSettings()).moveDiskProjectOperationSettings(); } @@ -170,7 +170,7 @@ public UnaryCallSettings moveDiskProjectS /** Returns the object with the settings used for calls to moveInstanceProject. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings moveInstanceProjectOperationSettings() { return ((ProjectStubSettings) getStubSettings()).moveInstanceProjectOperationSettings(); } @@ -184,8 +184,7 @@ public UnaryCallSettings moveDiskProjectS /** Returns the object with the settings used for calls to setCommonInstanceMetadataProject. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings< - SetCommonInstanceMetadataProjectHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings setCommonInstanceMetadataProjectOperationSettings() { return ((ProjectStubSettings) getStubSettings()) .setCommonInstanceMetadataProjectOperationSettings(); @@ -200,7 +199,7 @@ public UnaryCallSettings moveDiskProjectS /** Returns the object with the settings used for calls to setDefaultNetworkTierProject. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setDefaultNetworkTierProjectOperationSettings() { return ((ProjectStubSettings) getStubSettings()) .setDefaultNetworkTierProjectOperationSettings(); @@ -215,7 +214,7 @@ public UnaryCallSettings moveDiskProjectS /** Returns the object with the settings used for calls to setUsageExportBucketProject. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setUsageExportBucketProjectOperationSettings() { return ((ProjectStubSettings) getStubSettings()).setUsageExportBucketProjectOperationSettings(); } @@ -330,8 +329,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to disableXpnHostProject. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DisableXpnHostProjectHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder disableXpnHostProjectOperationSettings() { return getStubSettingsBuilder().disableXpnHostProjectOperationSettings(); } @@ -346,7 +344,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - DisableXpnResourceProjectHttpRequest, EmptyMessage, EmptyMessage> + DisableXpnResourceProjectHttpRequest, EmptyMessage, Operation> disableXpnResourceProjectOperationSettings() { return getStubSettingsBuilder().disableXpnResourceProjectOperationSettings(); } @@ -360,8 +358,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to enableXpnHostProject. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - EnableXpnHostProjectHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder enableXpnHostProjectOperationSettings() { return getStubSettingsBuilder().enableXpnHostProjectOperationSettings(); } @@ -376,7 +373,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - EnableXpnResourceProjectHttpRequest, EmptyMessage, EmptyMessage> + EnableXpnResourceProjectHttpRequest, EmptyMessage, Operation> enableXpnResourceProjectOperationSettings() { return getStubSettingsBuilder().enableXpnResourceProjectOperationSettings(); } @@ -417,7 +414,7 @@ public UnaryCallSettings.Builder getProjectSetti /** Returns the builder for the settings used for calls to moveDiskProject. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder moveDiskProjectOperationSettings() { return getStubSettingsBuilder().moveDiskProjectOperationSettings(); } @@ -431,7 +428,7 @@ public UnaryCallSettings.Builder getProjectSetti /** Returns the builder for the settings used for calls to moveInstanceProject. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder moveInstanceProjectOperationSettings() { return getStubSettingsBuilder().moveInstanceProjectOperationSettings(); } @@ -446,7 +443,7 @@ public UnaryCallSettings.Builder getProjectSetti @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetCommonInstanceMetadataProjectHttpRequest, EmptyMessage, EmptyMessage> + SetCommonInstanceMetadataProjectHttpRequest, EmptyMessage, Operation> setCommonInstanceMetadataProjectOperationSettings() { return getStubSettingsBuilder().setCommonInstanceMetadataProjectOperationSettings(); } @@ -461,7 +458,7 @@ public UnaryCallSettings.Builder getProjectSetti @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetDefaultNetworkTierProjectHttpRequest, EmptyMessage, EmptyMessage> + SetDefaultNetworkTierProjectHttpRequest, EmptyMessage, Operation> setDefaultNetworkTierProjectOperationSettings() { return getStubSettingsBuilder().setDefaultNetworkTierProjectOperationSettings(); } @@ -476,7 +473,7 @@ public UnaryCallSettings.Builder getProjectSetti @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetUsageExportBucketProjectHttpRequest, EmptyMessage, EmptyMessage> + SetUsageExportBucketProjectHttpRequest, EmptyMessage, Operation> setUsageExportBucketProjectOperationSettings() { return getStubSettingsBuilder().setUsageExportBucketProjectOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java index 294b65a7ca5a..7eaffa363e05 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerClient.java @@ -187,7 +187,7 @@ public final RegionOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteRegionAutoscalerAsync( + public final OperationFuture deleteRegionAutoscalerAsync( ProjectRegionAutoscalerName autoscaler) { DeleteRegionAutoscalerHttpRequest request = @@ -215,7 +215,7 @@ public final OperationFuture deleteRegionAutoscalerA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteRegionAutoscalerAsync( + public final OperationFuture deleteRegionAutoscalerAsync( String autoscaler) { DeleteRegionAutoscalerHttpRequest request = @@ -244,7 +244,7 @@ public final OperationFuture deleteRegionAutoscalerA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteRegionAutoscalerAsync( + public final OperationFuture deleteRegionAutoscalerAsync( DeleteRegionAutoscalerHttpRequest request) { return deleteRegionAutoscalerOperationCallable().futureCall(request); } @@ -261,14 +261,14 @@ public final OperationFuture deleteRegionAutoscalerA * DeleteRegionAutoscalerHttpRequest request = DeleteRegionAutoscalerHttpRequest.newBuilder() * .setAutoscaler(autoscaler.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionAutoscalerClient.deleteRegionAutoscalerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionAutoscalerClient.deleteRegionAutoscalerOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteRegionAutoscalerOperationCallable() { return stub.deleteRegionAutoscalerOperationCallable(); } @@ -419,7 +419,7 @@ public final Autoscaler getRegionAutoscaler(GetRegionAutoscalerHttpRequest reque */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertRegionAutoscalerAsync( + public final OperationFuture insertRegionAutoscalerAsync( ProjectRegionName region, Autoscaler autoscalerResource) { InsertRegionAutoscalerHttpRequest request = @@ -454,7 +454,7 @@ public final OperationFuture insertRegionAutoscalerA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertRegionAutoscalerAsync( + public final OperationFuture insertRegionAutoscalerAsync( String region, Autoscaler autoscalerResource) { InsertRegionAutoscalerHttpRequest request = @@ -488,7 +488,7 @@ public final OperationFuture insertRegionAutoscalerA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertRegionAutoscalerAsync( + public final OperationFuture insertRegionAutoscalerAsync( InsertRegionAutoscalerHttpRequest request) { return insertRegionAutoscalerOperationCallable().futureCall(request); } @@ -507,14 +507,14 @@ public final OperationFuture insertRegionAutoscalerA * .setRegion(region.toString()) * .setAutoscalerResource(autoscalerResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionAutoscalerClient.insertRegionAutoscalerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionAutoscalerClient.insertRegionAutoscalerOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertRegionAutoscalerOperationCallable() { return stub.insertRegionAutoscalerOperationCallable(); } @@ -715,7 +715,7 @@ public final ListRegionAutoscalersPagedResponse listRegionAutoscalers( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchRegionAutoscalerAsync( + public final OperationFuture patchRegionAutoscalerAsync( String autoscaler, ProjectRegionName region, Autoscaler autoscalerResource, @@ -763,7 +763,7 @@ public final OperationFuture patchRegionAutoscalerAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchRegionAutoscalerAsync( + public final OperationFuture patchRegionAutoscalerAsync( String autoscaler, String region, Autoscaler autoscalerResource, List fieldMask) { PatchRegionAutoscalerHttpRequest request = @@ -804,7 +804,7 @@ public final OperationFuture patchRegionAutoscalerAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchRegionAutoscalerAsync( + public final OperationFuture patchRegionAutoscalerAsync( PatchRegionAutoscalerHttpRequest request) { return patchRegionAutoscalerOperationCallable().futureCall(request); } @@ -828,14 +828,14 @@ public final OperationFuture patchRegionAutoscalerAs * .setAutoscalerResource(autoscalerResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionAutoscalerClient.patchRegionAutoscalerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionAutoscalerClient.patchRegionAutoscalerOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable patchRegionAutoscalerOperationCallable() { return stub.patchRegionAutoscalerOperationCallable(); } @@ -902,7 +902,7 @@ public final OperationFuture patchRegionAutoscalerAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateRegionAutoscalerAsync( + public final OperationFuture updateRegionAutoscalerAsync( String autoscaler, ProjectRegionName region, Autoscaler autoscalerResource, @@ -949,7 +949,7 @@ public final OperationFuture updateRegionAutoscalerA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateRegionAutoscalerAsync( + public final OperationFuture updateRegionAutoscalerAsync( String autoscaler, String region, Autoscaler autoscalerResource, List fieldMask) { UpdateRegionAutoscalerHttpRequest request = @@ -989,7 +989,7 @@ public final OperationFuture updateRegionAutoscalerA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateRegionAutoscalerAsync( + public final OperationFuture updateRegionAutoscalerAsync( UpdateRegionAutoscalerHttpRequest request) { return updateRegionAutoscalerOperationCallable().futureCall(request); } @@ -1012,14 +1012,14 @@ public final OperationFuture updateRegionAutoscalerA * .setAutoscalerResource(autoscalerResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionAutoscalerClient.updateRegionAutoscalerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionAutoscalerClient.updateRegionAutoscalerOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable updateRegionAutoscalerOperationCallable() { return stub.updateRegionAutoscalerOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerSettings.java index 400df460e0e4..ff3953ba074e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionAutoscalerSettings.java @@ -74,7 +74,7 @@ public class RegionAutoscalerSettings extends ClientSettings + public OperationCallSettings deleteRegionAutoscalerOperationSettings() { return ((RegionAutoscalerStubSettings) getStubSettings()) .deleteRegionAutoscalerOperationSettings(); @@ -95,7 +95,7 @@ public class RegionAutoscalerSettings extends ClientSettings + public OperationCallSettings insertRegionAutoscalerOperationSettings() { return ((RegionAutoscalerStubSettings) getStubSettings()) .insertRegionAutoscalerOperationSettings(); @@ -119,7 +119,7 @@ public class RegionAutoscalerSettings extends ClientSettings + public OperationCallSettings patchRegionAutoscalerOperationSettings() { return ((RegionAutoscalerStubSettings) getStubSettings()) .patchRegionAutoscalerOperationSettings(); @@ -134,7 +134,7 @@ public class RegionAutoscalerSettings extends ClientSettings + public OperationCallSettings updateRegionAutoscalerOperationSettings() { return ((RegionAutoscalerStubSettings) getStubSettings()) .updateRegionAutoscalerOperationSettings(); @@ -251,8 +251,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteRegionAutoscaler. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteRegionAutoscalerOperationSettings() { return getStubSettingsBuilder().deleteRegionAutoscalerOperationSettings(); } @@ -272,8 +271,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertRegionAutoscaler. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertRegionAutoscalerOperationSettings() { return getStubSettingsBuilder().insertRegionAutoscalerOperationSettings(); } @@ -296,8 +294,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to patchRegionAutoscaler. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - PatchRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder patchRegionAutoscalerOperationSettings() { return getStubSettingsBuilder().patchRegionAutoscalerOperationSettings(); } @@ -311,8 +308,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to updateRegionAutoscaler. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - UpdateRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder updateRegionAutoscalerOperationSettings() { return getStubSettingsBuilder().updateRegionAutoscalerOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java index 7d3f4dfdcb9d..e55864d57849 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceClient.java @@ -187,7 +187,7 @@ public final RegionOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteRegionBackendServiceAsync( + public final OperationFuture deleteRegionBackendServiceAsync( ProjectRegionBackendServiceName backendService) { DeleteRegionBackendServiceHttpRequest request = @@ -215,7 +215,7 @@ public final OperationFuture deleteRegionBackendServ */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteRegionBackendServiceAsync( + public final OperationFuture deleteRegionBackendServiceAsync( String backendService) { DeleteRegionBackendServiceHttpRequest request = @@ -246,7 +246,7 @@ public final OperationFuture deleteRegionBackendServ */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteRegionBackendServiceAsync( + public final OperationFuture deleteRegionBackendServiceAsync( DeleteRegionBackendServiceHttpRequest request) { return deleteRegionBackendServiceOperationCallable().futureCall(request); } @@ -263,14 +263,14 @@ public final OperationFuture deleteRegionBackendServ * DeleteRegionBackendServiceHttpRequest request = DeleteRegionBackendServiceHttpRequest.newBuilder() * .setBackendService(backendService.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionBackendServiceClient.deleteRegionBackendServiceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionBackendServiceClient.deleteRegionBackendServiceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteRegionBackendServiceOperationCallable() { return stub.deleteRegionBackendServiceOperationCallable(); } @@ -536,7 +536,7 @@ public final BackendServiceGroupHealth getHealthRegionBackendService( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertRegionBackendServiceAsync( + public final OperationFuture insertRegionBackendServiceAsync( ProjectRegionName region, BackendService backendServiceResource) { InsertRegionBackendServiceHttpRequest request = @@ -571,7 +571,7 @@ public final OperationFuture insertRegionBackendServ */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertRegionBackendServiceAsync( + public final OperationFuture insertRegionBackendServiceAsync( String region, BackendService backendServiceResource) { InsertRegionBackendServiceHttpRequest request = @@ -607,7 +607,7 @@ public final OperationFuture insertRegionBackendServ */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertRegionBackendServiceAsync( + public final OperationFuture insertRegionBackendServiceAsync( InsertRegionBackendServiceHttpRequest request) { return insertRegionBackendServiceOperationCallable().futureCall(request); } @@ -628,14 +628,14 @@ public final OperationFuture insertRegionBackendServ * .setRegion(region.toString()) * .setBackendServiceResource(backendServiceResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionBackendServiceClient.insertRegionBackendServiceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionBackendServiceClient.insertRegionBackendServiceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertRegionBackendServiceOperationCallable() { return stub.insertRegionBackendServiceOperationCallable(); } @@ -843,7 +843,7 @@ public final ListRegionBackendServicesPagedResponse listRegionBackendServices( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchRegionBackendServiceAsync( + public final OperationFuture patchRegionBackendServiceAsync( ProjectRegionBackendServiceName backendService, BackendService backendServiceResource, List fieldMask) { @@ -887,7 +887,7 @@ public final OperationFuture patchRegionBackendServi */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchRegionBackendServiceAsync( + public final OperationFuture patchRegionBackendServiceAsync( String backendService, BackendService backendServiceResource, List fieldMask) { PatchRegionBackendServiceHttpRequest request = @@ -927,7 +927,7 @@ public final OperationFuture patchRegionBackendServi */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchRegionBackendServiceAsync( + public final OperationFuture patchRegionBackendServiceAsync( PatchRegionBackendServiceHttpRequest request) { return patchRegionBackendServiceOperationCallable().futureCall(request); } @@ -951,14 +951,14 @@ public final OperationFuture patchRegionBackendServi * .setBackendServiceResource(backendServiceResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionBackendServiceClient.patchRegionBackendServiceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionBackendServiceClient.patchRegionBackendServiceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable patchRegionBackendServiceOperationCallable() { return stub.patchRegionBackendServiceOperationCallable(); } @@ -1023,7 +1023,7 @@ public final OperationFuture patchRegionBackendServi */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateRegionBackendServiceAsync( + public final OperationFuture updateRegionBackendServiceAsync( ProjectRegionBackendServiceName backendService, BackendService backendServiceResource, List fieldMask) { @@ -1066,7 +1066,7 @@ public final OperationFuture updateRegionBackendServ */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateRegionBackendServiceAsync( + public final OperationFuture updateRegionBackendServiceAsync( String backendService, BackendService backendServiceResource, List fieldMask) { UpdateRegionBackendServiceHttpRequest request = @@ -1105,7 +1105,7 @@ public final OperationFuture updateRegionBackendServ */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateRegionBackendServiceAsync( + public final OperationFuture updateRegionBackendServiceAsync( UpdateRegionBackendServiceHttpRequest request) { return updateRegionBackendServiceOperationCallable().futureCall(request); } @@ -1128,14 +1128,14 @@ public final OperationFuture updateRegionBackendServ * .setBackendServiceResource(backendServiceResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionBackendServiceClient.updateRegionBackendServiceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionBackendServiceClient.updateRegionBackendServiceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable updateRegionBackendServiceOperationCallable() { return stub.updateRegionBackendServiceOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceSettings.java index 0e0cff3b57a9..21a48e1c52f8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionBackendServiceSettings.java @@ -75,7 +75,7 @@ public class RegionBackendServiceSettings extends ClientSettings + public OperationCallSettings deleteRegionBackendServiceOperationSettings() { return ((RegionBackendServiceStubSettings) getStubSettings()) .deleteRegionBackendServiceOperationSettings(); @@ -104,7 +104,7 @@ public class RegionBackendServiceSettings extends ClientSettings + public OperationCallSettings insertRegionBackendServiceOperationSettings() { return ((RegionBackendServiceStubSettings) getStubSettings()) .insertRegionBackendServiceOperationSettings(); @@ -130,7 +130,7 @@ public class RegionBackendServiceSettings extends ClientSettings + public OperationCallSettings patchRegionBackendServiceOperationSettings() { return ((RegionBackendServiceStubSettings) getStubSettings()) .patchRegionBackendServiceOperationSettings(); @@ -146,7 +146,7 @@ public class RegionBackendServiceSettings extends ClientSettings + public OperationCallSettings updateRegionBackendServiceOperationSettings() { return ((RegionBackendServiceStubSettings) getStubSettings()) .updateRegionBackendServiceOperationSettings(); @@ -265,7 +265,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - DeleteRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + DeleteRegionBackendServiceHttpRequest, EmptyMessage, Operation> deleteRegionBackendServiceOperationSettings() { return getStubSettingsBuilder().deleteRegionBackendServiceOperationSettings(); } @@ -293,7 +293,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - InsertRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + InsertRegionBackendServiceHttpRequest, EmptyMessage, Operation> insertRegionBackendServiceOperationSettings() { return getStubSettingsBuilder().insertRegionBackendServiceOperationSettings(); } @@ -317,7 +317,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - PatchRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + PatchRegionBackendServiceHttpRequest, EmptyMessage, Operation> patchRegionBackendServiceOperationSettings() { return getStubSettingsBuilder().patchRegionBackendServiceOperationSettings(); } @@ -332,7 +332,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - UpdateRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + UpdateRegionBackendServiceHttpRequest, EmptyMessage, Operation> updateRegionBackendServiceOperationSettings() { return getStubSettingsBuilder().updateRegionBackendServiceOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentClient.java index 0651d15f293a..2b51624c9beb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentClient.java @@ -439,7 +439,7 @@ public final Commitment getRegionCommitment(GetRegionCommitmentHttpRequest reque */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertRegionCommitmentAsync( + public final OperationFuture insertRegionCommitmentAsync( ProjectRegionName region, Commitment commitmentResource) { InsertRegionCommitmentHttpRequest request = @@ -477,7 +477,7 @@ public final OperationFuture insertRegionCommitmentA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertRegionCommitmentAsync( + public final OperationFuture insertRegionCommitmentAsync( String region, Commitment commitmentResource) { InsertRegionCommitmentHttpRequest request = @@ -511,7 +511,7 @@ public final OperationFuture insertRegionCommitmentA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertRegionCommitmentAsync( + public final OperationFuture insertRegionCommitmentAsync( InsertRegionCommitmentHttpRequest request) { return insertRegionCommitmentOperationCallable().futureCall(request); } @@ -530,14 +530,14 @@ public final OperationFuture insertRegionCommitmentA * .setRegion(region.toString()) * .setCommitmentResource(commitmentResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionCommitmentClient.insertRegionCommitmentOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionCommitmentClient.insertRegionCommitmentOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertRegionCommitmentOperationCallable() { return stub.insertRegionCommitmentOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentSettings.java index 4379ebbcab30..5032e969d5cf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionCommitmentSettings.java @@ -91,7 +91,7 @@ public class RegionCommitmentSettings extends ClientSettings + public OperationCallSettings insertRegionCommitmentOperationSettings() { return ((RegionCommitmentStubSettings) getStubSettings()) .insertRegionCommitmentOperationSettings(); @@ -230,8 +230,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertRegionCommitment. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertRegionCommitmentHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertRegionCommitmentOperationSettings() { return getStubSettingsBuilder().insertRegionCommitmentOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskClient.java index ba15fd0d9478..832d477dc4c8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskClient.java @@ -187,7 +187,7 @@ public final RegionOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture createSnapshotRegionDiskAsync( + public final OperationFuture createSnapshotRegionDiskAsync( ProjectRegionDiskName disk, Snapshot snapshotResource) { CreateSnapshotRegionDiskHttpRequest request = @@ -219,7 +219,7 @@ public final OperationFuture createSnapshotRegionDis */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture createSnapshotRegionDiskAsync( + public final OperationFuture createSnapshotRegionDiskAsync( String disk, Snapshot snapshotResource) { CreateSnapshotRegionDiskHttpRequest request = @@ -253,7 +253,7 @@ public final OperationFuture createSnapshotRegionDis */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture createSnapshotRegionDiskAsync( + public final OperationFuture createSnapshotRegionDiskAsync( CreateSnapshotRegionDiskHttpRequest request) { return createSnapshotRegionDiskOperationCallable().futureCall(request); } @@ -272,14 +272,14 @@ public final OperationFuture createSnapshotRegionDis * .setDisk(disk.toString()) * .setSnapshotResource(snapshotResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionDiskClient.createSnapshotRegionDiskOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionDiskClient.createSnapshotRegionDiskOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable createSnapshotRegionDiskOperationCallable() { return stub.createSnapshotRegionDiskOperationCallable(); } @@ -330,7 +330,7 @@ public final OperationFuture createSnapshotRegionDis */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteRegionDiskAsync( + public final OperationFuture deleteRegionDiskAsync( ProjectRegionDiskName disk) { DeleteRegionDiskHttpRequest request = @@ -360,7 +360,7 @@ public final OperationFuture deleteRegionDiskAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteRegionDiskAsync(String disk) { + public final OperationFuture deleteRegionDiskAsync(String disk) { DeleteRegionDiskHttpRequest request = DeleteRegionDiskHttpRequest.newBuilder().setDisk(disk).build(); @@ -390,7 +390,7 @@ public final OperationFuture deleteRegionDiskAsync(S */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteRegionDiskAsync( + public final OperationFuture deleteRegionDiskAsync( DeleteRegionDiskHttpRequest request) { return deleteRegionDiskOperationCallable().futureCall(request); } @@ -409,14 +409,14 @@ public final OperationFuture deleteRegionDiskAsync( * DeleteRegionDiskHttpRequest request = DeleteRegionDiskHttpRequest.newBuilder() * .setDisk(disk.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionDiskClient.deleteRegionDiskOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionDiskClient.deleteRegionDiskOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteRegionDiskOperationCallable() { return stub.deleteRegionDiskOperationCallable(); } @@ -564,7 +564,7 @@ public final UnaryCallable getRegionDiskCallable */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertRegionDiskAsync( + public final OperationFuture insertRegionDiskAsync( ProjectRegionName region, Disk diskResource) { InsertRegionDiskHttpRequest request = @@ -597,7 +597,7 @@ public final OperationFuture insertRegionDiskAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertRegionDiskAsync( + public final OperationFuture insertRegionDiskAsync( String region, Disk diskResource) { InsertRegionDiskHttpRequest request = @@ -632,7 +632,7 @@ public final OperationFuture insertRegionDiskAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertRegionDiskAsync( + public final OperationFuture insertRegionDiskAsync( InsertRegionDiskHttpRequest request) { return insertRegionDiskOperationCallable().futureCall(request); } @@ -652,14 +652,14 @@ public final OperationFuture insertRegionDiskAsync( * .setRegion(region.toString()) * .setDiskResource(diskResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionDiskClient.insertRegionDiskOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionDiskClient.insertRegionDiskOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertRegionDiskOperationCallable() { return stub.insertRegionDiskOperationCallable(); } @@ -846,7 +846,7 @@ public final UnaryCallable listRegionDisks */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture resizeRegionDiskAsync( + public final OperationFuture resizeRegionDiskAsync( ProjectRegionDiskName disk, RegionDisksResizeRequest regionDisksResizeRequestResource) { ResizeRegionDiskHttpRequest request = @@ -877,7 +877,7 @@ public final OperationFuture resizeRegionDiskAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture resizeRegionDiskAsync( + public final OperationFuture resizeRegionDiskAsync( String disk, RegionDisksResizeRequest regionDisksResizeRequestResource) { ResizeRegionDiskHttpRequest request = @@ -911,7 +911,7 @@ public final OperationFuture resizeRegionDiskAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture resizeRegionDiskAsync( + public final OperationFuture resizeRegionDiskAsync( ResizeRegionDiskHttpRequest request) { return resizeRegionDiskOperationCallable().futureCall(request); } @@ -930,14 +930,14 @@ public final OperationFuture resizeRegionDiskAsync( * .setDisk(disk.toString()) * .setRegionDisksResizeRequestResource(regionDisksResizeRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionDiskClient.resizeRegionDiskOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionDiskClient.resizeRegionDiskOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable resizeRegionDiskOperationCallable() { return stub.resizeRegionDiskOperationCallable(); } @@ -987,7 +987,7 @@ public final UnaryCallable resizeRegionD */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setLabelsRegionDiskAsync( + public final OperationFuture setLabelsRegionDiskAsync( ProjectRegionDiskResourceName resource, RegionSetLabelsRequest regionSetLabelsRequestResource) { @@ -1019,7 +1019,7 @@ public final OperationFuture setLabelsRegionDiskAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setLabelsRegionDiskAsync( + public final OperationFuture setLabelsRegionDiskAsync( String resource, RegionSetLabelsRequest regionSetLabelsRequestResource) { SetLabelsRegionDiskHttpRequest request = @@ -1053,7 +1053,7 @@ public final OperationFuture setLabelsRegionDiskAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setLabelsRegionDiskAsync( + public final OperationFuture setLabelsRegionDiskAsync( SetLabelsRegionDiskHttpRequest request) { return setLabelsRegionDiskOperationCallable().futureCall(request); } @@ -1072,14 +1072,14 @@ public final OperationFuture setLabelsRegionDiskAsyn * .setResource(resource.toString()) * .setRegionSetLabelsRequestResource(regionSetLabelsRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionDiskClient.setLabelsRegionDiskOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionDiskClient.setLabelsRegionDiskOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable setLabelsRegionDiskOperationCallable() { return stub.setLabelsRegionDiskOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskSettings.java index bd4f87f9b1cc..31cee267fbbf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionDiskSettings.java @@ -74,7 +74,7 @@ public class RegionDiskSettings extends ClientSettings { /** Returns the object with the settings used for calls to createSnapshotRegionDisk. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings createSnapshotRegionDiskOperationSettings() { return ((RegionDiskStubSettings) getStubSettings()).createSnapshotRegionDiskOperationSettings(); } @@ -87,7 +87,7 @@ public UnaryCallSettings deleteRegionDis /** Returns the object with the settings used for calls to deleteRegionDisk. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteRegionDiskOperationSettings() { return ((RegionDiskStubSettings) getStubSettings()).deleteRegionDiskOperationSettings(); } @@ -105,7 +105,7 @@ public UnaryCallSettings insertRegionDis /** Returns the object with the settings used for calls to insertRegionDisk. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertRegionDiskOperationSettings() { return ((RegionDiskStubSettings) getStubSettings()).insertRegionDiskOperationSettings(); } @@ -124,7 +124,7 @@ public UnaryCallSettings resizeRegionDis /** Returns the object with the settings used for calls to resizeRegionDisk. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings resizeRegionDiskOperationSettings() { return ((RegionDiskStubSettings) getStubSettings()).resizeRegionDiskOperationSettings(); } @@ -138,7 +138,7 @@ public UnaryCallSettings resizeRegionDis /** Returns the object with the settings used for calls to setLabelsRegionDisk. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setLabelsRegionDiskOperationSettings() { return ((RegionDiskStubSettings) getStubSettings()).setLabelsRegionDiskOperationSettings(); } @@ -260,7 +260,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - CreateSnapshotRegionDiskHttpRequest, EmptyMessage, EmptyMessage> + CreateSnapshotRegionDiskHttpRequest, EmptyMessage, Operation> createSnapshotRegionDiskOperationSettings() { return getStubSettingsBuilder().createSnapshotRegionDiskOperationSettings(); } @@ -274,7 +274,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteRegionDisk. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteRegionDiskOperationSettings() { return getStubSettingsBuilder().deleteRegionDiskOperationSettings(); } @@ -293,7 +293,7 @@ public UnaryCallSettings.Builder getRegionDiskSe /** Returns the builder for the settings used for calls to insertRegionDisk. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertRegionDiskOperationSettings() { return getStubSettingsBuilder().insertRegionDiskOperationSettings(); } @@ -314,7 +314,7 @@ public UnaryCallSettings.Builder getRegionDiskSe /** Returns the builder for the settings used for calls to resizeRegionDisk. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder resizeRegionDiskOperationSettings() { return getStubSettingsBuilder().resizeRegionDiskOperationSettings(); } @@ -328,7 +328,7 @@ public UnaryCallSettings.Builder getRegionDiskSe /** Returns the builder for the settings used for calls to setLabelsRegionDisk. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder setLabelsRegionDiskOperationSettings() { return getStubSettingsBuilder().setLabelsRegionDiskOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupClient.java index e00eeadfebe0..f511fcb232dd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupClient.java @@ -600,7 +600,7 @@ public final ListInstancesRegionInstanceGroupsPagedResponse listInstancesRegionI */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setNamedPortsRegionInstanceGroupAsync( + public final OperationFuture setNamedPortsRegionInstanceGroupAsync( ProjectRegionInstanceGroupName instanceGroup, RegionInstanceGroupsSetNamedPortsRequest regionInstanceGroupsSetNamedPortsRequestResource) { @@ -633,7 +633,7 @@ public final OperationFuture setNamedPortsRegionInst */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setNamedPortsRegionInstanceGroupAsync( + public final OperationFuture setNamedPortsRegionInstanceGroupAsync( String instanceGroup, RegionInstanceGroupsSetNamedPortsRequest regionInstanceGroupsSetNamedPortsRequestResource) { @@ -669,7 +669,7 @@ public final OperationFuture setNamedPortsRegionInst */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setNamedPortsRegionInstanceGroupAsync( + public final OperationFuture setNamedPortsRegionInstanceGroupAsync( SetNamedPortsRegionInstanceGroupHttpRequest request) { return setNamedPortsRegionInstanceGroupOperationCallable().futureCall(request); } @@ -688,7 +688,7 @@ public final OperationFuture setNamedPortsRegionInst * .setInstanceGroup(instanceGroup.toString()) * .setRegionInstanceGroupsSetNamedPortsRequestResource(regionInstanceGroupsSetNamedPortsRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionInstanceGroupClient.setNamedPortsRegionInstanceGroupOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionInstanceGroupClient.setNamedPortsRegionInstanceGroupOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -696,7 +696,7 @@ public final OperationFuture setNamedPortsRegionInst */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - SetNamedPortsRegionInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + SetNamedPortsRegionInstanceGroupHttpRequest, EmptyMessage, Operation> setNamedPortsRegionInstanceGroupOperationCallable() { return stub.setNamedPortsRegionInstanceGroupOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java index 091e7f99b04b..214982a2d09f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerClient.java @@ -203,7 +203,7 @@ public final RegionOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture + public final OperationFuture abandonInstancesRegionInstanceGroupManagerAsync( ProjectRegionInstanceGroupManagerName instanceGroupManager, RegionInstanceGroupManagersAbandonInstancesRequest @@ -251,7 +251,7 @@ public final RegionOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture + public final OperationFuture abandonInstancesRegionInstanceGroupManagerAsync( String instanceGroupManager, RegionInstanceGroupManagersAbandonInstancesRequest @@ -301,7 +301,7 @@ public final RegionOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture + public final OperationFuture abandonInstancesRegionInstanceGroupManagerAsync( AbandonInstancesRegionInstanceGroupManagerHttpRequest request) { return abandonInstancesRegionInstanceGroupManagerOperationCallable().futureCall(request); @@ -333,7 +333,7 @@ public final RegionOperationClient getOperationsClient() { * .setInstanceGroupManager(instanceGroupManager.toString()) * .setRegionInstanceGroupManagersAbandonInstancesRequestResource(regionInstanceGroupManagersAbandonInstancesRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionInstanceGroupManagerClient.abandonInstancesRegionInstanceGroupManagerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionInstanceGroupManagerClient.abandonInstancesRegionInstanceGroupManagerOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -341,7 +341,7 @@ public final RegionOperationClient getOperationsClient() { */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> abandonInstancesRegionInstanceGroupManagerOperationCallable() { return stub.abandonInstancesRegionInstanceGroupManagerOperationCallable(); } @@ -402,7 +402,7 @@ public final RegionOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteRegionInstanceGroupManagerAsync( + public final OperationFuture deleteRegionInstanceGroupManagerAsync( ProjectRegionInstanceGroupManagerName instanceGroupManager) { DeleteRegionInstanceGroupManagerHttpRequest request = @@ -431,7 +431,7 @@ public final OperationFuture deleteRegionInstanceGro */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteRegionInstanceGroupManagerAsync( + public final OperationFuture deleteRegionInstanceGroupManagerAsync( String instanceGroupManager) { DeleteRegionInstanceGroupManagerHttpRequest request = @@ -462,7 +462,7 @@ public final OperationFuture deleteRegionInstanceGro */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteRegionInstanceGroupManagerAsync( + public final OperationFuture deleteRegionInstanceGroupManagerAsync( DeleteRegionInstanceGroupManagerHttpRequest request) { return deleteRegionInstanceGroupManagerOperationCallable().futureCall(request); } @@ -479,7 +479,7 @@ public final OperationFuture deleteRegionInstanceGro * DeleteRegionInstanceGroupManagerHttpRequest request = DeleteRegionInstanceGroupManagerHttpRequest.newBuilder() * .setInstanceGroupManager(instanceGroupManager.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionInstanceGroupManagerClient.deleteRegionInstanceGroupManagerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionInstanceGroupManagerClient.deleteRegionInstanceGroupManagerOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -487,7 +487,7 @@ public final OperationFuture deleteRegionInstanceGro */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - DeleteRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteRegionInstanceGroupManagerOperationCallable() { return stub.deleteRegionInstanceGroupManagerOperationCallable(); } @@ -547,7 +547,7 @@ public final OperationFuture deleteRegionInstanceGro */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture + public final OperationFuture deleteInstancesRegionInstanceGroupManagerAsync( ProjectRegionInstanceGroupManagerName instanceGroupManager, RegionInstanceGroupManagersDeleteInstancesRequest @@ -594,7 +594,7 @@ public final OperationFuture deleteRegionInstanceGro */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture + public final OperationFuture deleteInstancesRegionInstanceGroupManagerAsync( String instanceGroupManager, RegionInstanceGroupManagersDeleteInstancesRequest @@ -643,7 +643,7 @@ public final OperationFuture deleteRegionInstanceGro */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture + public final OperationFuture deleteInstancesRegionInstanceGroupManagerAsync( DeleteInstancesRegionInstanceGroupManagerHttpRequest request) { return deleteInstancesRegionInstanceGroupManagerOperationCallable().futureCall(request); @@ -674,7 +674,7 @@ public final OperationFuture deleteRegionInstanceGro * .setInstanceGroupManager(instanceGroupManager.toString()) * .setRegionInstanceGroupManagersDeleteInstancesRequestResource(regionInstanceGroupManagersDeleteInstancesRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionInstanceGroupManagerClient.deleteInstancesRegionInstanceGroupManagerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionInstanceGroupManagerClient.deleteInstancesRegionInstanceGroupManagerOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -682,7 +682,7 @@ public final OperationFuture deleteRegionInstanceGro */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteInstancesRegionInstanceGroupManagerOperationCallable() { return stub.deleteInstancesRegionInstanceGroupManagerOperationCallable(); } @@ -856,7 +856,7 @@ public final InstanceGroupManager getRegionInstanceGroupManager( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertRegionInstanceGroupManagerAsync( + public final OperationFuture insertRegionInstanceGroupManagerAsync( ProjectRegionName region, InstanceGroupManager instanceGroupManagerResource) { InsertRegionInstanceGroupManagerHttpRequest request = @@ -896,7 +896,7 @@ public final OperationFuture insertRegionInstanceGro */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertRegionInstanceGroupManagerAsync( + public final OperationFuture insertRegionInstanceGroupManagerAsync( String region, InstanceGroupManager instanceGroupManagerResource) { InsertRegionInstanceGroupManagerHttpRequest request = @@ -936,7 +936,7 @@ public final OperationFuture insertRegionInstanceGro */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertRegionInstanceGroupManagerAsync( + public final OperationFuture insertRegionInstanceGroupManagerAsync( InsertRegionInstanceGroupManagerHttpRequest request) { return insertRegionInstanceGroupManagerOperationCallable().futureCall(request); } @@ -961,7 +961,7 @@ public final OperationFuture insertRegionInstanceGro * .setRegion(region.toString()) * .setInstanceGroupManagerResource(instanceGroupManagerResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionInstanceGroupManagerClient.insertRegionInstanceGroupManagerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionInstanceGroupManagerClient.insertRegionInstanceGroupManagerOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -969,7 +969,7 @@ public final OperationFuture insertRegionInstanceGro */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - InsertRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + InsertRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> insertRegionInstanceGroupManagerOperationCallable() { return stub.insertRegionInstanceGroupManagerOperationCallable(); } @@ -1292,7 +1292,7 @@ public final ListRegionInstanceGroupManagersPagedResponse listRegionInstanceGrou */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchRegionInstanceGroupManagerAsync( + public final OperationFuture patchRegionInstanceGroupManagerAsync( ProjectRegionInstanceGroupManagerName instanceGroupManager, InstanceGroupManager instanceGroupManagerResource, List fieldMask) { @@ -1339,7 +1339,7 @@ public final OperationFuture patchRegionInstanceGrou */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchRegionInstanceGroupManagerAsync( + public final OperationFuture patchRegionInstanceGroupManagerAsync( String instanceGroupManager, InstanceGroupManager instanceGroupManagerResource, List fieldMask) { @@ -1382,7 +1382,7 @@ public final OperationFuture patchRegionInstanceGrou */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchRegionInstanceGroupManagerAsync( + public final OperationFuture patchRegionInstanceGroupManagerAsync( PatchRegionInstanceGroupManagerHttpRequest request) { return patchRegionInstanceGroupManagerOperationCallable().futureCall(request); } @@ -1407,7 +1407,7 @@ public final OperationFuture patchRegionInstanceGrou * .setInstanceGroupManagerResource(instanceGroupManagerResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionInstanceGroupManagerClient.patchRegionInstanceGroupManagerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionInstanceGroupManagerClient.patchRegionInstanceGroupManagerOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -1415,7 +1415,7 @@ public final OperationFuture patchRegionInstanceGrou */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - PatchRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + PatchRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> patchRegionInstanceGroupManagerOperationCallable() { return stub.patchRegionInstanceGroupManagerOperationCallable(); } @@ -1482,7 +1482,7 @@ public final OperationFuture patchRegionInstanceGrou */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture + public final OperationFuture recreateInstancesRegionInstanceGroupManagerAsync( ProjectRegionInstanceGroupManagerName instanceGroupManager, RegionInstanceGroupManagersRecreateRequest @@ -1528,7 +1528,7 @@ public final OperationFuture patchRegionInstanceGrou */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture + public final OperationFuture recreateInstancesRegionInstanceGroupManagerAsync( String instanceGroupManager, RegionInstanceGroupManagersRecreateRequest @@ -1576,7 +1576,7 @@ public final OperationFuture patchRegionInstanceGrou */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture + public final OperationFuture recreateInstancesRegionInstanceGroupManagerAsync( RecreateInstancesRegionInstanceGroupManagerHttpRequest request) { return recreateInstancesRegionInstanceGroupManagerOperationCallable().futureCall(request); @@ -1606,7 +1606,7 @@ public final OperationFuture patchRegionInstanceGrou * .setInstanceGroupManager(instanceGroupManager.toString()) * .setRegionInstanceGroupManagersRecreateRequestResource(regionInstanceGroupManagersRecreateRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionInstanceGroupManagerClient.recreateInstancesRegionInstanceGroupManagerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionInstanceGroupManagerClient.recreateInstancesRegionInstanceGroupManagerOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -1614,7 +1614,7 @@ public final OperationFuture patchRegionInstanceGrou */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> recreateInstancesRegionInstanceGroupManagerOperationCallable() { return stub.recreateInstancesRegionInstanceGroupManagerOperationCallable(); } @@ -1685,7 +1685,7 @@ public final OperationFuture patchRegionInstanceGrou */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture resizeRegionInstanceGroupManagerAsync( + public final OperationFuture resizeRegionInstanceGroupManagerAsync( Integer size, ProjectRegionInstanceGroupManagerName instanceGroupManager) { ResizeRegionInstanceGroupManagerHttpRequest request = @@ -1727,7 +1727,7 @@ public final OperationFuture resizeRegionInstanceGro */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture resizeRegionInstanceGroupManagerAsync( + public final OperationFuture resizeRegionInstanceGroupManagerAsync( Integer size, String instanceGroupManager) { ResizeRegionInstanceGroupManagerHttpRequest request = @@ -1771,7 +1771,7 @@ public final OperationFuture resizeRegionInstanceGro */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture resizeRegionInstanceGroupManagerAsync( + public final OperationFuture resizeRegionInstanceGroupManagerAsync( ResizeRegionInstanceGroupManagerHttpRequest request) { return resizeRegionInstanceGroupManagerOperationCallable().futureCall(request); } @@ -1800,7 +1800,7 @@ public final OperationFuture resizeRegionInstanceGro * .setSize(size) * .setInstanceGroupManager(instanceGroupManager.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionInstanceGroupManagerClient.resizeRegionInstanceGroupManagerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionInstanceGroupManagerClient.resizeRegionInstanceGroupManagerOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -1808,7 +1808,7 @@ public final OperationFuture resizeRegionInstanceGro */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - ResizeRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + ResizeRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> resizeRegionInstanceGroupManagerOperationCallable() { return stub.resizeRegionInstanceGroupManagerOperationCallable(); } @@ -1870,7 +1870,7 @@ public final OperationFuture resizeRegionInstanceGro */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture + public final OperationFuture setInstanceTemplateRegionInstanceGroupManagerAsync( ProjectRegionInstanceGroupManagerName instanceGroupManager, RegionInstanceGroupManagersSetTemplateRequest @@ -1907,7 +1907,7 @@ public final OperationFuture resizeRegionInstanceGro */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture + public final OperationFuture setInstanceTemplateRegionInstanceGroupManagerAsync( String instanceGroupManager, RegionInstanceGroupManagersSetTemplateRequest @@ -1946,7 +1946,7 @@ public final OperationFuture resizeRegionInstanceGro */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture + public final OperationFuture setInstanceTemplateRegionInstanceGroupManagerAsync( SetInstanceTemplateRegionInstanceGroupManagerHttpRequest request) { return setInstanceTemplateRegionInstanceGroupManagerOperationCallable().futureCall(request); @@ -1967,7 +1967,7 @@ public final OperationFuture resizeRegionInstanceGro * .setInstanceGroupManager(instanceGroupManager.toString()) * .setRegionInstanceGroupManagersSetTemplateRequestResource(regionInstanceGroupManagersSetTemplateRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionInstanceGroupManagerClient.setInstanceTemplateRegionInstanceGroupManagerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionInstanceGroupManagerClient.setInstanceTemplateRegionInstanceGroupManagerOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -1975,7 +1975,7 @@ public final OperationFuture resizeRegionInstanceGro */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setInstanceTemplateRegionInstanceGroupManagerOperationCallable() { return stub.setInstanceTemplateRegionInstanceGroupManagerOperationCallable(); } @@ -2028,7 +2028,7 @@ public final OperationFuture resizeRegionInstanceGro */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture + public final OperationFuture setTargetPoolsRegionInstanceGroupManagerAsync( ProjectRegionInstanceGroupManagerName instanceGroupManager, RegionInstanceGroupManagersSetTargetPoolsRequest @@ -2065,7 +2065,7 @@ public final OperationFuture resizeRegionInstanceGro */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture + public final OperationFuture setTargetPoolsRegionInstanceGroupManagerAsync( String instanceGroupManager, RegionInstanceGroupManagersSetTargetPoolsRequest @@ -2104,7 +2104,7 @@ public final OperationFuture resizeRegionInstanceGro */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture + public final OperationFuture setTargetPoolsRegionInstanceGroupManagerAsync( SetTargetPoolsRegionInstanceGroupManagerHttpRequest request) { return setTargetPoolsRegionInstanceGroupManagerOperationCallable().futureCall(request); @@ -2125,7 +2125,7 @@ public final OperationFuture resizeRegionInstanceGro * .setInstanceGroupManager(instanceGroupManager.toString()) * .setRegionInstanceGroupManagersSetTargetPoolsRequestResource(regionInstanceGroupManagersSetTargetPoolsRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = regionInstanceGroupManagerClient.setTargetPoolsRegionInstanceGroupManagerOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = regionInstanceGroupManagerClient.setTargetPoolsRegionInstanceGroupManagerOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -2133,7 +2133,7 @@ public final OperationFuture resizeRegionInstanceGro */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setTargetPoolsRegionInstanceGroupManagerOperationCallable() { return stub.setTargetPoolsRegionInstanceGroupManagerOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerSettings.java index 56b7ca451625..b7aeba60770e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupManagerSettings.java @@ -83,7 +83,7 @@ public class RegionInstanceGroupManagerSettings @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings< - AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> abandonInstancesRegionInstanceGroupManagerOperationSettings() { return ((RegionInstanceGroupManagerStubSettings) getStubSettings()) .abandonInstancesRegionInstanceGroupManagerOperationSettings(); @@ -99,8 +99,7 @@ public class RegionInstanceGroupManagerSettings /** Returns the object with the settings used for calls to deleteRegionInstanceGroupManager. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings< - DeleteRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings deleteRegionInstanceGroupManagerOperationSettings() { return ((RegionInstanceGroupManagerStubSettings) getStubSettings()) .deleteRegionInstanceGroupManagerOperationSettings(); @@ -123,7 +122,7 @@ public class RegionInstanceGroupManagerSettings @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings< - DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteInstancesRegionInstanceGroupManagerOperationSettings() { return ((RegionInstanceGroupManagerStubSettings) getStubSettings()) .deleteInstancesRegionInstanceGroupManagerOperationSettings(); @@ -146,8 +145,7 @@ public class RegionInstanceGroupManagerSettings /** Returns the object with the settings used for calls to insertRegionInstanceGroupManager. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings< - InsertRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings insertRegionInstanceGroupManagerOperationSettings() { return ((RegionInstanceGroupManagerStubSettings) getStubSettings()) .insertRegionInstanceGroupManagerOperationSettings(); @@ -185,8 +183,7 @@ public class RegionInstanceGroupManagerSettings /** Returns the object with the settings used for calls to patchRegionInstanceGroupManager. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings< - PatchRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings patchRegionInstanceGroupManagerOperationSettings() { return ((RegionInstanceGroupManagerStubSettings) getStubSettings()) .patchRegionInstanceGroupManagerOperationSettings(); @@ -209,7 +206,7 @@ public class RegionInstanceGroupManagerSettings @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings< - RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> recreateInstancesRegionInstanceGroupManagerOperationSettings() { return ((RegionInstanceGroupManagerStubSettings) getStubSettings()) .recreateInstancesRegionInstanceGroupManagerOperationSettings(); @@ -225,8 +222,7 @@ public class RegionInstanceGroupManagerSettings /** Returns the object with the settings used for calls to resizeRegionInstanceGroupManager. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings< - ResizeRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings resizeRegionInstanceGroupManagerOperationSettings() { return ((RegionInstanceGroupManagerStubSettings) getStubSettings()) .resizeRegionInstanceGroupManagerOperationSettings(); @@ -249,7 +245,7 @@ public class RegionInstanceGroupManagerSettings @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings< - SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setInstanceTemplateRegionInstanceGroupManagerOperationSettings() { return ((RegionInstanceGroupManagerStubSettings) getStubSettings()) .setInstanceTemplateRegionInstanceGroupManagerOperationSettings(); @@ -272,7 +268,7 @@ public class RegionInstanceGroupManagerSettings @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings< - SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setTargetPoolsRegionInstanceGroupManagerOperationSettings() { return ((RegionInstanceGroupManagerStubSettings) getStubSettings()) .setTargetPoolsRegionInstanceGroupManagerOperationSettings(); @@ -398,7 +394,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> abandonInstancesRegionInstanceGroupManagerOperationSettings() { return getStubSettingsBuilder().abandonInstancesRegionInstanceGroupManagerOperationSettings(); } @@ -413,7 +409,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - DeleteRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteRegionInstanceGroupManagerOperationSettings() { return getStubSettingsBuilder().deleteRegionInstanceGroupManagerOperationSettings(); } @@ -435,7 +431,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteInstancesRegionInstanceGroupManagerOperationSettings() { return getStubSettingsBuilder().deleteInstancesRegionInstanceGroupManagerOperationSettings(); } @@ -456,7 +452,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - InsertRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + InsertRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> insertRegionInstanceGroupManagerOperationSettings() { return getStubSettingsBuilder().insertRegionInstanceGroupManagerOperationSettings(); } @@ -491,7 +487,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - PatchRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + PatchRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> patchRegionInstanceGroupManagerOperationSettings() { return getStubSettingsBuilder().patchRegionInstanceGroupManagerOperationSettings(); } @@ -513,7 +509,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> recreateInstancesRegionInstanceGroupManagerOperationSettings() { return getStubSettingsBuilder() .recreateInstancesRegionInstanceGroupManagerOperationSettings(); @@ -529,7 +525,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - ResizeRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + ResizeRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> resizeRegionInstanceGroupManagerOperationSettings() { return getStubSettingsBuilder().resizeRegionInstanceGroupManagerOperationSettings(); } @@ -551,7 +547,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setInstanceTemplateRegionInstanceGroupManagerOperationSettings() { return getStubSettingsBuilder() .setInstanceTemplateRegionInstanceGroupManagerOperationSettings(); @@ -573,7 +569,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setTargetPoolsRegionInstanceGroupManagerOperationSettings() { return getStubSettingsBuilder().setTargetPoolsRegionInstanceGroupManagerOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupSettings.java index 882020198ed4..d59b92ccf728 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RegionInstanceGroupSettings.java @@ -101,8 +101,7 @@ public class RegionInstanceGroupSettings extends ClientSettings + public OperationCallSettings setNamedPortsRegionInstanceGroupOperationSettings() { return ((RegionInstanceGroupStubSettings) getStubSettings()) .setNamedPortsRegionInstanceGroupOperationSettings(); @@ -244,7 +243,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetNamedPortsRegionInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + SetNamedPortsRegionInstanceGroupHttpRequest, EmptyMessage, Operation> setNamedPortsRegionInstanceGroupOperationSettings() { return getStubSettingsBuilder().setNamedPortsRegionInstanceGroupOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteClient.java index 525a1ecc596a..26cf61d9ce17 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteClient.java @@ -184,7 +184,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteRouteAsync( + public final OperationFuture deleteRouteAsync( ProjectGlobalRouteName route) { DeleteRouteHttpRequest request = @@ -212,7 +212,7 @@ public final OperationFuture deleteRouteAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteRouteAsync(String route) { + public final OperationFuture deleteRouteAsync(String route) { DeleteRouteHttpRequest request = DeleteRouteHttpRequest.newBuilder().setRoute(route).build(); return deleteRouteAsync(request); @@ -239,7 +239,7 @@ public final OperationFuture deleteRouteAsync(String */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteRouteAsync( + public final OperationFuture deleteRouteAsync( DeleteRouteHttpRequest request) { return deleteRouteOperationCallable().futureCall(request); } @@ -256,14 +256,14 @@ public final OperationFuture deleteRouteAsync( * DeleteRouteHttpRequest request = DeleteRouteHttpRequest.newBuilder() * .setRoute(route.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = routeClient.deleteRouteOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = routeClient.deleteRouteOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteRouteOperationCallable() { return stub.deleteRouteOperationCallable(); } @@ -421,7 +421,7 @@ public final UnaryCallable getRouteCallable() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertRouteAsync( + public final OperationFuture insertRouteAsync( ProjectName project, Route routeResource) { InsertRouteHttpRequest request = @@ -464,7 +464,7 @@ public final OperationFuture insertRouteAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertRouteAsync( + public final OperationFuture insertRouteAsync( String project, Route routeResource) { InsertRouteHttpRequest request = @@ -498,7 +498,7 @@ public final OperationFuture insertRouteAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertRouteAsync( + public final OperationFuture insertRouteAsync( InsertRouteHttpRequest request) { return insertRouteOperationCallable().futureCall(request); } @@ -517,14 +517,14 @@ public final OperationFuture insertRouteAsync( * .setProject(project.toString()) * .setRouteResource(routeResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = routeClient.insertRouteOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = routeClient.insertRouteOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertRouteOperationCallable() { return stub.insertRouteOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteSettings.java index 13ad2c0c748d..14d031e41053 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouteSettings.java @@ -73,7 +73,7 @@ public UnaryCallSettings deleteRouteSettings( /** Returns the object with the settings used for calls to deleteRoute. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteRouteOperationSettings() { return ((RouteStubSettings) getStubSettings()).deleteRouteOperationSettings(); } @@ -91,7 +91,7 @@ public UnaryCallSettings insertRouteSettings( /** Returns the object with the settings used for calls to insertRoute. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertRouteOperationSettings() { return ((RouteStubSettings) getStubSettings()).insertRouteOperationSettings(); } @@ -211,7 +211,7 @@ public UnaryCallSettings.Builder deleteRouteS /** Returns the builder for the settings used for calls to deleteRoute. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteRouteOperationSettings() { return getStubSettingsBuilder().deleteRouteOperationSettings(); } @@ -229,7 +229,7 @@ public UnaryCallSettings.Builder insertRouteS /** Returns the builder for the settings used for calls to insertRoute. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertRouteOperationSettings() { return getStubSettingsBuilder().insertRouteOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java index b2c106bf6180..2e97c9eb9795 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterClient.java @@ -322,7 +322,7 @@ public final AggregatedListRoutersPagedResponse aggregatedListRouters( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteRouterAsync( + public final OperationFuture deleteRouterAsync( ProjectRegionRouterName router) { DeleteRouterHttpRequest request = @@ -350,7 +350,7 @@ public final OperationFuture deleteRouterAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteRouterAsync(String router) { + public final OperationFuture deleteRouterAsync(String router) { DeleteRouterHttpRequest request = DeleteRouterHttpRequest.newBuilder().setRouter(router).build(); @@ -378,7 +378,7 @@ public final OperationFuture deleteRouterAsync(Strin */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteRouterAsync( + public final OperationFuture deleteRouterAsync( DeleteRouterHttpRequest request) { return deleteRouterOperationCallable().futureCall(request); } @@ -395,14 +395,14 @@ public final OperationFuture deleteRouterAsync( * DeleteRouterHttpRequest request = DeleteRouterHttpRequest.newBuilder() * .setRouter(router.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = routerClient.deleteRouterOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = routerClient.deleteRouterOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteRouterOperationCallable() { return stub.deleteRouterOperationCallable(); } @@ -790,7 +790,7 @@ public final RouterStatusResponse getRouterStatusRouter( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertRouterAsync( + public final OperationFuture insertRouterAsync( ProjectRegionName region, Router routerResource) { InsertRouterHttpRequest request = @@ -822,7 +822,7 @@ public final OperationFuture insertRouterAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertRouterAsync( + public final OperationFuture insertRouterAsync( String region, Router routerResource) { InsertRouterHttpRequest request = @@ -857,7 +857,7 @@ public final OperationFuture insertRouterAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertRouterAsync( + public final OperationFuture insertRouterAsync( InsertRouterHttpRequest request) { return insertRouterOperationCallable().futureCall(request); } @@ -877,14 +877,14 @@ public final OperationFuture insertRouterAsync( * .setRegion(region.toString()) * .setRouterResource(routerResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = routerClient.insertRouterOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = routerClient.insertRouterOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertRouterOperationCallable() { return stub.insertRouterOperationCallable(); } @@ -1076,7 +1076,7 @@ public final UnaryCallable listRoutersCallab */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchRouterAsync( + public final OperationFuture patchRouterAsync( ProjectRegionRouterName router, Router routerResource, List fieldMask) { PatchRouterHttpRequest request = @@ -1114,7 +1114,7 @@ public final OperationFuture patchRouterAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchRouterAsync( + public final OperationFuture patchRouterAsync( String router, Router routerResource, List fieldMask) { PatchRouterHttpRequest request = @@ -1152,7 +1152,7 @@ public final OperationFuture patchRouterAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchRouterAsync( + public final OperationFuture patchRouterAsync( PatchRouterHttpRequest request) { return patchRouterOperationCallable().futureCall(request); } @@ -1174,14 +1174,14 @@ public final OperationFuture patchRouterAsync( * .setRouterResource(routerResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = routerClient.patchRouterOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = routerClient.patchRouterOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable patchRouterOperationCallable() { return stub.patchRouterOperationCallable(); } @@ -1354,7 +1354,7 @@ public final RoutersPreviewResponse previewRouter(PreviewRouterHttpRequest reque */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateRouterAsync( + public final OperationFuture updateRouterAsync( ProjectRegionRouterName router, Router routerResource, List fieldMask) { UpdateRouterHttpRequest request = @@ -1391,7 +1391,7 @@ public final OperationFuture updateRouterAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateRouterAsync( + public final OperationFuture updateRouterAsync( String router, Router routerResource, List fieldMask) { UpdateRouterHttpRequest request = @@ -1428,7 +1428,7 @@ public final OperationFuture updateRouterAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateRouterAsync( + public final OperationFuture updateRouterAsync( UpdateRouterHttpRequest request) { return updateRouterOperationCallable().futureCall(request); } @@ -1449,14 +1449,14 @@ public final OperationFuture updateRouterAsync( * .setRouterResource(routerResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = routerClient.updateRouterOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = routerClient.updateRouterOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable updateRouterOperationCallable() { return stub.updateRouterOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterSettings.java index 89538badda4f..6fc4ad95cb23 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/RouterSettings.java @@ -84,7 +84,7 @@ public UnaryCallSettings deleteRouterSetting /** Returns the object with the settings used for calls to deleteRouter. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteRouterOperationSettings() { return ((RouterStubSettings) getStubSettings()).deleteRouterOperationSettings(); } @@ -117,7 +117,7 @@ public UnaryCallSettings insertRouterSetting /** Returns the object with the settings used for calls to insertRouter. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertRouterOperationSettings() { return ((RouterStubSettings) getStubSettings()).insertRouterOperationSettings(); } @@ -136,7 +136,7 @@ public UnaryCallSettings patchRouterSettings( /** Returns the object with the settings used for calls to patchRouter. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchRouterOperationSettings() { return ((RouterStubSettings) getStubSettings()).patchRouterOperationSettings(); } @@ -155,7 +155,7 @@ public UnaryCallSettings updateRouterSetting /** Returns the object with the settings used for calls to updateRouter. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings updateRouterOperationSettings() { return ((RouterStubSettings) getStubSettings()).updateRouterOperationSettings(); } @@ -278,7 +278,7 @@ public UnaryCallSettings.Builder deleteRoute /** Returns the builder for the settings used for calls to deleteRouter. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteRouterOperationSettings() { return getStubSettingsBuilder().deleteRouterOperationSettings(); } @@ -311,7 +311,7 @@ public UnaryCallSettings.Builder insertRoute /** Returns the builder for the settings used for calls to insertRouter. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertRouterOperationSettings() { return getStubSettingsBuilder().insertRouterOperationSettings(); } @@ -330,7 +330,7 @@ public UnaryCallSettings.Builder patchRouterS /** Returns the builder for the settings used for calls to patchRouter. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchRouterOperationSettings() { return getStubSettingsBuilder().patchRouterOperationSettings(); } @@ -349,7 +349,7 @@ public UnaryCallSettings.Builder updateRoute /** Returns the builder for the settings used for calls to updateRouter. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder updateRouterOperationSettings() { return getStubSettingsBuilder().updateRouterOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyClient.java index 0c7863a3b378..82d09e8fc5a2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicyClient.java @@ -189,7 +189,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addRuleSecurityPolicyAsync( + public final OperationFuture addRuleSecurityPolicyAsync( ProjectGlobalSecurityPolicyName securityPolicy, SecurityPolicyRule securityPolicyRuleResource) { @@ -222,7 +222,7 @@ public final OperationFuture addRuleSecurityPolicyAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addRuleSecurityPolicyAsync( + public final OperationFuture addRuleSecurityPolicyAsync( String securityPolicy, SecurityPolicyRule securityPolicyRuleResource) { AddRuleSecurityPolicyHttpRequest request = @@ -256,7 +256,7 @@ public final OperationFuture addRuleSecurityPolicyAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addRuleSecurityPolicyAsync( + public final OperationFuture addRuleSecurityPolicyAsync( AddRuleSecurityPolicyHttpRequest request) { return addRuleSecurityPolicyOperationCallable().futureCall(request); } @@ -275,14 +275,14 @@ public final OperationFuture addRuleSecurityPolicyAs * .setSecurityPolicy(securityPolicy.toString()) * .setSecurityPolicyRuleResource(securityPolicyRuleResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = securityPolicyClient.addRuleSecurityPolicyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = securityPolicyClient.addRuleSecurityPolicyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable addRuleSecurityPolicyOperationCallable() { return stub.addRuleSecurityPolicyOperationCallable(); } @@ -331,7 +331,7 @@ public final OperationFuture addRuleSecurityPolicyAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteSecurityPolicyAsync( + public final OperationFuture deleteSecurityPolicyAsync( ProjectGlobalSecurityPolicyName securityPolicy) { DeleteSecurityPolicyHttpRequest request = @@ -359,7 +359,7 @@ public final OperationFuture deleteSecurityPolicyAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteSecurityPolicyAsync( + public final OperationFuture deleteSecurityPolicyAsync( String securityPolicy) { DeleteSecurityPolicyHttpRequest request = @@ -388,7 +388,7 @@ public final OperationFuture deleteSecurityPolicyAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteSecurityPolicyAsync( + public final OperationFuture deleteSecurityPolicyAsync( DeleteSecurityPolicyHttpRequest request) { return deleteSecurityPolicyOperationCallable().futureCall(request); } @@ -405,14 +405,14 @@ public final OperationFuture deleteSecurityPolicyAsy * DeleteSecurityPolicyHttpRequest request = DeleteSecurityPolicyHttpRequest.newBuilder() * .setSecurityPolicy(securityPolicy.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = securityPolicyClient.deleteSecurityPolicyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = securityPolicyClient.deleteSecurityPolicyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteSecurityPolicyOperationCallable() { return stub.deleteSecurityPolicyOperationCallable(); } @@ -672,7 +672,7 @@ public final SecurityPolicyRule getRuleSecurityPolicy(GetRuleSecurityPolicyHttpR */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertSecurityPolicyAsync( + public final OperationFuture insertSecurityPolicyAsync( ProjectName project, SecurityPolicy securityPolicyResource) { InsertSecurityPolicyHttpRequest request = @@ -705,7 +705,7 @@ public final OperationFuture insertSecurityPolicyAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertSecurityPolicyAsync( + public final OperationFuture insertSecurityPolicyAsync( String project, SecurityPolicy securityPolicyResource) { InsertSecurityPolicyHttpRequest request = @@ -739,7 +739,7 @@ public final OperationFuture insertSecurityPolicyAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertSecurityPolicyAsync( + public final OperationFuture insertSecurityPolicyAsync( InsertSecurityPolicyHttpRequest request) { return insertSecurityPolicyOperationCallable().futureCall(request); } @@ -758,14 +758,14 @@ public final OperationFuture insertSecurityPolicyAsy * .setProject(project.toString()) * .setSecurityPolicyResource(securityPolicyResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = securityPolicyClient.insertSecurityPolicyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = securityPolicyClient.insertSecurityPolicyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertSecurityPolicyOperationCallable() { return stub.insertSecurityPolicyOperationCallable(); } @@ -961,7 +961,7 @@ public final ListSecurityPoliciesPagedResponse listSecurityPolicies( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchSecurityPolicyAsync( + public final OperationFuture patchSecurityPolicyAsync( ProjectGlobalSecurityPolicyName securityPolicy, SecurityPolicy securityPolicyResource, List fieldMask) { @@ -1002,7 +1002,7 @@ public final OperationFuture patchSecurityPolicyAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchSecurityPolicyAsync( + public final OperationFuture patchSecurityPolicyAsync( String securityPolicy, SecurityPolicy securityPolicyResource, List fieldMask) { PatchSecurityPolicyHttpRequest request = @@ -1039,7 +1039,7 @@ public final OperationFuture patchSecurityPolicyAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchSecurityPolicyAsync( + public final OperationFuture patchSecurityPolicyAsync( PatchSecurityPolicyHttpRequest request) { return patchSecurityPolicyOperationCallable().futureCall(request); } @@ -1060,14 +1060,14 @@ public final OperationFuture patchSecurityPolicyAsyn * .setSecurityPolicyResource(securityPolicyResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = securityPolicyClient.patchSecurityPolicyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = securityPolicyClient.patchSecurityPolicyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable patchSecurityPolicyOperationCallable() { return stub.patchSecurityPolicyOperationCallable(); } @@ -1123,7 +1123,7 @@ public final OperationFuture patchSecurityPolicyAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchRuleSecurityPolicyAsync( + public final OperationFuture patchRuleSecurityPolicyAsync( Integer priority, ProjectGlobalSecurityPolicyName securityPolicy, SecurityPolicyRule securityPolicyRuleResource) { @@ -1160,7 +1160,7 @@ public final OperationFuture patchRuleSecurityPolicy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchRuleSecurityPolicyAsync( + public final OperationFuture patchRuleSecurityPolicyAsync( Integer priority, String securityPolicy, SecurityPolicyRule securityPolicyRuleResource) { PatchRuleSecurityPolicyHttpRequest request = @@ -1197,7 +1197,7 @@ public final OperationFuture patchRuleSecurityPolicy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchRuleSecurityPolicyAsync( + public final OperationFuture patchRuleSecurityPolicyAsync( PatchRuleSecurityPolicyHttpRequest request) { return patchRuleSecurityPolicyOperationCallable().futureCall(request); } @@ -1218,14 +1218,14 @@ public final OperationFuture patchRuleSecurityPolicy * .setSecurityPolicy(securityPolicy.toString()) * .setSecurityPolicyRuleResource(securityPolicyRuleResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = securityPolicyClient.patchRuleSecurityPolicyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = securityPolicyClient.patchRuleSecurityPolicyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable patchRuleSecurityPolicyOperationCallable() { return stub.patchRuleSecurityPolicyOperationCallable(); } @@ -1278,7 +1278,7 @@ public final OperationFuture patchRuleSecurityPolicy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture removeRuleSecurityPolicyAsync( + public final OperationFuture removeRuleSecurityPolicyAsync( Integer priority, ProjectGlobalSecurityPolicyName securityPolicy) { RemoveRuleSecurityPolicyHttpRequest request = @@ -1309,7 +1309,7 @@ public final OperationFuture removeRuleSecurityPolic */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture removeRuleSecurityPolicyAsync( + public final OperationFuture removeRuleSecurityPolicyAsync( Integer priority, String securityPolicy) { RemoveRuleSecurityPolicyHttpRequest request = @@ -1343,7 +1343,7 @@ public final OperationFuture removeRuleSecurityPolic */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture removeRuleSecurityPolicyAsync( + public final OperationFuture removeRuleSecurityPolicyAsync( RemoveRuleSecurityPolicyHttpRequest request) { return removeRuleSecurityPolicyOperationCallable().futureCall(request); } @@ -1362,14 +1362,14 @@ public final OperationFuture removeRuleSecurityPolic * .setPriority(priority) * .setSecurityPolicy(securityPolicy.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = securityPolicyClient.removeRuleSecurityPolicyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = securityPolicyClient.removeRuleSecurityPolicyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable removeRuleSecurityPolicyOperationCallable() { return stub.removeRuleSecurityPolicyOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicySettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicySettings.java index 0a01d4fe5d6f..df6bc35125b9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicySettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SecurityPolicySettings.java @@ -74,7 +74,7 @@ public class SecurityPolicySettings extends ClientSettings + public OperationCallSettings addRuleSecurityPolicyOperationSettings() { return ((SecurityPolicyStubSettings) getStubSettings()) .addRuleSecurityPolicyOperationSettings(); @@ -89,7 +89,7 @@ public class SecurityPolicySettings extends ClientSettings + public OperationCallSettings deleteSecurityPolicyOperationSettings() { return ((SecurityPolicyStubSettings) getStubSettings()).deleteSecurityPolicyOperationSettings(); } @@ -115,7 +115,7 @@ public class SecurityPolicySettings extends ClientSettings + public OperationCallSettings insertSecurityPolicyOperationSettings() { return ((SecurityPolicyStubSettings) getStubSettings()).insertSecurityPolicyOperationSettings(); } @@ -136,7 +136,7 @@ public class SecurityPolicySettings extends ClientSettings + public OperationCallSettings patchSecurityPolicyOperationSettings() { return ((SecurityPolicyStubSettings) getStubSettings()).patchSecurityPolicyOperationSettings(); } @@ -150,7 +150,7 @@ public class SecurityPolicySettings extends ClientSettings + public OperationCallSettings patchRuleSecurityPolicyOperationSettings() { return ((SecurityPolicyStubSettings) getStubSettings()) .patchRuleSecurityPolicyOperationSettings(); @@ -165,7 +165,7 @@ public class SecurityPolicySettings extends ClientSettings + public OperationCallSettings removeRuleSecurityPolicyOperationSettings() { return ((SecurityPolicyStubSettings) getStubSettings()) .removeRuleSecurityPolicyOperationSettings(); @@ -282,8 +282,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to addRuleSecurityPolicy. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - AddRuleSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder addRuleSecurityPolicyOperationSettings() { return getStubSettingsBuilder().addRuleSecurityPolicyOperationSettings(); } @@ -297,8 +296,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteSecurityPolicy. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteSecurityPolicyOperationSettings() { return getStubSettingsBuilder().deleteSecurityPolicyOperationSettings(); } @@ -324,8 +322,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertSecurityPolicy. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertSecurityPolicyOperationSettings() { return getStubSettingsBuilder().insertSecurityPolicyOperationSettings(); } @@ -346,7 +343,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to patchSecurityPolicy. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchSecurityPolicyOperationSettings() { return getStubSettingsBuilder().patchSecurityPolicyOperationSettings(); } @@ -361,7 +358,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - PatchRuleSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage> + PatchRuleSecurityPolicyHttpRequest, EmptyMessage, Operation> patchRuleSecurityPolicyOperationSettings() { return getStubSettingsBuilder().patchRuleSecurityPolicyOperationSettings(); } @@ -376,7 +373,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - RemoveRuleSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage> + RemoveRuleSecurityPolicyHttpRequest, EmptyMessage, Operation> removeRuleSecurityPolicyOperationSettings() { return getStubSettingsBuilder().removeRuleSecurityPolicyOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotClient.java index 562dfdc55040..607055e89e3f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotClient.java @@ -189,7 +189,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteSnapshotAsync( + public final OperationFuture deleteSnapshotAsync( ProjectGlobalSnapshotName snapshot) { DeleteSnapshotHttpRequest request = @@ -222,7 +222,7 @@ public final OperationFuture deleteSnapshotAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteSnapshotAsync(String snapshot) { + public final OperationFuture deleteSnapshotAsync(String snapshot) { DeleteSnapshotHttpRequest request = DeleteSnapshotHttpRequest.newBuilder().setSnapshot(snapshot).build(); @@ -255,7 +255,7 @@ public final OperationFuture deleteSnapshotAsync(Str */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteSnapshotAsync( + public final OperationFuture deleteSnapshotAsync( DeleteSnapshotHttpRequest request) { return deleteSnapshotOperationCallable().futureCall(request); } @@ -277,14 +277,14 @@ public final OperationFuture deleteSnapshotAsync( * DeleteSnapshotHttpRequest request = DeleteSnapshotHttpRequest.newBuilder() * .setSnapshot(snapshot.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = snapshotClient.deleteSnapshotOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = snapshotClient.deleteSnapshotOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteSnapshotOperationCallable() { return stub.deleteSnapshotOperationCallable(); } @@ -790,7 +790,7 @@ public final Policy setIamPolicySnapshot(SetIamPolicySnapshotHttpRequest request */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setLabelsSnapshotAsync( + public final OperationFuture setLabelsSnapshotAsync( ProjectGlobalSnapshotResourceName resource, GlobalSetLabelsRequest globalSetLabelsRequestResource) { @@ -823,7 +823,7 @@ public final OperationFuture setLabelsSnapshotAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setLabelsSnapshotAsync( + public final OperationFuture setLabelsSnapshotAsync( String resource, GlobalSetLabelsRequest globalSetLabelsRequestResource) { SetLabelsSnapshotHttpRequest request = @@ -858,7 +858,7 @@ public final OperationFuture setLabelsSnapshotAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setLabelsSnapshotAsync( + public final OperationFuture setLabelsSnapshotAsync( SetLabelsSnapshotHttpRequest request) { return setLabelsSnapshotOperationCallable().futureCall(request); } @@ -878,14 +878,14 @@ public final OperationFuture setLabelsSnapshotAsync( * .setResource(resource.toString()) * .setGlobalSetLabelsRequestResource(globalSetLabelsRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = snapshotClient.setLabelsSnapshotOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = snapshotClient.setLabelsSnapshotOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable setLabelsSnapshotOperationCallable() { return stub.setLabelsSnapshotOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotSettings.java index 141e29431ebc..3e689e65d54b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SnapshotSettings.java @@ -73,7 +73,7 @@ public UnaryCallSettings deleteSnapshotSet /** Returns the object with the settings used for calls to deleteSnapshot. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteSnapshotOperationSettings() { return ((SnapshotStubSettings) getStubSettings()).deleteSnapshotOperationSettings(); } @@ -107,7 +107,7 @@ public UnaryCallSettings setLabelsSnaps /** Returns the object with the settings used for calls to setLabelsSnapshot. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setLabelsSnapshotOperationSettings() { return ((SnapshotStubSettings) getStubSettings()).setLabelsSnapshotOperationSettings(); } @@ -228,7 +228,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteSnapshot. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteSnapshotOperationSettings() { return getStubSettingsBuilder().deleteSnapshotOperationSettings(); } @@ -266,7 +266,7 @@ public UnaryCallSettings.Builder getSnapshotSe /** Returns the builder for the settings used for calls to setLabelsSnapshot. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder setLabelsSnapshotOperationSettings() { return getStubSettingsBuilder().setLabelsSnapshotOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateClient.java index eb7223094856..aa4a710c17b2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateClient.java @@ -186,7 +186,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteSslCertificateAsync( + public final OperationFuture deleteSslCertificateAsync( ProjectGlobalSslCertificateName sslCertificate) { DeleteSslCertificateHttpRequest request = @@ -214,7 +214,7 @@ public final OperationFuture deleteSslCertificateAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteSslCertificateAsync( + public final OperationFuture deleteSslCertificateAsync( String sslCertificate) { DeleteSslCertificateHttpRequest request = @@ -243,7 +243,7 @@ public final OperationFuture deleteSslCertificateAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteSslCertificateAsync( + public final OperationFuture deleteSslCertificateAsync( DeleteSslCertificateHttpRequest request) { return deleteSslCertificateOperationCallable().futureCall(request); } @@ -260,14 +260,14 @@ public final OperationFuture deleteSslCertificateAsy * DeleteSslCertificateHttpRequest request = DeleteSslCertificateHttpRequest.newBuilder() * .setSslCertificate(sslCertificate.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = sslCertificateClient.deleteSslCertificateOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = sslCertificateClient.deleteSslCertificateOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteSslCertificateOperationCallable() { return stub.deleteSslCertificateOperationCallable(); } @@ -421,7 +421,7 @@ public final SslCertificate getSslCertificate(GetSslCertificateHttpRequest reque */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertSslCertificateAsync( + public final OperationFuture insertSslCertificateAsync( ProjectName project, SslCertificate sslCertificateResource) { InsertSslCertificateHttpRequest request = @@ -455,7 +455,7 @@ public final OperationFuture insertSslCertificateAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertSslCertificateAsync( + public final OperationFuture insertSslCertificateAsync( String project, SslCertificate sslCertificateResource) { InsertSslCertificateHttpRequest request = @@ -490,7 +490,7 @@ public final OperationFuture insertSslCertificateAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertSslCertificateAsync( + public final OperationFuture insertSslCertificateAsync( InsertSslCertificateHttpRequest request) { return insertSslCertificateOperationCallable().futureCall(request); } @@ -510,14 +510,14 @@ public final OperationFuture insertSslCertificateAsy * .setProject(project.toString()) * .setSslCertificateResource(sslCertificateResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = sslCertificateClient.insertSslCertificateOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = sslCertificateClient.insertSslCertificateOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertSslCertificateOperationCallable() { return stub.insertSslCertificateOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateSettings.java index 82497aab3829..adc6e7ac5726 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslCertificateSettings.java @@ -74,7 +74,7 @@ public class SslCertificateSettings extends ClientSettings + public OperationCallSettings deleteSslCertificateOperationSettings() { return ((SslCertificateStubSettings) getStubSettings()).deleteSslCertificateOperationSettings(); } @@ -94,7 +94,7 @@ public class SslCertificateSettings extends ClientSettings + public OperationCallSettings insertSslCertificateOperationSettings() { return ((SslCertificateStubSettings) getStubSettings()).insertSslCertificateOperationSettings(); } @@ -217,8 +217,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteSslCertificate. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteSslCertificateHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteSslCertificateOperationSettings() { return getStubSettingsBuilder().deleteSslCertificateOperationSettings(); } @@ -238,8 +237,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertSslCertificate. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertSslCertificateHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertSslCertificateOperationSettings() { return getStubSettingsBuilder().insertSslCertificateOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyClient.java index 22de1023da4e..8f597b43e104 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicyClient.java @@ -186,7 +186,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteSslPolicyAsync( + public final OperationFuture deleteSslPolicyAsync( ProjectGlobalSslPolicyName sslPolicy) { DeleteSslPolicyHttpRequest request = @@ -216,7 +216,7 @@ public final OperationFuture deleteSslPolicyAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteSslPolicyAsync(String sslPolicy) { + public final OperationFuture deleteSslPolicyAsync(String sslPolicy) { DeleteSslPolicyHttpRequest request = DeleteSslPolicyHttpRequest.newBuilder().setSslPolicy(sslPolicy).build(); @@ -245,7 +245,7 @@ public final OperationFuture deleteSslPolicyAsync(St */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteSslPolicyAsync( + public final OperationFuture deleteSslPolicyAsync( DeleteSslPolicyHttpRequest request) { return deleteSslPolicyOperationCallable().futureCall(request); } @@ -263,14 +263,14 @@ public final OperationFuture deleteSslPolicyAsync( * DeleteSslPolicyHttpRequest request = DeleteSslPolicyHttpRequest.newBuilder() * .setSslPolicy(sslPolicy.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = sslPolicyClient.deleteSslPolicyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = sslPolicyClient.deleteSslPolicyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteSslPolicyOperationCallable() { return stub.deleteSslPolicyOperationCallable(); } @@ -422,7 +422,7 @@ public final UnaryCallable getSslPolicyCalla */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertSslPolicyAsync( + public final OperationFuture insertSslPolicyAsync( ProjectName project, SslPolicy sslPolicyResource) { InsertSslPolicyHttpRequest request = @@ -457,7 +457,7 @@ public final OperationFuture insertSslPolicyAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertSslPolicyAsync( + public final OperationFuture insertSslPolicyAsync( String project, SslPolicy sslPolicyResource) { InsertSslPolicyHttpRequest request = @@ -492,7 +492,7 @@ public final OperationFuture insertSslPolicyAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertSslPolicyAsync( + public final OperationFuture insertSslPolicyAsync( InsertSslPolicyHttpRequest request) { return insertSslPolicyOperationCallable().futureCall(request); } @@ -512,14 +512,14 @@ public final OperationFuture insertSslPolicyAsync( * .setProject(project.toString()) * .setSslPolicyResource(sslPolicyResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = sslPolicyClient.insertSslPolicyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = sslPolicyClient.insertSslPolicyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertSslPolicyOperationCallable() { return stub.insertSslPolicyOperationCallable(); } @@ -818,7 +818,7 @@ public final SslPoliciesListAvailableFeaturesResponse listAvailableFeaturesSslPo */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchSslPolicyAsync( + public final OperationFuture patchSslPolicyAsync( ProjectGlobalSslPolicyName sslPolicy, SslPolicy sslPolicyResource, List fieldMask) { PatchSslPolicyHttpRequest request = @@ -859,7 +859,7 @@ public final OperationFuture patchSslPolicyAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchSslPolicyAsync( + public final OperationFuture patchSslPolicyAsync( String sslPolicy, SslPolicy sslPolicyResource, List fieldMask) { PatchSslPolicyHttpRequest request = @@ -896,7 +896,7 @@ public final OperationFuture patchSslPolicyAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchSslPolicyAsync( + public final OperationFuture patchSslPolicyAsync( PatchSslPolicyHttpRequest request) { return patchSslPolicyOperationCallable().futureCall(request); } @@ -917,14 +917,14 @@ public final OperationFuture patchSslPolicyAsync( * .setSslPolicyResource(sslPolicyResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = sslPolicyClient.patchSslPolicyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = sslPolicyClient.patchSslPolicyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable patchSslPolicyOperationCallable() { return stub.patchSslPolicyOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicySettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicySettings.java index a320d7cbe238..96bb2c76b022 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicySettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SslPolicySettings.java @@ -73,7 +73,7 @@ public UnaryCallSettings deleteSslPolicyS /** Returns the object with the settings used for calls to deleteSslPolicy. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteSslPolicyOperationSettings() { return ((SslPolicyStubSettings) getStubSettings()).deleteSslPolicyOperationSettings(); } @@ -91,7 +91,7 @@ public UnaryCallSettings insertSslPolicyS /** Returns the object with the settings used for calls to insertSslPolicy. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertSslPolicyOperationSettings() { return ((SslPolicyStubSettings) getStubSettings()).insertSslPolicyOperationSettings(); } @@ -118,7 +118,7 @@ public UnaryCallSettings patchSslPolicySet /** Returns the object with the settings used for calls to patchSslPolicy. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchSslPolicyOperationSettings() { return ((SslPolicyStubSettings) getStubSettings()).patchSslPolicyOperationSettings(); } @@ -233,7 +233,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteSslPolicy. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteSslPolicyOperationSettings() { return getStubSettingsBuilder().deleteSslPolicyOperationSettings(); } @@ -252,7 +252,7 @@ public UnaryCallSettings.Builder getSslPolic /** Returns the builder for the settings used for calls to insertSslPolicy. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertSslPolicyOperationSettings() { return getStubSettingsBuilder().insertSslPolicyOperationSettings(); } @@ -280,7 +280,7 @@ public UnaryCallSettings.Builder getSslPolic /** Returns the builder for the settings used for calls to patchSslPolicy. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchSslPolicyOperationSettings() { return getStubSettingsBuilder().patchSslPolicyOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java index c63a9080ab31..dddb3c5691c6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkClient.java @@ -324,7 +324,7 @@ public final AggregatedListSubnetworksPagedResponse aggregatedListSubnetworks( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteSubnetworkAsync( + public final OperationFuture deleteSubnetworkAsync( ProjectRegionSubnetworkName subnetwork) { DeleteSubnetworkHttpRequest request = @@ -352,8 +352,7 @@ public final OperationFuture deleteSubnetworkAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteSubnetworkAsync( - String subnetwork) { + public final OperationFuture deleteSubnetworkAsync(String subnetwork) { DeleteSubnetworkHttpRequest request = DeleteSubnetworkHttpRequest.newBuilder().setSubnetwork(subnetwork).build(); @@ -381,7 +380,7 @@ public final OperationFuture deleteSubnetworkAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteSubnetworkAsync( + public final OperationFuture deleteSubnetworkAsync( DeleteSubnetworkHttpRequest request) { return deleteSubnetworkOperationCallable().futureCall(request); } @@ -398,14 +397,14 @@ public final OperationFuture deleteSubnetworkAsync( * DeleteSubnetworkHttpRequest request = DeleteSubnetworkHttpRequest.newBuilder() * .setSubnetwork(subnetwork.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = subnetworkClient.deleteSubnetworkOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = subnetworkClient.deleteSubnetworkOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteSubnetworkOperationCallable() { return stub.deleteSubnetworkOperationCallable(); } @@ -453,7 +452,7 @@ public final UnaryCallable deleteSubnetw */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture expandIpCidrRangeSubnetworkAsync( + public final OperationFuture expandIpCidrRangeSubnetworkAsync( ProjectRegionSubnetworkName subnetwork, SubnetworksExpandIpCidrRangeRequest subnetworksExpandIpCidrRangeRequestResource) { @@ -486,7 +485,7 @@ public final OperationFuture expandIpCidrRangeSubnet */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture expandIpCidrRangeSubnetworkAsync( + public final OperationFuture expandIpCidrRangeSubnetworkAsync( String subnetwork, SubnetworksExpandIpCidrRangeRequest subnetworksExpandIpCidrRangeRequestResource) { @@ -522,7 +521,7 @@ public final OperationFuture expandIpCidrRangeSubnet */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture expandIpCidrRangeSubnetworkAsync( + public final OperationFuture expandIpCidrRangeSubnetworkAsync( ExpandIpCidrRangeSubnetworkHttpRequest request) { return expandIpCidrRangeSubnetworkOperationCallable().futureCall(request); } @@ -541,14 +540,14 @@ public final OperationFuture expandIpCidrRangeSubnet * .setSubnetwork(subnetwork.toString()) * .setSubnetworksExpandIpCidrRangeRequestResource(subnetworksExpandIpCidrRangeRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = subnetworkClient.expandIpCidrRangeSubnetworkOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = subnetworkClient.expandIpCidrRangeSubnetworkOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable expandIpCidrRangeSubnetworkOperationCallable() { return stub.expandIpCidrRangeSubnetworkOperationCallable(); } @@ -799,7 +798,7 @@ public final Policy getIamPolicySubnetwork(GetIamPolicySubnetworkHttpRequest req */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertSubnetworkAsync( + public final OperationFuture insertSubnetworkAsync( ProjectRegionName region, Subnetwork subnetworkResource) { InsertSubnetworkHttpRequest request = @@ -831,7 +830,7 @@ public final OperationFuture insertSubnetworkAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertSubnetworkAsync( + public final OperationFuture insertSubnetworkAsync( String region, Subnetwork subnetworkResource) { InsertSubnetworkHttpRequest request = @@ -865,7 +864,7 @@ public final OperationFuture insertSubnetworkAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertSubnetworkAsync( + public final OperationFuture insertSubnetworkAsync( InsertSubnetworkHttpRequest request) { return insertSubnetworkOperationCallable().futureCall(request); } @@ -884,14 +883,14 @@ public final OperationFuture insertSubnetworkAsync( * .setRegion(region.toString()) * .setSubnetworkResource(subnetworkResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = subnetworkClient.insertSubnetworkOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = subnetworkClient.insertSubnetworkOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertSubnetworkOperationCallable() { return stub.insertSubnetworkOperationCallable(); } @@ -1223,7 +1222,7 @@ public final ListUsableSubnetworksPagedResponse listUsableSubnetworks( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchSubnetworkAsync( + public final OperationFuture patchSubnetworkAsync( ProjectRegionSubnetworkName subnetwork, Subnetwork subnetworkResource, List fieldMask) { @@ -1265,7 +1264,7 @@ public final OperationFuture patchSubnetworkAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchSubnetworkAsync( + public final OperationFuture patchSubnetworkAsync( String subnetwork, Subnetwork subnetworkResource, List fieldMask) { PatchSubnetworkHttpRequest request = @@ -1304,7 +1303,7 @@ public final OperationFuture patchSubnetworkAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchSubnetworkAsync( + public final OperationFuture patchSubnetworkAsync( PatchSubnetworkHttpRequest request) { return patchSubnetworkOperationCallable().futureCall(request); } @@ -1327,14 +1326,14 @@ public final OperationFuture patchSubnetworkAsync( * .setSubnetworkResource(subnetworkResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = subnetworkClient.patchSubnetworkOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = subnetworkClient.patchSubnetworkOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable patchSubnetworkOperationCallable() { return stub.patchSubnetworkOperationCallable(); } @@ -1502,7 +1501,7 @@ public final Policy setIamPolicySubnetwork(SetIamPolicySubnetworkHttpRequest req */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setPrivateIpGoogleAccessSubnetworkAsync( + public final OperationFuture setPrivateIpGoogleAccessSubnetworkAsync( ProjectRegionSubnetworkName subnetwork, SubnetworksSetPrivateIpGoogleAccessRequest subnetworksSetPrivateIpGoogleAccessRequestResource) { @@ -1537,7 +1536,7 @@ public final OperationFuture setPrivateIpGoogleAcces */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setPrivateIpGoogleAccessSubnetworkAsync( + public final OperationFuture setPrivateIpGoogleAccessSubnetworkAsync( String subnetwork, SubnetworksSetPrivateIpGoogleAccessRequest subnetworksSetPrivateIpGoogleAccessRequestResource) { @@ -1575,7 +1574,7 @@ public final OperationFuture setPrivateIpGoogleAcces */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setPrivateIpGoogleAccessSubnetworkAsync( + public final OperationFuture setPrivateIpGoogleAccessSubnetworkAsync( SetPrivateIpGoogleAccessSubnetworkHttpRequest request) { return setPrivateIpGoogleAccessSubnetworkOperationCallable().futureCall(request); } @@ -1595,7 +1594,7 @@ public final OperationFuture setPrivateIpGoogleAcces * .setSubnetwork(subnetwork.toString()) * .setSubnetworksSetPrivateIpGoogleAccessRequestResource(subnetworksSetPrivateIpGoogleAccessRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = subnetworkClient.setPrivateIpGoogleAccessSubnetworkOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = subnetworkClient.setPrivateIpGoogleAccessSubnetworkOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -1603,7 +1602,7 @@ public final OperationFuture setPrivateIpGoogleAcces */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, EmptyMessage> + SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, Operation> setPrivateIpGoogleAccessSubnetworkOperationCallable() { return stub.setPrivateIpGoogleAccessSubnetworkOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkSettings.java index 87e9656c807a..edec0eff98cc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/SubnetworkSettings.java @@ -84,7 +84,7 @@ public UnaryCallSettings deleteSubnetwor /** Returns the object with the settings used for calls to deleteSubnetwork. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteSubnetworkOperationSettings() { return ((SubnetworkStubSettings) getStubSettings()).deleteSubnetworkOperationSettings(); } @@ -98,7 +98,7 @@ public UnaryCallSettings deleteSubnetwor /** Returns the object with the settings used for calls to expandIpCidrRangeSubnetwork. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings expandIpCidrRangeSubnetworkOperationSettings() { return ((SubnetworkStubSettings) getStubSettings()) .expandIpCidrRangeSubnetworkOperationSettings(); @@ -123,7 +123,7 @@ public UnaryCallSettings insertSubnetwor /** Returns the object with the settings used for calls to insertSubnetwork. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertSubnetworkOperationSettings() { return ((SubnetworkStubSettings) getStubSettings()).insertSubnetworkOperationSettings(); } @@ -151,7 +151,7 @@ public UnaryCallSettings patchSubnetworkS /** Returns the object with the settings used for calls to patchSubnetwork. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchSubnetworkOperationSettings() { return ((SubnetworkStubSettings) getStubSettings()).patchSubnetworkOperationSettings(); } @@ -173,7 +173,7 @@ public UnaryCallSettings patchSubnetworkS @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings< - SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, EmptyMessage> + SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, Operation> setPrivateIpGoogleAccessSubnetworkOperationSettings() { return ((SubnetworkStubSettings) getStubSettings()) .setPrivateIpGoogleAccessSubnetworkOperationSettings(); @@ -304,7 +304,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteSubnetwork. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteSubnetworkOperationSettings() { return getStubSettingsBuilder().deleteSubnetworkOperationSettings(); } @@ -319,7 +319,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - ExpandIpCidrRangeSubnetworkHttpRequest, EmptyMessage, EmptyMessage> + ExpandIpCidrRangeSubnetworkHttpRequest, EmptyMessage, Operation> expandIpCidrRangeSubnetworkOperationSettings() { return getStubSettingsBuilder().expandIpCidrRangeSubnetworkOperationSettings(); } @@ -344,7 +344,7 @@ public UnaryCallSettings.Builder getSubnet /** Returns the builder for the settings used for calls to insertSubnetwork. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertSubnetworkOperationSettings() { return getStubSettingsBuilder().insertSubnetworkOperationSettings(); } @@ -374,7 +374,7 @@ public UnaryCallSettings.Builder getSubnet /** Returns the builder for the settings used for calls to patchSubnetwork. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchSubnetworkOperationSettings() { return getStubSettingsBuilder().patchSubnetworkOperationSettings(); } @@ -399,7 +399,7 @@ public UnaryCallSettings.Builder getSubnet @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, EmptyMessage> + SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, Operation> setPrivateIpGoogleAccessSubnetworkOperationSettings() { return getStubSettingsBuilder().setPrivateIpGoogleAccessSubnetworkOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyClient.java index 17718f5fe6c5..875ed7d32cfc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxyClient.java @@ -187,7 +187,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteTargetHttpProxyAsync( + public final OperationFuture deleteTargetHttpProxyAsync( ProjectGlobalTargetHttpProxyName targetHttpProxy) { DeleteTargetHttpProxyHttpRequest request = @@ -215,7 +215,7 @@ public final OperationFuture deleteTargetHttpProxyAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteTargetHttpProxyAsync( + public final OperationFuture deleteTargetHttpProxyAsync( String targetHttpProxy) { DeleteTargetHttpProxyHttpRequest request = @@ -244,7 +244,7 @@ public final OperationFuture deleteTargetHttpProxyAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteTargetHttpProxyAsync( + public final OperationFuture deleteTargetHttpProxyAsync( DeleteTargetHttpProxyHttpRequest request) { return deleteTargetHttpProxyOperationCallable().futureCall(request); } @@ -261,14 +261,14 @@ public final OperationFuture deleteTargetHttpProxyAs * DeleteTargetHttpProxyHttpRequest request = DeleteTargetHttpProxyHttpRequest.newBuilder() * .setTargetHttpProxy(targetHttpProxy.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetHttpProxyClient.deleteTargetHttpProxyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetHttpProxyClient.deleteTargetHttpProxyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteTargetHttpProxyOperationCallable() { return stub.deleteTargetHttpProxyOperationCallable(); } @@ -422,7 +422,7 @@ public final TargetHttpProxy getTargetHttpProxy(GetTargetHttpProxyHttpRequest re */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertTargetHttpProxyAsync( + public final OperationFuture insertTargetHttpProxyAsync( ProjectName project, TargetHttpProxy targetHttpProxyResource) { InsertTargetHttpProxyHttpRequest request = @@ -455,7 +455,7 @@ public final OperationFuture insertTargetHttpProxyAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertTargetHttpProxyAsync( + public final OperationFuture insertTargetHttpProxyAsync( String project, TargetHttpProxy targetHttpProxyResource) { InsertTargetHttpProxyHttpRequest request = @@ -490,7 +490,7 @@ public final OperationFuture insertTargetHttpProxyAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertTargetHttpProxyAsync( + public final OperationFuture insertTargetHttpProxyAsync( InsertTargetHttpProxyHttpRequest request) { return insertTargetHttpProxyOperationCallable().futureCall(request); } @@ -510,14 +510,14 @@ public final OperationFuture insertTargetHttpProxyAs * .setProject(project.toString()) * .setTargetHttpProxyResource(targetHttpProxyResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetHttpProxyClient.insertTargetHttpProxyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetHttpProxyClient.insertTargetHttpProxyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertTargetHttpProxyOperationCallable() { return stub.insertTargetHttpProxyOperationCallable(); } @@ -707,7 +707,7 @@ public final ListTargetHttpProxiesPagedResponse listTargetHttpProxies( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setUrlMapTargetHttpProxyAsync( + public final OperationFuture setUrlMapTargetHttpProxyAsync( ProjectTargetHttpProxyName targetHttpProxy, UrlMapReference urlMapReferenceResource) { SetUrlMapTargetHttpProxyHttpRequest request = @@ -738,7 +738,7 @@ public final OperationFuture setUrlMapTargetHttpProx */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setUrlMapTargetHttpProxyAsync( + public final OperationFuture setUrlMapTargetHttpProxyAsync( String targetHttpProxy, UrlMapReference urlMapReferenceResource) { SetUrlMapTargetHttpProxyHttpRequest request = @@ -772,7 +772,7 @@ public final OperationFuture setUrlMapTargetHttpProx */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setUrlMapTargetHttpProxyAsync( + public final OperationFuture setUrlMapTargetHttpProxyAsync( SetUrlMapTargetHttpProxyHttpRequest request) { return setUrlMapTargetHttpProxyOperationCallable().futureCall(request); } @@ -791,14 +791,14 @@ public final OperationFuture setUrlMapTargetHttpProx * .setTargetHttpProxy(targetHttpProxy.toString()) * .setUrlMapReferenceResource(urlMapReferenceResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetHttpProxyClient.setUrlMapTargetHttpProxyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetHttpProxyClient.setUrlMapTargetHttpProxyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable setUrlMapTargetHttpProxyOperationCallable() { return stub.setUrlMapTargetHttpProxyOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxySettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxySettings.java index 479971a22704..bc2e549bd7ea 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxySettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpProxySettings.java @@ -74,7 +74,7 @@ public class TargetHttpProxySettings extends ClientSettings + public OperationCallSettings deleteTargetHttpProxyOperationSettings() { return ((TargetHttpProxyStubSettings) getStubSettings()) .deleteTargetHttpProxyOperationSettings(); @@ -95,7 +95,7 @@ public class TargetHttpProxySettings extends ClientSettings + public OperationCallSettings insertTargetHttpProxyOperationSettings() { return ((TargetHttpProxyStubSettings) getStubSettings()) .insertTargetHttpProxyOperationSettings(); @@ -117,7 +117,7 @@ public class TargetHttpProxySettings extends ClientSettings + public OperationCallSettings setUrlMapTargetHttpProxyOperationSettings() { return ((TargetHttpProxyStubSettings) getStubSettings()) .setUrlMapTargetHttpProxyOperationSettings(); @@ -234,8 +234,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteTargetHttpProxy. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteTargetHttpProxyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteTargetHttpProxyOperationSettings() { return getStubSettingsBuilder().deleteTargetHttpProxyOperationSettings(); } @@ -255,8 +254,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertTargetHttpProxy. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertTargetHttpProxyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertTargetHttpProxyOperationSettings() { return getStubSettingsBuilder().insertTargetHttpProxyOperationSettings(); } @@ -280,7 +278,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetUrlMapTargetHttpProxyHttpRequest, EmptyMessage, EmptyMessage> + SetUrlMapTargetHttpProxyHttpRequest, EmptyMessage, Operation> setUrlMapTargetHttpProxyOperationSettings() { return getStubSettingsBuilder().setUrlMapTargetHttpProxyOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyClient.java index 39f83661a292..432f5e8bda73 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyClient.java @@ -187,7 +187,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteTargetHttpsProxyAsync( + public final OperationFuture deleteTargetHttpsProxyAsync( ProjectGlobalTargetHttpsProxyName targetHttpsProxy) { DeleteTargetHttpsProxyHttpRequest request = @@ -215,7 +215,7 @@ public final OperationFuture deleteTargetHttpsProxyA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteTargetHttpsProxyAsync( + public final OperationFuture deleteTargetHttpsProxyAsync( String targetHttpsProxy) { DeleteTargetHttpsProxyHttpRequest request = @@ -246,7 +246,7 @@ public final OperationFuture deleteTargetHttpsProxyA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteTargetHttpsProxyAsync( + public final OperationFuture deleteTargetHttpsProxyAsync( DeleteTargetHttpsProxyHttpRequest request) { return deleteTargetHttpsProxyOperationCallable().futureCall(request); } @@ -263,14 +263,14 @@ public final OperationFuture deleteTargetHttpsProxyA * DeleteTargetHttpsProxyHttpRequest request = DeleteTargetHttpsProxyHttpRequest.newBuilder() * .setTargetHttpsProxy(targetHttpsProxy.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetHttpsProxyClient.deleteTargetHttpsProxyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetHttpsProxyClient.deleteTargetHttpsProxyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteTargetHttpsProxyOperationCallable() { return stub.deleteTargetHttpsProxyOperationCallable(); } @@ -425,7 +425,7 @@ public final TargetHttpsProxy getTargetHttpsProxy(GetTargetHttpsProxyHttpRequest */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertTargetHttpsProxyAsync( + public final OperationFuture insertTargetHttpsProxyAsync( ProjectName project, TargetHttpsProxy targetHttpsProxyResource) { InsertTargetHttpsProxyHttpRequest request = @@ -459,7 +459,7 @@ public final OperationFuture insertTargetHttpsProxyA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertTargetHttpsProxyAsync( + public final OperationFuture insertTargetHttpsProxyAsync( String project, TargetHttpsProxy targetHttpsProxyResource) { InsertTargetHttpsProxyHttpRequest request = @@ -494,7 +494,7 @@ public final OperationFuture insertTargetHttpsProxyA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertTargetHttpsProxyAsync( + public final OperationFuture insertTargetHttpsProxyAsync( InsertTargetHttpsProxyHttpRequest request) { return insertTargetHttpsProxyOperationCallable().futureCall(request); } @@ -514,14 +514,14 @@ public final OperationFuture insertTargetHttpsProxyA * .setProject(project.toString()) * .setTargetHttpsProxyResource(targetHttpsProxyResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetHttpsProxyClient.insertTargetHttpsProxyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetHttpsProxyClient.insertTargetHttpsProxyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertTargetHttpsProxyOperationCallable() { return stub.insertTargetHttpsProxyOperationCallable(); } @@ -712,7 +712,7 @@ public final ListTargetHttpsProxiesPagedResponse listTargetHttpsProxies( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setQuicOverrideTargetHttpsProxyAsync( + public final OperationFuture setQuicOverrideTargetHttpsProxyAsync( ProjectGlobalTargetHttpsProxyName targetHttpsProxy, TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource) { @@ -746,7 +746,7 @@ public final OperationFuture setQuicOverrideTargetHt */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setQuicOverrideTargetHttpsProxyAsync( + public final OperationFuture setQuicOverrideTargetHttpsProxyAsync( String targetHttpsProxy, TargetHttpsProxiesSetQuicOverrideRequest targetHttpsProxiesSetQuicOverrideRequestResource) { @@ -782,7 +782,7 @@ public final OperationFuture setQuicOverrideTargetHt */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setQuicOverrideTargetHttpsProxyAsync( + public final OperationFuture setQuicOverrideTargetHttpsProxyAsync( SetQuicOverrideTargetHttpsProxyHttpRequest request) { return setQuicOverrideTargetHttpsProxyOperationCallable().futureCall(request); } @@ -801,7 +801,7 @@ public final OperationFuture setQuicOverrideTargetHt * .setTargetHttpsProxy(targetHttpsProxy.toString()) * .setTargetHttpsProxiesSetQuicOverrideRequestResource(targetHttpsProxiesSetQuicOverrideRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetHttpsProxyClient.setQuicOverrideTargetHttpsProxyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetHttpsProxyClient.setQuicOverrideTargetHttpsProxyOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -809,7 +809,7 @@ public final OperationFuture setQuicOverrideTargetHt */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - SetQuicOverrideTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + SetQuicOverrideTargetHttpsProxyHttpRequest, EmptyMessage, Operation> setQuicOverrideTargetHttpsProxyOperationCallable() { return stub.setQuicOverrideTargetHttpsProxyOperationCallable(); } @@ -861,7 +861,7 @@ public final OperationFuture setQuicOverrideTargetHt */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setSslCertificatesTargetHttpsProxyAsync( + public final OperationFuture setSslCertificatesTargetHttpsProxyAsync( ProjectTargetHttpsProxyName targetHttpsProxy, TargetHttpsProxiesSetSslCertificatesRequest targetHttpsProxiesSetSslCertificatesRequestResource) { @@ -896,7 +896,7 @@ public final OperationFuture setSslCertificatesTarge */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setSslCertificatesTargetHttpsProxyAsync( + public final OperationFuture setSslCertificatesTargetHttpsProxyAsync( String targetHttpsProxy, TargetHttpsProxiesSetSslCertificatesRequest targetHttpsProxiesSetSslCertificatesRequestResource) { @@ -933,7 +933,7 @@ public final OperationFuture setSslCertificatesTarge */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setSslCertificatesTargetHttpsProxyAsync( + public final OperationFuture setSslCertificatesTargetHttpsProxyAsync( SetSslCertificatesTargetHttpsProxyHttpRequest request) { return setSslCertificatesTargetHttpsProxyOperationCallable().futureCall(request); } @@ -952,7 +952,7 @@ public final OperationFuture setSslCertificatesTarge * .setTargetHttpsProxy(targetHttpsProxy.toString()) * .setTargetHttpsProxiesSetSslCertificatesRequestResource(targetHttpsProxiesSetSslCertificatesRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetHttpsProxyClient.setSslCertificatesTargetHttpsProxyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetHttpsProxyClient.setSslCertificatesTargetHttpsProxyOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -960,7 +960,7 @@ public final OperationFuture setSslCertificatesTarge */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, Operation> setSslCertificatesTargetHttpsProxyOperationCallable() { return stub.setSslCertificatesTargetHttpsProxyOperationCallable(); } @@ -1014,7 +1014,7 @@ public final OperationFuture setSslCertificatesTarge */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setSslPolicyTargetHttpsProxyAsync( + public final OperationFuture setSslPolicyTargetHttpsProxyAsync( ProjectGlobalTargetHttpsProxyName targetHttpsProxy, SslPolicyReference sslPolicyReferenceResource) { @@ -1049,7 +1049,7 @@ public final OperationFuture setSslPolicyTargetHttps */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setSslPolicyTargetHttpsProxyAsync( + public final OperationFuture setSslPolicyTargetHttpsProxyAsync( String targetHttpsProxy, SslPolicyReference sslPolicyReferenceResource) { SetSslPolicyTargetHttpsProxyHttpRequest request = @@ -1085,7 +1085,7 @@ public final OperationFuture setSslPolicyTargetHttps */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setSslPolicyTargetHttpsProxyAsync( + public final OperationFuture setSslPolicyTargetHttpsProxyAsync( SetSslPolicyTargetHttpsProxyHttpRequest request) { return setSslPolicyTargetHttpsProxyOperationCallable().futureCall(request); } @@ -1106,15 +1106,14 @@ public final OperationFuture setSslPolicyTargetHttps * .setTargetHttpsProxy(targetHttpsProxy.toString()) * .setSslPolicyReferenceResource(sslPolicyReferenceResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetHttpsProxyClient.setSslPolicyTargetHttpsProxyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetHttpsProxyClient.setSslPolicyTargetHttpsProxyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - SetSslPolicyTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + public final OperationCallable setSslPolicyTargetHttpsProxyOperationCallable() { return stub.setSslPolicyTargetHttpsProxyOperationCallable(); } @@ -1167,7 +1166,7 @@ public final OperationFuture setSslPolicyTargetHttps */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setUrlMapTargetHttpsProxyAsync( + public final OperationFuture setUrlMapTargetHttpsProxyAsync( ProjectTargetHttpsProxyName targetHttpsProxy, UrlMapReference urlMapReferenceResource) { SetUrlMapTargetHttpsProxyHttpRequest request = @@ -1198,7 +1197,7 @@ public final OperationFuture setUrlMapTargetHttpsPro */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setUrlMapTargetHttpsProxyAsync( + public final OperationFuture setUrlMapTargetHttpsProxyAsync( String targetHttpsProxy, UrlMapReference urlMapReferenceResource) { SetUrlMapTargetHttpsProxyHttpRequest request = @@ -1232,7 +1231,7 @@ public final OperationFuture setUrlMapTargetHttpsPro */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setUrlMapTargetHttpsProxyAsync( + public final OperationFuture setUrlMapTargetHttpsProxyAsync( SetUrlMapTargetHttpsProxyHttpRequest request) { return setUrlMapTargetHttpsProxyOperationCallable().futureCall(request); } @@ -1251,14 +1250,14 @@ public final OperationFuture setUrlMapTargetHttpsPro * .setTargetHttpsProxy(targetHttpsProxy.toString()) * .setUrlMapReferenceResource(urlMapReferenceResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetHttpsProxyClient.setUrlMapTargetHttpsProxyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetHttpsProxyClient.setUrlMapTargetHttpsProxyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable setUrlMapTargetHttpsProxyOperationCallable() { return stub.setUrlMapTargetHttpsProxyOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxySettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxySettings.java index fdccb1b9a249..a5bdc7a79d8f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxySettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxySettings.java @@ -74,7 +74,7 @@ public class TargetHttpsProxySettings extends ClientSettings + public OperationCallSettings deleteTargetHttpsProxyOperationSettings() { return ((TargetHttpsProxyStubSettings) getStubSettings()) .deleteTargetHttpsProxyOperationSettings(); @@ -95,7 +95,7 @@ public class TargetHttpsProxySettings extends ClientSettings + public OperationCallSettings insertTargetHttpsProxyOperationSettings() { return ((TargetHttpsProxyStubSettings) getStubSettings()) .insertTargetHttpsProxyOperationSettings(); @@ -120,8 +120,7 @@ public class TargetHttpsProxySettings extends ClientSettings + public OperationCallSettings setQuicOverrideTargetHttpsProxyOperationSettings() { return ((TargetHttpsProxyStubSettings) getStubSettings()) .setQuicOverrideTargetHttpsProxyOperationSettings(); @@ -138,7 +137,7 @@ public class TargetHttpsProxySettings extends ClientSettings + SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, Operation> setSslCertificatesTargetHttpsProxyOperationSettings() { return ((TargetHttpsProxyStubSettings) getStubSettings()) .setSslCertificatesTargetHttpsProxyOperationSettings(); @@ -154,7 +153,7 @@ public class TargetHttpsProxySettings extends ClientSettings + public OperationCallSettings setSslPolicyTargetHttpsProxyOperationSettings() { return ((TargetHttpsProxyStubSettings) getStubSettings()) .setSslPolicyTargetHttpsProxyOperationSettings(); @@ -169,7 +168,7 @@ public class TargetHttpsProxySettings extends ClientSettings + public OperationCallSettings setUrlMapTargetHttpsProxyOperationSettings() { return ((TargetHttpsProxyStubSettings) getStubSettings()) .setUrlMapTargetHttpsProxyOperationSettings(); @@ -286,8 +285,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteTargetHttpsProxy. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteTargetHttpsProxyOperationSettings() { return getStubSettingsBuilder().deleteTargetHttpsProxyOperationSettings(); } @@ -307,8 +305,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertTargetHttpsProxy. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertTargetHttpsProxyOperationSettings() { return getStubSettingsBuilder().insertTargetHttpsProxyOperationSettings(); } @@ -332,7 +329,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetQuicOverrideTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + SetQuicOverrideTargetHttpsProxyHttpRequest, EmptyMessage, Operation> setQuicOverrideTargetHttpsProxyOperationSettings() { return getStubSettingsBuilder().setQuicOverrideTargetHttpsProxyOperationSettings(); } @@ -351,7 +348,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, Operation> setSslCertificatesTargetHttpsProxyOperationSettings() { return getStubSettingsBuilder().setSslCertificatesTargetHttpsProxyOperationSettings(); } @@ -366,7 +363,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetSslPolicyTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + SetSslPolicyTargetHttpsProxyHttpRequest, EmptyMessage, Operation> setSslPolicyTargetHttpsProxyOperationSettings() { return getStubSettingsBuilder().setSslPolicyTargetHttpsProxyOperationSettings(); } @@ -381,7 +378,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetUrlMapTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + SetUrlMapTargetHttpsProxyHttpRequest, EmptyMessage, Operation> setUrlMapTargetHttpsProxyOperationSettings() { return getStubSettingsBuilder().setUrlMapTargetHttpsProxyOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceClient.java index 3b2e846668ab..66b4992f9c2d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceClient.java @@ -327,7 +327,7 @@ public final AggregatedListTargetInstancesPagedResponse aggregatedListTargetInst */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteTargetInstanceAsync( + public final OperationFuture deleteTargetInstanceAsync( ProjectZoneTargetInstanceName targetInstance) { DeleteTargetInstanceHttpRequest request = @@ -355,7 +355,7 @@ public final OperationFuture deleteTargetInstanceAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteTargetInstanceAsync( + public final OperationFuture deleteTargetInstanceAsync( String targetInstance) { DeleteTargetInstanceHttpRequest request = @@ -384,7 +384,7 @@ public final OperationFuture deleteTargetInstanceAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteTargetInstanceAsync( + public final OperationFuture deleteTargetInstanceAsync( DeleteTargetInstanceHttpRequest request) { return deleteTargetInstanceOperationCallable().futureCall(request); } @@ -401,14 +401,14 @@ public final OperationFuture deleteTargetInstanceAsy * DeleteTargetInstanceHttpRequest request = DeleteTargetInstanceHttpRequest.newBuilder() * .setTargetInstance(targetInstance.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetInstanceClient.deleteTargetInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetInstanceClient.deleteTargetInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteTargetInstanceOperationCallable() { return stub.deleteTargetInstanceOperationCallable(); } @@ -562,7 +562,7 @@ public final TargetInstance getTargetInstance(GetTargetInstanceHttpRequest reque */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertTargetInstanceAsync( + public final OperationFuture insertTargetInstanceAsync( ProjectZoneName zone, TargetInstance targetInstanceResource) { InsertTargetInstanceHttpRequest request = @@ -596,7 +596,7 @@ public final OperationFuture insertTargetInstanceAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertTargetInstanceAsync( + public final OperationFuture insertTargetInstanceAsync( String zone, TargetInstance targetInstanceResource) { InsertTargetInstanceHttpRequest request = @@ -631,7 +631,7 @@ public final OperationFuture insertTargetInstanceAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertTargetInstanceAsync( + public final OperationFuture insertTargetInstanceAsync( InsertTargetInstanceHttpRequest request) { return insertTargetInstanceOperationCallable().futureCall(request); } @@ -651,14 +651,14 @@ public final OperationFuture insertTargetInstanceAsy * .setZone(zone.toString()) * .setTargetInstanceResource(targetInstanceResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetInstanceClient.insertTargetInstanceOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetInstanceClient.insertTargetInstanceOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertTargetInstanceOperationCallable() { return stub.insertTargetInstanceOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceSettings.java index 0d2a11045ad5..6f5bb95e0f06 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetInstanceSettings.java @@ -84,7 +84,7 @@ public class TargetInstanceSettings extends ClientSettings + public OperationCallSettings deleteTargetInstanceOperationSettings() { return ((TargetInstanceStubSettings) getStubSettings()).deleteTargetInstanceOperationSettings(); } @@ -104,7 +104,7 @@ public class TargetInstanceSettings extends ClientSettings + public OperationCallSettings insertTargetInstanceOperationSettings() { return ((TargetInstanceStubSettings) getStubSettings()).insertTargetInstanceOperationSettings(); } @@ -236,8 +236,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteTargetInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteTargetInstanceHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteTargetInstanceOperationSettings() { return getStubSettingsBuilder().deleteTargetInstanceOperationSettings(); } @@ -257,8 +256,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertTargetInstance. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertTargetInstanceHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertTargetInstanceOperationSettings() { return getStubSettingsBuilder().insertTargetInstanceOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolClient.java index 1af4b3152287..34dd1f38a6c6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolClient.java @@ -186,7 +186,7 @@ public final RegionOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addHealthCheckTargetPoolAsync( + public final OperationFuture addHealthCheckTargetPoolAsync( ProjectRegionTargetPoolName targetPool, TargetPoolsAddHealthCheckRequest targetPoolsAddHealthCheckRequestResource) { @@ -218,7 +218,7 @@ public final OperationFuture addHealthCheckTargetPoo */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addHealthCheckTargetPoolAsync( + public final OperationFuture addHealthCheckTargetPoolAsync( String targetPool, TargetPoolsAddHealthCheckRequest targetPoolsAddHealthCheckRequestResource) { @@ -253,7 +253,7 @@ public final OperationFuture addHealthCheckTargetPoo */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addHealthCheckTargetPoolAsync( + public final OperationFuture addHealthCheckTargetPoolAsync( AddHealthCheckTargetPoolHttpRequest request) { return addHealthCheckTargetPoolOperationCallable().futureCall(request); } @@ -272,14 +272,14 @@ public final OperationFuture addHealthCheckTargetPoo * .setTargetPool(targetPool.toString()) * .setTargetPoolsAddHealthCheckRequestResource(targetPoolsAddHealthCheckRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetPoolClient.addHealthCheckTargetPoolOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetPoolClient.addHealthCheckTargetPoolOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable addHealthCheckTargetPoolOperationCallable() { return stub.addHealthCheckTargetPoolOperationCallable(); } @@ -330,7 +330,7 @@ public final OperationFuture addHealthCheckTargetPoo */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addInstanceTargetPoolAsync( + public final OperationFuture addInstanceTargetPoolAsync( ProjectRegionTargetPoolName targetPool, TargetPoolsAddInstanceRequest targetPoolsAddInstanceRequestResource) { @@ -362,7 +362,7 @@ public final OperationFuture addInstanceTargetPoolAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addInstanceTargetPoolAsync( + public final OperationFuture addInstanceTargetPoolAsync( String targetPool, TargetPoolsAddInstanceRequest targetPoolsAddInstanceRequestResource) { AddInstanceTargetPoolHttpRequest request = @@ -396,7 +396,7 @@ public final OperationFuture addInstanceTargetPoolAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture addInstanceTargetPoolAsync( + public final OperationFuture addInstanceTargetPoolAsync( AddInstanceTargetPoolHttpRequest request) { return addInstanceTargetPoolOperationCallable().futureCall(request); } @@ -415,14 +415,14 @@ public final OperationFuture addInstanceTargetPoolAs * .setTargetPool(targetPool.toString()) * .setTargetPoolsAddInstanceRequestResource(targetPoolsAddInstanceRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetPoolClient.addInstanceTargetPoolOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetPoolClient.addInstanceTargetPoolOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable addInstanceTargetPoolOperationCallable() { return stub.addInstanceTargetPoolOperationCallable(); } @@ -611,7 +611,7 @@ public final AggregatedListTargetPoolsPagedResponse aggregatedListTargetPools( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteTargetPoolAsync( + public final OperationFuture deleteTargetPoolAsync( ProjectRegionTargetPoolName targetPool) { DeleteTargetPoolHttpRequest request = @@ -639,8 +639,7 @@ public final OperationFuture deleteTargetPoolAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteTargetPoolAsync( - String targetPool) { + public final OperationFuture deleteTargetPoolAsync(String targetPool) { DeleteTargetPoolHttpRequest request = DeleteTargetPoolHttpRequest.newBuilder().setTargetPool(targetPool).build(); @@ -668,7 +667,7 @@ public final OperationFuture deleteTargetPoolAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteTargetPoolAsync( + public final OperationFuture deleteTargetPoolAsync( DeleteTargetPoolHttpRequest request) { return deleteTargetPoolOperationCallable().futureCall(request); } @@ -685,14 +684,14 @@ public final OperationFuture deleteTargetPoolAsync( * DeleteTargetPoolHttpRequest request = DeleteTargetPoolHttpRequest.newBuilder() * .setTargetPool(targetPool.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetPoolClient.deleteTargetPoolOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetPoolClient.deleteTargetPoolOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteTargetPoolOperationCallable() { return stub.deleteTargetPoolOperationCallable(); } @@ -961,7 +960,7 @@ public final TargetPoolInstanceHealth getHealthTargetPool( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertTargetPoolAsync( + public final OperationFuture insertTargetPoolAsync( ProjectRegionName region, TargetPool targetPoolResource) { InsertTargetPoolHttpRequest request = @@ -995,7 +994,7 @@ public final OperationFuture insertTargetPoolAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertTargetPoolAsync( + public final OperationFuture insertTargetPoolAsync( String region, TargetPool targetPoolResource) { InsertTargetPoolHttpRequest request = @@ -1030,7 +1029,7 @@ public final OperationFuture insertTargetPoolAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertTargetPoolAsync( + public final OperationFuture insertTargetPoolAsync( InsertTargetPoolHttpRequest request) { return insertTargetPoolOperationCallable().futureCall(request); } @@ -1050,14 +1049,14 @@ public final OperationFuture insertTargetPoolAsync( * .setRegion(region.toString()) * .setTargetPoolResource(targetPoolResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetPoolClient.insertTargetPoolOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetPoolClient.insertTargetPoolOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertTargetPoolOperationCallable() { return stub.insertTargetPoolOperationCallable(); } @@ -1244,7 +1243,7 @@ public final UnaryCallable listTarge */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture removeHealthCheckTargetPoolAsync( + public final OperationFuture removeHealthCheckTargetPoolAsync( ProjectRegionTargetPoolName targetPool, TargetPoolsRemoveHealthCheckRequest targetPoolsRemoveHealthCheckRequestResource) { @@ -1277,7 +1276,7 @@ public final OperationFuture removeHealthCheckTarget */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture removeHealthCheckTargetPoolAsync( + public final OperationFuture removeHealthCheckTargetPoolAsync( String targetPool, TargetPoolsRemoveHealthCheckRequest targetPoolsRemoveHealthCheckRequestResource) { @@ -1313,7 +1312,7 @@ public final OperationFuture removeHealthCheckTarget */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture removeHealthCheckTargetPoolAsync( + public final OperationFuture removeHealthCheckTargetPoolAsync( RemoveHealthCheckTargetPoolHttpRequest request) { return removeHealthCheckTargetPoolOperationCallable().futureCall(request); } @@ -1332,14 +1331,14 @@ public final OperationFuture removeHealthCheckTarget * .setTargetPool(targetPool.toString()) * .setTargetPoolsRemoveHealthCheckRequestResource(targetPoolsRemoveHealthCheckRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetPoolClient.removeHealthCheckTargetPoolOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetPoolClient.removeHealthCheckTargetPoolOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable removeHealthCheckTargetPoolOperationCallable() { return stub.removeHealthCheckTargetPoolOperationCallable(); } @@ -1390,7 +1389,7 @@ public final OperationFuture removeHealthCheckTarget */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture removeInstanceTargetPoolAsync( + public final OperationFuture removeInstanceTargetPoolAsync( ProjectRegionTargetPoolName targetPool, TargetPoolsRemoveInstanceRequest targetPoolsRemoveInstanceRequestResource) { @@ -1422,7 +1421,7 @@ public final OperationFuture removeInstanceTargetPoo */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture removeInstanceTargetPoolAsync( + public final OperationFuture removeInstanceTargetPoolAsync( String targetPool, TargetPoolsRemoveInstanceRequest targetPoolsRemoveInstanceRequestResource) { @@ -1457,7 +1456,7 @@ public final OperationFuture removeInstanceTargetPoo */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture removeInstanceTargetPoolAsync( + public final OperationFuture removeInstanceTargetPoolAsync( RemoveInstanceTargetPoolHttpRequest request) { return removeInstanceTargetPoolOperationCallable().futureCall(request); } @@ -1476,14 +1475,14 @@ public final OperationFuture removeInstanceTargetPoo * .setTargetPool(targetPool.toString()) * .setTargetPoolsRemoveInstanceRequestResource(targetPoolsRemoveInstanceRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetPoolClient.removeInstanceTargetPoolOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetPoolClient.removeInstanceTargetPoolOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable removeInstanceTargetPoolOperationCallable() { return stub.removeInstanceTargetPoolOperationCallable(); } @@ -1536,7 +1535,7 @@ public final OperationFuture removeInstanceTargetPoo */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setBackupTargetPoolAsync( + public final OperationFuture setBackupTargetPoolAsync( ProjectRegionTargetPoolName targetPool, Float failoverRatio, TargetReference targetReferenceResource) { @@ -1572,7 +1571,7 @@ public final OperationFuture setBackupTargetPoolAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setBackupTargetPoolAsync( + public final OperationFuture setBackupTargetPoolAsync( String targetPool, Float failoverRatio, TargetReference targetReferenceResource) { SetBackupTargetPoolHttpRequest request = @@ -1609,7 +1608,7 @@ public final OperationFuture setBackupTargetPoolAsyn */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setBackupTargetPoolAsync( + public final OperationFuture setBackupTargetPoolAsync( SetBackupTargetPoolHttpRequest request) { return setBackupTargetPoolOperationCallable().futureCall(request); } @@ -1630,14 +1629,14 @@ public final OperationFuture setBackupTargetPoolAsyn * .setFailoverRatio(failoverRatio) * .setTargetReferenceResource(targetReferenceResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetPoolClient.setBackupTargetPoolOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetPoolClient.setBackupTargetPoolOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable setBackupTargetPoolOperationCallable() { return stub.setBackupTargetPoolOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolSettings.java index da3b3966a06a..a5cda07953f7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetPoolSettings.java @@ -75,7 +75,7 @@ public class TargetPoolSettings extends ClientSettings { /** Returns the object with the settings used for calls to addHealthCheckTargetPool. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings addHealthCheckTargetPoolOperationSettings() { return ((TargetPoolStubSettings) getStubSettings()).addHealthCheckTargetPoolOperationSettings(); } @@ -89,7 +89,7 @@ public class TargetPoolSettings extends ClientSettings { /** Returns the object with the settings used for calls to addInstanceTargetPool. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings addInstanceTargetPoolOperationSettings() { return ((TargetPoolStubSettings) getStubSettings()).addInstanceTargetPoolOperationSettings(); } @@ -111,7 +111,7 @@ public UnaryCallSettings deleteTargetPoo /** Returns the object with the settings used for calls to deleteTargetPool. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteTargetPoolOperationSettings() { return ((TargetPoolStubSettings) getStubSettings()).deleteTargetPoolOperationSettings(); } @@ -135,7 +135,7 @@ public UnaryCallSettings insertTargetPoo /** Returns the object with the settings used for calls to insertTargetPool. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertTargetPoolOperationSettings() { return ((TargetPoolStubSettings) getStubSettings()).insertTargetPoolOperationSettings(); } @@ -155,7 +155,7 @@ public UnaryCallSettings insertTargetPoo /** Returns the object with the settings used for calls to removeHealthCheckTargetPool. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings removeHealthCheckTargetPoolOperationSettings() { return ((TargetPoolStubSettings) getStubSettings()) .removeHealthCheckTargetPoolOperationSettings(); @@ -170,7 +170,7 @@ public UnaryCallSettings insertTargetPoo /** Returns the object with the settings used for calls to removeInstanceTargetPool. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings removeInstanceTargetPoolOperationSettings() { return ((TargetPoolStubSettings) getStubSettings()).removeInstanceTargetPoolOperationSettings(); } @@ -184,7 +184,7 @@ public UnaryCallSettings insertTargetPoo /** Returns the object with the settings used for calls to setBackupTargetPool. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setBackupTargetPoolOperationSettings() { return ((TargetPoolStubSettings) getStubSettings()).setBackupTargetPoolOperationSettings(); } @@ -300,7 +300,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - AddHealthCheckTargetPoolHttpRequest, EmptyMessage, EmptyMessage> + AddHealthCheckTargetPoolHttpRequest, EmptyMessage, Operation> addHealthCheckTargetPoolOperationSettings() { return getStubSettingsBuilder().addHealthCheckTargetPoolOperationSettings(); } @@ -314,8 +314,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to addInstanceTargetPool. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - AddInstanceTargetPoolHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder addInstanceTargetPoolOperationSettings() { return getStubSettingsBuilder().addInstanceTargetPoolOperationSettings(); } @@ -338,7 +337,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteTargetPool. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteTargetPoolOperationSettings() { return getStubSettingsBuilder().deleteTargetPoolOperationSettings(); } @@ -363,7 +362,7 @@ public UnaryCallSettings.Builder getTarget /** Returns the builder for the settings used for calls to insertTargetPool. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertTargetPoolOperationSettings() { return getStubSettingsBuilder().insertTargetPoolOperationSettings(); } @@ -385,7 +384,7 @@ public UnaryCallSettings.Builder getTarget @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - RemoveHealthCheckTargetPoolHttpRequest, EmptyMessage, EmptyMessage> + RemoveHealthCheckTargetPoolHttpRequest, EmptyMessage, Operation> removeHealthCheckTargetPoolOperationSettings() { return getStubSettingsBuilder().removeHealthCheckTargetPoolOperationSettings(); } @@ -400,7 +399,7 @@ public UnaryCallSettings.Builder getTarget @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - RemoveInstanceTargetPoolHttpRequest, EmptyMessage, EmptyMessage> + RemoveInstanceTargetPoolHttpRequest, EmptyMessage, Operation> removeInstanceTargetPoolOperationSettings() { return getStubSettingsBuilder().removeInstanceTargetPoolOperationSettings(); } @@ -414,7 +413,7 @@ public UnaryCallSettings.Builder getTarget /** Returns the builder for the settings used for calls to setBackupTargetPool. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder setBackupTargetPoolOperationSettings() { return getStubSettingsBuilder().setBackupTargetPoolOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyClient.java index 01ec164d6471..d192911d81a2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxyClient.java @@ -186,7 +186,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteTargetSslProxyAsync( + public final OperationFuture deleteTargetSslProxyAsync( ProjectGlobalTargetSslProxyName targetSslProxy) { DeleteTargetSslProxyHttpRequest request = @@ -214,7 +214,7 @@ public final OperationFuture deleteTargetSslProxyAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteTargetSslProxyAsync( + public final OperationFuture deleteTargetSslProxyAsync( String targetSslProxy) { DeleteTargetSslProxyHttpRequest request = @@ -243,7 +243,7 @@ public final OperationFuture deleteTargetSslProxyAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteTargetSslProxyAsync( + public final OperationFuture deleteTargetSslProxyAsync( DeleteTargetSslProxyHttpRequest request) { return deleteTargetSslProxyOperationCallable().futureCall(request); } @@ -260,14 +260,14 @@ public final OperationFuture deleteTargetSslProxyAsy * DeleteTargetSslProxyHttpRequest request = DeleteTargetSslProxyHttpRequest.newBuilder() * .setTargetSslProxy(targetSslProxy.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetSslProxyClient.deleteTargetSslProxyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetSslProxyClient.deleteTargetSslProxyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteTargetSslProxyOperationCallable() { return stub.deleteTargetSslProxyOperationCallable(); } @@ -420,7 +420,7 @@ public final TargetSslProxy getTargetSslProxy(GetTargetSslProxyHttpRequest reque */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertTargetSslProxyAsync( + public final OperationFuture insertTargetSslProxyAsync( ProjectName project, TargetSslProxy targetSslProxyResource) { InsertTargetSslProxyHttpRequest request = @@ -453,7 +453,7 @@ public final OperationFuture insertTargetSslProxyAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertTargetSslProxyAsync( + public final OperationFuture insertTargetSslProxyAsync( String project, TargetSslProxy targetSslProxyResource) { InsertTargetSslProxyHttpRequest request = @@ -488,7 +488,7 @@ public final OperationFuture insertTargetSslProxyAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertTargetSslProxyAsync( + public final OperationFuture insertTargetSslProxyAsync( InsertTargetSslProxyHttpRequest request) { return insertTargetSslProxyOperationCallable().futureCall(request); } @@ -508,14 +508,14 @@ public final OperationFuture insertTargetSslProxyAsy * .setProject(project.toString()) * .setTargetSslProxyResource(targetSslProxyResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetSslProxyClient.insertTargetSslProxyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetSslProxyClient.insertTargetSslProxyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertTargetSslProxyOperationCallable() { return stub.insertTargetSslProxyOperationCallable(); } @@ -706,7 +706,7 @@ public final ListTargetSslProxiesPagedResponse listTargetSslProxies( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setBackendServiceTargetSslProxyAsync( + public final OperationFuture setBackendServiceTargetSslProxyAsync( ProjectGlobalTargetSslProxyName targetSslProxy, TargetSslProxiesSetBackendServiceRequest targetSslProxiesSetBackendServiceRequestResource) { @@ -740,7 +740,7 @@ public final OperationFuture setBackendServiceTarget */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setBackendServiceTargetSslProxyAsync( + public final OperationFuture setBackendServiceTargetSslProxyAsync( String targetSslProxy, TargetSslProxiesSetBackendServiceRequest targetSslProxiesSetBackendServiceRequestResource) { @@ -776,7 +776,7 @@ public final OperationFuture setBackendServiceTarget */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setBackendServiceTargetSslProxyAsync( + public final OperationFuture setBackendServiceTargetSslProxyAsync( SetBackendServiceTargetSslProxyHttpRequest request) { return setBackendServiceTargetSslProxyOperationCallable().futureCall(request); } @@ -795,7 +795,7 @@ public final OperationFuture setBackendServiceTarget * .setTargetSslProxy(targetSslProxy.toString()) * .setTargetSslProxiesSetBackendServiceRequestResource(targetSslProxiesSetBackendServiceRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetSslProxyClient.setBackendServiceTargetSslProxyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetSslProxyClient.setBackendServiceTargetSslProxyOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -803,7 +803,7 @@ public final OperationFuture setBackendServiceTarget */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - SetBackendServiceTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + SetBackendServiceTargetSslProxyHttpRequest, EmptyMessage, Operation> setBackendServiceTargetSslProxyOperationCallable() { return stub.setBackendServiceTargetSslProxyOperationCallable(); } @@ -854,7 +854,7 @@ public final OperationFuture setBackendServiceTarget */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setProxyHeaderTargetSslProxyAsync( + public final OperationFuture setProxyHeaderTargetSslProxyAsync( ProjectGlobalTargetSslProxyName targetSslProxy, TargetSslProxiesSetProxyHeaderRequest targetSslProxiesSetProxyHeaderRequestResource) { @@ -887,7 +887,7 @@ public final OperationFuture setProxyHeaderTargetSsl */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setProxyHeaderTargetSslProxyAsync( + public final OperationFuture setProxyHeaderTargetSslProxyAsync( String targetSslProxy, TargetSslProxiesSetProxyHeaderRequest targetSslProxiesSetProxyHeaderRequestResource) { @@ -923,7 +923,7 @@ public final OperationFuture setProxyHeaderTargetSsl */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setProxyHeaderTargetSslProxyAsync( + public final OperationFuture setProxyHeaderTargetSslProxyAsync( SetProxyHeaderTargetSslProxyHttpRequest request) { return setProxyHeaderTargetSslProxyOperationCallable().futureCall(request); } @@ -942,15 +942,14 @@ public final OperationFuture setProxyHeaderTargetSsl * .setTargetSslProxy(targetSslProxy.toString()) * .setTargetSslProxiesSetProxyHeaderRequestResource(targetSslProxiesSetProxyHeaderRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetSslProxyClient.setProxyHeaderTargetSslProxyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetSslProxyClient.setProxyHeaderTargetSslProxyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - SetProxyHeaderTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + public final OperationCallable setProxyHeaderTargetSslProxyOperationCallable() { return stub.setProxyHeaderTargetSslProxyOperationCallable(); } @@ -1002,7 +1001,7 @@ public final OperationFuture setProxyHeaderTargetSsl */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setSslCertificatesTargetSslProxyAsync( + public final OperationFuture setSslCertificatesTargetSslProxyAsync( ProjectGlobalTargetSslProxyName targetSslProxy, TargetSslProxiesSetSslCertificatesRequest targetSslProxiesSetSslCertificatesRequestResource) { @@ -1036,7 +1035,7 @@ public final OperationFuture setSslCertificatesTarge */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setSslCertificatesTargetSslProxyAsync( + public final OperationFuture setSslCertificatesTargetSslProxyAsync( String targetSslProxy, TargetSslProxiesSetSslCertificatesRequest targetSslProxiesSetSslCertificatesRequestResource) { @@ -1072,7 +1071,7 @@ public final OperationFuture setSslCertificatesTarge */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setSslCertificatesTargetSslProxyAsync( + public final OperationFuture setSslCertificatesTargetSslProxyAsync( SetSslCertificatesTargetSslProxyHttpRequest request) { return setSslCertificatesTargetSslProxyOperationCallable().futureCall(request); } @@ -1091,7 +1090,7 @@ public final OperationFuture setSslCertificatesTarge * .setTargetSslProxy(targetSslProxy.toString()) * .setTargetSslProxiesSetSslCertificatesRequestResource(targetSslProxiesSetSslCertificatesRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetSslProxyClient.setSslCertificatesTargetSslProxyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetSslProxyClient.setSslCertificatesTargetSslProxyOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -1099,7 +1098,7 @@ public final OperationFuture setSslCertificatesTarge */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - SetSslCertificatesTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + SetSslCertificatesTargetSslProxyHttpRequest, EmptyMessage, Operation> setSslCertificatesTargetSslProxyOperationCallable() { return stub.setSslCertificatesTargetSslProxyOperationCallable(); } @@ -1153,7 +1152,7 @@ public final OperationFuture setSslCertificatesTarge */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setSslPolicyTargetSslProxyAsync( + public final OperationFuture setSslPolicyTargetSslProxyAsync( ProjectGlobalTargetSslProxyName targetSslProxy, SslPolicyReference sslPolicyReferenceResource) { @@ -1188,7 +1187,7 @@ public final OperationFuture setSslPolicyTargetSslPr */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setSslPolicyTargetSslProxyAsync( + public final OperationFuture setSslPolicyTargetSslProxyAsync( String targetSslProxy, SslPolicyReference sslPolicyReferenceResource) { SetSslPolicyTargetSslProxyHttpRequest request = @@ -1224,7 +1223,7 @@ public final OperationFuture setSslPolicyTargetSslPr */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setSslPolicyTargetSslProxyAsync( + public final OperationFuture setSslPolicyTargetSslProxyAsync( SetSslPolicyTargetSslProxyHttpRequest request) { return setSslPolicyTargetSslProxyOperationCallable().futureCall(request); } @@ -1245,14 +1244,14 @@ public final OperationFuture setSslPolicyTargetSslPr * .setTargetSslProxy(targetSslProxy.toString()) * .setSslPolicyReferenceResource(sslPolicyReferenceResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetSslProxyClient.setSslPolicyTargetSslProxyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetSslProxyClient.setSslPolicyTargetSslProxyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable setSslPolicyTargetSslProxyOperationCallable() { return stub.setSslPolicyTargetSslProxyOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxySettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxySettings.java index 432f6b0e10a1..e5fd090b3e5d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxySettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetSslProxySettings.java @@ -74,7 +74,7 @@ public class TargetSslProxySettings extends ClientSettings + public OperationCallSettings deleteTargetSslProxyOperationSettings() { return ((TargetSslProxyStubSettings) getStubSettings()).deleteTargetSslProxyOperationSettings(); } @@ -94,7 +94,7 @@ public class TargetSslProxySettings extends ClientSettings + public OperationCallSettings insertTargetSslProxyOperationSettings() { return ((TargetSslProxyStubSettings) getStubSettings()).insertTargetSslProxyOperationSettings(); } @@ -116,8 +116,7 @@ public class TargetSslProxySettings extends ClientSettings + public OperationCallSettings setBackendServiceTargetSslProxyOperationSettings() { return ((TargetSslProxyStubSettings) getStubSettings()) .setBackendServiceTargetSslProxyOperationSettings(); @@ -132,7 +131,7 @@ public class TargetSslProxySettings extends ClientSettings + public OperationCallSettings setProxyHeaderTargetSslProxyOperationSettings() { return ((TargetSslProxyStubSettings) getStubSettings()) .setProxyHeaderTargetSslProxyOperationSettings(); @@ -148,8 +147,7 @@ public class TargetSslProxySettings extends ClientSettings + public OperationCallSettings setSslCertificatesTargetSslProxyOperationSettings() { return ((TargetSslProxyStubSettings) getStubSettings()) .setSslCertificatesTargetSslProxyOperationSettings(); @@ -164,7 +162,7 @@ public class TargetSslProxySettings extends ClientSettings + public OperationCallSettings setSslPolicyTargetSslProxyOperationSettings() { return ((TargetSslProxyStubSettings) getStubSettings()) .setSslPolicyTargetSslProxyOperationSettings(); @@ -281,8 +279,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteTargetSslProxy. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteTargetSslProxyOperationSettings() { return getStubSettingsBuilder().deleteTargetSslProxyOperationSettings(); } @@ -302,8 +299,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertTargetSslProxy. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertTargetSslProxyOperationSettings() { return getStubSettingsBuilder().insertTargetSslProxyOperationSettings(); } @@ -325,7 +321,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetBackendServiceTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + SetBackendServiceTargetSslProxyHttpRequest, EmptyMessage, Operation> setBackendServiceTargetSslProxyOperationSettings() { return getStubSettingsBuilder().setBackendServiceTargetSslProxyOperationSettings(); } @@ -340,7 +336,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetProxyHeaderTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + SetProxyHeaderTargetSslProxyHttpRequest, EmptyMessage, Operation> setProxyHeaderTargetSslProxyOperationSettings() { return getStubSettingsBuilder().setProxyHeaderTargetSslProxyOperationSettings(); } @@ -355,7 +351,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetSslCertificatesTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + SetSslCertificatesTargetSslProxyHttpRequest, EmptyMessage, Operation> setSslCertificatesTargetSslProxyOperationSettings() { return getStubSettingsBuilder().setSslCertificatesTargetSslProxyOperationSettings(); } @@ -370,7 +366,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetSslPolicyTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + SetSslPolicyTargetSslProxyHttpRequest, EmptyMessage, Operation> setSslPolicyTargetSslProxyOperationSettings() { return getStubSettingsBuilder().setSslPolicyTargetSslProxyOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyClient.java index 85e9c0c4fa9e..b86ad9412fce 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxyClient.java @@ -186,7 +186,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteTargetTcpProxyAsync( + public final OperationFuture deleteTargetTcpProxyAsync( ProjectGlobalTargetTcpProxyName targetTcpProxy) { DeleteTargetTcpProxyHttpRequest request = @@ -214,7 +214,7 @@ public final OperationFuture deleteTargetTcpProxyAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteTargetTcpProxyAsync( + public final OperationFuture deleteTargetTcpProxyAsync( String targetTcpProxy) { DeleteTargetTcpProxyHttpRequest request = @@ -243,7 +243,7 @@ public final OperationFuture deleteTargetTcpProxyAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteTargetTcpProxyAsync( + public final OperationFuture deleteTargetTcpProxyAsync( DeleteTargetTcpProxyHttpRequest request) { return deleteTargetTcpProxyOperationCallable().futureCall(request); } @@ -260,14 +260,14 @@ public final OperationFuture deleteTargetTcpProxyAsy * DeleteTargetTcpProxyHttpRequest request = DeleteTargetTcpProxyHttpRequest.newBuilder() * .setTargetTcpProxy(targetTcpProxy.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetTcpProxyClient.deleteTargetTcpProxyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetTcpProxyClient.deleteTargetTcpProxyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteTargetTcpProxyOperationCallable() { return stub.deleteTargetTcpProxyOperationCallable(); } @@ -420,7 +420,7 @@ public final TargetTcpProxy getTargetTcpProxy(GetTargetTcpProxyHttpRequest reque */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertTargetTcpProxyAsync( + public final OperationFuture insertTargetTcpProxyAsync( ProjectName project, TargetTcpProxy targetTcpProxyResource) { InsertTargetTcpProxyHttpRequest request = @@ -453,7 +453,7 @@ public final OperationFuture insertTargetTcpProxyAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertTargetTcpProxyAsync( + public final OperationFuture insertTargetTcpProxyAsync( String project, TargetTcpProxy targetTcpProxyResource) { InsertTargetTcpProxyHttpRequest request = @@ -488,7 +488,7 @@ public final OperationFuture insertTargetTcpProxyAsy */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertTargetTcpProxyAsync( + public final OperationFuture insertTargetTcpProxyAsync( InsertTargetTcpProxyHttpRequest request) { return insertTargetTcpProxyOperationCallable().futureCall(request); } @@ -508,14 +508,14 @@ public final OperationFuture insertTargetTcpProxyAsy * .setProject(project.toString()) * .setTargetTcpProxyResource(targetTcpProxyResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetTcpProxyClient.insertTargetTcpProxyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetTcpProxyClient.insertTargetTcpProxyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertTargetTcpProxyOperationCallable() { return stub.insertTargetTcpProxyOperationCallable(); } @@ -706,7 +706,7 @@ public final ListTargetTcpProxiesPagedResponse listTargetTcpProxies( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setBackendServiceTargetTcpProxyAsync( + public final OperationFuture setBackendServiceTargetTcpProxyAsync( ProjectGlobalTargetTcpProxyName targetTcpProxy, TargetTcpProxiesSetBackendServiceRequest targetTcpProxiesSetBackendServiceRequestResource) { @@ -740,7 +740,7 @@ public final OperationFuture setBackendServiceTarget */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setBackendServiceTargetTcpProxyAsync( + public final OperationFuture setBackendServiceTargetTcpProxyAsync( String targetTcpProxy, TargetTcpProxiesSetBackendServiceRequest targetTcpProxiesSetBackendServiceRequestResource) { @@ -776,7 +776,7 @@ public final OperationFuture setBackendServiceTarget */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setBackendServiceTargetTcpProxyAsync( + public final OperationFuture setBackendServiceTargetTcpProxyAsync( SetBackendServiceTargetTcpProxyHttpRequest request) { return setBackendServiceTargetTcpProxyOperationCallable().futureCall(request); } @@ -795,7 +795,7 @@ public final OperationFuture setBackendServiceTarget * .setTargetTcpProxy(targetTcpProxy.toString()) * .setTargetTcpProxiesSetBackendServiceRequestResource(targetTcpProxiesSetBackendServiceRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetTcpProxyClient.setBackendServiceTargetTcpProxyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetTcpProxyClient.setBackendServiceTargetTcpProxyOperationCallable().futureCall(request); * // Do something * future.get(); * } @@ -803,7 +803,7 @@ public final OperationFuture setBackendServiceTarget */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public final OperationCallable< - SetBackendServiceTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage> + SetBackendServiceTargetTcpProxyHttpRequest, EmptyMessage, Operation> setBackendServiceTargetTcpProxyOperationCallable() { return stub.setBackendServiceTargetTcpProxyOperationCallable(); } @@ -854,7 +854,7 @@ public final OperationFuture setBackendServiceTarget */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setProxyHeaderTargetTcpProxyAsync( + public final OperationFuture setProxyHeaderTargetTcpProxyAsync( ProjectGlobalTargetTcpProxyName targetTcpProxy, TargetTcpProxiesSetProxyHeaderRequest targetTcpProxiesSetProxyHeaderRequestResource) { @@ -887,7 +887,7 @@ public final OperationFuture setProxyHeaderTargetTcp */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setProxyHeaderTargetTcpProxyAsync( + public final OperationFuture setProxyHeaderTargetTcpProxyAsync( String targetTcpProxy, TargetTcpProxiesSetProxyHeaderRequest targetTcpProxiesSetProxyHeaderRequestResource) { @@ -923,7 +923,7 @@ public final OperationFuture setProxyHeaderTargetTcp */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture setProxyHeaderTargetTcpProxyAsync( + public final OperationFuture setProxyHeaderTargetTcpProxyAsync( SetProxyHeaderTargetTcpProxyHttpRequest request) { return setProxyHeaderTargetTcpProxyOperationCallable().futureCall(request); } @@ -942,15 +942,14 @@ public final OperationFuture setProxyHeaderTargetTcp * .setTargetTcpProxy(targetTcpProxy.toString()) * .setTargetTcpProxiesSetProxyHeaderRequestResource(targetTcpProxiesSetProxyHeaderRequestResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetTcpProxyClient.setProxyHeaderTargetTcpProxyOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetTcpProxyClient.setProxyHeaderTargetTcpProxyOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable< - SetProxyHeaderTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage> + public final OperationCallable setProxyHeaderTargetTcpProxyOperationCallable() { return stub.setProxyHeaderTargetTcpProxyOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxySettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxySettings.java index 994d3b3c87f6..db203f6df2b3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxySettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetTcpProxySettings.java @@ -74,7 +74,7 @@ public class TargetTcpProxySettings extends ClientSettings + public OperationCallSettings deleteTargetTcpProxyOperationSettings() { return ((TargetTcpProxyStubSettings) getStubSettings()).deleteTargetTcpProxyOperationSettings(); } @@ -94,7 +94,7 @@ public class TargetTcpProxySettings extends ClientSettings + public OperationCallSettings insertTargetTcpProxyOperationSettings() { return ((TargetTcpProxyStubSettings) getStubSettings()).insertTargetTcpProxyOperationSettings(); } @@ -116,8 +116,7 @@ public class TargetTcpProxySettings extends ClientSettings + public OperationCallSettings setBackendServiceTargetTcpProxyOperationSettings() { return ((TargetTcpProxyStubSettings) getStubSettings()) .setBackendServiceTargetTcpProxyOperationSettings(); @@ -132,7 +131,7 @@ public class TargetTcpProxySettings extends ClientSettings + public OperationCallSettings setProxyHeaderTargetTcpProxyOperationSettings() { return ((TargetTcpProxyStubSettings) getStubSettings()) .setProxyHeaderTargetTcpProxyOperationSettings(); @@ -249,8 +248,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteTargetTcpProxy. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteTargetTcpProxyOperationSettings() { return getStubSettingsBuilder().deleteTargetTcpProxyOperationSettings(); } @@ -270,8 +268,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertTargetTcpProxy. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertTargetTcpProxyOperationSettings() { return getStubSettingsBuilder().insertTargetTcpProxyOperationSettings(); } @@ -293,7 +290,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetBackendServiceTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage> + SetBackendServiceTargetTcpProxyHttpRequest, EmptyMessage, Operation> setBackendServiceTargetTcpProxyOperationSettings() { return getStubSettingsBuilder().setBackendServiceTargetTcpProxyOperationSettings(); } @@ -308,7 +305,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetProxyHeaderTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage> + SetProxyHeaderTargetTcpProxyHttpRequest, EmptyMessage, Operation> setProxyHeaderTargetTcpProxyOperationSettings() { return getStubSettingsBuilder().setProxyHeaderTargetTcpProxyOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayClient.java index 72a1f512f476..59f5588ed36e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewayClient.java @@ -329,7 +329,7 @@ public final AggregatedListTargetVpnGatewaysPagedResponse aggregatedListTargetVp */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteTargetVpnGatewayAsync( + public final OperationFuture deleteTargetVpnGatewayAsync( ProjectRegionTargetVpnGatewayName targetVpnGateway) { DeleteTargetVpnGatewayHttpRequest request = @@ -357,7 +357,7 @@ public final OperationFuture deleteTargetVpnGatewayA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteTargetVpnGatewayAsync( + public final OperationFuture deleteTargetVpnGatewayAsync( String targetVpnGateway) { DeleteTargetVpnGatewayHttpRequest request = @@ -388,7 +388,7 @@ public final OperationFuture deleteTargetVpnGatewayA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteTargetVpnGatewayAsync( + public final OperationFuture deleteTargetVpnGatewayAsync( DeleteTargetVpnGatewayHttpRequest request) { return deleteTargetVpnGatewayOperationCallable().futureCall(request); } @@ -405,14 +405,14 @@ public final OperationFuture deleteTargetVpnGatewayA * DeleteTargetVpnGatewayHttpRequest request = DeleteTargetVpnGatewayHttpRequest.newBuilder() * .setTargetVpnGateway(targetVpnGateway.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetVpnGatewayClient.deleteTargetVpnGatewayOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetVpnGatewayClient.deleteTargetVpnGatewayOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteTargetVpnGatewayOperationCallable() { return stub.deleteTargetVpnGatewayOperationCallable(); } @@ -566,7 +566,7 @@ public final TargetVpnGateway getTargetVpnGateway(GetTargetVpnGatewayHttpRequest */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertTargetVpnGatewayAsync( + public final OperationFuture insertTargetVpnGatewayAsync( ProjectRegionName region, TargetVpnGateway targetVpnGatewayResource) { InsertTargetVpnGatewayHttpRequest request = @@ -599,7 +599,7 @@ public final OperationFuture insertTargetVpnGatewayA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertTargetVpnGatewayAsync( + public final OperationFuture insertTargetVpnGatewayAsync( String region, TargetVpnGateway targetVpnGatewayResource) { InsertTargetVpnGatewayHttpRequest request = @@ -634,7 +634,7 @@ public final OperationFuture insertTargetVpnGatewayA */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertTargetVpnGatewayAsync( + public final OperationFuture insertTargetVpnGatewayAsync( InsertTargetVpnGatewayHttpRequest request) { return insertTargetVpnGatewayOperationCallable().futureCall(request); } @@ -654,14 +654,14 @@ public final OperationFuture insertTargetVpnGatewayA * .setRegion(region.toString()) * .setTargetVpnGatewayResource(targetVpnGatewayResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = targetVpnGatewayClient.insertTargetVpnGatewayOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = targetVpnGatewayClient.insertTargetVpnGatewayOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertTargetVpnGatewayOperationCallable() { return stub.insertTargetVpnGatewayOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaySettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaySettings.java index dd186e7808c9..cc29f85e0c2d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaySettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/TargetVpnGatewaySettings.java @@ -85,7 +85,7 @@ public class TargetVpnGatewaySettings extends ClientSettings + public OperationCallSettings deleteTargetVpnGatewayOperationSettings() { return ((TargetVpnGatewayStubSettings) getStubSettings()) .deleteTargetVpnGatewayOperationSettings(); @@ -106,7 +106,7 @@ public class TargetVpnGatewaySettings extends ClientSettings + public OperationCallSettings insertTargetVpnGatewayOperationSettings() { return ((TargetVpnGatewayStubSettings) getStubSettings()) .insertTargetVpnGatewayOperationSettings(); @@ -241,8 +241,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteTargetVpnGateway. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteTargetVpnGatewayHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteTargetVpnGatewayOperationSettings() { return getStubSettingsBuilder().deleteTargetVpnGatewayOperationSettings(); } @@ -262,8 +261,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertTargetVpnGateway. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertTargetVpnGatewayHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertTargetVpnGatewayOperationSettings() { return getStubSettingsBuilder().insertTargetVpnGatewayOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapClient.java index 7a1e112bad30..67a6295b4a14 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapClient.java @@ -184,7 +184,7 @@ public final GlobalOperationClient getOperationsClient() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteUrlMapAsync( + public final OperationFuture deleteUrlMapAsync( ProjectGlobalUrlMapName urlMap) { DeleteUrlMapHttpRequest request = @@ -212,7 +212,7 @@ public final OperationFuture deleteUrlMapAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteUrlMapAsync(String urlMap) { + public final OperationFuture deleteUrlMapAsync(String urlMap) { DeleteUrlMapHttpRequest request = DeleteUrlMapHttpRequest.newBuilder().setUrlMap(urlMap).build(); @@ -240,7 +240,7 @@ public final OperationFuture deleteUrlMapAsync(Strin */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteUrlMapAsync( + public final OperationFuture deleteUrlMapAsync( DeleteUrlMapHttpRequest request) { return deleteUrlMapOperationCallable().futureCall(request); } @@ -257,14 +257,14 @@ public final OperationFuture deleteUrlMapAsync( * DeleteUrlMapHttpRequest request = DeleteUrlMapHttpRequest.newBuilder() * .setUrlMap(urlMap.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = urlMapClient.deleteUrlMapOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = urlMapClient.deleteUrlMapOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteUrlMapOperationCallable() { return stub.deleteUrlMapOperationCallable(); } @@ -413,7 +413,7 @@ public final UnaryCallable getUrlMapCallable() { */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertUrlMapAsync( + public final OperationFuture insertUrlMapAsync( ProjectName project, UrlMap urlMapResource) { InsertUrlMapHttpRequest request = @@ -445,7 +445,7 @@ public final OperationFuture insertUrlMapAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertUrlMapAsync( + public final OperationFuture insertUrlMapAsync( String project, UrlMap urlMapResource) { InsertUrlMapHttpRequest request = @@ -479,7 +479,7 @@ public final OperationFuture insertUrlMapAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertUrlMapAsync( + public final OperationFuture insertUrlMapAsync( InsertUrlMapHttpRequest request) { return insertUrlMapOperationCallable().futureCall(request); } @@ -498,14 +498,14 @@ public final OperationFuture insertUrlMapAsync( * .setProject(project.toString()) * .setUrlMapResource(urlMapResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = urlMapClient.insertUrlMapOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = urlMapClient.insertUrlMapOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertUrlMapOperationCallable() { return stub.insertUrlMapOperationCallable(); } @@ -556,7 +556,7 @@ public final UnaryCallable insertUrlMapCalla */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture invalidateCacheUrlMapAsync( + public final OperationFuture invalidateCacheUrlMapAsync( ProjectGlobalUrlMapName urlMap, CacheInvalidationRule cacheInvalidationRuleResource) { InvalidateCacheUrlMapHttpRequest request = @@ -588,7 +588,7 @@ public final OperationFuture invalidateCacheUrlMapAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture invalidateCacheUrlMapAsync( + public final OperationFuture invalidateCacheUrlMapAsync( String urlMap, CacheInvalidationRule cacheInvalidationRuleResource) { InvalidateCacheUrlMapHttpRequest request = @@ -623,7 +623,7 @@ public final OperationFuture invalidateCacheUrlMapAs */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture invalidateCacheUrlMapAsync( + public final OperationFuture invalidateCacheUrlMapAsync( InvalidateCacheUrlMapHttpRequest request) { return invalidateCacheUrlMapOperationCallable().futureCall(request); } @@ -643,14 +643,14 @@ public final OperationFuture invalidateCacheUrlMapAs * .setUrlMap(urlMap.toString()) * .setCacheInvalidationRuleResource(cacheInvalidationRuleResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = urlMapClient.invalidateCacheUrlMapOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = urlMapClient.invalidateCacheUrlMapOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable invalidateCacheUrlMapOperationCallable() { return stub.invalidateCacheUrlMapOperationCallable(); } @@ -845,7 +845,7 @@ public final UnaryCallable listUrlMapsCallab */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchUrlMapAsync( + public final OperationFuture patchUrlMapAsync( ProjectGlobalUrlMapName urlMap, UrlMap urlMapResource, List fieldMask) { PatchUrlMapHttpRequest request = @@ -884,7 +884,7 @@ public final OperationFuture patchUrlMapAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchUrlMapAsync( + public final OperationFuture patchUrlMapAsync( String urlMap, UrlMap urlMapResource, List fieldMask) { PatchUrlMapHttpRequest request = @@ -922,7 +922,7 @@ public final OperationFuture patchUrlMapAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture patchUrlMapAsync( + public final OperationFuture patchUrlMapAsync( PatchUrlMapHttpRequest request) { return patchUrlMapOperationCallable().futureCall(request); } @@ -944,14 +944,14 @@ public final OperationFuture patchUrlMapAsync( * .setUrlMapResource(urlMapResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = urlMapClient.patchUrlMapOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = urlMapClient.patchUrlMapOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable patchUrlMapOperationCallable() { return stub.patchUrlMapOperationCallable(); } @@ -1010,7 +1010,7 @@ public final UnaryCallable patchUrlMapCallabl */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateUrlMapAsync( + public final OperationFuture updateUrlMapAsync( ProjectGlobalUrlMapName urlMap, UrlMap urlMapResource, List fieldMask) { UpdateUrlMapHttpRequest request = @@ -1048,7 +1048,7 @@ public final OperationFuture updateUrlMapAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateUrlMapAsync( + public final OperationFuture updateUrlMapAsync( String urlMap, UrlMap urlMapResource, List fieldMask) { UpdateUrlMapHttpRequest request = @@ -1085,7 +1085,7 @@ public final OperationFuture updateUrlMapAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture updateUrlMapAsync( + public final OperationFuture updateUrlMapAsync( UpdateUrlMapHttpRequest request) { return updateUrlMapOperationCallable().futureCall(request); } @@ -1106,14 +1106,14 @@ public final OperationFuture updateUrlMapAsync( * .setUrlMapResource(urlMapResource) * .addAllFieldMask(fieldMask) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = urlMapClient.updateUrlMapOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = urlMapClient.updateUrlMapOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable updateUrlMapOperationCallable() { return stub.updateUrlMapOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapSettings.java index 8cb9f2747150..ab5e436e705b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/UrlMapSettings.java @@ -73,7 +73,7 @@ public UnaryCallSettings deleteUrlMapSetting /** Returns the object with the settings used for calls to deleteUrlMap. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteUrlMapOperationSettings() { return ((UrlMapStubSettings) getStubSettings()).deleteUrlMapOperationSettings(); } @@ -91,7 +91,7 @@ public UnaryCallSettings insertUrlMapSetting /** Returns the object with the settings used for calls to insertUrlMap. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertUrlMapOperationSettings() { return ((UrlMapStubSettings) getStubSettings()).insertUrlMapOperationSettings(); } @@ -105,7 +105,7 @@ public UnaryCallSettings insertUrlMapSetting /** Returns the object with the settings used for calls to invalidateCacheUrlMap. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings invalidateCacheUrlMapOperationSettings() { return ((UrlMapStubSettings) getStubSettings()).invalidateCacheUrlMapOperationSettings(); } @@ -124,7 +124,7 @@ public UnaryCallSettings patchUrlMapSettings( /** Returns the object with the settings used for calls to patchUrlMap. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchUrlMapOperationSettings() { return ((UrlMapStubSettings) getStubSettings()).patchUrlMapOperationSettings(); } @@ -137,7 +137,7 @@ public UnaryCallSettings updateUrlMapSetting /** Returns the object with the settings used for calls to updateUrlMap. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings updateUrlMapOperationSettings() { return ((UrlMapStubSettings) getStubSettings()).updateUrlMapOperationSettings(); } @@ -257,7 +257,7 @@ public UnaryCallSettings.Builder deleteUrlMa /** Returns the builder for the settings used for calls to deleteUrlMap. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteUrlMapOperationSettings() { return getStubSettingsBuilder().deleteUrlMapOperationSettings(); } @@ -275,7 +275,7 @@ public UnaryCallSettings.Builder insertUrlMa /** Returns the builder for the settings used for calls to insertUrlMap. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertUrlMapOperationSettings() { return getStubSettingsBuilder().insertUrlMapOperationSettings(); } @@ -289,8 +289,7 @@ public UnaryCallSettings.Builder insertUrlMa /** Returns the builder for the settings used for calls to invalidateCacheUrlMap. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InvalidateCacheUrlMapHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder invalidateCacheUrlMapOperationSettings() { return getStubSettingsBuilder().invalidateCacheUrlMapOperationSettings(); } @@ -309,7 +308,7 @@ public UnaryCallSettings.Builder patchUrlMapS /** Returns the builder for the settings used for calls to patchUrlMap. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchUrlMapOperationSettings() { return getStubSettingsBuilder().patchUrlMapOperationSettings(); } @@ -322,7 +321,7 @@ public UnaryCallSettings.Builder updateUrlMa /** Returns the builder for the settings used for calls to updateUrlMap. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder updateUrlMapOperationSettings() { return getStubSettingsBuilder().updateUrlMapOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelClient.java index 7eed794fdb18..3100343f9e9c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelClient.java @@ -323,7 +323,7 @@ public final AggregatedListVpnTunnelsPagedResponse aggregatedListVpnTunnels( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteVpnTunnelAsync( + public final OperationFuture deleteVpnTunnelAsync( ProjectRegionVpnTunnelName vpnTunnel) { DeleteVpnTunnelHttpRequest request = @@ -351,7 +351,7 @@ public final OperationFuture deleteVpnTunnelAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteVpnTunnelAsync(String vpnTunnel) { + public final OperationFuture deleteVpnTunnelAsync(String vpnTunnel) { DeleteVpnTunnelHttpRequest request = DeleteVpnTunnelHttpRequest.newBuilder().setVpnTunnel(vpnTunnel).build(); @@ -379,7 +379,7 @@ public final OperationFuture deleteVpnTunnelAsync(St */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture deleteVpnTunnelAsync( + public final OperationFuture deleteVpnTunnelAsync( DeleteVpnTunnelHttpRequest request) { return deleteVpnTunnelOperationCallable().futureCall(request); } @@ -396,14 +396,14 @@ public final OperationFuture deleteVpnTunnelAsync( * DeleteVpnTunnelHttpRequest request = DeleteVpnTunnelHttpRequest.newBuilder() * .setVpnTunnel(vpnTunnel.toString()) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = vpnTunnelClient.deleteVpnTunnelOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = vpnTunnelClient.deleteVpnTunnelOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable deleteVpnTunnelOperationCallable() { return stub.deleteVpnTunnelOperationCallable(); } @@ -554,7 +554,7 @@ public final UnaryCallable getVpnTunnelCalla */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertVpnTunnelAsync( + public final OperationFuture insertVpnTunnelAsync( ProjectRegionName region, VpnTunnel vpnTunnelResource) { InsertVpnTunnelHttpRequest request = @@ -587,7 +587,7 @@ public final OperationFuture insertVpnTunnelAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertVpnTunnelAsync( + public final OperationFuture insertVpnTunnelAsync( String region, VpnTunnel vpnTunnelResource) { InsertVpnTunnelHttpRequest request = @@ -622,7 +622,7 @@ public final OperationFuture insertVpnTunnelAsync( */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public final OperationFuture insertVpnTunnelAsync( + public final OperationFuture insertVpnTunnelAsync( InsertVpnTunnelHttpRequest request) { return insertVpnTunnelOperationCallable().futureCall(request); } @@ -642,14 +642,14 @@ public final OperationFuture insertVpnTunnelAsync( * .setRegion(region.toString()) * .setVpnTunnelResource(vpnTunnelResource) * .build(); - * OperationFuture<EmptyMessage, EmptyMessage> future = vpnTunnelClient.insertVpnTunnelOperationCallable().futureCall(request); + * OperationFuture<EmptyMessage, Operation> future = vpnTunnelClient.insertVpnTunnelOperationCallable().futureCall(request); * // Do something * future.get(); * } * */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public final OperationCallable + public final OperationCallable insertVpnTunnelOperationCallable() { return stub.insertVpnTunnelOperationCallable(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelSettings.java index c1eede7157da..615625994c6c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/VpnTunnelSettings.java @@ -83,7 +83,7 @@ public UnaryCallSettings deleteVpnTunnelS /** Returns the object with the settings used for calls to deleteVpnTunnel. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteVpnTunnelOperationSettings() { return ((VpnTunnelStubSettings) getStubSettings()).deleteVpnTunnelOperationSettings(); } @@ -101,7 +101,7 @@ public UnaryCallSettings insertVpnTunnelS /** Returns the object with the settings used for calls to insertVpnTunnel. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertVpnTunnelOperationSettings() { return ((VpnTunnelStubSettings) getStubSettings()).insertVpnTunnelOperationSettings(); } @@ -231,7 +231,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteVpnTunnel. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteVpnTunnelOperationSettings() { return getStubSettingsBuilder().deleteVpnTunnelOperationSettings(); } @@ -250,7 +250,7 @@ public UnaryCallSettings.Builder getVpnTunne /** Returns the builder for the settings used for calls to insertVpnTunnel. */ @BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertVpnTunnelOperationSettings() { return getStubSettingsBuilder().insertVpnTunnelOperationSettings(); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStub.java index f9122cdb44dd..49497f163e7c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStub.java @@ -63,7 +63,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteAddressOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteAddressOperationCallable()"); } @@ -79,7 +79,7 @@ public UnaryCallable getAddressCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertAddressOperationCallable() { throw new UnsupportedOperationException("Not implemented: insertAddressOperationCallable()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStubSettings.java index 479655ff5d0d..898e9ff4aa2f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AddressStubSettings.java @@ -111,11 +111,11 @@ public class AddressStubSettings extends StubSettings { AggregatedListAddressesPagedResponse> aggregatedListAddressesSettings; private final UnaryCallSettings deleteAddressSettings; - private final OperationCallSettings + private final OperationCallSettings deleteAddressOperationSettings; private final UnaryCallSettings getAddressSettings; private final UnaryCallSettings insertAddressSettings; - private final OperationCallSettings + private final OperationCallSettings insertAddressOperationSettings; private final PagedCallSettings listAddressesSettings; @@ -136,7 +136,7 @@ public UnaryCallSettings deleteAddressSetti /** Returns the object with the settings used for calls to deleteAddress. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteAddressOperationSettings() { return deleteAddressOperationSettings; } @@ -153,7 +153,7 @@ public UnaryCallSettings insertAddressSetti /** Returns the object with the settings used for calls to insertAddress. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertAddressOperationSettings() { return insertAddressOperationSettings; } @@ -383,14 +383,12 @@ public static class Builder extends StubSettings.Builder deleteAddressSettings; - private final OperationCallSettings.Builder< - DeleteAddressHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder deleteAddressOperationSettings; private final UnaryCallSettings.Builder getAddressSettings; private final UnaryCallSettings.Builder insertAddressSettings; - private final OperationCallSettings.Builder< - InsertAddressHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder insertAddressOperationSettings; private final PagedCallSettings.Builder< ListAddressesHttpRequest, AddressList, ListAddressesPagedResponse> @@ -506,8 +504,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -527,8 +525,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -597,7 +595,7 @@ public UnaryCallSettings.Builder deleteAddr /** Returns the builder for the settings used for calls to deleteAddress. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteAddressOperationSettings() { return deleteAddressOperationSettings; } @@ -615,7 +613,7 @@ public UnaryCallSettings.Builder insertAddr /** Returns the builder for the settings used for calls to insertAddress. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertAddressOperationSettings() { return insertAddressOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStub.java index 817725ea4b6e..6da38a56f5f5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStub.java @@ -65,7 +65,7 @@ public ZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteAutoscalerOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteAutoscalerOperationCallable()"); } @@ -81,7 +81,7 @@ public UnaryCallable getAutoscalerCallable } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertAutoscalerOperationCallable() { throw new UnsupportedOperationException("Not implemented: insertAutoscalerOperationCallable()"); } @@ -103,7 +103,7 @@ public UnaryCallable listAutoscalers } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchAutoscalerOperationCallable() { throw new UnsupportedOperationException("Not implemented: patchAutoscalerOperationCallable()"); } @@ -114,7 +114,7 @@ public UnaryCallable patchAutoscalerCalla } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateAutoscalerOperationCallable() { throw new UnsupportedOperationException("Not implemented: updateAutoscalerOperationCallable()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStubSettings.java index a84f329a987c..1b180e696e6d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/AutoscalerStubSettings.java @@ -113,20 +113,20 @@ public class AutoscalerStubSettings extends StubSettings AggregatedListAutoscalersPagedResponse> aggregatedListAutoscalersSettings; private final UnaryCallSettings deleteAutoscalerSettings; - private final OperationCallSettings + private final OperationCallSettings deleteAutoscalerOperationSettings; private final UnaryCallSettings getAutoscalerSettings; private final UnaryCallSettings insertAutoscalerSettings; - private final OperationCallSettings + private final OperationCallSettings insertAutoscalerOperationSettings; private final PagedCallSettings< ListAutoscalersHttpRequest, AutoscalerList, ListAutoscalersPagedResponse> listAutoscalersSettings; private final UnaryCallSettings patchAutoscalerSettings; - private final OperationCallSettings + private final OperationCallSettings patchAutoscalerOperationSettings; private final UnaryCallSettings updateAutoscalerSettings; - private final OperationCallSettings + private final OperationCallSettings updateAutoscalerOperationSettings; /** Returns the object with the settings used for calls to aggregatedListAutoscalers. */ @@ -145,7 +145,7 @@ public UnaryCallSettings deleteAutoscale /** Returns the object with the settings used for calls to deleteAutoscaler. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteAutoscalerOperationSettings() { return deleteAutoscalerOperationSettings; } @@ -162,7 +162,7 @@ public UnaryCallSettings insertAutoscale /** Returns the object with the settings used for calls to insertAutoscaler. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertAutoscalerOperationSettings() { return insertAutoscalerOperationSettings; } @@ -180,7 +180,7 @@ public UnaryCallSettings patchAutoscalerS /** Returns the object with the settings used for calls to patchAutoscaler. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchAutoscalerOperationSettings() { return patchAutoscalerOperationSettings; } @@ -192,7 +192,7 @@ public UnaryCallSettings updateAutoscale /** Returns the object with the settings used for calls to updateAutoscaler. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings updateAutoscalerOperationSettings() { return updateAutoscalerOperationSettings; } @@ -427,27 +427,26 @@ public static class Builder extends StubSettings.Builder deleteAutoscalerSettings; private final OperationCallSettings.Builder< - DeleteAutoscalerHttpRequest, EmptyMessage, EmptyMessage> + DeleteAutoscalerHttpRequest, EmptyMessage, Operation> deleteAutoscalerOperationSettings; private final UnaryCallSettings.Builder getAutoscalerSettings; private final UnaryCallSettings.Builder insertAutoscalerSettings; private final OperationCallSettings.Builder< - InsertAutoscalerHttpRequest, EmptyMessage, EmptyMessage> + InsertAutoscalerHttpRequest, EmptyMessage, Operation> insertAutoscalerOperationSettings; private final PagedCallSettings.Builder< ListAutoscalersHttpRequest, AutoscalerList, ListAutoscalersPagedResponse> listAutoscalersSettings; private final UnaryCallSettings.Builder patchAutoscalerSettings; - private final OperationCallSettings.Builder< - PatchAutoscalerHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder patchAutoscalerOperationSettings; private final UnaryCallSettings.Builder updateAutoscalerSettings; private final OperationCallSettings.Builder< - UpdateAutoscalerHttpRequest, EmptyMessage, EmptyMessage> + UpdateAutoscalerHttpRequest, EmptyMessage, Operation> updateAutoscalerOperationSettings; private static final ImmutableMap> @@ -580,8 +579,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -601,8 +600,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -622,8 +621,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -643,8 +642,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -720,7 +719,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteAutoscaler. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteAutoscalerOperationSettings() { return deleteAutoscalerOperationSettings; } @@ -739,7 +738,7 @@ public UnaryCallSettings.Builder getAutosc /** Returns the builder for the settings used for calls to insertAutoscaler. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertAutoscalerOperationSettings() { return insertAutoscalerOperationSettings; } @@ -760,7 +759,7 @@ public UnaryCallSettings.Builder getAutosc /** Returns the builder for the settings used for calls to patchAutoscaler. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchAutoscalerOperationSettings() { return patchAutoscalerOperationSettings; } @@ -774,7 +773,7 @@ public UnaryCallSettings.Builder getAutosc /** Returns the builder for the settings used for calls to updateAutoscaler. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder updateAutoscalerOperationSettings() { return updateAutoscalerOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStub.java index 21fa916f8f67..43a9f03ad958 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStub.java @@ -51,7 +51,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable addSignedUrlKeyBackendBucketOperationCallable() { throw new UnsupportedOperationException( "Not implemented: addSignedUrlKeyBackendBucketOperationCallable()"); @@ -65,7 +65,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteBackendBucketOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteBackendBucketOperationCallable()"); @@ -77,7 +77,7 @@ public UnaryCallable deleteBackendBuc } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteSignedUrlKeyBackendBucketOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteSignedUrlKeyBackendBucketOperationCallable()"); @@ -96,7 +96,7 @@ public UnaryCallable getBackendBucke } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertBackendBucketOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertBackendBucketOperationCallable()"); @@ -120,7 +120,7 @@ public UnaryCallable insertBackendBuc } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchBackendBucketOperationCallable() { throw new UnsupportedOperationException( "Not implemented: patchBackendBucketOperationCallable()"); @@ -132,7 +132,7 @@ public UnaryCallable patchBackendBucke } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateBackendBucketOperationCallable() { throw new UnsupportedOperationException( "Not implemented: updateBackendBucketOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStubSettings.java index 88c8d920b6ab..f1897a05e0cf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendBucketStubSettings.java @@ -108,33 +108,33 @@ public class BackendBucketStubSettings extends StubSettings addSignedUrlKeyBackendBucketSettings; private final OperationCallSettings< - AddSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage> + AddSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, Operation> addSignedUrlKeyBackendBucketOperationSettings; private final UnaryCallSettings deleteBackendBucketSettings; - private final OperationCallSettings + private final OperationCallSettings deleteBackendBucketOperationSettings; private final UnaryCallSettings deleteSignedUrlKeyBackendBucketSettings; private final OperationCallSettings< - DeleteSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage> + DeleteSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, Operation> deleteSignedUrlKeyBackendBucketOperationSettings; private final UnaryCallSettings getBackendBucketSettings; private final UnaryCallSettings insertBackendBucketSettings; - private final OperationCallSettings + private final OperationCallSettings insertBackendBucketOperationSettings; private final PagedCallSettings< ListBackendBucketsHttpRequest, BackendBucketList, ListBackendBucketsPagedResponse> listBackendBucketsSettings; private final UnaryCallSettings patchBackendBucketSettings; - private final OperationCallSettings + private final OperationCallSettings patchBackendBucketOperationSettings; private final UnaryCallSettings updateBackendBucketSettings; - private final OperationCallSettings + private final OperationCallSettings updateBackendBucketOperationSettings; /** Returns the object with the settings used for calls to addSignedUrlKeyBackendBucket. */ @@ -145,7 +145,7 @@ public class BackendBucketStubSettings extends StubSettings + public OperationCallSettings addSignedUrlKeyBackendBucketOperationSettings() { return addSignedUrlKeyBackendBucketOperationSettings; } @@ -158,7 +158,7 @@ public class BackendBucketStubSettings extends StubSettings + public OperationCallSettings deleteBackendBucketOperationSettings() { return deleteBackendBucketOperationSettings; } @@ -171,8 +171,7 @@ public class BackendBucketStubSettings extends StubSettings + public OperationCallSettings deleteSignedUrlKeyBackendBucketOperationSettings() { return deleteSignedUrlKeyBackendBucketOperationSettings; } @@ -190,7 +189,7 @@ public UnaryCallSettings getBackendB /** Returns the object with the settings used for calls to insertBackendBucket. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertBackendBucketOperationSettings() { return insertBackendBucketOperationSettings; } @@ -209,7 +208,7 @@ public UnaryCallSettings patchBackendB /** Returns the object with the settings used for calls to patchBackendBucket. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchBackendBucketOperationSettings() { return patchBackendBucketOperationSettings; } @@ -222,7 +221,7 @@ public UnaryCallSettings patchBackendB /** Returns the object with the settings used for calls to updateBackendBucket. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings updateBackendBucketOperationSettings() { return updateBackendBucketOperationSettings; } @@ -394,24 +393,24 @@ public static class Builder extends StubSettings.Builder addSignedUrlKeyBackendBucketSettings; private final OperationCallSettings.Builder< - AddSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage> + AddSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, Operation> addSignedUrlKeyBackendBucketOperationSettings; private final UnaryCallSettings.Builder deleteBackendBucketSettings; private final OperationCallSettings.Builder< - DeleteBackendBucketHttpRequest, EmptyMessage, EmptyMessage> + DeleteBackendBucketHttpRequest, EmptyMessage, Operation> deleteBackendBucketOperationSettings; private final UnaryCallSettings.Builder deleteSignedUrlKeyBackendBucketSettings; private final OperationCallSettings.Builder< - DeleteSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage> + DeleteSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, Operation> deleteSignedUrlKeyBackendBucketOperationSettings; private final UnaryCallSettings.Builder getBackendBucketSettings; private final UnaryCallSettings.Builder insertBackendBucketSettings; private final OperationCallSettings.Builder< - InsertBackendBucketHttpRequest, EmptyMessage, EmptyMessage> + InsertBackendBucketHttpRequest, EmptyMessage, Operation> insertBackendBucketOperationSettings; private final PagedCallSettings.Builder< ListBackendBucketsHttpRequest, BackendBucketList, ListBackendBucketsPagedResponse> @@ -419,12 +418,12 @@ public static class Builder extends StubSettings.Builder patchBackendBucketSettings; private final OperationCallSettings.Builder< - PatchBackendBucketHttpRequest, EmptyMessage, EmptyMessage> + PatchBackendBucketHttpRequest, EmptyMessage, Operation> patchBackendBucketOperationSettings; private final UnaryCallSettings.Builder updateBackendBucketSettings; private final OperationCallSettings.Builder< - UpdateBackendBucketHttpRequest, EmptyMessage, EmptyMessage> + UpdateBackendBucketHttpRequest, EmptyMessage, Operation> updateBackendBucketOperationSettings; private static final ImmutableMap> @@ -569,8 +568,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -590,8 +589,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -612,8 +611,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -633,8 +632,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -654,8 +653,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -675,8 +674,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -756,7 +755,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - AddSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage> + AddSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, Operation> addSignedUrlKeyBackendBucketOperationSettings() { return addSignedUrlKeyBackendBucketOperationSettings; } @@ -770,7 +769,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteBackendBucket. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteBackendBucketOperationSettings() { return deleteBackendBucketOperationSettings; } @@ -785,7 +784,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - DeleteSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage> + DeleteSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, Operation> deleteSignedUrlKeyBackendBucketOperationSettings() { return deleteSignedUrlKeyBackendBucketOperationSettings; } @@ -805,7 +804,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertBackendBucket. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertBackendBucketOperationSettings() { return insertBackendBucketOperationSettings; } @@ -826,7 +825,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to patchBackendBucket. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchBackendBucketOperationSettings() { return patchBackendBucketOperationSettings; } @@ -840,7 +839,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to updateBackendBucket. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder updateBackendBucketOperationSettings() { return updateBackendBucketOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStub.java index 5445d72f0d13..32bb397667c1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStub.java @@ -57,7 +57,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable addSignedUrlKeyBackendServiceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: addSignedUrlKeyBackendServiceOperationCallable()"); @@ -86,7 +86,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteBackendServiceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteBackendServiceOperationCallable()"); @@ -98,7 +98,7 @@ public UnaryCallable deleteBackendSe } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteSignedUrlKeyBackendServiceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteSignedUrlKeyBackendServiceOperationCallable()"); @@ -123,7 +123,7 @@ public UnaryCallable getBackendSer } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertBackendServiceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertBackendServiceOperationCallable()"); @@ -147,7 +147,7 @@ public UnaryCallable insertBackendSe } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchBackendServiceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: patchBackendServiceOperationCallable()"); @@ -159,7 +159,7 @@ public UnaryCallable patchBackendServ } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setSecurityPolicyBackendServiceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setSecurityPolicyBackendServiceOperationCallable()"); @@ -173,7 +173,7 @@ public UnaryCallable patchBackendServ } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateBackendServiceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: updateBackendServiceOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStubSettings.java index 12f6e6e3033c..45fdfe036ff3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/BackendServiceStubSettings.java @@ -115,7 +115,7 @@ public class BackendServiceStubSettings extends StubSettings addSignedUrlKeyBackendServiceSettings; private final OperationCallSettings< - AddSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + AddSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, Operation> addSignedUrlKeyBackendServiceOperationSettings; private final PagedCallSettings< AggregatedListBackendServicesHttpRequest, @@ -124,12 +124,12 @@ public class BackendServiceStubSettings extends StubSettings deleteBackendServiceSettings; - private final OperationCallSettings + private final OperationCallSettings deleteBackendServiceOperationSettings; private final UnaryCallSettings deleteSignedUrlKeyBackendServiceSettings; private final OperationCallSettings< - DeleteSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + DeleteSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, Operation> deleteSignedUrlKeyBackendServiceOperationSettings; private final UnaryCallSettings getBackendServiceSettings; @@ -137,23 +137,23 @@ public class BackendServiceStubSettings extends StubSettings insertBackendServiceSettings; - private final OperationCallSettings + private final OperationCallSettings insertBackendServiceOperationSettings; private final PagedCallSettings< ListBackendServicesHttpRequest, BackendServiceList, ListBackendServicesPagedResponse> listBackendServicesSettings; private final UnaryCallSettings patchBackendServiceSettings; - private final OperationCallSettings + private final OperationCallSettings patchBackendServiceOperationSettings; private final UnaryCallSettings setSecurityPolicyBackendServiceSettings; private final OperationCallSettings< - SetSecurityPolicyBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + SetSecurityPolicyBackendServiceHttpRequest, EmptyMessage, Operation> setSecurityPolicyBackendServiceOperationSettings; private final UnaryCallSettings updateBackendServiceSettings; - private final OperationCallSettings + private final OperationCallSettings updateBackendServiceOperationSettings; /** Returns the object with the settings used for calls to addSignedUrlKeyBackendService. */ @@ -164,7 +164,7 @@ public class BackendServiceStubSettings extends StubSettings + public OperationCallSettings addSignedUrlKeyBackendServiceOperationSettings() { return addSignedUrlKeyBackendServiceOperationSettings; } @@ -186,7 +186,7 @@ public class BackendServiceStubSettings extends StubSettings + public OperationCallSettings deleteBackendServiceOperationSettings() { return deleteBackendServiceOperationSettings; } @@ -199,8 +199,7 @@ public class BackendServiceStubSettings extends StubSettings + public OperationCallSettings deleteSignedUrlKeyBackendServiceOperationSettings() { return deleteSignedUrlKeyBackendServiceOperationSettings; } @@ -225,7 +224,7 @@ public class BackendServiceStubSettings extends StubSettings + public OperationCallSettings insertBackendServiceOperationSettings() { return insertBackendServiceOperationSettings; } @@ -245,7 +244,7 @@ public class BackendServiceStubSettings extends StubSettings + public OperationCallSettings patchBackendServiceOperationSettings() { return patchBackendServiceOperationSettings; } @@ -258,8 +257,7 @@ public class BackendServiceStubSettings extends StubSettings + public OperationCallSettings setSecurityPolicyBackendServiceOperationSettings() { return setSecurityPolicyBackendServiceOperationSettings; } @@ -272,7 +270,7 @@ public class BackendServiceStubSettings extends StubSettings + public OperationCallSettings updateBackendServiceOperationSettings() { return updateBackendServiceOperationSettings; } @@ -534,7 +532,7 @@ public static class Builder extends StubSettings.Builder addSignedUrlKeyBackendServiceSettings; private final OperationCallSettings.Builder< - AddSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + AddSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, Operation> addSignedUrlKeyBackendServiceOperationSettings; private final PagedCallSettings.Builder< AggregatedListBackendServicesHttpRequest, @@ -544,12 +542,12 @@ public static class Builder extends StubSettings.Builder deleteBackendServiceSettings; private final OperationCallSettings.Builder< - DeleteBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + DeleteBackendServiceHttpRequest, EmptyMessage, Operation> deleteBackendServiceOperationSettings; private final UnaryCallSettings.Builder deleteSignedUrlKeyBackendServiceSettings; private final OperationCallSettings.Builder< - DeleteSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + DeleteSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, Operation> deleteSignedUrlKeyBackendServiceOperationSettings; private final UnaryCallSettings.Builder getBackendServiceSettings; @@ -559,7 +557,7 @@ public static class Builder extends StubSettings.Builder insertBackendServiceSettings; private final OperationCallSettings.Builder< - InsertBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + InsertBackendServiceHttpRequest, EmptyMessage, Operation> insertBackendServiceOperationSettings; private final PagedCallSettings.Builder< ListBackendServicesHttpRequest, BackendServiceList, ListBackendServicesPagedResponse> @@ -567,17 +565,17 @@ public static class Builder extends StubSettings.Builder patchBackendServiceSettings; private final OperationCallSettings.Builder< - PatchBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + PatchBackendServiceHttpRequest, EmptyMessage, Operation> patchBackendServiceOperationSettings; private final UnaryCallSettings.Builder setSecurityPolicyBackendServiceSettings; private final OperationCallSettings.Builder< - SetSecurityPolicyBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + SetSecurityPolicyBackendServiceHttpRequest, EmptyMessage, Operation> setSecurityPolicyBackendServiceOperationSettings; private final UnaryCallSettings.Builder updateBackendServiceSettings; private final OperationCallSettings.Builder< - UpdateBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + UpdateBackendServiceHttpRequest, EmptyMessage, Operation> updateBackendServiceOperationSettings; private static final ImmutableMap> @@ -750,8 +748,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -771,8 +769,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -793,8 +791,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -814,8 +812,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -835,8 +833,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -857,8 +855,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -878,8 +876,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -969,7 +967,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - AddSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + AddSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, Operation> addSignedUrlKeyBackendServiceOperationSettings() { return addSignedUrlKeyBackendServiceOperationSettings; } @@ -992,8 +990,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteBackendService. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteBackendServiceOperationSettings() { return deleteBackendServiceOperationSettings; } @@ -1008,7 +1005,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - DeleteSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + DeleteSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, Operation> deleteSignedUrlKeyBackendServiceOperationSettings() { return deleteSignedUrlKeyBackendServiceOperationSettings; } @@ -1034,8 +1031,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertBackendService. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertBackendServiceOperationSettings() { return insertBackendServiceOperationSettings; } @@ -1056,7 +1052,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to patchBackendService. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchBackendServiceOperationSettings() { return patchBackendServiceOperationSettings; } @@ -1071,7 +1067,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetSecurityPolicyBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + SetSecurityPolicyBackendServiceHttpRequest, EmptyMessage, Operation> setSecurityPolicyBackendServiceOperationSettings() { return setSecurityPolicyBackendServiceOperationSettings; } @@ -1085,8 +1081,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to updateBackendService. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - UpdateBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder updateBackendServiceOperationSettings() { return updateBackendServiceOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStub.java index dd7d5e20db8e..83692d9a795d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStub.java @@ -70,7 +70,7 @@ public ZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable createSnapshotDiskOperationCallable() { throw new UnsupportedOperationException( "Not implemented: createSnapshotDiskOperationCallable()"); @@ -82,7 +82,7 @@ public UnaryCallable createSnapshotDis } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteDiskOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteDiskOperationCallable()"); } @@ -103,7 +103,7 @@ public UnaryCallable getIamPolicyDiskCallab } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertDiskOperationCallable() { throw new UnsupportedOperationException("Not implemented: insertDiskOperationCallable()"); } @@ -124,7 +124,7 @@ public UnaryCallable listDisksCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable resizeDiskOperationCallable() { throw new UnsupportedOperationException("Not implemented: resizeDiskOperationCallable()"); } @@ -140,7 +140,7 @@ public UnaryCallable setIamPolicyDiskCallab } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setLabelsDiskOperationCallable() { throw new UnsupportedOperationException("Not implemented: setLabelsDiskOperationCallable()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStubSettings.java index 6a8f146cd0da..c55af1916d87 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/DiskStubSettings.java @@ -118,24 +118,24 @@ public class DiskStubSettings extends StubSettings { aggregatedListDisksSettings; private final UnaryCallSettings createSnapshotDiskSettings; - private final OperationCallSettings + private final OperationCallSettings createSnapshotDiskOperationSettings; private final UnaryCallSettings deleteDiskSettings; - private final OperationCallSettings + private final OperationCallSettings deleteDiskOperationSettings; private final UnaryCallSettings getDiskSettings; private final UnaryCallSettings getIamPolicyDiskSettings; private final UnaryCallSettings insertDiskSettings; - private final OperationCallSettings + private final OperationCallSettings insertDiskOperationSettings; private final PagedCallSettings listDisksSettings; private final UnaryCallSettings resizeDiskSettings; - private final OperationCallSettings + private final OperationCallSettings resizeDiskOperationSettings; private final UnaryCallSettings setIamPolicyDiskSettings; private final UnaryCallSettings setLabelsDiskSettings; - private final OperationCallSettings + private final OperationCallSettings setLabelsDiskOperationSettings; private final UnaryCallSettings testIamPermissionsDiskSettings; @@ -154,7 +154,7 @@ public UnaryCallSettings createSnapsho /** Returns the object with the settings used for calls to createSnapshotDisk. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings createSnapshotDiskOperationSettings() { return createSnapshotDiskOperationSettings; } @@ -166,7 +166,7 @@ public UnaryCallSettings deleteDiskSettings() /** Returns the object with the settings used for calls to deleteDisk. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteDiskOperationSettings() { return deleteDiskOperationSettings; } @@ -188,7 +188,7 @@ public UnaryCallSettings insertDiskSettings() /** Returns the object with the settings used for calls to insertDisk. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertDiskOperationSettings() { return insertDiskOperationSettings; } @@ -206,7 +206,7 @@ public UnaryCallSettings resizeDiskSettings() /** Returns the object with the settings used for calls to resizeDisk. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings resizeDiskOperationSettings() { return resizeDiskOperationSettings; } @@ -223,7 +223,7 @@ public UnaryCallSettings setLabelsDiskSetti /** Returns the object with the settings used for calls to setLabelsDisk. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setLabelsDiskOperationSettings() { return setLabelsDiskOperationSettings; } @@ -452,28 +452,27 @@ public static class Builder extends StubSettings.Builder createSnapshotDiskSettings; private final OperationCallSettings.Builder< - CreateSnapshotDiskHttpRequest, EmptyMessage, EmptyMessage> + CreateSnapshotDiskHttpRequest, EmptyMessage, Operation> createSnapshotDiskOperationSettings; private final UnaryCallSettings.Builder deleteDiskSettings; - private final OperationCallSettings.Builder + private final OperationCallSettings.Builder deleteDiskOperationSettings; private final UnaryCallSettings.Builder getDiskSettings; private final UnaryCallSettings.Builder getIamPolicyDiskSettings; private final UnaryCallSettings.Builder insertDiskSettings; - private final OperationCallSettings.Builder + private final OperationCallSettings.Builder insertDiskOperationSettings; private final PagedCallSettings.Builder listDisksSettings; private final UnaryCallSettings.Builder resizeDiskSettings; - private final OperationCallSettings.Builder + private final OperationCallSettings.Builder resizeDiskOperationSettings; private final UnaryCallSettings.Builder setIamPolicyDiskSettings; private final UnaryCallSettings.Builder setLabelsDiskSettings; - private final OperationCallSettings.Builder< - SetLabelsDiskHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder setLabelsDiskOperationSettings; private final UnaryCallSettings.Builder< TestIamPermissionsDiskHttpRequest, TestPermissionsResponse> @@ -643,8 +642,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -664,8 +663,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -685,8 +684,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -706,8 +705,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -727,8 +726,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -812,7 +811,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to createSnapshotDisk. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder createSnapshotDiskOperationSettings() { return createSnapshotDiskOperationSettings; } @@ -825,7 +824,7 @@ public UnaryCallSettings.Builder deleteDiskSet /** Returns the builder for the settings used for calls to deleteDisk. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteDiskOperationSettings() { return deleteDiskOperationSettings; } @@ -849,7 +848,7 @@ public UnaryCallSettings.Builder insertDiskSet /** Returns the builder for the settings used for calls to insertDisk. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertDiskOperationSettings() { return insertDiskOperationSettings; } @@ -868,7 +867,7 @@ public UnaryCallSettings.Builder resizeDiskSet /** Returns the builder for the settings used for calls to resizeDisk. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder resizeDiskOperationSettings() { return resizeDiskOperationSettings; } @@ -887,7 +886,7 @@ public UnaryCallSettings.Builder setLabelsD /** Returns the builder for the settings used for calls to setLabelsDisk. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder setLabelsDiskOperationSettings() { return setLabelsDiskOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStub.java index 2222b8d15289..f5564c4eb3db 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStub.java @@ -49,7 +49,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteFirewallOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteFirewallOperationCallable()"); } @@ -65,7 +65,7 @@ public UnaryCallable getFirewallCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertFirewallOperationCallable() { throw new UnsupportedOperationException("Not implemented: insertFirewallOperationCallable()"); } @@ -87,7 +87,7 @@ public UnaryCallable listFirewallsCallab } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchFirewallOperationCallable() { throw new UnsupportedOperationException("Not implemented: patchFirewallOperationCallable()"); } @@ -98,7 +98,7 @@ public UnaryCallable patchFirewallCallable( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateFirewallOperationCallable() { throw new UnsupportedOperationException("Not implemented: updateFirewallOperationCallable()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStubSettings.java index cfc8c8594c8f..7777fb7be151 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/FirewallStubSettings.java @@ -104,20 +104,20 @@ public class FirewallStubSettings extends StubSettings { .build(); private final UnaryCallSettings deleteFirewallSettings; - private final OperationCallSettings + private final OperationCallSettings deleteFirewallOperationSettings; private final UnaryCallSettings getFirewallSettings; private final UnaryCallSettings insertFirewallSettings; - private final OperationCallSettings + private final OperationCallSettings insertFirewallOperationSettings; private final PagedCallSettings< ListFirewallsHttpRequest, FirewallList, ListFirewallsPagedResponse> listFirewallsSettings; private final UnaryCallSettings patchFirewallSettings; - private final OperationCallSettings + private final OperationCallSettings patchFirewallOperationSettings; private final UnaryCallSettings updateFirewallSettings; - private final OperationCallSettings + private final OperationCallSettings updateFirewallOperationSettings; /** Returns the object with the settings used for calls to deleteFirewall. */ @@ -127,7 +127,7 @@ public UnaryCallSettings deleteFirewallSet /** Returns the object with the settings used for calls to deleteFirewall. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteFirewallOperationSettings() { return deleteFirewallOperationSettings; } @@ -144,7 +144,7 @@ public UnaryCallSettings insertFirewallSet /** Returns the object with the settings used for calls to insertFirewall. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertFirewallOperationSettings() { return insertFirewallOperationSettings; } @@ -162,7 +162,7 @@ public UnaryCallSettings patchFirewallSetti /** Returns the object with the settings used for calls to patchFirewall. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchFirewallOperationSettings() { return patchFirewallOperationSettings; } @@ -174,7 +174,7 @@ public UnaryCallSettings updateFirewallSet /** Returns the object with the settings used for calls to updateFirewall. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings updateFirewallOperationSettings() { return updateFirewallOperationSettings; } @@ -326,27 +326,23 @@ public static class Builder extends StubSettings.Builder deleteFirewallSettings; - private final OperationCallSettings.Builder< - DeleteFirewallHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder deleteFirewallOperationSettings; private final UnaryCallSettings.Builder getFirewallSettings; private final UnaryCallSettings.Builder insertFirewallSettings; - private final OperationCallSettings.Builder< - InsertFirewallHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder insertFirewallOperationSettings; private final PagedCallSettings.Builder< ListFirewallsHttpRequest, FirewallList, ListFirewallsPagedResponse> listFirewallsSettings; private final UnaryCallSettings.Builder patchFirewallSettings; - private final OperationCallSettings.Builder< - PatchFirewallHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder patchFirewallOperationSettings; private final UnaryCallSettings.Builder updateFirewallSettings; - private final OperationCallSettings.Builder< - UpdateFirewallHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder updateFirewallOperationSettings; private static final ImmutableMap> @@ -470,8 +466,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -491,8 +487,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -512,8 +508,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -533,8 +529,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -599,7 +595,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteFirewall. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteFirewallOperationSettings() { return deleteFirewallOperationSettings; } @@ -618,7 +614,7 @@ public UnaryCallSettings.Builder getFirewallSe /** Returns the builder for the settings used for calls to insertFirewall. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertFirewallOperationSettings() { return insertFirewallOperationSettings; } @@ -638,7 +634,7 @@ public UnaryCallSettings.Builder patchFirew /** Returns the builder for the settings used for calls to patchFirewall. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchFirewallOperationSettings() { return patchFirewallOperationSettings; } @@ -652,7 +648,7 @@ public UnaryCallSettings.Builder patchFirew /** Returns the builder for the settings used for calls to updateFirewall. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder updateFirewallOperationSettings() { return updateFirewallOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStub.java index 4ff8e0106fa7..a0fd7975c646 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStub.java @@ -66,7 +66,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteForwardingRuleOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteForwardingRuleOperationCallable()"); @@ -83,7 +83,7 @@ public UnaryCallable getForwarding } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertForwardingRuleOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertForwardingRuleOperationCallable()"); @@ -107,7 +107,7 @@ public UnaryCallable insertForwardin } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setTargetForwardingRuleOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setTargetForwardingRuleOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStubSettings.java index 8fe08c95f397..792e522e18bb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ForwardingRuleStubSettings.java @@ -113,21 +113,20 @@ public class ForwardingRuleStubSettings extends StubSettings deleteForwardingRuleSettings; - private final OperationCallSettings + private final OperationCallSettings deleteForwardingRuleOperationSettings; private final UnaryCallSettings getForwardingRuleSettings; private final UnaryCallSettings insertForwardingRuleSettings; - private final OperationCallSettings + private final OperationCallSettings insertForwardingRuleOperationSettings; private final PagedCallSettings< ListForwardingRulesHttpRequest, ForwardingRuleList, ListForwardingRulesPagedResponse> listForwardingRulesSettings; private final UnaryCallSettings setTargetForwardingRuleSettings; - private final OperationCallSettings< - SetTargetForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings setTargetForwardingRuleOperationSettings; /** Returns the object with the settings used for calls to aggregatedListForwardingRules. */ @@ -147,7 +146,7 @@ public class ForwardingRuleStubSettings extends StubSettings + public OperationCallSettings deleteForwardingRuleOperationSettings() { return deleteForwardingRuleOperationSettings; } @@ -166,7 +165,7 @@ public class ForwardingRuleStubSettings extends StubSettings + public OperationCallSettings insertForwardingRuleOperationSettings() { return insertForwardingRuleOperationSettings; } @@ -186,7 +185,7 @@ public class ForwardingRuleStubSettings extends StubSettings + public OperationCallSettings setTargetForwardingRuleOperationSettings() { return setTargetForwardingRuleOperationSettings; } @@ -437,14 +436,14 @@ public static class Builder extends StubSettings.Builder deleteForwardingRuleSettings; private final OperationCallSettings.Builder< - DeleteForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + DeleteForwardingRuleHttpRequest, EmptyMessage, Operation> deleteForwardingRuleOperationSettings; private final UnaryCallSettings.Builder getForwardingRuleSettings; private final UnaryCallSettings.Builder insertForwardingRuleSettings; private final OperationCallSettings.Builder< - InsertForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + InsertForwardingRuleHttpRequest, EmptyMessage, Operation> insertForwardingRuleOperationSettings; private final PagedCallSettings.Builder< ListForwardingRulesHttpRequest, ForwardingRuleList, ListForwardingRulesPagedResponse> @@ -452,7 +451,7 @@ public static class Builder extends StubSettings.Builder setTargetForwardingRuleSettings; private final OperationCallSettings.Builder< - SetTargetForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + SetTargetForwardingRuleHttpRequest, EmptyMessage, Operation> setTargetForwardingRuleOperationSettings; private static final ImmutableMap> @@ -576,8 +575,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -597,8 +596,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -619,8 +618,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -697,8 +696,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteForwardingRule. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteForwardingRuleOperationSettings() { return deleteForwardingRuleOperationSettings; } @@ -718,8 +716,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertForwardingRule. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertForwardingRuleOperationSettings() { return insertForwardingRuleOperationSettings; } @@ -741,7 +738,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetTargetForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + SetTargetForwardingRuleHttpRequest, EmptyMessage, Operation> setTargetForwardingRuleOperationSettings() { return setTargetForwardingRuleOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStub.java index d1dbfbade2b7..ea5dfcb1c8ad 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStub.java @@ -47,7 +47,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteGlobalAddressOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteGlobalAddressOperationCallable()"); @@ -64,7 +64,7 @@ public UnaryCallable getGlobalAddressCalla } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertGlobalAddressOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertGlobalAddressOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStubSettings.java index bf27446c1ecc..0a93ff98dfc5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalAddressStubSettings.java @@ -103,12 +103,12 @@ public class GlobalAddressStubSettings extends StubSettings deleteGlobalAddressSettings; - private final OperationCallSettings + private final OperationCallSettings deleteGlobalAddressOperationSettings; private final UnaryCallSettings getGlobalAddressSettings; private final UnaryCallSettings insertGlobalAddressSettings; - private final OperationCallSettings + private final OperationCallSettings insertGlobalAddressOperationSettings; private final PagedCallSettings< ListGlobalAddressesHttpRequest, AddressList, ListGlobalAddressesPagedResponse> @@ -122,7 +122,7 @@ public class GlobalAddressStubSettings extends StubSettings + public OperationCallSettings deleteGlobalAddressOperationSettings() { return deleteGlobalAddressOperationSettings; } @@ -140,7 +140,7 @@ public UnaryCallSettings getGlobalAddressS /** Returns the object with the settings used for calls to insertGlobalAddress. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertGlobalAddressOperationSettings() { return insertGlobalAddressOperationSettings; } @@ -302,14 +302,14 @@ public static class Builder extends StubSettings.Builder deleteGlobalAddressSettings; private final OperationCallSettings.Builder< - DeleteGlobalAddressHttpRequest, EmptyMessage, EmptyMessage> + DeleteGlobalAddressHttpRequest, EmptyMessage, Operation> deleteGlobalAddressOperationSettings; private final UnaryCallSettings.Builder getGlobalAddressSettings; private final UnaryCallSettings.Builder insertGlobalAddressSettings; private final OperationCallSettings.Builder< - InsertGlobalAddressHttpRequest, EmptyMessage, EmptyMessage> + InsertGlobalAddressHttpRequest, EmptyMessage, Operation> insertGlobalAddressOperationSettings; private final PagedCallSettings.Builder< ListGlobalAddressesHttpRequest, AddressList, ListGlobalAddressesPagedResponse> @@ -417,8 +417,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -438,8 +438,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -500,7 +500,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteGlobalAddress. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteGlobalAddressOperationSettings() { return deleteGlobalAddressOperationSettings; } @@ -520,7 +520,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertGlobalAddress. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertGlobalAddressOperationSettings() { return insertGlobalAddressOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStub.java index 3f032bbdd052..d065412e6e70 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStub.java @@ -48,7 +48,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteGlobalForwardingRuleOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteGlobalForwardingRuleOperationCallable()"); @@ -68,7 +68,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertGlobalForwardingRuleOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertGlobalForwardingRuleOperationCallable()"); @@ -95,7 +95,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setTargetGlobalForwardingRuleOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setTargetGlobalForwardingRuleOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStubSettings.java index 3d81e1b1bb0f..61d07b0c525d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/GlobalForwardingRuleStubSettings.java @@ -106,14 +106,14 @@ public class GlobalForwardingRuleStubSettings private final UnaryCallSettings deleteGlobalForwardingRuleSettings; private final OperationCallSettings< - DeleteGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + DeleteGlobalForwardingRuleHttpRequest, EmptyMessage, Operation> deleteGlobalForwardingRuleOperationSettings; private final UnaryCallSettings getGlobalForwardingRuleSettings; private final UnaryCallSettings insertGlobalForwardingRuleSettings; private final OperationCallSettings< - InsertGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + InsertGlobalForwardingRuleHttpRequest, EmptyMessage, Operation> insertGlobalForwardingRuleOperationSettings; private final PagedCallSettings< ListGlobalForwardingRulesHttpRequest, @@ -123,7 +123,7 @@ public class GlobalForwardingRuleStubSettings private final UnaryCallSettings setTargetGlobalForwardingRuleSettings; private final OperationCallSettings< - SetTargetGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + SetTargetGlobalForwardingRuleHttpRequest, EmptyMessage, Operation> setTargetGlobalForwardingRuleOperationSettings; /** Returns the object with the settings used for calls to deleteGlobalForwardingRule. */ @@ -134,7 +134,7 @@ public class GlobalForwardingRuleStubSettings /** Returns the object with the settings used for calls to deleteGlobalForwardingRule. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteGlobalForwardingRuleOperationSettings() { return deleteGlobalForwardingRuleOperationSettings; } @@ -153,7 +153,7 @@ public class GlobalForwardingRuleStubSettings /** Returns the object with the settings used for calls to insertGlobalForwardingRule. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertGlobalForwardingRuleOperationSettings() { return insertGlobalForwardingRuleOperationSettings; } @@ -175,7 +175,7 @@ public class GlobalForwardingRuleStubSettings /** Returns the object with the settings used for calls to setTargetGlobalForwardingRule. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setTargetGlobalForwardingRuleOperationSettings() { return setTargetGlobalForwardingRuleOperationSettings; } @@ -347,14 +347,14 @@ public static class Builder private final UnaryCallSettings.Builder deleteGlobalForwardingRuleSettings; private final OperationCallSettings.Builder< - DeleteGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + DeleteGlobalForwardingRuleHttpRequest, EmptyMessage, Operation> deleteGlobalForwardingRuleOperationSettings; private final UnaryCallSettings.Builder getGlobalForwardingRuleSettings; private final UnaryCallSettings.Builder insertGlobalForwardingRuleSettings; private final OperationCallSettings.Builder< - InsertGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + InsertGlobalForwardingRuleHttpRequest, EmptyMessage, Operation> insertGlobalForwardingRuleOperationSettings; private final PagedCallSettings.Builder< ListGlobalForwardingRulesHttpRequest, @@ -364,7 +364,7 @@ public static class Builder private final UnaryCallSettings.Builder setTargetGlobalForwardingRuleSettings; private final OperationCallSettings.Builder< - SetTargetGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + SetTargetGlobalForwardingRuleHttpRequest, EmptyMessage, Operation> setTargetGlobalForwardingRuleOperationSettings; private static final ImmutableMap> @@ -480,8 +480,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -502,8 +502,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -524,8 +524,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -592,7 +592,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - DeleteGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + DeleteGlobalForwardingRuleHttpRequest, EmptyMessage, Operation> deleteGlobalForwardingRuleOperationSettings() { return deleteGlobalForwardingRuleOperationSettings; } @@ -613,7 +613,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - InsertGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + InsertGlobalForwardingRuleHttpRequest, EmptyMessage, Operation> insertGlobalForwardingRuleOperationSettings() { return insertGlobalForwardingRuleOperationSettings; } @@ -637,7 +637,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetTargetGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + SetTargetGlobalForwardingRuleHttpRequest, EmptyMessage, Operation> setTargetGlobalForwardingRuleOperationSettings() { return setTargetGlobalForwardingRuleOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStub.java index a41880efe77b..388d34b0fe74 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStub.java @@ -49,7 +49,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteHealthCheckOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteHealthCheckOperationCallable()"); @@ -66,7 +66,7 @@ public UnaryCallable getHealthCheckCalla } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertHealthCheckOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertHealthCheckOperationCallable()"); @@ -89,7 +89,7 @@ public UnaryCallable listHealthChe } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchHealthCheckOperationCallable() { throw new UnsupportedOperationException("Not implemented: patchHealthCheckOperationCallable()"); } @@ -100,7 +100,7 @@ public UnaryCallable patchHealthCheckCal } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateHealthCheckOperationCallable() { throw new UnsupportedOperationException( "Not implemented: updateHealthCheckOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStubSettings.java index 58ae4d46c06e..fe74759eb6a7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HealthCheckStubSettings.java @@ -105,22 +105,22 @@ public class HealthCheckStubSettings extends StubSettings deleteHealthCheckSettings; - private final OperationCallSettings + private final OperationCallSettings deleteHealthCheckOperationSettings; private final UnaryCallSettings getHealthCheckSettings; private final UnaryCallSettings insertHealthCheckSettings; - private final OperationCallSettings + private final OperationCallSettings insertHealthCheckOperationSettings; private final PagedCallSettings< ListHealthChecksHttpRequest, HealthCheckList, ListHealthChecksPagedResponse> listHealthChecksSettings; private final UnaryCallSettings patchHealthCheckSettings; - private final OperationCallSettings + private final OperationCallSettings patchHealthCheckOperationSettings; private final UnaryCallSettings updateHealthCheckSettings; - private final OperationCallSettings + private final OperationCallSettings updateHealthCheckOperationSettings; /** Returns the object with the settings used for calls to deleteHealthCheck. */ @@ -130,7 +130,7 @@ public UnaryCallSettings deleteHealthCh /** Returns the object with the settings used for calls to deleteHealthCheck. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteHealthCheckOperationSettings() { return deleteHealthCheckOperationSettings; } @@ -147,7 +147,7 @@ public UnaryCallSettings insertHealthCh /** Returns the object with the settings used for calls to insertHealthCheck. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertHealthCheckOperationSettings() { return insertHealthCheckOperationSettings; } @@ -166,7 +166,7 @@ public UnaryCallSettings patchHealthChec /** Returns the object with the settings used for calls to patchHealthCheck. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchHealthCheckOperationSettings() { return patchHealthCheckOperationSettings; } @@ -178,7 +178,7 @@ public UnaryCallSettings updateHealthCh /** Returns the object with the settings used for calls to updateHealthCheck. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings updateHealthCheckOperationSettings() { return updateHealthCheckOperationSettings; } @@ -338,14 +338,14 @@ public static class Builder extends StubSettings.Builder deleteHealthCheckSettings; private final OperationCallSettings.Builder< - DeleteHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + DeleteHealthCheckHttpRequest, EmptyMessage, Operation> deleteHealthCheckOperationSettings; private final UnaryCallSettings.Builder getHealthCheckSettings; private final UnaryCallSettings.Builder insertHealthCheckSettings; private final OperationCallSettings.Builder< - InsertHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + InsertHealthCheckHttpRequest, EmptyMessage, Operation> insertHealthCheckOperationSettings; private final PagedCallSettings.Builder< ListHealthChecksHttpRequest, HealthCheckList, ListHealthChecksPagedResponse> @@ -353,12 +353,12 @@ public static class Builder extends StubSettings.Builder patchHealthCheckSettings; private final OperationCallSettings.Builder< - PatchHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + PatchHealthCheckHttpRequest, EmptyMessage, Operation> patchHealthCheckOperationSettings; private final UnaryCallSettings.Builder updateHealthCheckSettings; private final OperationCallSettings.Builder< - UpdateHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + UpdateHealthCheckHttpRequest, EmptyMessage, Operation> updateHealthCheckOperationSettings; private static final ImmutableMap> @@ -482,8 +482,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -503,8 +503,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -524,8 +524,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -545,8 +545,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -611,7 +611,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteHealthCheck. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteHealthCheckOperationSettings() { return deleteHealthCheckOperationSettings; } @@ -631,7 +631,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertHealthCheck. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertHealthCheckOperationSettings() { return insertHealthCheckOperationSettings; } @@ -652,7 +652,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to patchHealthCheck. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchHealthCheckOperationSettings() { return patchHealthCheckOperationSettings; } @@ -666,7 +666,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to updateHealthCheck. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder updateHealthCheckOperationSettings() { return updateHealthCheckOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStub.java index 939f02d2e7ff..1a4ca2386388 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStub.java @@ -49,7 +49,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteHttpHealthCheckOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteHttpHealthCheckOperationCallable()"); @@ -68,7 +68,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertHttpHealthCheckOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertHttpHealthCheckOperationCallable()"); @@ -93,7 +93,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchHttpHealthCheckOperationCallable() { throw new UnsupportedOperationException( "Not implemented: patchHttpHealthCheckOperationCallable()"); @@ -105,7 +105,7 @@ public UnaryCallable patchHttpHealth } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateHttpHealthCheckOperationCallable() { throw new UnsupportedOperationException( "Not implemented: updateHttpHealthCheckOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStubSettings.java index edc799262140..0925a03f76cc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpHealthCheckStubSettings.java @@ -105,24 +105,24 @@ public class HttpHealthCheckStubSettings extends StubSettings deleteHttpHealthCheckSettings; - private final OperationCallSettings + private final OperationCallSettings deleteHttpHealthCheckOperationSettings; private final UnaryCallSettings getHttpHealthCheckSettings; private final UnaryCallSettings insertHttpHealthCheckSettings; - private final OperationCallSettings + private final OperationCallSettings insertHttpHealthCheckOperationSettings; private final PagedCallSettings< ListHttpHealthChecksHttpRequest, HttpHealthCheckList, ListHttpHealthChecksPagedResponse> listHttpHealthChecksSettings; private final UnaryCallSettings patchHttpHealthCheckSettings; - private final OperationCallSettings + private final OperationCallSettings patchHttpHealthCheckOperationSettings; private final UnaryCallSettings updateHttpHealthCheckSettings; - private final OperationCallSettings + private final OperationCallSettings updateHttpHealthCheckOperationSettings; /** Returns the object with the settings used for calls to deleteHttpHealthCheck. */ @@ -133,7 +133,7 @@ public class HttpHealthCheckStubSettings extends StubSettings + public OperationCallSettings deleteHttpHealthCheckOperationSettings() { return deleteHttpHealthCheckOperationSettings; } @@ -152,7 +152,7 @@ public class HttpHealthCheckStubSettings extends StubSettings + public OperationCallSettings insertHttpHealthCheckOperationSettings() { return insertHttpHealthCheckOperationSettings; } @@ -172,7 +172,7 @@ public class HttpHealthCheckStubSettings extends StubSettings + public OperationCallSettings patchHttpHealthCheckOperationSettings() { return patchHttpHealthCheckOperationSettings; } @@ -185,7 +185,7 @@ public class HttpHealthCheckStubSettings extends StubSettings + public OperationCallSettings updateHttpHealthCheckOperationSettings() { return updateHttpHealthCheckOperationSettings; } @@ -353,14 +353,14 @@ public static class Builder extends StubSettings.Builder deleteHttpHealthCheckSettings; private final OperationCallSettings.Builder< - DeleteHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + DeleteHttpHealthCheckHttpRequest, EmptyMessage, Operation> deleteHttpHealthCheckOperationSettings; private final UnaryCallSettings.Builder getHttpHealthCheckSettings; private final UnaryCallSettings.Builder insertHttpHealthCheckSettings; private final OperationCallSettings.Builder< - InsertHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + InsertHttpHealthCheckHttpRequest, EmptyMessage, Operation> insertHttpHealthCheckOperationSettings; private final PagedCallSettings.Builder< ListHttpHealthChecksHttpRequest, HttpHealthCheckList, ListHttpHealthChecksPagedResponse> @@ -368,12 +368,12 @@ public static class Builder extends StubSettings.Builder patchHttpHealthCheckSettings; private final OperationCallSettings.Builder< - PatchHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + PatchHttpHealthCheckHttpRequest, EmptyMessage, Operation> patchHttpHealthCheckOperationSettings; private final UnaryCallSettings.Builder updateHttpHealthCheckSettings; private final OperationCallSettings.Builder< - UpdateHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + UpdateHttpHealthCheckHttpRequest, EmptyMessage, Operation> updateHttpHealthCheckOperationSettings; private static final ImmutableMap> @@ -499,8 +499,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -521,8 +521,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -542,8 +542,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -564,8 +564,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -634,8 +634,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteHttpHealthCheck. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteHttpHealthCheckOperationSettings() { return deleteHttpHealthCheckOperationSettings; } @@ -655,8 +654,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertHttpHealthCheck. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertHttpHealthCheckOperationSettings() { return insertHttpHealthCheckOperationSettings; } @@ -677,8 +675,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to patchHttpHealthCheck. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - PatchHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder patchHttpHealthCheckOperationSettings() { return patchHttpHealthCheckOperationSettings; } @@ -692,8 +689,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to updateHttpHealthCheck. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - UpdateHttpHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder updateHttpHealthCheckOperationSettings() { return updateHttpHealthCheckOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressStub.java index 1a45af0a7def..56f9a95151a5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressStub.java @@ -168,11 +168,11 @@ public class HttpJsonAddressStub extends AddressStub { AggregatedListAddressesHttpRequest, AggregatedListAddressesPagedResponse> aggregatedListAddressesPagedCallable; private final UnaryCallable deleteAddressCallable; - private final OperationCallable + private final OperationCallable deleteAddressOperationCallable; private final UnaryCallable getAddressCallable; private final UnaryCallable insertAddressCallable; - private final OperationCallable + private final OperationCallable insertAddressOperationCallable; private final UnaryCallable listAddressesCallable; private final UnaryCallable @@ -299,7 +299,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteAddressOperationCallable() { return deleteAddressOperationCallable; } @@ -315,7 +315,7 @@ public UnaryCallable getAddressCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertAddressOperationCallable() { return insertAddressOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerStub.java index 16785b598221..60792c62cd62 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerStub.java @@ -209,20 +209,20 @@ public class HttpJsonAutoscalerStub extends AutoscalerStub { AggregatedListAutoscalersHttpRequest, AggregatedListAutoscalersPagedResponse> aggregatedListAutoscalersPagedCallable; private final UnaryCallable deleteAutoscalerCallable; - private final OperationCallable + private final OperationCallable deleteAutoscalerOperationCallable; private final UnaryCallable getAutoscalerCallable; private final UnaryCallable insertAutoscalerCallable; - private final OperationCallable + private final OperationCallable insertAutoscalerOperationCallable; private final UnaryCallable listAutoscalersCallable; private final UnaryCallable listAutoscalersPagedCallable; private final UnaryCallable patchAutoscalerCallable; - private final OperationCallable + private final OperationCallable patchAutoscalerOperationCallable; private final UnaryCallable updateAutoscalerCallable; - private final OperationCallable + private final OperationCallable updateAutoscalerOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -375,7 +375,7 @@ public HttpJsonZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteAutoscalerOperationCallable() { return deleteAutoscalerOperationCallable; } @@ -391,7 +391,7 @@ public UnaryCallable getAutoscalerCallable } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertAutoscalerOperationCallable() { return insertAutoscalerOperationCallable; } @@ -413,7 +413,7 @@ public UnaryCallable listAutoscalers } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchAutoscalerOperationCallable() { return patchAutoscalerOperationCallable; } @@ -424,7 +424,7 @@ public UnaryCallable patchAutoscalerCalla } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateAutoscalerOperationCallable() { return updateAutoscalerOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketStub.java index 2611c5df855b..ce9dc6b0327d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketStub.java @@ -227,33 +227,32 @@ public class HttpJsonBackendBucketStub extends BackendBucketStub { private final UnaryCallable addSignedUrlKeyBackendBucketCallable; - private final OperationCallable< - AddSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallable addSignedUrlKeyBackendBucketOperationCallable; private final UnaryCallable deleteBackendBucketCallable; - private final OperationCallable + private final OperationCallable deleteBackendBucketOperationCallable; private final UnaryCallable deleteSignedUrlKeyBackendBucketCallable; private final OperationCallable< - DeleteSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, EmptyMessage> + DeleteSignedUrlKeyBackendBucketHttpRequest, EmptyMessage, Operation> deleteSignedUrlKeyBackendBucketOperationCallable; private final UnaryCallable getBackendBucketCallable; private final UnaryCallable insertBackendBucketCallable; - private final OperationCallable + private final OperationCallable insertBackendBucketOperationCallable; private final UnaryCallable listBackendBucketsCallable; private final UnaryCallable listBackendBucketsPagedCallable; private final UnaryCallable patchBackendBucketCallable; - private final OperationCallable + private final OperationCallable patchBackendBucketOperationCallable; private final UnaryCallable updateBackendBucketCallable; - private final OperationCallable + private final OperationCallable updateBackendBucketOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -428,7 +427,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable addSignedUrlKeyBackendBucketOperationCallable() { return addSignedUrlKeyBackendBucketOperationCallable; } @@ -440,7 +439,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteBackendBucketOperationCallable() { return deleteBackendBucketOperationCallable; } @@ -451,7 +450,7 @@ public UnaryCallable deleteBackendBuc } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteSignedUrlKeyBackendBucketOperationCallable() { return deleteSignedUrlKeyBackendBucketOperationCallable; } @@ -468,7 +467,7 @@ public UnaryCallable getBackendBucke } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertBackendBucketOperationCallable() { return insertBackendBucketOperationCallable; } @@ -491,7 +490,7 @@ public UnaryCallable insertBackendBuc } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchBackendBucketOperationCallable() { return patchBackendBucketOperationCallable; } @@ -502,7 +501,7 @@ public UnaryCallable patchBackendBucke } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateBackendBucketOperationCallable() { return updateBackendBucketOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceStub.java index 93d75f461638..a6dfc6bf4943 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceStub.java @@ -301,8 +301,7 @@ public class HttpJsonBackendServiceStub extends BackendServiceStub { private final UnaryCallable addSignedUrlKeyBackendServiceCallable; - private final OperationCallable< - AddSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallable addSignedUrlKeyBackendServiceOperationCallable; private final UnaryCallable< AggregatedListBackendServicesHttpRequest, BackendServiceAggregatedList> @@ -312,12 +311,12 @@ public class HttpJsonBackendServiceStub extends BackendServiceStub { aggregatedListBackendServicesPagedCallable; private final UnaryCallable deleteBackendServiceCallable; - private final OperationCallable + private final OperationCallable deleteBackendServiceOperationCallable; private final UnaryCallable deleteSignedUrlKeyBackendServiceCallable; private final OperationCallable< - DeleteSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + DeleteSignedUrlKeyBackendServiceHttpRequest, EmptyMessage, Operation> deleteSignedUrlKeyBackendServiceOperationCallable; private final UnaryCallable getBackendServiceCallable; @@ -325,7 +324,7 @@ public class HttpJsonBackendServiceStub extends BackendServiceStub { getHealthBackendServiceCallable; private final UnaryCallable insertBackendServiceCallable; - private final OperationCallable + private final OperationCallable insertBackendServiceOperationCallable; private final UnaryCallable listBackendServicesCallable; @@ -333,16 +332,16 @@ public class HttpJsonBackendServiceStub extends BackendServiceStub { listBackendServicesPagedCallable; private final UnaryCallable patchBackendServiceCallable; - private final OperationCallable + private final OperationCallable patchBackendServiceOperationCallable; private final UnaryCallable setSecurityPolicyBackendServiceCallable; private final OperationCallable< - SetSecurityPolicyBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + SetSecurityPolicyBackendServiceHttpRequest, EmptyMessage, Operation> setSecurityPolicyBackendServiceOperationCallable; private final UnaryCallable updateBackendServiceCallable; - private final OperationCallable + private final OperationCallable updateBackendServiceOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -564,7 +563,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable addSignedUrlKeyBackendServiceOperationCallable() { return addSignedUrlKeyBackendServiceOperationCallable; } @@ -589,7 +588,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteBackendServiceOperationCallable() { return deleteBackendServiceOperationCallable; } @@ -600,7 +599,7 @@ public UnaryCallable deleteBackendSe } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteSignedUrlKeyBackendServiceOperationCallable() { return deleteSignedUrlKeyBackendServiceOperationCallable; } @@ -623,7 +622,7 @@ public UnaryCallable getBackendSer } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertBackendServiceOperationCallable() { return insertBackendServiceOperationCallable; } @@ -646,7 +645,7 @@ public UnaryCallable insertBackendSe } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchBackendServiceOperationCallable() { return patchBackendServiceOperationCallable; } @@ -657,7 +656,7 @@ public UnaryCallable patchBackendServ } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setSecurityPolicyBackendServiceOperationCallable() { return setSecurityPolicyBackendServiceOperationCallable; } @@ -669,7 +668,7 @@ public UnaryCallable patchBackendServ } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateBackendServiceOperationCallable() { return updateBackendServiceOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskStub.java index bc412bb712f3..85ec975432b4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskStub.java @@ -297,24 +297,24 @@ public class HttpJsonDiskStub extends DiskStub { private final UnaryCallable aggregatedListDisksPagedCallable; private final UnaryCallable createSnapshotDiskCallable; - private final OperationCallable + private final OperationCallable createSnapshotDiskOperationCallable; private final UnaryCallable deleteDiskCallable; - private final OperationCallable + private final OperationCallable deleteDiskOperationCallable; private final UnaryCallable getDiskCallable; private final UnaryCallable getIamPolicyDiskCallable; private final UnaryCallable insertDiskCallable; - private final OperationCallable + private final OperationCallable insertDiskOperationCallable; private final UnaryCallable listDisksCallable; private final UnaryCallable listDisksPagedCallable; private final UnaryCallable resizeDiskCallable; - private final OperationCallable + private final OperationCallable resizeDiskOperationCallable; private final UnaryCallable setIamPolicyDiskCallable; private final UnaryCallable setLabelsDiskCallable; - private final OperationCallable + private final OperationCallable setLabelsDiskOperationCallable; private final UnaryCallable testIamPermissionsDiskCallable; @@ -504,7 +504,7 @@ public HttpJsonZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable createSnapshotDiskOperationCallable() { return createSnapshotDiskOperationCallable; } @@ -515,7 +515,7 @@ public UnaryCallable createSnapshotDis } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteDiskOperationCallable() { return deleteDiskOperationCallable; } @@ -536,7 +536,7 @@ public UnaryCallable getIamPolicyDiskCallab } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertDiskOperationCallable() { return insertDiskOperationCallable; } @@ -557,7 +557,7 @@ public UnaryCallable listDisksCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable resizeDiskOperationCallable() { return resizeDiskOperationCallable; } @@ -573,7 +573,7 @@ public UnaryCallable setIamPolicyDiskCallab } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setLabelsDiskOperationCallable() { return setLabelsDiskOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallStub.java index ab137d3bc0f6..651292f4e968 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallStub.java @@ -176,20 +176,20 @@ public class HttpJsonFirewallStub extends FirewallStub { private final HttpJsonGlobalOperationStub operationsStub; private final UnaryCallable deleteFirewallCallable; - private final OperationCallable + private final OperationCallable deleteFirewallOperationCallable; private final UnaryCallable getFirewallCallable; private final UnaryCallable insertFirewallCallable; - private final OperationCallable + private final OperationCallable insertFirewallOperationCallable; private final UnaryCallable listFirewallsCallable; private final UnaryCallable listFirewallsPagedCallable; private final UnaryCallable patchFirewallCallable; - private final OperationCallable + private final OperationCallable patchFirewallOperationCallable; private final UnaryCallable updateFirewallCallable; - private final OperationCallable + private final OperationCallable updateFirewallOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -312,7 +312,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteFirewallOperationCallable() { return deleteFirewallOperationCallable; } @@ -328,7 +328,7 @@ public UnaryCallable getFirewallCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertFirewallOperationCallable() { return insertFirewallOperationCallable; } @@ -350,7 +350,7 @@ public UnaryCallable listFirewallsCallab } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchFirewallOperationCallable() { return patchFirewallOperationCallable; } @@ -361,7 +361,7 @@ public UnaryCallable patchFirewallCallable( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateFirewallOperationCallable() { return updateFirewallOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleStub.java index 9d2aa1facec2..73f916c4422b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleStub.java @@ -198,13 +198,13 @@ public class HttpJsonForwardingRuleStub extends ForwardingRuleStub { aggregatedListForwardingRulesPagedCallable; private final UnaryCallable deleteForwardingRuleCallable; - private final OperationCallable + private final OperationCallable deleteForwardingRuleOperationCallable; private final UnaryCallable getForwardingRuleCallable; private final UnaryCallable insertForwardingRuleCallable; - private final OperationCallable + private final OperationCallable insertForwardingRuleOperationCallable; private final UnaryCallable listForwardingRulesCallable; @@ -212,7 +212,7 @@ public class HttpJsonForwardingRuleStub extends ForwardingRuleStub { listForwardingRulesPagedCallable; private final UnaryCallable setTargetForwardingRuleCallable; - private final OperationCallable + private final OperationCallable setTargetForwardingRuleOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -371,7 +371,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteForwardingRuleOperationCallable() { return deleteForwardingRuleOperationCallable; } @@ -387,7 +387,7 @@ public UnaryCallable getForwarding } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertForwardingRuleOperationCallable() { return insertForwardingRuleOperationCallable; } @@ -410,7 +410,7 @@ public UnaryCallable insertForwardin } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setTargetForwardingRuleOperationCallable() { return setTargetForwardingRuleOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressStub.java index 09dd4a678345..ed08534b474b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressStub.java @@ -137,12 +137,12 @@ public class HttpJsonGlobalAddressStub extends GlobalAddressStub { private final UnaryCallable deleteGlobalAddressCallable; - private final OperationCallable + private final OperationCallable deleteGlobalAddressOperationCallable; private final UnaryCallable getGlobalAddressCallable; private final UnaryCallable insertGlobalAddressCallable; - private final OperationCallable + private final OperationCallable insertGlobalAddressOperationCallable; private final UnaryCallable listGlobalAddressesCallable; @@ -256,7 +256,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteGlobalAddressOperationCallable() { return deleteGlobalAddressOperationCallable; } @@ -272,7 +272,7 @@ public UnaryCallable getGlobalAddressCalla } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertGlobalAddressOperationCallable() { return insertGlobalAddressOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleStub.java index b60aaf3c6909..611d70296035 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleStub.java @@ -162,13 +162,13 @@ public class HttpJsonGlobalForwardingRuleStub extends GlobalForwardingRuleStub { private final UnaryCallable deleteGlobalForwardingRuleCallable; - private final OperationCallable + private final OperationCallable deleteGlobalForwardingRuleOperationCallable; private final UnaryCallable getGlobalForwardingRuleCallable; private final UnaryCallable insertGlobalForwardingRuleCallable; - private final OperationCallable + private final OperationCallable insertGlobalForwardingRuleOperationCallable; private final UnaryCallable listGlobalForwardingRulesCallable; @@ -177,8 +177,7 @@ public class HttpJsonGlobalForwardingRuleStub extends GlobalForwardingRuleStub { listGlobalForwardingRulesPagedCallable; private final UnaryCallable setTargetGlobalForwardingRuleCallable; - private final OperationCallable< - SetTargetGlobalForwardingRuleHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallable setTargetGlobalForwardingRuleOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -308,7 +307,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteGlobalForwardingRuleOperationCallable() { return deleteGlobalForwardingRuleOperationCallable; } @@ -326,7 +325,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertGlobalForwardingRuleOperationCallable() { return insertGlobalForwardingRuleOperationCallable; } @@ -350,7 +349,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setTargetGlobalForwardingRuleOperationCallable() { return setTargetGlobalForwardingRuleOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckStub.java index 42c31786ab16..8e9e7097e83b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckStub.java @@ -180,21 +180,21 @@ public class HttpJsonHealthCheckStub extends HealthCheckStub { private final HttpJsonGlobalOperationStub operationsStub; private final UnaryCallable deleteHealthCheckCallable; - private final OperationCallable + private final OperationCallable deleteHealthCheckOperationCallable; private final UnaryCallable getHealthCheckCallable; private final UnaryCallable insertHealthCheckCallable; - private final OperationCallable + private final OperationCallable insertHealthCheckOperationCallable; private final UnaryCallable listHealthChecksCallable; private final UnaryCallable listHealthChecksPagedCallable; private final UnaryCallable patchHealthCheckCallable; - private final OperationCallable + private final OperationCallable patchHealthCheckOperationCallable; private final UnaryCallable updateHealthCheckCallable; - private final OperationCallable + private final OperationCallable updateHealthCheckOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -328,7 +328,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteHealthCheckOperationCallable() { return deleteHealthCheckOperationCallable; } @@ -344,7 +344,7 @@ public UnaryCallable getHealthCheckCalla } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertHealthCheckOperationCallable() { return insertHealthCheckOperationCallable; } @@ -366,7 +366,7 @@ public UnaryCallable listHealthChe } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchHealthCheckOperationCallable() { return patchHealthCheckOperationCallable; } @@ -377,7 +377,7 @@ public UnaryCallable patchHealthCheckCal } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateHealthCheckOperationCallable() { return updateHealthCheckOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckStub.java index f7c7643e665d..ee685b2fb7ba 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckStub.java @@ -185,13 +185,13 @@ public class HttpJsonHttpHealthCheckStub extends HttpHealthCheckStub { private final UnaryCallable deleteHttpHealthCheckCallable; - private final OperationCallable + private final OperationCallable deleteHttpHealthCheckOperationCallable; private final UnaryCallable getHttpHealthCheckCallable; private final UnaryCallable insertHttpHealthCheckCallable; - private final OperationCallable + private final OperationCallable insertHttpHealthCheckOperationCallable; private final UnaryCallable listHttpHealthChecksCallable; @@ -199,11 +199,11 @@ public class HttpJsonHttpHealthCheckStub extends HttpHealthCheckStub { listHttpHealthChecksPagedCallable; private final UnaryCallable patchHttpHealthCheckCallable; - private final OperationCallable + private final OperationCallable patchHttpHealthCheckOperationCallable; private final UnaryCallable updateHttpHealthCheckCallable; - private final OperationCallable + private final OperationCallable updateHttpHealthCheckOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -348,7 +348,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteHttpHealthCheckOperationCallable() { return deleteHttpHealthCheckOperationCallable; } @@ -366,7 +366,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertHttpHealthCheckOperationCallable() { return insertHttpHealthCheckOperationCallable; } @@ -390,7 +390,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchHttpHealthCheckOperationCallable() { return patchHttpHealthCheckOperationCallable; } @@ -401,7 +401,7 @@ public UnaryCallable patchHttpHealth } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateHttpHealthCheckOperationCallable() { return updateHttpHealthCheckOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckStub.java index c552479a4c37..5dc0823e486d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckStub.java @@ -185,13 +185,13 @@ public class HttpJsonHttpsHealthCheckStub extends HttpsHealthCheckStub { private final UnaryCallable deleteHttpsHealthCheckCallable; - private final OperationCallable + private final OperationCallable deleteHttpsHealthCheckOperationCallable; private final UnaryCallable getHttpsHealthCheckCallable; private final UnaryCallable insertHttpsHealthCheckCallable; - private final OperationCallable + private final OperationCallable insertHttpsHealthCheckOperationCallable; private final UnaryCallable listHttpsHealthChecksCallable; @@ -199,11 +199,11 @@ public class HttpJsonHttpsHealthCheckStub extends HttpsHealthCheckStub { listHttpsHealthChecksPagedCallable; private final UnaryCallable patchHttpsHealthCheckCallable; - private final OperationCallable + private final OperationCallable patchHttpsHealthCheckOperationCallable; private final UnaryCallable updateHttpsHealthCheckCallable; - private final OperationCallable + private final OperationCallable updateHttpsHealthCheckOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -349,7 +349,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteHttpsHealthCheckOperationCallable() { return deleteHttpsHealthCheckOperationCallable; } @@ -367,7 +367,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertHttpsHealthCheckOperationCallable() { return insertHttpsHealthCheckOperationCallable; } @@ -391,7 +391,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchHttpsHealthCheckOperationCallable() { return patchHttpsHealthCheckOperationCallable; } @@ -403,7 +403,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateHttpsHealthCheckOperationCallable() { return updateHttpsHealthCheckOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageStub.java index 2279b753fee9..e9f1bece900b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageStub.java @@ -268,23 +268,23 @@ public class HttpJsonImageStub extends ImageStub { private final HttpJsonGlobalOperationStub operationsStub; private final UnaryCallable deleteImageCallable; - private final OperationCallable + private final OperationCallable deleteImageOperationCallable; private final UnaryCallable deprecateImageCallable; - private final OperationCallable + private final OperationCallable deprecateImageOperationCallable; private final UnaryCallable getImageCallable; private final UnaryCallable getFromFamilyImageCallable; private final UnaryCallable getIamPolicyImageCallable; private final UnaryCallable insertImageCallable; - private final OperationCallable + private final OperationCallable insertImageOperationCallable; private final UnaryCallable listImagesCallable; private final UnaryCallable listImagesPagedCallable; private final UnaryCallable setIamPolicyImageCallable; private final UnaryCallable setLabelsImageCallable; - private final OperationCallable + private final OperationCallable setLabelsImageOperationCallable; private final UnaryCallable testIamPermissionsImageCallable; @@ -446,7 +446,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteImageOperationCallable() { return deleteImageOperationCallable; } @@ -457,7 +457,7 @@ public UnaryCallable deleteImageCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deprecateImageOperationCallable() { return deprecateImageOperationCallable; } @@ -483,7 +483,7 @@ public UnaryCallable getIamPolicyImageCall } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertImageOperationCallable() { return insertImageOperationCallable; } @@ -509,7 +509,7 @@ public UnaryCallable setIamPolicyImageCall } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setLabelsImageOperationCallable() { return setLabelsImageOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerStub.java index 0cfb05b2551b..9fa54e7f70d9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerStub.java @@ -373,7 +373,7 @@ public class HttpJsonInstanceGroupManagerStub extends InstanceGroupManagerStub { private final UnaryCallable abandonInstancesInstanceGroupManagerCallable; private final OperationCallable< - AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> abandonInstancesInstanceGroupManagerOperationCallable; private final UnaryCallable< AggregatedListInstanceGroupManagersHttpRequest, InstanceGroupManagerAggregatedList> @@ -384,18 +384,18 @@ public class HttpJsonInstanceGroupManagerStub extends InstanceGroupManagerStub { aggregatedListInstanceGroupManagersPagedCallable; private final UnaryCallable deleteInstanceGroupManagerCallable; - private final OperationCallable + private final OperationCallable deleteInstanceGroupManagerOperationCallable; private final UnaryCallable deleteInstancesInstanceGroupManagerCallable; private final OperationCallable< - DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteInstancesInstanceGroupManagerOperationCallable; private final UnaryCallable getInstanceGroupManagerCallable; private final UnaryCallable insertInstanceGroupManagerCallable; - private final OperationCallable + private final OperationCallable insertInstanceGroupManagerOperationCallable; private final UnaryCallable listInstanceGroupManagersCallable; @@ -408,26 +408,26 @@ public class HttpJsonInstanceGroupManagerStub extends InstanceGroupManagerStub { listManagedInstancesInstanceGroupManagersCallable; private final UnaryCallable patchInstanceGroupManagerCallable; - private final OperationCallable + private final OperationCallable patchInstanceGroupManagerOperationCallable; private final UnaryCallable recreateInstancesInstanceGroupManagerCallable; private final OperationCallable< - RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> recreateInstancesInstanceGroupManagerOperationCallable; private final UnaryCallable resizeInstanceGroupManagerCallable; - private final OperationCallable + private final OperationCallable resizeInstanceGroupManagerOperationCallable; private final UnaryCallable setInstanceTemplateInstanceGroupManagerCallable; private final OperationCallable< - SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setInstanceTemplateInstanceGroupManagerOperationCallable; private final UnaryCallable setTargetPoolsInstanceGroupManagerCallable; private final OperationCallable< - SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setTargetPoolsInstanceGroupManagerOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -693,8 +693,7 @@ public HttpJsonZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallable abandonInstancesInstanceGroupManagerOperationCallable() { return abandonInstancesInstanceGroupManagerOperationCallable; } @@ -721,7 +720,7 @@ public HttpJsonZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteInstanceGroupManagerOperationCallable() { return deleteInstanceGroupManagerOperationCallable; } @@ -733,8 +732,7 @@ public HttpJsonZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallable deleteInstancesInstanceGroupManagerOperationCallable() { return deleteInstancesInstanceGroupManagerOperationCallable; } @@ -752,7 +750,7 @@ public HttpJsonZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertInstanceGroupManagerOperationCallable() { return insertInstanceGroupManagerOperationCallable; } @@ -784,7 +782,7 @@ public HttpJsonZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchInstanceGroupManagerOperationCallable() { return patchInstanceGroupManagerOperationCallable; } @@ -797,7 +795,7 @@ public HttpJsonZoneOperationStub getOperationsStub() { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable< - RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> recreateInstancesInstanceGroupManagerOperationCallable() { return recreateInstancesInstanceGroupManagerOperationCallable; } @@ -809,7 +807,7 @@ public HttpJsonZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable resizeInstanceGroupManagerOperationCallable() { return resizeInstanceGroupManagerOperationCallable; } @@ -822,7 +820,7 @@ public HttpJsonZoneOperationStub getOperationsStub() { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable< - SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setInstanceTemplateInstanceGroupManagerOperationCallable() { return setInstanceTemplateInstanceGroupManagerOperationCallable; } @@ -834,8 +832,7 @@ public HttpJsonZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallable setTargetPoolsInstanceGroupManagerOperationCallable() { return setTargetPoolsInstanceGroupManagerOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupStub.java index 21fa479a7abe..cd641819cea8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupStub.java @@ -263,7 +263,7 @@ public class HttpJsonInstanceGroupStub extends InstanceGroupStub { private final UnaryCallable addInstancesInstanceGroupCallable; - private final OperationCallable + private final OperationCallable addInstancesInstanceGroupOperationCallable; private final UnaryCallable aggregatedListInstanceGroupsCallable; @@ -272,12 +272,12 @@ public class HttpJsonInstanceGroupStub extends InstanceGroupStub { aggregatedListInstanceGroupsPagedCallable; private final UnaryCallable deleteInstanceGroupCallable; - private final OperationCallable + private final OperationCallable deleteInstanceGroupOperationCallable; private final UnaryCallable getInstanceGroupCallable; private final UnaryCallable insertInstanceGroupCallable; - private final OperationCallable + private final OperationCallable insertInstanceGroupOperationCallable; private final UnaryCallable listInstanceGroupsCallable; @@ -290,12 +290,11 @@ public class HttpJsonInstanceGroupStub extends InstanceGroupStub { listInstancesInstanceGroupsPagedCallable; private final UnaryCallable removeInstancesInstanceGroupCallable; - private final OperationCallable< - RemoveInstancesInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallable removeInstancesInstanceGroupOperationCallable; private final UnaryCallable setNamedPortsInstanceGroupCallable; - private final OperationCallable + private final OperationCallable setNamedPortsInstanceGroupOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -486,7 +485,7 @@ public HttpJsonZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable addInstancesInstanceGroupOperationCallable() { return addInstancesInstanceGroupOperationCallable; } @@ -511,7 +510,7 @@ public HttpJsonZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteInstanceGroupOperationCallable() { return deleteInstanceGroupOperationCallable; } @@ -527,7 +526,7 @@ public UnaryCallable getInstanceGrou } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertInstanceGroupOperationCallable() { return insertInstanceGroupOperationCallable; } @@ -563,7 +562,7 @@ public UnaryCallable insertInstanceGr } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable removeInstancesInstanceGroupOperationCallable() { return removeInstancesInstanceGroupOperationCallable; } @@ -575,7 +574,7 @@ public UnaryCallable insertInstanceGr } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setNamedPortsInstanceGroupOperationCallable() { return setNamedPortsInstanceGroupOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceStub.java index 0355fbcf7563..bb526a426c87 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceStub.java @@ -752,7 +752,7 @@ public class HttpJsonInstanceStub extends InstanceStub { private final UnaryCallable addAccessConfigInstanceCallable; - private final OperationCallable + private final OperationCallable addAccessConfigInstanceOperationCallable; private final UnaryCallable aggregatedListInstancesCallable; @@ -760,24 +760,24 @@ public class HttpJsonInstanceStub extends InstanceStub { AggregatedListInstancesHttpRequest, AggregatedListInstancesPagedResponse> aggregatedListInstancesPagedCallable; private final UnaryCallable attachDiskInstanceCallable; - private final OperationCallable + private final OperationCallable attachDiskInstanceOperationCallable; private final UnaryCallable deleteInstanceCallable; - private final OperationCallable + private final OperationCallable deleteInstanceOperationCallable; private final UnaryCallable deleteAccessConfigInstanceCallable; - private final OperationCallable + private final OperationCallable deleteAccessConfigInstanceOperationCallable; private final UnaryCallable detachDiskInstanceCallable; - private final OperationCallable + private final OperationCallable detachDiskInstanceOperationCallable; private final UnaryCallable getInstanceCallable; private final UnaryCallable getIamPolicyInstanceCallable; private final UnaryCallable getSerialPortOutputInstanceCallable; private final UnaryCallable insertInstanceCallable; - private final OperationCallable + private final OperationCallable insertInstanceOperationCallable; private final UnaryCallable listInstancesCallable; private final UnaryCallable @@ -788,75 +788,73 @@ public class HttpJsonInstanceStub extends InstanceStub { ListReferrersInstancesHttpRequest, ListReferrersInstancesPagedResponse> listReferrersInstancesPagedCallable; private final UnaryCallable resetInstanceCallable; - private final OperationCallable + private final OperationCallable resetInstanceOperationCallable; private final UnaryCallable setDeletionProtectionInstanceCallable; - private final OperationCallable< - SetDeletionProtectionInstanceHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallable setDeletionProtectionInstanceOperationCallable; private final UnaryCallable setDiskAutoDeleteInstanceCallable; - private final OperationCallable + private final OperationCallable setDiskAutoDeleteInstanceOperationCallable; private final UnaryCallable setIamPolicyInstanceCallable; private final UnaryCallable setLabelsInstanceCallable; - private final OperationCallable + private final OperationCallable setLabelsInstanceOperationCallable; private final UnaryCallable setMachineResourcesInstanceCallable; - private final OperationCallable< - SetMachineResourcesInstanceHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallable setMachineResourcesInstanceOperationCallable; private final UnaryCallable setMachineTypeInstanceCallable; - private final OperationCallable + private final OperationCallable setMachineTypeInstanceOperationCallable; private final UnaryCallable setMetadataInstanceCallable; - private final OperationCallable + private final OperationCallable setMetadataInstanceOperationCallable; private final UnaryCallable setMinCpuPlatformInstanceCallable; - private final OperationCallable + private final OperationCallable setMinCpuPlatformInstanceOperationCallable; private final UnaryCallable setSchedulingInstanceCallable; - private final OperationCallable + private final OperationCallable setSchedulingInstanceOperationCallable; private final UnaryCallable setServiceAccountInstanceCallable; - private final OperationCallable + private final OperationCallable setServiceAccountInstanceOperationCallable; private final UnaryCallable setTagsInstanceCallable; - private final OperationCallable + private final OperationCallable setTagsInstanceOperationCallable; private final UnaryCallable simulateMaintenanceEventInstanceCallable; private final OperationCallable< - SimulateMaintenanceEventInstanceHttpRequest, EmptyMessage, EmptyMessage> + SimulateMaintenanceEventInstanceHttpRequest, EmptyMessage, Operation> simulateMaintenanceEventInstanceOperationCallable; private final UnaryCallable startInstanceCallable; - private final OperationCallable + private final OperationCallable startInstanceOperationCallable; private final UnaryCallable startWithEncryptionKeyInstanceCallable; private final OperationCallable< - StartWithEncryptionKeyInstanceHttpRequest, EmptyMessage, EmptyMessage> + StartWithEncryptionKeyInstanceHttpRequest, EmptyMessage, Operation> startWithEncryptionKeyInstanceOperationCallable; private final UnaryCallable stopInstanceCallable; - private final OperationCallable + private final OperationCallable stopInstanceOperationCallable; private final UnaryCallable testIamPermissionsInstanceCallable; private final UnaryCallable updateAccessConfigInstanceCallable; - private final OperationCallable + private final OperationCallable updateAccessConfigInstanceOperationCallable; private final UnaryCallable updateNetworkInterfaceInstanceCallable; private final OperationCallable< - UpdateNetworkInterfaceInstanceHttpRequest, EmptyMessage, EmptyMessage> + UpdateNetworkInterfaceInstanceHttpRequest, EmptyMessage, Operation> updateNetworkInterfaceInstanceOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -1352,7 +1350,7 @@ public HttpJsonZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable addAccessConfigInstanceOperationCallable() { return addAccessConfigInstanceOperationCallable; } @@ -1376,7 +1374,7 @@ public HttpJsonZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable attachDiskInstanceOperationCallable() { return attachDiskInstanceOperationCallable; } @@ -1387,7 +1385,7 @@ public UnaryCallable attachDiskInstanc } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteInstanceOperationCallable() { return deleteInstanceOperationCallable; } @@ -1398,7 +1396,7 @@ public UnaryCallable deleteInstanceCallabl } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteAccessConfigInstanceOperationCallable() { return deleteAccessConfigInstanceOperationCallable; } @@ -1410,7 +1408,7 @@ public UnaryCallable deleteInstanceCallabl } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable detachDiskInstanceOperationCallable() { return detachDiskInstanceOperationCallable; } @@ -1437,7 +1435,7 @@ public UnaryCallable getIamPolicyInstan } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertInstanceOperationCallable() { return insertInstanceOperationCallable; } @@ -1471,7 +1469,7 @@ public UnaryCallable listInstancesCallab } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable resetInstanceOperationCallable() { return resetInstanceOperationCallable; } @@ -1482,7 +1480,7 @@ public UnaryCallable resetInstanceCallable( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setDeletionProtectionInstanceOperationCallable() { return setDeletionProtectionInstanceOperationCallable; } @@ -1494,7 +1492,7 @@ public UnaryCallable resetInstanceCallable( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setDiskAutoDeleteInstanceOperationCallable() { return setDiskAutoDeleteInstanceOperationCallable; } @@ -1511,7 +1509,7 @@ public UnaryCallable setIamPolicyInstan } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setLabelsInstanceOperationCallable() { return setLabelsInstanceOperationCallable; } @@ -1522,7 +1520,7 @@ public UnaryCallable setLabelsInstanceC } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setMachineResourcesInstanceOperationCallable() { return setMachineResourcesInstanceOperationCallable; } @@ -1534,7 +1532,7 @@ public UnaryCallable setLabelsInstanceC } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setMachineTypeInstanceOperationCallable() { return setMachineTypeInstanceOperationCallable; } @@ -1546,7 +1544,7 @@ public UnaryCallable setLabelsInstanceC } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setMetadataInstanceOperationCallable() { return setMetadataInstanceOperationCallable; } @@ -1557,7 +1555,7 @@ public UnaryCallable setMetadataInsta } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setMinCpuPlatformInstanceOperationCallable() { return setMinCpuPlatformInstanceOperationCallable; } @@ -1569,7 +1567,7 @@ public UnaryCallable setMetadataInsta } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setSchedulingInstanceOperationCallable() { return setSchedulingInstanceOperationCallable; } @@ -1581,7 +1579,7 @@ public UnaryCallable setMetadataInsta } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setServiceAccountInstanceOperationCallable() { return setServiceAccountInstanceOperationCallable; } @@ -1593,7 +1591,7 @@ public UnaryCallable setMetadataInsta } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setTagsInstanceOperationCallable() { return setTagsInstanceOperationCallable; } @@ -1604,7 +1602,7 @@ public UnaryCallable setTagsInstanceCalla } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable simulateMaintenanceEventInstanceOperationCallable() { return simulateMaintenanceEventInstanceOperationCallable; } @@ -1616,7 +1614,7 @@ public UnaryCallable setTagsInstanceCalla } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable startInstanceOperationCallable() { return startInstanceOperationCallable; } @@ -1627,7 +1625,7 @@ public UnaryCallable startInstanceCallable( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable startWithEncryptionKeyInstanceOperationCallable() { return startWithEncryptionKeyInstanceOperationCallable; } @@ -1639,7 +1637,7 @@ public UnaryCallable startInstanceCallable( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable stopInstanceOperationCallable() { return stopInstanceOperationCallable; } @@ -1656,7 +1654,7 @@ public UnaryCallable stopInstanceCallable() } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateAccessConfigInstanceOperationCallable() { return updateAccessConfigInstanceOperationCallable; } @@ -1668,7 +1666,7 @@ public UnaryCallable stopInstanceCallable() } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateNetworkInterfaceInstanceOperationCallable() { return updateNetworkInterfaceInstanceOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateStub.java index dc2b8597b4e6..a6e2bd2f1ef9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateStub.java @@ -218,7 +218,7 @@ public class HttpJsonInstanceTemplateStub extends InstanceTemplateStub { private final UnaryCallable deleteInstanceTemplateCallable; - private final OperationCallable + private final OperationCallable deleteInstanceTemplateOperationCallable; private final UnaryCallable getInstanceTemplateCallable; @@ -226,7 +226,7 @@ public class HttpJsonInstanceTemplateStub extends InstanceTemplateStub { getIamPolicyInstanceTemplateCallable; private final UnaryCallable insertInstanceTemplateCallable; - private final OperationCallable + private final OperationCallable insertInstanceTemplateOperationCallable; private final UnaryCallable listInstanceTemplatesCallable; @@ -381,7 +381,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteInstanceTemplateOperationCallable() { return deleteInstanceTemplateOperationCallable; } @@ -405,7 +405,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertInstanceTemplateOperationCallable() { return insertInstanceTemplateOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentStub.java index e5be40252ba0..9e9ecdeb2f06 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentStub.java @@ -211,15 +211,13 @@ public class HttpJsonInterconnectAttachmentStub extends InterconnectAttachmentSt aggregatedListInterconnectAttachmentsPagedCallable; private final UnaryCallable deleteInterconnectAttachmentCallable; - private final OperationCallable< - DeleteInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallable deleteInterconnectAttachmentOperationCallable; private final UnaryCallable getInterconnectAttachmentCallable; private final UnaryCallable insertInterconnectAttachmentCallable; - private final OperationCallable< - InsertInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallable insertInterconnectAttachmentOperationCallable; private final UnaryCallable listInterconnectAttachmentsCallable; @@ -228,8 +226,7 @@ public class HttpJsonInterconnectAttachmentStub extends InterconnectAttachmentSt listInterconnectAttachmentsPagedCallable; private final UnaryCallable patchInterconnectAttachmentCallable; - private final OperationCallable< - PatchInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallable patchInterconnectAttachmentOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -394,7 +391,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteInterconnectAttachmentOperationCallable() { return deleteInterconnectAttachmentOperationCallable; } @@ -412,7 +409,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertInterconnectAttachmentOperationCallable() { return insertInterconnectAttachmentOperationCallable; } @@ -437,7 +434,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchInterconnectAttachmentOperationCallable() { return patchInterconnectAttachmentOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectStub.java index e1beea4ef75c..c42e617e606f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectStub.java @@ -185,21 +185,21 @@ public class HttpJsonInterconnectStub extends InterconnectStub { private final HttpJsonGlobalOperationStub operationsStub; private final UnaryCallable deleteInterconnectCallable; - private final OperationCallable + private final OperationCallable deleteInterconnectOperationCallable; private final UnaryCallable getInterconnectCallable; private final UnaryCallable< GetDiagnosticsInterconnectHttpRequest, InterconnectsGetDiagnosticsResponse> getDiagnosticsInterconnectCallable; private final UnaryCallable insertInterconnectCallable; - private final OperationCallable + private final OperationCallable insertInterconnectOperationCallable; private final UnaryCallable listInterconnectsCallable; private final UnaryCallable listInterconnectsPagedCallable; private final UnaryCallable patchInterconnectCallable; - private final OperationCallable + private final OperationCallable patchInterconnectOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -338,7 +338,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteInterconnectOperationCallable() { return deleteInterconnectOperationCallable; } @@ -360,7 +360,7 @@ public UnaryCallable getInterconnectCa } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertInterconnectOperationCallable() { return insertInterconnectOperationCallable; } @@ -382,7 +382,7 @@ public UnaryCallable listInterco } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchInterconnectOperationCallable() { return patchInterconnectOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseStub.java index 3bf778c5524f..1c771607f3ec 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseStub.java @@ -205,12 +205,12 @@ public class HttpJsonLicenseStub extends LicenseStub { private final HttpJsonGlobalOperationStub operationsStub; private final UnaryCallable deleteLicenseCallable; - private final OperationCallable + private final OperationCallable deleteLicenseOperationCallable; private final UnaryCallable getLicenseCallable; private final UnaryCallable getIamPolicyLicenseCallable; private final UnaryCallable insertLicenseCallable; - private final OperationCallable + private final OperationCallable insertLicenseOperationCallable; private final UnaryCallable listLicensesCallable; private final UnaryCallable @@ -344,7 +344,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteLicenseOperationCallable() { return deleteLicenseOperationCallable; } @@ -365,7 +365,7 @@ public UnaryCallable getIamPolicyLicense } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertLicenseOperationCallable() { return insertLicenseOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkStub.java index bbedb06a65d2..d407c2eb0c14 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkStub.java @@ -220,28 +220,28 @@ public class HttpJsonNetworkStub extends NetworkStub { private final HttpJsonGlobalOperationStub operationsStub; private final UnaryCallable addPeeringNetworkCallable; - private final OperationCallable + private final OperationCallable addPeeringNetworkOperationCallable; private final UnaryCallable deleteNetworkCallable; - private final OperationCallable + private final OperationCallable deleteNetworkOperationCallable; private final UnaryCallable getNetworkCallable; private final UnaryCallable insertNetworkCallable; - private final OperationCallable + private final OperationCallable insertNetworkOperationCallable; private final UnaryCallable listNetworksCallable; private final UnaryCallable listNetworksPagedCallable; private final UnaryCallable patchNetworkCallable; - private final OperationCallable + private final OperationCallable patchNetworkOperationCallable; private final UnaryCallable removePeeringNetworkCallable; - private final OperationCallable + private final OperationCallable removePeeringNetworkOperationCallable; private final UnaryCallable switchToCustomModeNetworkCallable; - private final OperationCallable + private final OperationCallable switchToCustomModeNetworkOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -398,7 +398,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable addPeeringNetworkOperationCallable() { return addPeeringNetworkOperationCallable; } @@ -409,7 +409,7 @@ public UnaryCallable addPeeringNetworkC } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteNetworkOperationCallable() { return deleteNetworkOperationCallable; } @@ -425,7 +425,7 @@ public UnaryCallable getNetworkCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertNetworkOperationCallable() { return insertNetworkOperationCallable; } @@ -447,7 +447,7 @@ public UnaryCallable listNetworksCallable( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchNetworkOperationCallable() { return patchNetworkOperationCallable; } @@ -458,7 +458,7 @@ public UnaryCallable patchNetworkCallable() } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable removePeeringNetworkOperationCallable() { return removePeeringNetworkOperationCallable; } @@ -469,7 +469,7 @@ public UnaryCallable removePeeringNe } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable switchToCustomModeNetworkOperationCallable() { return switchToCustomModeNetworkOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupStub.java index adfd51b337fd..19fc94fb6525 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupStub.java @@ -327,7 +327,7 @@ public class HttpJsonNodeGroupStub extends NodeGroupStub { private final HttpJsonZoneOperationStub operationsStub; private final UnaryCallable addNodesNodeGroupCallable; - private final OperationCallable + private final OperationCallable addNodesNodeGroupOperationCallable; private final UnaryCallable aggregatedListNodeGroupsCallable; @@ -335,17 +335,17 @@ public class HttpJsonNodeGroupStub extends NodeGroupStub { AggregatedListNodeGroupsHttpRequest, AggregatedListNodeGroupsPagedResponse> aggregatedListNodeGroupsPagedCallable; private final UnaryCallable deleteNodeGroupCallable; - private final OperationCallable + private final OperationCallable deleteNodeGroupOperationCallable; private final UnaryCallable deleteNodesNodeGroupCallable; - private final OperationCallable + private final OperationCallable deleteNodesNodeGroupOperationCallable; private final UnaryCallable getNodeGroupCallable; private final UnaryCallable getIamPolicyNodeGroupCallable; private final UnaryCallable insertNodeGroupCallable; - private final OperationCallable + private final OperationCallable insertNodeGroupOperationCallable; private final UnaryCallable listNodeGroupsCallable; private final UnaryCallable @@ -358,7 +358,7 @@ public class HttpJsonNodeGroupStub extends NodeGroupStub { setIamPolicyNodeGroupCallable; private final UnaryCallable setNodeTemplateNodeGroupCallable; - private final OperationCallable + private final OperationCallable setNodeTemplateNodeGroupOperationCallable; private final UnaryCallable testIamPermissionsNodeGroupCallable; @@ -567,7 +567,7 @@ public HttpJsonZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable addNodesNodeGroupOperationCallable() { return addNodesNodeGroupOperationCallable; } @@ -590,7 +590,7 @@ public UnaryCallable addNodesNodeGroupC } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteNodeGroupOperationCallable() { return deleteNodeGroupOperationCallable; } @@ -601,7 +601,7 @@ public UnaryCallable deleteNodeGroupCalla } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteNodesNodeGroupOperationCallable() { return deleteNodesNodeGroupOperationCallable; } @@ -622,7 +622,7 @@ public UnaryCallable getIamPolicyNodeG } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertNodeGroupOperationCallable() { return insertNodeGroupOperationCallable; } @@ -661,7 +661,7 @@ public UnaryCallable setIamPolicyNodeG } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setNodeTemplateNodeGroupOperationCallable() { return setNodeTemplateNodeGroupOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateStub.java index dbb59f14ca51..0e00e7d62392 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateStub.java @@ -246,13 +246,13 @@ public class HttpJsonNodeTemplateStub extends NodeTemplateStub { AggregatedListNodeTemplatesHttpRequest, AggregatedListNodeTemplatesPagedResponse> aggregatedListNodeTemplatesPagedCallable; private final UnaryCallable deleteNodeTemplateCallable; - private final OperationCallable + private final OperationCallable deleteNodeTemplateOperationCallable; private final UnaryCallable getNodeTemplateCallable; private final UnaryCallable getIamPolicyNodeTemplateCallable; private final UnaryCallable insertNodeTemplateCallable; - private final OperationCallable + private final OperationCallable insertNodeTemplateOperationCallable; private final UnaryCallable listNodeTemplatesCallable; @@ -431,7 +431,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteNodeTemplateOperationCallable() { return deleteNodeTemplateOperationCallable; } @@ -453,7 +453,7 @@ public UnaryCallable getNodeTemplateCa } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertNodeTemplateOperationCallable() { return insertNodeTemplateOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectStub.java index fa1cc1631045..52b6fd8e2693 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectStub.java @@ -324,19 +324,19 @@ public class HttpJsonProjectStub extends ProjectStub { private final UnaryCallable disableXpnHostProjectCallable; - private final OperationCallable + private final OperationCallable disableXpnHostProjectOperationCallable; private final UnaryCallable disableXpnResourceProjectCallable; - private final OperationCallable + private final OperationCallable disableXpnResourceProjectOperationCallable; private final UnaryCallable enableXpnHostProjectCallable; - private final OperationCallable + private final OperationCallable enableXpnHostProjectOperationCallable; private final UnaryCallable enableXpnResourceProjectCallable; - private final OperationCallable + private final OperationCallable enableXpnResourceProjectOperationCallable; private final UnaryCallable getProjectCallable; private final UnaryCallable getXpnHostProjectCallable; @@ -350,26 +350,24 @@ public class HttpJsonProjectStub extends ProjectStub { private final UnaryCallable listXpnHostsProjectsPagedCallable; private final UnaryCallable moveDiskProjectCallable; - private final OperationCallable + private final OperationCallable moveDiskProjectOperationCallable; private final UnaryCallable moveInstanceProjectCallable; - private final OperationCallable + private final OperationCallable moveInstanceProjectOperationCallable; private final UnaryCallable setCommonInstanceMetadataProjectCallable; private final OperationCallable< - SetCommonInstanceMetadataProjectHttpRequest, EmptyMessage, EmptyMessage> + SetCommonInstanceMetadataProjectHttpRequest, EmptyMessage, Operation> setCommonInstanceMetadataProjectOperationCallable; private final UnaryCallable setDefaultNetworkTierProjectCallable; - private final OperationCallable< - SetDefaultNetworkTierProjectHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallable setDefaultNetworkTierProjectOperationCallable; private final UnaryCallable setUsageExportBucketProjectCallable; - private final OperationCallable< - SetUsageExportBucketProjectHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallable setUsageExportBucketProjectOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -611,7 +609,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable disableXpnHostProjectOperationCallable() { return disableXpnHostProjectOperationCallable; } @@ -623,7 +621,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable disableXpnResourceProjectOperationCallable() { return disableXpnResourceProjectOperationCallable; } @@ -635,7 +633,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable enableXpnHostProjectOperationCallable() { return enableXpnHostProjectOperationCallable; } @@ -646,7 +644,7 @@ public UnaryCallable enableXpnHostPr } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable enableXpnResourceProjectOperationCallable() { return enableXpnResourceProjectOperationCallable; } @@ -692,7 +690,7 @@ public UnaryCallable getXpnHostProjectCal } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable moveDiskProjectOperationCallable() { return moveDiskProjectOperationCallable; } @@ -703,7 +701,7 @@ public UnaryCallable moveDiskProjectCalla } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable moveInstanceProjectOperationCallable() { return moveInstanceProjectOperationCallable; } @@ -714,7 +712,7 @@ public UnaryCallable moveInstanceProj } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setCommonInstanceMetadataProjectOperationCallable() { return setCommonInstanceMetadataProjectOperationCallable; } @@ -726,7 +724,7 @@ public UnaryCallable moveInstanceProj } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setDefaultNetworkTierProjectOperationCallable() { return setDefaultNetworkTierProjectOperationCallable; } @@ -738,7 +736,7 @@ public UnaryCallable moveInstanceProj } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setUsageExportBucketProjectOperationCallable() { return setUsageExportBucketProjectOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerStub.java index a15ed2662de4..db15445ffaa0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerStub.java @@ -185,13 +185,13 @@ public class HttpJsonRegionAutoscalerStub extends RegionAutoscalerStub { private final UnaryCallable deleteRegionAutoscalerCallable; - private final OperationCallable + private final OperationCallable deleteRegionAutoscalerOperationCallable; private final UnaryCallable getRegionAutoscalerCallable; private final UnaryCallable insertRegionAutoscalerCallable; - private final OperationCallable + private final OperationCallable insertRegionAutoscalerOperationCallable; private final UnaryCallable listRegionAutoscalersCallable; @@ -199,11 +199,11 @@ public class HttpJsonRegionAutoscalerStub extends RegionAutoscalerStub { listRegionAutoscalersPagedCallable; private final UnaryCallable patchRegionAutoscalerCallable; - private final OperationCallable + private final OperationCallable patchRegionAutoscalerOperationCallable; private final UnaryCallable updateRegionAutoscalerCallable; - private final OperationCallable + private final OperationCallable updateRegionAutoscalerOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -349,7 +349,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteRegionAutoscalerOperationCallable() { return deleteRegionAutoscalerOperationCallable; } @@ -366,7 +366,7 @@ public UnaryCallable getRegionAutosc } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertRegionAutoscalerOperationCallable() { return insertRegionAutoscalerOperationCallable; } @@ -390,7 +390,7 @@ public UnaryCallable getRegionAutosc } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchRegionAutoscalerOperationCallable() { return patchRegionAutoscalerOperationCallable; } @@ -402,7 +402,7 @@ public UnaryCallable getRegionAutosc } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateRegionAutoscalerOperationCallable() { return updateRegionAutoscalerOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceStub.java index 6a7244a157d3..1c13ee6e5f20 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceStub.java @@ -213,7 +213,7 @@ public class HttpJsonRegionBackendServiceStub extends RegionBackendServiceStub { private final UnaryCallable deleteRegionBackendServiceCallable; - private final OperationCallable + private final OperationCallable deleteRegionBackendServiceOperationCallable; private final UnaryCallable getRegionBackendServiceCallable; @@ -221,7 +221,7 @@ public class HttpJsonRegionBackendServiceStub extends RegionBackendServiceStub { getHealthRegionBackendServiceCallable; private final UnaryCallable insertRegionBackendServiceCallable; - private final OperationCallable + private final OperationCallable insertRegionBackendServiceOperationCallable; private final UnaryCallable listRegionBackendServicesCallable; @@ -230,11 +230,11 @@ public class HttpJsonRegionBackendServiceStub extends RegionBackendServiceStub { listRegionBackendServicesPagedCallable; private final UnaryCallable patchRegionBackendServiceCallable; - private final OperationCallable + private final OperationCallable patchRegionBackendServiceOperationCallable; private final UnaryCallable updateRegionBackendServiceCallable; - private final OperationCallable + private final OperationCallable updateRegionBackendServiceOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -391,7 +391,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteRegionBackendServiceOperationCallable() { return deleteRegionBackendServiceOperationCallable; } @@ -415,7 +415,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertRegionBackendServiceOperationCallable() { return insertRegionBackendServiceOperationCallable; } @@ -439,7 +439,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchRegionBackendServiceOperationCallable() { return patchRegionBackendServiceOperationCallable; } @@ -451,7 +451,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateRegionBackendServiceOperationCallable() { return updateRegionBackendServiceOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentStub.java index fbe4ca7ee130..74a1d4df14bb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentStub.java @@ -155,7 +155,7 @@ public class HttpJsonRegionCommitmentStub extends RegionCommitmentStub { getRegionCommitmentCallable; private final UnaryCallable insertRegionCommitmentCallable; - private final OperationCallable + private final OperationCallable insertRegionCommitmentOperationCallable; private final UnaryCallable listRegionCommitmentsCallable; @@ -290,7 +290,7 @@ public UnaryCallable getRegionCommit } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertRegionCommitmentOperationCallable() { return insertRegionCommitmentOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskStub.java index b7d53129a960..be9f50de79a5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskStub.java @@ -231,24 +231,24 @@ public class HttpJsonRegionDiskStub extends RegionDiskStub { private final UnaryCallable createSnapshotRegionDiskCallable; - private final OperationCallable + private final OperationCallable createSnapshotRegionDiskOperationCallable; private final UnaryCallable deleteRegionDiskCallable; - private final OperationCallable + private final OperationCallable deleteRegionDiskOperationCallable; private final UnaryCallable getRegionDiskCallable; private final UnaryCallable insertRegionDiskCallable; - private final OperationCallable + private final OperationCallable insertRegionDiskOperationCallable; private final UnaryCallable listRegionDisksCallable; private final UnaryCallable listRegionDisksPagedCallable; private final UnaryCallable resizeRegionDiskCallable; - private final OperationCallable + private final OperationCallable resizeRegionDiskOperationCallable; private final UnaryCallable setLabelsRegionDiskCallable; - private final OperationCallable + private final OperationCallable setLabelsRegionDiskOperationCallable; private final UnaryCallable testIamPermissionsRegionDiskCallable; @@ -404,7 +404,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable createSnapshotRegionDiskOperationCallable() { return createSnapshotRegionDiskOperationCallable; } @@ -416,7 +416,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteRegionDiskOperationCallable() { return deleteRegionDiskOperationCallable; } @@ -432,7 +432,7 @@ public UnaryCallable getRegionDiskCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertRegionDiskOperationCallable() { return insertRegionDiskOperationCallable; } @@ -454,7 +454,7 @@ public UnaryCallable listRegionDisksCallab } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable resizeRegionDiskOperationCallable() { return resizeRegionDiskOperationCallable; } @@ -465,7 +465,7 @@ public UnaryCallable resizeRegionDiskCal } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setLabelsRegionDiskOperationCallable() { return setLabelsRegionDiskOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerStub.java index b4c680e7944f..f8bc12b4c5f7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerStub.java @@ -356,24 +356,24 @@ public class HttpJsonRegionInstanceGroupManagerStub extends RegionInstanceGroupM private final UnaryCallable abandonInstancesRegionInstanceGroupManagerCallable; private final OperationCallable< - AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> abandonInstancesRegionInstanceGroupManagerOperationCallable; private final UnaryCallable deleteRegionInstanceGroupManagerCallable; private final OperationCallable< - DeleteRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteRegionInstanceGroupManagerOperationCallable; private final UnaryCallable deleteInstancesRegionInstanceGroupManagerCallable; private final OperationCallable< - DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteInstancesRegionInstanceGroupManagerOperationCallable; private final UnaryCallable getRegionInstanceGroupManagerCallable; private final UnaryCallable insertRegionInstanceGroupManagerCallable; private final OperationCallable< - InsertRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + InsertRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> insertRegionInstanceGroupManagerOperationCallable; private final UnaryCallable< ListRegionInstanceGroupManagersHttpRequest, RegionInstanceGroupManagerList> @@ -388,27 +388,27 @@ public class HttpJsonRegionInstanceGroupManagerStub extends RegionInstanceGroupM private final UnaryCallable patchRegionInstanceGroupManagerCallable; private final OperationCallable< - PatchRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + PatchRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> patchRegionInstanceGroupManagerOperationCallable; private final UnaryCallable recreateInstancesRegionInstanceGroupManagerCallable; private final OperationCallable< - RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> recreateInstancesRegionInstanceGroupManagerOperationCallable; private final UnaryCallable resizeRegionInstanceGroupManagerCallable; private final OperationCallable< - ResizeRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + ResizeRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> resizeRegionInstanceGroupManagerOperationCallable; private final UnaryCallable setInstanceTemplateRegionInstanceGroupManagerCallable; private final OperationCallable< - SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setInstanceTemplateRegionInstanceGroupManagerOperationCallable; private final UnaryCallable setTargetPoolsRegionInstanceGroupManagerCallable; private final OperationCallable< - SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setTargetPoolsRegionInstanceGroupManagerOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -664,7 +664,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable< - AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> abandonInstancesRegionInstanceGroupManagerOperationCallable() { return abandonInstancesRegionInstanceGroupManagerOperationCallable; } @@ -676,7 +676,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteRegionInstanceGroupManagerOperationCallable() { return deleteRegionInstanceGroupManagerOperationCallable; } @@ -689,7 +689,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable< - DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteInstancesRegionInstanceGroupManagerOperationCallable() { return deleteInstancesRegionInstanceGroupManagerOperationCallable; } @@ -707,7 +707,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertRegionInstanceGroupManagerOperationCallable() { return insertRegionInstanceGroupManagerOperationCallable; } @@ -740,7 +740,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchRegionInstanceGroupManagerOperationCallable() { return patchRegionInstanceGroupManagerOperationCallable; } @@ -753,7 +753,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable< - RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> recreateInstancesRegionInstanceGroupManagerOperationCallable() { return recreateInstancesRegionInstanceGroupManagerOperationCallable; } @@ -765,7 +765,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable resizeRegionInstanceGroupManagerOperationCallable() { return resizeRegionInstanceGroupManagerOperationCallable; } @@ -778,7 +778,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable< - SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setInstanceTemplateRegionInstanceGroupManagerOperationCallable() { return setInstanceTemplateRegionInstanceGroupManagerOperationCallable; } @@ -791,7 +791,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable< - SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setTargetPoolsRegionInstanceGroupManagerOperationCallable() { return setTargetPoolsRegionInstanceGroupManagerOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupStub.java index d0e37e1246f0..66d437201457 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupStub.java @@ -169,7 +169,7 @@ public class HttpJsonRegionInstanceGroupStub extends RegionInstanceGroupStub { private final UnaryCallable setNamedPortsRegionInstanceGroupCallable; private final OperationCallable< - SetNamedPortsRegionInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + SetNamedPortsRegionInstanceGroupHttpRequest, EmptyMessage, Operation> setNamedPortsRegionInstanceGroupOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -319,7 +319,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setNamedPortsRegionInstanceGroupOperationCallable() { return setNamedPortsRegionInstanceGroupOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteStub.java index 39c70d90f464..c562e1cc4928 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteStub.java @@ -135,11 +135,11 @@ public class HttpJsonRouteStub extends RouteStub { private final HttpJsonGlobalOperationStub operationsStub; private final UnaryCallable deleteRouteCallable; - private final OperationCallable + private final OperationCallable deleteRouteOperationCallable; private final UnaryCallable getRouteCallable; private final UnaryCallable insertRouteCallable; - private final OperationCallable + private final OperationCallable insertRouteOperationCallable; private final UnaryCallable listRoutesCallable; private final UnaryCallable @@ -238,7 +238,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteRouteOperationCallable() { return deleteRouteOperationCallable; } @@ -254,7 +254,7 @@ public UnaryCallable getRouteCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertRouteOperationCallable() { return insertRouteOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterStub.java index f6143cdc3c29..011ff331b67a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterStub.java @@ -280,7 +280,7 @@ public class HttpJsonRouterStub extends RouterStub { private final UnaryCallable aggregatedListRoutersPagedCallable; private final UnaryCallable deleteRouterCallable; - private final OperationCallable + private final OperationCallable deleteRouterOperationCallable; private final UnaryCallable getRouterCallable; private final UnaryCallable @@ -291,18 +291,18 @@ public class HttpJsonRouterStub extends RouterStub { private final UnaryCallable getRouterStatusRouterCallable; private final UnaryCallable insertRouterCallable; - private final OperationCallable + private final OperationCallable insertRouterOperationCallable; private final UnaryCallable listRoutersCallable; private final UnaryCallable listRoutersPagedCallable; private final UnaryCallable patchRouterCallable; - private final OperationCallable + private final OperationCallable patchRouterOperationCallable; private final UnaryCallable previewRouterCallable; private final UnaryCallable updateRouterCallable; - private final OperationCallable + private final OperationCallable updateRouterOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -487,7 +487,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteRouterOperationCallable() { return deleteRouterOperationCallable; } @@ -521,7 +521,7 @@ public UnaryCallable getRouterCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertRouterOperationCallable() { return insertRouterOperationCallable; } @@ -543,7 +543,7 @@ public UnaryCallable listRoutersCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchRouterOperationCallable() { return patchRouterOperationCallable; } @@ -559,7 +559,7 @@ public UnaryCallable previewRo } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateRouterOperationCallable() { return updateRouterOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyStub.java index 4e932e4ccd1c..a34f5e5ecd4d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyStub.java @@ -249,11 +249,11 @@ public class HttpJsonSecurityPolicyStub extends SecurityPolicyStub { private final UnaryCallable addRuleSecurityPolicyCallable; - private final OperationCallable + private final OperationCallable addRuleSecurityPolicyOperationCallable; private final UnaryCallable deleteSecurityPolicyCallable; - private final OperationCallable + private final OperationCallable deleteSecurityPolicyOperationCallable; private final UnaryCallable getSecurityPolicyCallable; @@ -261,7 +261,7 @@ public class HttpJsonSecurityPolicyStub extends SecurityPolicyStub { getRuleSecurityPolicyCallable; private final UnaryCallable insertSecurityPolicyCallable; - private final OperationCallable + private final OperationCallable insertSecurityPolicyOperationCallable; private final UnaryCallable listSecurityPoliciesCallable; @@ -269,15 +269,15 @@ public class HttpJsonSecurityPolicyStub extends SecurityPolicyStub { listSecurityPoliciesPagedCallable; private final UnaryCallable patchSecurityPolicyCallable; - private final OperationCallable + private final OperationCallable patchSecurityPolicyOperationCallable; private final UnaryCallable patchRuleSecurityPolicyCallable; - private final OperationCallable + private final OperationCallable patchRuleSecurityPolicyOperationCallable; private final UnaryCallable removeRuleSecurityPolicyCallable; - private final OperationCallable + private final OperationCallable removeRuleSecurityPolicyOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -464,7 +464,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable addRuleSecurityPolicyOperationCallable() { return addRuleSecurityPolicyOperationCallable; } @@ -476,7 +476,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteSecurityPolicyOperationCallable() { return deleteSecurityPolicyOperationCallable; } @@ -498,7 +498,7 @@ public UnaryCallable getSecurityPo } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertSecurityPolicyOperationCallable() { return insertSecurityPolicyOperationCallable; } @@ -521,7 +521,7 @@ public UnaryCallable insertSecurityP } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchSecurityPolicyOperationCallable() { return patchSecurityPolicyOperationCallable; } @@ -532,7 +532,7 @@ public UnaryCallable patchSecurityPol } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchRuleSecurityPolicyOperationCallable() { return patchRuleSecurityPolicyOperationCallable; } @@ -544,7 +544,7 @@ public UnaryCallable patchSecurityPol } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable removeRuleSecurityPolicyOperationCallable() { return removeRuleSecurityPolicyOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotStub.java index d7dae853e9ac..300cf7dce3a4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotStub.java @@ -206,7 +206,7 @@ public class HttpJsonSnapshotStub extends SnapshotStub { private final HttpJsonGlobalOperationStub operationsStub; private final UnaryCallable deleteSnapshotCallable; - private final OperationCallable + private final OperationCallable deleteSnapshotOperationCallable; private final UnaryCallable getSnapshotCallable; private final UnaryCallable getIamPolicySnapshotCallable; @@ -215,7 +215,7 @@ public class HttpJsonSnapshotStub extends SnapshotStub { listSnapshotsPagedCallable; private final UnaryCallable setIamPolicySnapshotCallable; private final UnaryCallable setLabelsSnapshotCallable; - private final OperationCallable + private final OperationCallable setLabelsSnapshotOperationCallable; private final UnaryCallable testIamPermissionsSnapshotCallable; @@ -348,7 +348,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteSnapshotOperationCallable() { return deleteSnapshotOperationCallable; } @@ -385,7 +385,7 @@ public UnaryCallable setIamPolicySnapsh } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setLabelsSnapshotOperationCallable() { return setLabelsSnapshotOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateStub.java index 7df368749066..a2aafce8ffc6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateStub.java @@ -139,13 +139,13 @@ public class HttpJsonSslCertificateStub extends SslCertificateStub { private final UnaryCallable deleteSslCertificateCallable; - private final OperationCallable + private final OperationCallable deleteSslCertificateOperationCallable; private final UnaryCallable getSslCertificateCallable; private final UnaryCallable insertSslCertificateCallable; - private final OperationCallable + private final OperationCallable insertSslCertificateOperationCallable; private final UnaryCallable listSslCertificatesCallable; @@ -262,7 +262,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteSslCertificateOperationCallable() { return deleteSslCertificateOperationCallable; } @@ -278,7 +278,7 @@ public UnaryCallable getSslCertifi } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertSslCertificateOperationCallable() { return insertSslCertificateOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyStub.java index ba4f678d09e5..e45ea9cb6db4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyStub.java @@ -189,11 +189,11 @@ public class HttpJsonSslPolicyStub extends SslPolicyStub { private final HttpJsonGlobalOperationStub operationsStub; private final UnaryCallable deleteSslPolicyCallable; - private final OperationCallable + private final OperationCallable deleteSslPolicyOperationCallable; private final UnaryCallable getSslPolicyCallable; private final UnaryCallable insertSslPolicyCallable; - private final OperationCallable + private final OperationCallable insertSslPolicyOperationCallable; private final UnaryCallable listSslPoliciesCallable; private final UnaryCallable @@ -202,7 +202,7 @@ public class HttpJsonSslPolicyStub extends SslPolicyStub { ListAvailableFeaturesSslPoliciesHttpRequest, SslPoliciesListAvailableFeaturesResponse> listAvailableFeaturesSslPoliciesCallable; private final UnaryCallable patchSslPolicyCallable; - private final OperationCallable + private final OperationCallable patchSslPolicyOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -327,7 +327,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteSslPolicyOperationCallable() { return deleteSslPolicyOperationCallable; } @@ -343,7 +343,7 @@ public UnaryCallable getSslPolicyCallable() } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertSslPolicyOperationCallable() { return insertSslPolicyOperationCallable; } @@ -372,7 +372,7 @@ public UnaryCallable listSslPolicie } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchSslPolicyOperationCallable() { return patchSslPolicyOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkStub.java index 950c5f401784..272806a5c082 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkStub.java @@ -339,18 +339,17 @@ public class HttpJsonSubnetworkStub extends SubnetworkStub { AggregatedListSubnetworksHttpRequest, AggregatedListSubnetworksPagedResponse> aggregatedListSubnetworksPagedCallable; private final UnaryCallable deleteSubnetworkCallable; - private final OperationCallable + private final OperationCallable deleteSubnetworkOperationCallable; private final UnaryCallable expandIpCidrRangeSubnetworkCallable; - private final OperationCallable< - ExpandIpCidrRangeSubnetworkHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallable expandIpCidrRangeSubnetworkOperationCallable; private final UnaryCallable getSubnetworkCallable; private final UnaryCallable getIamPolicySubnetworkCallable; private final UnaryCallable insertSubnetworkCallable; - private final OperationCallable + private final OperationCallable insertSubnetworkOperationCallable; private final UnaryCallable listSubnetworksCallable; private final UnaryCallable @@ -360,14 +359,14 @@ public class HttpJsonSubnetworkStub extends SubnetworkStub { private final UnaryCallable listUsableSubnetworksPagedCallable; private final UnaryCallable patchSubnetworkCallable; - private final OperationCallable + private final OperationCallable patchSubnetworkOperationCallable; private final UnaryCallable setIamPolicySubnetworkCallable; private final UnaryCallable setPrivateIpGoogleAccessSubnetworkCallable; private final OperationCallable< - SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, EmptyMessage> + SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, Operation> setPrivateIpGoogleAccessSubnetworkOperationCallable; private final UnaryCallable testIamPermissionsSubnetworkCallable; @@ -589,7 +588,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteSubnetworkOperationCallable() { return deleteSubnetworkOperationCallable; } @@ -600,7 +599,7 @@ public UnaryCallable deleteSubnetworkCal } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable expandIpCidrRangeSubnetworkOperationCallable() { return expandIpCidrRangeSubnetworkOperationCallable; } @@ -622,7 +621,7 @@ public UnaryCallable getIamPolicySubn } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertSubnetworkOperationCallable() { return insertSubnetworkOperationCallable; } @@ -656,7 +655,7 @@ public UnaryCallable listSubnetworks } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchSubnetworkOperationCallable() { return patchSubnetworkOperationCallable; } @@ -672,8 +671,7 @@ public UnaryCallable setIamPolicySubn } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallable setPrivateIpGoogleAccessSubnetworkOperationCallable() { return setPrivateIpGoogleAccessSubnetworkOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyStub.java index e86723b311e9..0c592ceb229f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyStub.java @@ -164,13 +164,13 @@ public class HttpJsonTargetHttpProxyStub extends TargetHttpProxyStub { private final UnaryCallable deleteTargetHttpProxyCallable; - private final OperationCallable + private final OperationCallable deleteTargetHttpProxyOperationCallable; private final UnaryCallable getTargetHttpProxyCallable; private final UnaryCallable insertTargetHttpProxyCallable; - private final OperationCallable + private final OperationCallable insertTargetHttpProxyOperationCallable; private final UnaryCallable listTargetHttpProxiesCallable; @@ -178,7 +178,7 @@ public class HttpJsonTargetHttpProxyStub extends TargetHttpProxyStub { listTargetHttpProxiesPagedCallable; private final UnaryCallable setUrlMapTargetHttpProxyCallable; - private final OperationCallable + private final OperationCallable setUrlMapTargetHttpProxyOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -307,7 +307,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteTargetHttpProxyOperationCallable() { return deleteTargetHttpProxyOperationCallable; } @@ -325,7 +325,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertTargetHttpProxyOperationCallable() { return insertTargetHttpProxyOperationCallable; } @@ -349,7 +349,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setUrlMapTargetHttpProxyOperationCallable() { return setUrlMapTargetHttpProxyOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyStub.java index 7dff2e1eb2b6..dc64e2476cd2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyStub.java @@ -233,13 +233,13 @@ public class HttpJsonTargetHttpsProxyStub extends TargetHttpsProxyStub { private final UnaryCallable deleteTargetHttpsProxyCallable; - private final OperationCallable + private final OperationCallable deleteTargetHttpsProxyOperationCallable; private final UnaryCallable getTargetHttpsProxyCallable; private final UnaryCallable insertTargetHttpsProxyCallable; - private final OperationCallable + private final OperationCallable insertTargetHttpsProxyOperationCallable; private final UnaryCallable listTargetHttpsProxiesCallable; @@ -249,21 +249,20 @@ public class HttpJsonTargetHttpsProxyStub extends TargetHttpsProxyStub { private final UnaryCallable setQuicOverrideTargetHttpsProxyCallable; private final OperationCallable< - SetQuicOverrideTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + SetQuicOverrideTargetHttpsProxyHttpRequest, EmptyMessage, Operation> setQuicOverrideTargetHttpsProxyOperationCallable; private final UnaryCallable setSslCertificatesTargetHttpsProxyCallable; private final OperationCallable< - SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, Operation> setSslCertificatesTargetHttpsProxyOperationCallable; private final UnaryCallable setSslPolicyTargetHttpsProxyCallable; - private final OperationCallable< - SetSslPolicyTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallable setSslPolicyTargetHttpsProxyOperationCallable; private final UnaryCallable setUrlMapTargetHttpsProxyCallable; - private final OperationCallable + private final OperationCallable setUrlMapTargetHttpsProxyOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -442,7 +441,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteTargetHttpsProxyOperationCallable() { return deleteTargetHttpsProxyOperationCallable; } @@ -460,7 +459,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertTargetHttpsProxyOperationCallable() { return insertTargetHttpsProxyOperationCallable; } @@ -484,7 +483,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setQuicOverrideTargetHttpsProxyOperationCallable() { return setQuicOverrideTargetHttpsProxyOperationCallable; } @@ -496,8 +495,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallable setSslCertificatesTargetHttpsProxyOperationCallable() { return setSslCertificatesTargetHttpsProxyOperationCallable; } @@ -509,7 +507,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setSslPolicyTargetHttpsProxyOperationCallable() { return setSslPolicyTargetHttpsProxyOperationCallable; } @@ -521,7 +519,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setUrlMapTargetHttpsProxyOperationCallable() { return setUrlMapTargetHttpsProxyOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceStub.java index 10e6107e47ae..04c5f2041f4c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceStub.java @@ -176,13 +176,13 @@ public class HttpJsonTargetInstanceStub extends TargetInstanceStub { aggregatedListTargetInstancesPagedCallable; private final UnaryCallable deleteTargetInstanceCallable; - private final OperationCallable + private final OperationCallable deleteTargetInstanceOperationCallable; private final UnaryCallable getTargetInstanceCallable; private final UnaryCallable insertTargetInstanceCallable; - private final OperationCallable + private final OperationCallable insertTargetInstanceOperationCallable; private final UnaryCallable listTargetInstancesCallable; @@ -329,7 +329,7 @@ public HttpJsonZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteTargetInstanceOperationCallable() { return deleteTargetInstanceOperationCallable; } @@ -345,7 +345,7 @@ public UnaryCallable getTargetInst } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertTargetInstanceOperationCallable() { return insertTargetInstanceOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolStub.java index 0dce222af969..6afcf19f8694 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolStub.java @@ -303,11 +303,11 @@ public class HttpJsonTargetPoolStub extends TargetPoolStub { private final UnaryCallable addHealthCheckTargetPoolCallable; - private final OperationCallable + private final OperationCallable addHealthCheckTargetPoolOperationCallable; private final UnaryCallable addInstanceTargetPoolCallable; - private final OperationCallable + private final OperationCallable addInstanceTargetPoolOperationCallable; private final UnaryCallable aggregatedListTargetPoolsCallable; @@ -315,29 +315,28 @@ public class HttpJsonTargetPoolStub extends TargetPoolStub { AggregatedListTargetPoolsHttpRequest, AggregatedListTargetPoolsPagedResponse> aggregatedListTargetPoolsPagedCallable; private final UnaryCallable deleteTargetPoolCallable; - private final OperationCallable + private final OperationCallable deleteTargetPoolOperationCallable; private final UnaryCallable getTargetPoolCallable; private final UnaryCallable getHealthTargetPoolCallable; private final UnaryCallable insertTargetPoolCallable; - private final OperationCallable + private final OperationCallable insertTargetPoolOperationCallable; private final UnaryCallable listTargetPoolsCallable; private final UnaryCallable listTargetPoolsPagedCallable; private final UnaryCallable removeHealthCheckTargetPoolCallable; - private final OperationCallable< - RemoveHealthCheckTargetPoolHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallable removeHealthCheckTargetPoolOperationCallable; private final UnaryCallable removeInstanceTargetPoolCallable; - private final OperationCallable + private final OperationCallable removeInstanceTargetPoolOperationCallable; private final UnaryCallable setBackupTargetPoolCallable; - private final OperationCallable + private final OperationCallable setBackupTargetPoolOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -543,7 +542,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable addHealthCheckTargetPoolOperationCallable() { return addHealthCheckTargetPoolOperationCallable; } @@ -555,7 +554,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable addInstanceTargetPoolOperationCallable() { return addInstanceTargetPoolOperationCallable; } @@ -579,7 +578,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteTargetPoolOperationCallable() { return deleteTargetPoolOperationCallable; } @@ -601,7 +600,7 @@ public UnaryCallable getTargetPoolCallable } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertTargetPoolOperationCallable() { return insertTargetPoolOperationCallable; } @@ -623,7 +622,7 @@ public UnaryCallable listTargetPools } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable removeHealthCheckTargetPoolOperationCallable() { return removeHealthCheckTargetPoolOperationCallable; } @@ -635,7 +634,7 @@ public UnaryCallable listTargetPools } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable removeInstanceTargetPoolOperationCallable() { return removeInstanceTargetPoolOperationCallable; } @@ -647,7 +646,7 @@ public UnaryCallable listTargetPools } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setBackupTargetPoolOperationCallable() { return setBackupTargetPoolOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyStub.java index 1e86f7e7757a..3bd0362b4b30 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyStub.java @@ -230,13 +230,13 @@ public class HttpJsonTargetSslProxyStub extends TargetSslProxyStub { private final UnaryCallable deleteTargetSslProxyCallable; - private final OperationCallable + private final OperationCallable deleteTargetSslProxyOperationCallable; private final UnaryCallable getTargetSslProxyCallable; private final UnaryCallable insertTargetSslProxyCallable; - private final OperationCallable + private final OperationCallable insertTargetSslProxyOperationCallable; private final UnaryCallable listTargetSslProxiesCallable; @@ -245,21 +245,20 @@ public class HttpJsonTargetSslProxyStub extends TargetSslProxyStub { private final UnaryCallable setBackendServiceTargetSslProxyCallable; private final OperationCallable< - SetBackendServiceTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + SetBackendServiceTargetSslProxyHttpRequest, EmptyMessage, Operation> setBackendServiceTargetSslProxyOperationCallable; private final UnaryCallable setProxyHeaderTargetSslProxyCallable; - private final OperationCallable< - SetProxyHeaderTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallable setProxyHeaderTargetSslProxyOperationCallable; private final UnaryCallable setSslCertificatesTargetSslProxyCallable; private final OperationCallable< - SetSslCertificatesTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + SetSslCertificatesTargetSslProxyHttpRequest, EmptyMessage, Operation> setSslCertificatesTargetSslProxyOperationCallable; private final UnaryCallable setSslPolicyTargetSslProxyCallable; - private final OperationCallable + private final OperationCallable setSslPolicyTargetSslProxyOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -437,7 +436,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteTargetSslProxyOperationCallable() { return deleteTargetSslProxyOperationCallable; } @@ -453,7 +452,7 @@ public UnaryCallable getTargetSslP } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertTargetSslProxyOperationCallable() { return insertTargetSslProxyOperationCallable; } @@ -476,7 +475,7 @@ public UnaryCallable insertTargetSsl } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setBackendServiceTargetSslProxyOperationCallable() { return setBackendServiceTargetSslProxyOperationCallable; } @@ -488,7 +487,7 @@ public UnaryCallable insertTargetSsl } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setProxyHeaderTargetSslProxyOperationCallable() { return setProxyHeaderTargetSslProxyOperationCallable; } @@ -500,7 +499,7 @@ public UnaryCallable insertTargetSsl } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setSslCertificatesTargetSslProxyOperationCallable() { return setSslCertificatesTargetSslProxyOperationCallable; } @@ -512,7 +511,7 @@ public UnaryCallable insertTargetSsl } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setSslPolicyTargetSslProxyOperationCallable() { return setSslPolicyTargetSslProxyOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyStub.java index c4e684760109..0eb0fd2493af 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyStub.java @@ -185,13 +185,13 @@ public class HttpJsonTargetTcpProxyStub extends TargetTcpProxyStub { private final UnaryCallable deleteTargetTcpProxyCallable; - private final OperationCallable + private final OperationCallable deleteTargetTcpProxyOperationCallable; private final UnaryCallable getTargetTcpProxyCallable; private final UnaryCallable insertTargetTcpProxyCallable; - private final OperationCallable + private final OperationCallable insertTargetTcpProxyOperationCallable; private final UnaryCallable listTargetTcpProxiesCallable; @@ -200,12 +200,11 @@ public class HttpJsonTargetTcpProxyStub extends TargetTcpProxyStub { private final UnaryCallable setBackendServiceTargetTcpProxyCallable; private final OperationCallable< - SetBackendServiceTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage> + SetBackendServiceTargetTcpProxyHttpRequest, EmptyMessage, Operation> setBackendServiceTargetTcpProxyOperationCallable; private final UnaryCallable setProxyHeaderTargetTcpProxyCallable; - private final OperationCallable< - SetProxyHeaderTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallable setProxyHeaderTargetTcpProxyOperationCallable; private final HttpJsonStubCallableFactory callableFactory; @@ -350,7 +349,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteTargetTcpProxyOperationCallable() { return deleteTargetTcpProxyOperationCallable; } @@ -366,7 +365,7 @@ public UnaryCallable getTargetTcpP } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertTargetTcpProxyOperationCallable() { return insertTargetTcpProxyOperationCallable; } @@ -389,7 +388,7 @@ public UnaryCallable insertTargetTcp } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setBackendServiceTargetTcpProxyOperationCallable() { return setBackendServiceTargetTcpProxyOperationCallable; } @@ -401,7 +400,7 @@ public UnaryCallable insertTargetTcp } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setProxyHeaderTargetTcpProxyOperationCallable() { return setProxyHeaderTargetTcpProxyOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayStub.java index 9b502a0becdf..1de2304349d5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayStub.java @@ -178,13 +178,13 @@ public class HttpJsonTargetVpnGatewayStub extends TargetVpnGatewayStub { aggregatedListTargetVpnGatewaysPagedCallable; private final UnaryCallable deleteTargetVpnGatewayCallable; - private final OperationCallable + private final OperationCallable deleteTargetVpnGatewayOperationCallable; private final UnaryCallable getTargetVpnGatewayCallable; private final UnaryCallable insertTargetVpnGatewayCallable; - private final OperationCallable + private final OperationCallable insertTargetVpnGatewayOperationCallable; private final UnaryCallable listTargetVpnGatewaysCallable; @@ -332,7 +332,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteTargetVpnGatewayOperationCallable() { return deleteTargetVpnGatewayOperationCallable; } @@ -350,7 +350,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertTargetVpnGatewayOperationCallable() { return insertTargetVpnGatewayOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapStub.java index ca8ae6181819..2222df806023 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapStub.java @@ -218,24 +218,24 @@ public class HttpJsonUrlMapStub extends UrlMapStub { private final HttpJsonGlobalOperationStub operationsStub; private final UnaryCallable deleteUrlMapCallable; - private final OperationCallable + private final OperationCallable deleteUrlMapOperationCallable; private final UnaryCallable getUrlMapCallable; private final UnaryCallable insertUrlMapCallable; - private final OperationCallable + private final OperationCallable insertUrlMapOperationCallable; private final UnaryCallable invalidateCacheUrlMapCallable; - private final OperationCallable + private final OperationCallable invalidateCacheUrlMapOperationCallable; private final UnaryCallable listUrlMapsCallable; private final UnaryCallable listUrlMapsPagedCallable; private final UnaryCallable patchUrlMapCallable; - private final OperationCallable + private final OperationCallable patchUrlMapOperationCallable; private final UnaryCallable updateUrlMapCallable; - private final OperationCallable + private final OperationCallable updateUrlMapOperationCallable; private final UnaryCallable validateUrlMapCallable; @@ -383,7 +383,7 @@ public HttpJsonGlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteUrlMapOperationCallable() { return deleteUrlMapOperationCallable; } @@ -399,7 +399,7 @@ public UnaryCallable getUrlMapCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertUrlMapOperationCallable() { return insertUrlMapOperationCallable; } @@ -410,7 +410,7 @@ public UnaryCallable insertUrlMapCallable() } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable invalidateCacheUrlMapOperationCallable() { return invalidateCacheUrlMapOperationCallable; } @@ -433,7 +433,7 @@ public UnaryCallable listUrlMapsCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchUrlMapOperationCallable() { return patchUrlMapOperationCallable; } @@ -444,7 +444,7 @@ public UnaryCallable patchUrlMapCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateUrlMapOperationCallable() { return updateUrlMapOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelStub.java index ac3f525731ee..d3ddc6757b4b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelStub.java @@ -169,11 +169,11 @@ public class HttpJsonVpnTunnelStub extends VpnTunnelStub { AggregatedListVpnTunnelsHttpRequest, AggregatedListVpnTunnelsPagedResponse> aggregatedListVpnTunnelsPagedCallable; private final UnaryCallable deleteVpnTunnelCallable; - private final OperationCallable + private final OperationCallable deleteVpnTunnelOperationCallable; private final UnaryCallable getVpnTunnelCallable; private final UnaryCallable insertVpnTunnelCallable; - private final OperationCallable + private final OperationCallable insertVpnTunnelOperationCallable; private final UnaryCallable listVpnTunnelsCallable; private final UnaryCallable @@ -301,7 +301,7 @@ public HttpJsonRegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteVpnTunnelOperationCallable() { return deleteVpnTunnelOperationCallable; } @@ -317,7 +317,7 @@ public UnaryCallable getVpnTunnelCallable() } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertVpnTunnelOperationCallable() { return insertVpnTunnelOperationCallable; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStub.java index 1b23858b1d91..ebd685f9485b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStub.java @@ -49,7 +49,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteHttpsHealthCheckOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteHttpsHealthCheckOperationCallable()"); @@ -68,7 +68,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertHttpsHealthCheckOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertHttpsHealthCheckOperationCallable()"); @@ -94,7 +94,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchHttpsHealthCheckOperationCallable() { throw new UnsupportedOperationException( "Not implemented: patchHttpsHealthCheckOperationCallable()"); @@ -107,7 +107,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateHttpsHealthCheckOperationCallable() { throw new UnsupportedOperationException( "Not implemented: updateHttpsHealthCheckOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStubSettings.java index 9b9805a4ae9d..2e78f7cc1d1c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpsHealthCheckStubSettings.java @@ -105,13 +105,13 @@ public class HttpsHealthCheckStubSettings extends StubSettings deleteHttpsHealthCheckSettings; - private final OperationCallSettings + private final OperationCallSettings deleteHttpsHealthCheckOperationSettings; private final UnaryCallSettings getHttpsHealthCheckSettings; private final UnaryCallSettings insertHttpsHealthCheckSettings; - private final OperationCallSettings + private final OperationCallSettings insertHttpsHealthCheckOperationSettings; private final PagedCallSettings< ListHttpsHealthChecksHttpRequest, @@ -120,11 +120,11 @@ public class HttpsHealthCheckStubSettings extends StubSettings patchHttpsHealthCheckSettings; - private final OperationCallSettings + private final OperationCallSettings patchHttpsHealthCheckOperationSettings; private final UnaryCallSettings updateHttpsHealthCheckSettings; - private final OperationCallSettings + private final OperationCallSettings updateHttpsHealthCheckOperationSettings; /** Returns the object with the settings used for calls to deleteHttpsHealthCheck. */ @@ -135,7 +135,7 @@ public class HttpsHealthCheckStubSettings extends StubSettings + public OperationCallSettings deleteHttpsHealthCheckOperationSettings() { return deleteHttpsHealthCheckOperationSettings; } @@ -154,7 +154,7 @@ public class HttpsHealthCheckStubSettings extends StubSettings + public OperationCallSettings insertHttpsHealthCheckOperationSettings() { return insertHttpsHealthCheckOperationSettings; } @@ -176,7 +176,7 @@ public class HttpsHealthCheckStubSettings extends StubSettings + public OperationCallSettings patchHttpsHealthCheckOperationSettings() { return patchHttpsHealthCheckOperationSettings; } @@ -189,7 +189,7 @@ public class HttpsHealthCheckStubSettings extends StubSettings + public OperationCallSettings updateHttpsHealthCheckOperationSettings() { return updateHttpsHealthCheckOperationSettings; } @@ -359,14 +359,14 @@ public static class Builder extends StubSettings.Builder deleteHttpsHealthCheckSettings; private final OperationCallSettings.Builder< - DeleteHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + DeleteHttpsHealthCheckHttpRequest, EmptyMessage, Operation> deleteHttpsHealthCheckOperationSettings; private final UnaryCallSettings.Builder getHttpsHealthCheckSettings; private final UnaryCallSettings.Builder insertHttpsHealthCheckSettings; private final OperationCallSettings.Builder< - InsertHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + InsertHttpsHealthCheckHttpRequest, EmptyMessage, Operation> insertHttpsHealthCheckOperationSettings; private final PagedCallSettings.Builder< ListHttpsHealthChecksHttpRequest, @@ -376,12 +376,12 @@ public static class Builder extends StubSettings.Builder patchHttpsHealthCheckSettings; private final OperationCallSettings.Builder< - PatchHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + PatchHttpsHealthCheckHttpRequest, EmptyMessage, Operation> patchHttpsHealthCheckOperationSettings; private final UnaryCallSettings.Builder updateHttpsHealthCheckSettings; private final OperationCallSettings.Builder< - UpdateHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + UpdateHttpsHealthCheckHttpRequest, EmptyMessage, Operation> updateHttpsHealthCheckOperationSettings; private static final ImmutableMap> @@ -507,8 +507,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -529,8 +529,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -551,8 +551,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -573,8 +573,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -643,8 +643,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteHttpsHealthCheck. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteHttpsHealthCheckOperationSettings() { return deleteHttpsHealthCheckOperationSettings; } @@ -664,8 +663,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertHttpsHealthCheck. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertHttpsHealthCheckOperationSettings() { return insertHttpsHealthCheckOperationSettings; } @@ -688,8 +686,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to patchHttpsHealthCheck. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - PatchHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder patchHttpsHealthCheckOperationSettings() { return patchHttpsHealthCheckOperationSettings; } @@ -703,8 +700,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to updateHttpsHealthCheck. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - UpdateHttpsHealthCheckHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder updateHttpsHealthCheckOperationSettings() { return updateHttpsHealthCheckOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStub.java index 2bd52b44dfdf..0f45bee1c82d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStub.java @@ -55,7 +55,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteImageOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteImageOperationCallable()"); } @@ -66,7 +66,7 @@ public UnaryCallable deleteImageCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deprecateImageOperationCallable() { throw new UnsupportedOperationException("Not implemented: deprecateImageOperationCallable()"); } @@ -92,7 +92,7 @@ public UnaryCallable getIamPolicyImageCall } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertImageOperationCallable() { throw new UnsupportedOperationException("Not implemented: insertImageOperationCallable()"); } @@ -118,7 +118,7 @@ public UnaryCallable setIamPolicyImageCall } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setLabelsImageOperationCallable() { throw new UnsupportedOperationException("Not implemented: setLabelsImageOperationCallable()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStubSettings.java index 4bd3ad7f8a18..07500809156b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ImageStubSettings.java @@ -110,22 +110,22 @@ public class ImageStubSettings extends StubSettings { .build(); private final UnaryCallSettings deleteImageSettings; - private final OperationCallSettings + private final OperationCallSettings deleteImageOperationSettings; private final UnaryCallSettings deprecateImageSettings; - private final OperationCallSettings + private final OperationCallSettings deprecateImageOperationSettings; private final UnaryCallSettings getImageSettings; private final UnaryCallSettings getFromFamilyImageSettings; private final UnaryCallSettings getIamPolicyImageSettings; private final UnaryCallSettings insertImageSettings; - private final OperationCallSettings + private final OperationCallSettings insertImageOperationSettings; private final PagedCallSettings listImagesSettings; private final UnaryCallSettings setIamPolicyImageSettings; private final UnaryCallSettings setLabelsImageSettings; - private final OperationCallSettings + private final OperationCallSettings setLabelsImageOperationSettings; private final UnaryCallSettings testIamPermissionsImageSettings; @@ -137,7 +137,7 @@ public UnaryCallSettings deleteImageSettings( /** Returns the object with the settings used for calls to deleteImage. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteImageOperationSettings() { return deleteImageOperationSettings; } @@ -149,7 +149,7 @@ public UnaryCallSettings deprecateImageSet /** Returns the object with the settings used for calls to deprecateImage. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deprecateImageOperationSettings() { return deprecateImageOperationSettings; } @@ -176,7 +176,7 @@ public UnaryCallSettings insertImageSettings( /** Returns the object with the settings used for calls to insertImage. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertImageOperationSettings() { return insertImageOperationSettings; } @@ -199,7 +199,7 @@ public UnaryCallSettings setLabelsImageSet /** Returns the object with the settings used for calls to setLabelsImage. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setLabelsImageOperationSettings() { return setLabelsImageOperationSettings; } @@ -359,12 +359,11 @@ public static class Builder extends StubSettings.Builder> unaryMethodSettingsBuilders; private final UnaryCallSettings.Builder deleteImageSettings; - private final OperationCallSettings.Builder + private final OperationCallSettings.Builder deleteImageOperationSettings; private final UnaryCallSettings.Builder deprecateImageSettings; - private final OperationCallSettings.Builder< - DeprecateImageHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder deprecateImageOperationSettings; private final UnaryCallSettings.Builder getImageSettings; private final UnaryCallSettings.Builder @@ -372,7 +371,7 @@ public static class Builder extends StubSettings.Builder getIamPolicyImageSettings; private final UnaryCallSettings.Builder insertImageSettings; - private final OperationCallSettings.Builder + private final OperationCallSettings.Builder insertImageOperationSettings; private final PagedCallSettings.Builder< ListImagesHttpRequest, ImageList, ListImagesPagedResponse> @@ -381,8 +380,7 @@ public static class Builder extends StubSettings.Builder setLabelsImageSettings; - private final OperationCallSettings.Builder< - SetLabelsImageHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder setLabelsImageOperationSettings; private final UnaryCallSettings.Builder< TestIamPermissionsImageHttpRequest, TestPermissionsResponse> @@ -541,8 +539,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -562,8 +560,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -583,8 +581,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -604,8 +602,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -677,7 +675,7 @@ public UnaryCallSettings.Builder deleteImageS /** Returns the builder for the settings used for calls to deleteImage. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteImageOperationSettings() { return deleteImageOperationSettings; } @@ -691,7 +689,7 @@ public UnaryCallSettings.Builder deleteImageS /** Returns the builder for the settings used for calls to deprecateImage. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deprecateImageOperationSettings() { return deprecateImageOperationSettings; } @@ -721,7 +719,7 @@ public UnaryCallSettings.Builder insertImageS /** Returns the builder for the settings used for calls to insertImage. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertImageOperationSettings() { return insertImageOperationSettings; } @@ -747,7 +745,7 @@ public UnaryCallSettings.Builder insertImageS /** Returns the builder for the settings used for calls to setLabelsImage. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder setLabelsImageOperationSettings() { return setLabelsImageOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStub.java index d7cd0cc68816..db016577f7f4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStub.java @@ -59,8 +59,7 @@ public ZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallable abandonInstancesInstanceGroupManagerOperationCallable() { throw new UnsupportedOperationException( "Not implemented: abandonInstancesInstanceGroupManagerOperationCallable()"); @@ -91,7 +90,7 @@ public ZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteInstanceGroupManagerOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteInstanceGroupManagerOperationCallable()"); @@ -105,8 +104,7 @@ public ZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallable deleteInstancesInstanceGroupManagerOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteInstancesInstanceGroupManagerOperationCallable()"); @@ -126,7 +124,7 @@ public ZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertInstanceGroupManagerOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertInstanceGroupManagerOperationCallable()"); @@ -162,7 +160,7 @@ public ZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchInstanceGroupManagerOperationCallable() { throw new UnsupportedOperationException( "Not implemented: patchInstanceGroupManagerOperationCallable()"); @@ -176,7 +174,7 @@ public ZoneOperationStub getOperationsStub() { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable< - RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> recreateInstancesInstanceGroupManagerOperationCallable() { throw new UnsupportedOperationException( "Not implemented: recreateInstancesInstanceGroupManagerOperationCallable()"); @@ -190,7 +188,7 @@ public ZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable resizeInstanceGroupManagerOperationCallable() { throw new UnsupportedOperationException( "Not implemented: resizeInstanceGroupManagerOperationCallable()"); @@ -205,7 +203,7 @@ public ZoneOperationStub getOperationsStub() { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable< - SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setInstanceTemplateInstanceGroupManagerOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setInstanceTemplateInstanceGroupManagerOperationCallable()"); @@ -219,8 +217,7 @@ public ZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallable setTargetPoolsInstanceGroupManagerOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setTargetPoolsInstanceGroupManagerOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStubSettings.java index 352bf72db14e..c811c23cf48b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupManagerStubSettings.java @@ -118,7 +118,7 @@ public class InstanceGroupManagerStubSettings private final UnaryCallSettings abandonInstancesInstanceGroupManagerSettings; private final OperationCallSettings< - AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> abandonInstancesInstanceGroupManagerOperationSettings; private final PagedCallSettings< AggregatedListInstanceGroupManagersHttpRequest, @@ -128,19 +128,19 @@ public class InstanceGroupManagerStubSettings private final UnaryCallSettings deleteInstanceGroupManagerSettings; private final OperationCallSettings< - DeleteInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteInstanceGroupManagerOperationSettings; private final UnaryCallSettings deleteInstancesInstanceGroupManagerSettings; private final OperationCallSettings< - DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteInstancesInstanceGroupManagerOperationSettings; private final UnaryCallSettings getInstanceGroupManagerSettings; private final UnaryCallSettings insertInstanceGroupManagerSettings; private final OperationCallSettings< - InsertInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + InsertInstanceGroupManagerHttpRequest, EmptyMessage, Operation> insertInstanceGroupManagerOperationSettings; private final PagedCallSettings< ListInstanceGroupManagersHttpRequest, @@ -153,28 +153,27 @@ public class InstanceGroupManagerStubSettings listManagedInstancesInstanceGroupManagersSettings; private final UnaryCallSettings patchInstanceGroupManagerSettings; - private final OperationCallSettings< - PatchInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings patchInstanceGroupManagerOperationSettings; private final UnaryCallSettings recreateInstancesInstanceGroupManagerSettings; private final OperationCallSettings< - RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> recreateInstancesInstanceGroupManagerOperationSettings; private final UnaryCallSettings resizeInstanceGroupManagerSettings; private final OperationCallSettings< - ResizeInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + ResizeInstanceGroupManagerHttpRequest, EmptyMessage, Operation> resizeInstanceGroupManagerOperationSettings; private final UnaryCallSettings setInstanceTemplateInstanceGroupManagerSettings; private final OperationCallSettings< - SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setInstanceTemplateInstanceGroupManagerOperationSettings; private final UnaryCallSettings setTargetPoolsInstanceGroupManagerSettings; private final OperationCallSettings< - SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setTargetPoolsInstanceGroupManagerOperationSettings; /** @@ -190,7 +189,7 @@ public class InstanceGroupManagerStubSettings */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings< - AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> abandonInstancesInstanceGroupManagerOperationSettings() { return abandonInstancesInstanceGroupManagerOperationSettings; } @@ -212,7 +211,7 @@ public class InstanceGroupManagerStubSettings /** Returns the object with the settings used for calls to deleteInstanceGroupManager. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteInstanceGroupManagerOperationSettings() { return deleteInstanceGroupManagerOperationSettings; } @@ -226,7 +225,7 @@ public class InstanceGroupManagerStubSettings /** Returns the object with the settings used for calls to deleteInstancesInstanceGroupManager. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings< - DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteInstancesInstanceGroupManagerOperationSettings() { return deleteInstancesInstanceGroupManagerOperationSettings; } @@ -245,7 +244,7 @@ public class InstanceGroupManagerStubSettings /** Returns the object with the settings used for calls to insertInstanceGroupManager. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertInstanceGroupManagerOperationSettings() { return insertInstanceGroupManagerOperationSettings; } @@ -278,7 +277,7 @@ public class InstanceGroupManagerStubSettings /** Returns the object with the settings used for calls to patchInstanceGroupManager. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchInstanceGroupManagerOperationSettings() { return patchInstanceGroupManagerOperationSettings; } @@ -296,7 +295,7 @@ public class InstanceGroupManagerStubSettings */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings< - RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> recreateInstancesInstanceGroupManagerOperationSettings() { return recreateInstancesInstanceGroupManagerOperationSettings; } @@ -309,7 +308,7 @@ public class InstanceGroupManagerStubSettings /** Returns the object with the settings used for calls to resizeInstanceGroupManager. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings resizeInstanceGroupManagerOperationSettings() { return resizeInstanceGroupManagerOperationSettings; } @@ -327,7 +326,7 @@ public class InstanceGroupManagerStubSettings */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings< - SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setInstanceTemplateInstanceGroupManagerOperationSettings() { return setInstanceTemplateInstanceGroupManagerOperationSettings; } @@ -341,7 +340,7 @@ public class InstanceGroupManagerStubSettings /** Returns the object with the settings used for calls to setTargetPoolsInstanceGroupManager. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings< - SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setTargetPoolsInstanceGroupManagerOperationSettings() { return setTargetPoolsInstanceGroupManagerOperationSettings; } @@ -631,7 +630,7 @@ public static class Builder AbandonInstancesInstanceGroupManagerHttpRequest, Operation> abandonInstancesInstanceGroupManagerSettings; private final OperationCallSettings.Builder< - AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> abandonInstancesInstanceGroupManagerOperationSettings; private final PagedCallSettings.Builder< AggregatedListInstanceGroupManagersHttpRequest, @@ -641,13 +640,13 @@ public static class Builder private final UnaryCallSettings.Builder deleteInstanceGroupManagerSettings; private final OperationCallSettings.Builder< - DeleteInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteInstanceGroupManagerOperationSettings; private final UnaryCallSettings.Builder< DeleteInstancesInstanceGroupManagerHttpRequest, Operation> deleteInstancesInstanceGroupManagerSettings; private final OperationCallSettings.Builder< - DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteInstancesInstanceGroupManagerOperationSettings; private final UnaryCallSettings.Builder< GetInstanceGroupManagerHttpRequest, InstanceGroupManager> @@ -655,7 +654,7 @@ public static class Builder private final UnaryCallSettings.Builder insertInstanceGroupManagerSettings; private final OperationCallSettings.Builder< - InsertInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + InsertInstanceGroupManagerHttpRequest, EmptyMessage, Operation> insertInstanceGroupManagerOperationSettings; private final PagedCallSettings.Builder< ListInstanceGroupManagersHttpRequest, @@ -669,30 +668,30 @@ public static class Builder private final UnaryCallSettings.Builder patchInstanceGroupManagerSettings; private final OperationCallSettings.Builder< - PatchInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + PatchInstanceGroupManagerHttpRequest, EmptyMessage, Operation> patchInstanceGroupManagerOperationSettings; private final UnaryCallSettings.Builder< RecreateInstancesInstanceGroupManagerHttpRequest, Operation> recreateInstancesInstanceGroupManagerSettings; private final OperationCallSettings.Builder< - RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> recreateInstancesInstanceGroupManagerOperationSettings; private final UnaryCallSettings.Builder resizeInstanceGroupManagerSettings; private final OperationCallSettings.Builder< - ResizeInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + ResizeInstanceGroupManagerHttpRequest, EmptyMessage, Operation> resizeInstanceGroupManagerOperationSettings; private final UnaryCallSettings.Builder< SetInstanceTemplateInstanceGroupManagerHttpRequest, Operation> setInstanceTemplateInstanceGroupManagerSettings; private final OperationCallSettings.Builder< - SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setInstanceTemplateInstanceGroupManagerOperationSettings; private final UnaryCallSettings.Builder< SetTargetPoolsInstanceGroupManagerHttpRequest, Operation> setTargetPoolsInstanceGroupManagerSettings; private final OperationCallSettings.Builder< - SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setTargetPoolsInstanceGroupManagerOperationSettings; private static final ImmutableMap> @@ -889,8 +888,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -911,8 +910,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -933,8 +932,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -955,8 +954,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -977,8 +976,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -999,8 +998,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1021,8 +1020,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1043,8 +1042,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1065,8 +1064,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1171,7 +1170,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + AbandonInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> abandonInstancesInstanceGroupManagerOperationSettings() { return abandonInstancesInstanceGroupManagerOperationSettings; } @@ -1197,7 +1196,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - DeleteInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteInstanceGroupManagerOperationSettings() { return deleteInstanceGroupManagerOperationSettings; } @@ -1216,7 +1215,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteInstancesInstanceGroupManagerOperationSettings() { return deleteInstancesInstanceGroupManagerOperationSettings; } @@ -1237,7 +1236,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - InsertInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + InsertInstanceGroupManagerHttpRequest, EmptyMessage, Operation> insertInstanceGroupManagerOperationSettings() { return insertInstanceGroupManagerOperationSettings; } @@ -1272,7 +1271,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - PatchInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + PatchInstanceGroupManagerHttpRequest, EmptyMessage, Operation> patchInstanceGroupManagerOperationSettings() { return patchInstanceGroupManagerOperationSettings; } @@ -1291,7 +1290,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + RecreateInstancesInstanceGroupManagerHttpRequest, EmptyMessage, Operation> recreateInstancesInstanceGroupManagerOperationSettings() { return recreateInstancesInstanceGroupManagerOperationSettings; } @@ -1306,7 +1305,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - ResizeInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + ResizeInstanceGroupManagerHttpRequest, EmptyMessage, Operation> resizeInstanceGroupManagerOperationSettings() { return resizeInstanceGroupManagerOperationSettings; } @@ -1327,7 +1326,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetInstanceTemplateInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setInstanceTemplateInstanceGroupManagerOperationSettings() { return setInstanceTemplateInstanceGroupManagerOperationSettings; } @@ -1346,7 +1345,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetTargetPoolsInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setTargetPoolsInstanceGroupManagerOperationSettings() { return setTargetPoolsInstanceGroupManagerOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStub.java index b3d5e7e357ed..b9cb456ec0aa 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStub.java @@ -56,7 +56,7 @@ public ZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable addInstancesInstanceGroupOperationCallable() { throw new UnsupportedOperationException( "Not implemented: addInstancesInstanceGroupOperationCallable()"); @@ -84,7 +84,7 @@ public ZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteInstanceGroupOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteInstanceGroupOperationCallable()"); @@ -101,7 +101,7 @@ public UnaryCallable getInstanceGrou } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertInstanceGroupOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertInstanceGroupOperationCallable()"); @@ -140,7 +140,7 @@ public UnaryCallable insertInstanceGr } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable removeInstancesInstanceGroupOperationCallable() { throw new UnsupportedOperationException( "Not implemented: removeInstancesInstanceGroupOperationCallable()"); @@ -154,7 +154,7 @@ public UnaryCallable insertInstanceGr } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setNamedPortsInstanceGroupOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setNamedPortsInstanceGroupOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStubSettings.java index a8167d7cd103..e0b0a09a75ed 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceGroupStubSettings.java @@ -114,8 +114,7 @@ public class InstanceGroupStubSettings extends StubSettings addInstancesInstanceGroupSettings; - private final OperationCallSettings< - AddInstancesInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings addInstancesInstanceGroupOperationSettings; private final PagedCallSettings< AggregatedListInstanceGroupsHttpRequest, @@ -124,13 +123,13 @@ public class InstanceGroupStubSettings extends StubSettings deleteInstanceGroupSettings; - private final OperationCallSettings + private final OperationCallSettings deleteInstanceGroupOperationSettings; private final UnaryCallSettings getInstanceGroupSettings; private final UnaryCallSettings insertInstanceGroupSettings; - private final OperationCallSettings + private final OperationCallSettings insertInstanceGroupOperationSettings; private final PagedCallSettings< ListInstanceGroupsHttpRequest, InstanceGroupList, ListInstanceGroupsPagedResponse> @@ -143,12 +142,12 @@ public class InstanceGroupStubSettings extends StubSettings removeInstancesInstanceGroupSettings; private final OperationCallSettings< - RemoveInstancesInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + RemoveInstancesInstanceGroupHttpRequest, EmptyMessage, Operation> removeInstancesInstanceGroupOperationSettings; private final UnaryCallSettings setNamedPortsInstanceGroupSettings; private final OperationCallSettings< - SetNamedPortsInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + SetNamedPortsInstanceGroupHttpRequest, EmptyMessage, Operation> setNamedPortsInstanceGroupOperationSettings; /** Returns the object with the settings used for calls to addInstancesInstanceGroup. */ @@ -159,7 +158,7 @@ public class InstanceGroupStubSettings extends StubSettings + public OperationCallSettings addInstancesInstanceGroupOperationSettings() { return addInstancesInstanceGroupOperationSettings; } @@ -181,7 +180,7 @@ public class InstanceGroupStubSettings extends StubSettings + public OperationCallSettings deleteInstanceGroupOperationSettings() { return deleteInstanceGroupOperationSettings; } @@ -199,7 +198,7 @@ public UnaryCallSettings getInstance /** Returns the object with the settings used for calls to insertInstanceGroup. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertInstanceGroupOperationSettings() { return insertInstanceGroupOperationSettings; } @@ -228,7 +227,7 @@ public UnaryCallSettings getInstance /** Returns the object with the settings used for calls to removeInstancesInstanceGroup. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings removeInstancesInstanceGroupOperationSettings() { return removeInstancesInstanceGroupOperationSettings; } @@ -241,7 +240,7 @@ public UnaryCallSettings getInstance /** Returns the object with the settings used for calls to setNamedPortsInstanceGroup. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setNamedPortsInstanceGroupOperationSettings() { return setNamedPortsInstanceGroupOperationSettings; } @@ -571,7 +570,7 @@ public static class Builder extends StubSettings.Builder addInstancesInstanceGroupSettings; private final OperationCallSettings.Builder< - AddInstancesInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + AddInstancesInstanceGroupHttpRequest, EmptyMessage, Operation> addInstancesInstanceGroupOperationSettings; private final PagedCallSettings.Builder< AggregatedListInstanceGroupsHttpRequest, @@ -581,14 +580,14 @@ public static class Builder extends StubSettings.Builder deleteInstanceGroupSettings; private final OperationCallSettings.Builder< - DeleteInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstanceGroupHttpRequest, EmptyMessage, Operation> deleteInstanceGroupOperationSettings; private final UnaryCallSettings.Builder getInstanceGroupSettings; private final UnaryCallSettings.Builder insertInstanceGroupSettings; private final OperationCallSettings.Builder< - InsertInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + InsertInstanceGroupHttpRequest, EmptyMessage, Operation> insertInstanceGroupOperationSettings; private final PagedCallSettings.Builder< ListInstanceGroupsHttpRequest, InstanceGroupList, ListInstanceGroupsPagedResponse> @@ -601,12 +600,12 @@ public static class Builder extends StubSettings.Builder removeInstancesInstanceGroupSettings; private final OperationCallSettings.Builder< - RemoveInstancesInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + RemoveInstancesInstanceGroupHttpRequest, EmptyMessage, Operation> removeInstancesInstanceGroupOperationSettings; private final UnaryCallSettings.Builder setNamedPortsInstanceGroupSettings; private final OperationCallSettings.Builder< - SetNamedPortsInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + SetNamedPortsInstanceGroupHttpRequest, EmptyMessage, Operation> setNamedPortsInstanceGroupOperationSettings; private static final ImmutableMap> @@ -759,8 +758,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -780,8 +779,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -801,8 +800,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -823,8 +822,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -845,8 +844,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -927,7 +926,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - AddInstancesInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + AddInstancesInstanceGroupHttpRequest, EmptyMessage, Operation> addInstancesInstanceGroupOperationSettings() { return addInstancesInstanceGroupOperationSettings; } @@ -950,7 +949,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteInstanceGroup. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteInstanceGroupOperationSettings() { return deleteInstanceGroupOperationSettings; } @@ -970,7 +969,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertInstanceGroup. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertInstanceGroupOperationSettings() { return insertInstanceGroupOperationSettings; } @@ -1001,7 +1000,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - RemoveInstancesInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + RemoveInstancesInstanceGroupHttpRequest, EmptyMessage, Operation> removeInstancesInstanceGroupOperationSettings() { return removeInstancesInstanceGroupOperationSettings; } @@ -1016,7 +1015,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetNamedPortsInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + SetNamedPortsInstanceGroupHttpRequest, EmptyMessage, Operation> setNamedPortsInstanceGroupOperationSettings() { return setNamedPortsInstanceGroupOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStub.java index 85c6106cb411..9eb9f5f3304f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStub.java @@ -81,7 +81,7 @@ public ZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable addAccessConfigInstanceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: addAccessConfigInstanceOperationCallable()"); @@ -107,7 +107,7 @@ public ZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable attachDiskInstanceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: attachDiskInstanceOperationCallable()"); @@ -119,7 +119,7 @@ public UnaryCallable attachDiskInstanc } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteInstanceOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteInstanceOperationCallable()"); } @@ -130,7 +130,7 @@ public UnaryCallable deleteInstanceCallabl } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteAccessConfigInstanceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteAccessConfigInstanceOperationCallable()"); @@ -144,7 +144,7 @@ public UnaryCallable deleteInstanceCallabl } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable detachDiskInstanceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: detachDiskInstanceOperationCallable()"); @@ -173,7 +173,7 @@ public UnaryCallable getIamPolicyInstan } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertInstanceOperationCallable() { throw new UnsupportedOperationException("Not implemented: insertInstanceOperationCallable()"); } @@ -208,7 +208,7 @@ public UnaryCallable listInstancesCallab } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable resetInstanceOperationCallable() { throw new UnsupportedOperationException("Not implemented: resetInstanceOperationCallable()"); } @@ -219,7 +219,7 @@ public UnaryCallable resetInstanceCallable( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setDeletionProtectionInstanceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setDeletionProtectionInstanceOperationCallable()"); @@ -233,7 +233,7 @@ public UnaryCallable resetInstanceCallable( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setDiskAutoDeleteInstanceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setDiskAutoDeleteInstanceOperationCallable()"); @@ -251,7 +251,7 @@ public UnaryCallable setIamPolicyInstan } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setLabelsInstanceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setLabelsInstanceOperationCallable()"); @@ -263,7 +263,7 @@ public UnaryCallable setLabelsInstanceC } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setMachineResourcesInstanceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setMachineResourcesInstanceOperationCallable()"); @@ -277,7 +277,7 @@ public UnaryCallable setLabelsInstanceC } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setMachineTypeInstanceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setMachineTypeInstanceOperationCallable()"); @@ -290,7 +290,7 @@ public UnaryCallable setLabelsInstanceC } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setMetadataInstanceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setMetadataInstanceOperationCallable()"); @@ -302,7 +302,7 @@ public UnaryCallable setMetadataInsta } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setMinCpuPlatformInstanceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setMinCpuPlatformInstanceOperationCallable()"); @@ -315,7 +315,7 @@ public UnaryCallable setMetadataInsta } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setSchedulingInstanceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setSchedulingInstanceOperationCallable()"); @@ -328,7 +328,7 @@ public UnaryCallable setMetadataInsta } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setServiceAccountInstanceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setServiceAccountInstanceOperationCallable()"); @@ -341,7 +341,7 @@ public UnaryCallable setMetadataInsta } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setTagsInstanceOperationCallable() { throw new UnsupportedOperationException("Not implemented: setTagsInstanceOperationCallable()"); } @@ -352,7 +352,7 @@ public UnaryCallable setTagsInstanceCalla } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable simulateMaintenanceEventInstanceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: simulateMaintenanceEventInstanceOperationCallable()"); @@ -366,7 +366,7 @@ public UnaryCallable setTagsInstanceCalla } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable startInstanceOperationCallable() { throw new UnsupportedOperationException("Not implemented: startInstanceOperationCallable()"); } @@ -377,7 +377,7 @@ public UnaryCallable startInstanceCallable( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable startWithEncryptionKeyInstanceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: startWithEncryptionKeyInstanceOperationCallable()"); @@ -391,7 +391,7 @@ public UnaryCallable startInstanceCallable( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable stopInstanceOperationCallable() { throw new UnsupportedOperationException("Not implemented: stopInstanceOperationCallable()"); } @@ -409,7 +409,7 @@ public UnaryCallable stopInstanceCallable() } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateAccessConfigInstanceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: updateAccessConfigInstanceOperationCallable()"); @@ -423,7 +423,7 @@ public UnaryCallable stopInstanceCallable() } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateNetworkInterfaceInstanceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: updateNetworkInterfaceInstanceOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStubSettings.java index 7947e06aeb2f..d806b2799f40 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceStubSettings.java @@ -139,8 +139,7 @@ public class InstanceStubSettings extends StubSettings { private final UnaryCallSettings addAccessConfigInstanceSettings; - private final OperationCallSettings< - AddAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings addAccessConfigInstanceOperationSettings; private final PagedCallSettings< AggregatedListInstancesHttpRequest, @@ -149,19 +148,19 @@ public class InstanceStubSettings extends StubSettings { aggregatedListInstancesSettings; private final UnaryCallSettings attachDiskInstanceSettings; - private final OperationCallSettings + private final OperationCallSettings attachDiskInstanceOperationSettings; private final UnaryCallSettings deleteInstanceSettings; - private final OperationCallSettings + private final OperationCallSettings deleteInstanceOperationSettings; private final UnaryCallSettings deleteAccessConfigInstanceSettings; private final OperationCallSettings< - DeleteAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage> + DeleteAccessConfigInstanceHttpRequest, EmptyMessage, Operation> deleteAccessConfigInstanceOperationSettings; private final UnaryCallSettings detachDiskInstanceSettings; - private final OperationCallSettings + private final OperationCallSettings detachDiskInstanceOperationSettings; private final UnaryCallSettings getInstanceSettings; private final UnaryCallSettings @@ -169,7 +168,7 @@ public class InstanceStubSettings extends StubSettings { private final UnaryCallSettings getSerialPortOutputInstanceSettings; private final UnaryCallSettings insertInstanceSettings; - private final OperationCallSettings + private final OperationCallSettings insertInstanceOperationSettings; private final PagedCallSettings< ListInstancesHttpRequest, InstanceList, ListInstancesPagedResponse> @@ -180,81 +179,78 @@ public class InstanceStubSettings extends StubSettings { ListReferrersInstancesPagedResponse> listReferrersInstancesSettings; private final UnaryCallSettings resetInstanceSettings; - private final OperationCallSettings + private final OperationCallSettings resetInstanceOperationSettings; private final UnaryCallSettings setDeletionProtectionInstanceSettings; private final OperationCallSettings< - SetDeletionProtectionInstanceHttpRequest, EmptyMessage, EmptyMessage> + SetDeletionProtectionInstanceHttpRequest, EmptyMessage, Operation> setDeletionProtectionInstanceOperationSettings; private final UnaryCallSettings setDiskAutoDeleteInstanceSettings; - private final OperationCallSettings< - SetDiskAutoDeleteInstanceHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings setDiskAutoDeleteInstanceOperationSettings; private final UnaryCallSettings setIamPolicyInstanceSettings; private final UnaryCallSettings setLabelsInstanceSettings; - private final OperationCallSettings + private final OperationCallSettings setLabelsInstanceOperationSettings; private final UnaryCallSettings setMachineResourcesInstanceSettings; private final OperationCallSettings< - SetMachineResourcesInstanceHttpRequest, EmptyMessage, EmptyMessage> + SetMachineResourcesInstanceHttpRequest, EmptyMessage, Operation> setMachineResourcesInstanceOperationSettings; private final UnaryCallSettings setMachineTypeInstanceSettings; - private final OperationCallSettings + private final OperationCallSettings setMachineTypeInstanceOperationSettings; private final UnaryCallSettings setMetadataInstanceSettings; - private final OperationCallSettings + private final OperationCallSettings setMetadataInstanceOperationSettings; private final UnaryCallSettings setMinCpuPlatformInstanceSettings; - private final OperationCallSettings< - SetMinCpuPlatformInstanceHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings setMinCpuPlatformInstanceOperationSettings; private final UnaryCallSettings setSchedulingInstanceSettings; - private final OperationCallSettings + private final OperationCallSettings setSchedulingInstanceOperationSettings; private final UnaryCallSettings setServiceAccountInstanceSettings; - private final OperationCallSettings< - SetServiceAccountInstanceHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings setServiceAccountInstanceOperationSettings; private final UnaryCallSettings setTagsInstanceSettings; - private final OperationCallSettings + private final OperationCallSettings setTagsInstanceOperationSettings; private final UnaryCallSettings simulateMaintenanceEventInstanceSettings; private final OperationCallSettings< - SimulateMaintenanceEventInstanceHttpRequest, EmptyMessage, EmptyMessage> + SimulateMaintenanceEventInstanceHttpRequest, EmptyMessage, Operation> simulateMaintenanceEventInstanceOperationSettings; private final UnaryCallSettings startInstanceSettings; - private final OperationCallSettings + private final OperationCallSettings startInstanceOperationSettings; private final UnaryCallSettings startWithEncryptionKeyInstanceSettings; private final OperationCallSettings< - StartWithEncryptionKeyInstanceHttpRequest, EmptyMessage, EmptyMessage> + StartWithEncryptionKeyInstanceHttpRequest, EmptyMessage, Operation> startWithEncryptionKeyInstanceOperationSettings; private final UnaryCallSettings stopInstanceSettings; - private final OperationCallSettings + private final OperationCallSettings stopInstanceOperationSettings; private final UnaryCallSettings testIamPermissionsInstanceSettings; private final UnaryCallSettings updateAccessConfigInstanceSettings; private final OperationCallSettings< - UpdateAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage> + UpdateAccessConfigInstanceHttpRequest, EmptyMessage, Operation> updateAccessConfigInstanceOperationSettings; private final UnaryCallSettings updateNetworkInterfaceInstanceSettings; private final OperationCallSettings< - UpdateNetworkInterfaceInstanceHttpRequest, EmptyMessage, EmptyMessage> + UpdateNetworkInterfaceInstanceHttpRequest, EmptyMessage, Operation> updateNetworkInterfaceInstanceOperationSettings; /** Returns the object with the settings used for calls to addAccessConfigInstance. */ @@ -265,7 +261,7 @@ public class InstanceStubSettings extends StubSettings { /** Returns the object with the settings used for calls to addAccessConfigInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings addAccessConfigInstanceOperationSettings() { return addAccessConfigInstanceOperationSettings; } @@ -286,7 +282,7 @@ public UnaryCallSettings attachDiskIns /** Returns the object with the settings used for calls to attachDiskInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings attachDiskInstanceOperationSettings() { return attachDiskInstanceOperationSettings; } @@ -298,7 +294,7 @@ public UnaryCallSettings deleteInstanceSet /** Returns the object with the settings used for calls to deleteInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteInstanceOperationSettings() { return deleteInstanceOperationSettings; } @@ -311,7 +307,7 @@ public UnaryCallSettings deleteInstanceSet /** Returns the object with the settings used for calls to deleteAccessConfigInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteAccessConfigInstanceOperationSettings() { return deleteAccessConfigInstanceOperationSettings; } @@ -323,7 +319,7 @@ public UnaryCallSettings detachDiskIns /** Returns the object with the settings used for calls to detachDiskInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings detachDiskInstanceOperationSettings() { return detachDiskInstanceOperationSettings; } @@ -351,7 +347,7 @@ public UnaryCallSettings insertInstanceSet /** Returns the object with the settings used for calls to insertInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertInstanceOperationSettings() { return insertInstanceOperationSettings; } @@ -378,7 +374,7 @@ public UnaryCallSettings resetInstanceSetti /** Returns the object with the settings used for calls to resetInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings resetInstanceOperationSettings() { return resetInstanceOperationSettings; } @@ -391,7 +387,7 @@ public UnaryCallSettings resetInstanceSetti /** Returns the object with the settings used for calls to setDeletionProtectionInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setDeletionProtectionInstanceOperationSettings() { return setDeletionProtectionInstanceOperationSettings; } @@ -404,7 +400,7 @@ public UnaryCallSettings resetInstanceSetti /** Returns the object with the settings used for calls to setDiskAutoDeleteInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setDiskAutoDeleteInstanceOperationSettings() { return setDiskAutoDeleteInstanceOperationSettings; } @@ -421,7 +417,7 @@ public UnaryCallSettings setLabelsInsta /** Returns the object with the settings used for calls to setLabelsInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setLabelsInstanceOperationSettings() { return setLabelsInstanceOperationSettings; } @@ -434,7 +430,7 @@ public UnaryCallSettings setLabelsInsta /** Returns the object with the settings used for calls to setMachineResourcesInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setMachineResourcesInstanceOperationSettings() { return setMachineResourcesInstanceOperationSettings; } @@ -447,7 +443,7 @@ public UnaryCallSettings setLabelsInsta /** Returns the object with the settings used for calls to setMachineTypeInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setMachineTypeInstanceOperationSettings() { return setMachineTypeInstanceOperationSettings; } @@ -460,7 +456,7 @@ public UnaryCallSettings setLabelsInsta /** Returns the object with the settings used for calls to setMetadataInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setMetadataInstanceOperationSettings() { return setMetadataInstanceOperationSettings; } @@ -473,7 +469,7 @@ public UnaryCallSettings setLabelsInsta /** Returns the object with the settings used for calls to setMinCpuPlatformInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setMinCpuPlatformInstanceOperationSettings() { return setMinCpuPlatformInstanceOperationSettings; } @@ -486,7 +482,7 @@ public UnaryCallSettings setLabelsInsta /** Returns the object with the settings used for calls to setSchedulingInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setSchedulingInstanceOperationSettings() { return setSchedulingInstanceOperationSettings; } @@ -499,7 +495,7 @@ public UnaryCallSettings setLabelsInsta /** Returns the object with the settings used for calls to setServiceAccountInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setServiceAccountInstanceOperationSettings() { return setServiceAccountInstanceOperationSettings; } @@ -511,7 +507,7 @@ public UnaryCallSettings setTagsInstanceS /** Returns the object with the settings used for calls to setTagsInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setTagsInstanceOperationSettings() { return setTagsInstanceOperationSettings; } @@ -524,8 +520,7 @@ public UnaryCallSettings setTagsInstanceS /** Returns the object with the settings used for calls to simulateMaintenanceEventInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings< - SimulateMaintenanceEventInstanceHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings simulateMaintenanceEventInstanceOperationSettings() { return simulateMaintenanceEventInstanceOperationSettings; } @@ -537,7 +532,7 @@ public UnaryCallSettings startInstanceSetti /** Returns the object with the settings used for calls to startInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings startInstanceOperationSettings() { return startInstanceOperationSettings; } @@ -550,8 +545,7 @@ public UnaryCallSettings startInstanceSetti /** Returns the object with the settings used for calls to startWithEncryptionKeyInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings< - StartWithEncryptionKeyInstanceHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings startWithEncryptionKeyInstanceOperationSettings() { return startWithEncryptionKeyInstanceOperationSettings; } @@ -563,7 +557,7 @@ public UnaryCallSettings stopInstanceSetting /** Returns the object with the settings used for calls to stopInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings stopInstanceOperationSettings() { return stopInstanceOperationSettings; } @@ -582,7 +576,7 @@ public UnaryCallSettings stopInstanceSetting /** Returns the object with the settings used for calls to updateAccessConfigInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings updateAccessConfigInstanceOperationSettings() { return updateAccessConfigInstanceOperationSettings; } @@ -595,8 +589,7 @@ public UnaryCallSettings stopInstanceSetting /** Returns the object with the settings used for calls to updateNetworkInterfaceInstance. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings< - UpdateNetworkInterfaceInstanceHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings updateNetworkInterfaceInstanceOperationSettings() { return updateNetworkInterfaceInstanceOperationSettings; } @@ -956,7 +949,7 @@ public static class Builder extends StubSettings.Builder addAccessConfigInstanceSettings; private final OperationCallSettings.Builder< - AddAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage> + AddAccessConfigInstanceHttpRequest, EmptyMessage, Operation> addAccessConfigInstanceOperationSettings; private final PagedCallSettings.Builder< AggregatedListInstancesHttpRequest, @@ -966,22 +959,21 @@ public static class Builder extends StubSettings.Builder attachDiskInstanceSettings; private final OperationCallSettings.Builder< - AttachDiskInstanceHttpRequest, EmptyMessage, EmptyMessage> + AttachDiskInstanceHttpRequest, EmptyMessage, Operation> attachDiskInstanceOperationSettings; private final UnaryCallSettings.Builder deleteInstanceSettings; - private final OperationCallSettings.Builder< - DeleteInstanceHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder deleteInstanceOperationSettings; private final UnaryCallSettings.Builder deleteAccessConfigInstanceSettings; private final OperationCallSettings.Builder< - DeleteAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage> + DeleteAccessConfigInstanceHttpRequest, EmptyMessage, Operation> deleteAccessConfigInstanceOperationSettings; private final UnaryCallSettings.Builder detachDiskInstanceSettings; private final OperationCallSettings.Builder< - DetachDiskInstanceHttpRequest, EmptyMessage, EmptyMessage> + DetachDiskInstanceHttpRequest, EmptyMessage, Operation> detachDiskInstanceOperationSettings; private final UnaryCallSettings.Builder getInstanceSettings; private final UnaryCallSettings.Builder @@ -991,8 +983,7 @@ public static class Builder extends StubSettings.Builder insertInstanceSettings; - private final OperationCallSettings.Builder< - InsertInstanceHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder insertInstanceOperationSettings; private final PagedCallSettings.Builder< ListInstancesHttpRequest, InstanceList, ListInstancesPagedResponse> @@ -1004,79 +995,76 @@ public static class Builder extends StubSettings.Builder resetInstanceSettings; - private final OperationCallSettings.Builder< - ResetInstanceHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder resetInstanceOperationSettings; private final UnaryCallSettings.Builder setDeletionProtectionInstanceSettings; private final OperationCallSettings.Builder< - SetDeletionProtectionInstanceHttpRequest, EmptyMessage, EmptyMessage> + SetDeletionProtectionInstanceHttpRequest, EmptyMessage, Operation> setDeletionProtectionInstanceOperationSettings; private final UnaryCallSettings.Builder setDiskAutoDeleteInstanceSettings; private final OperationCallSettings.Builder< - SetDiskAutoDeleteInstanceHttpRequest, EmptyMessage, EmptyMessage> + SetDiskAutoDeleteInstanceHttpRequest, EmptyMessage, Operation> setDiskAutoDeleteInstanceOperationSettings; private final UnaryCallSettings.Builder setIamPolicyInstanceSettings; private final UnaryCallSettings.Builder setLabelsInstanceSettings; private final OperationCallSettings.Builder< - SetLabelsInstanceHttpRequest, EmptyMessage, EmptyMessage> + SetLabelsInstanceHttpRequest, EmptyMessage, Operation> setLabelsInstanceOperationSettings; private final UnaryCallSettings.Builder setMachineResourcesInstanceSettings; private final OperationCallSettings.Builder< - SetMachineResourcesInstanceHttpRequest, EmptyMessage, EmptyMessage> + SetMachineResourcesInstanceHttpRequest, EmptyMessage, Operation> setMachineResourcesInstanceOperationSettings; private final UnaryCallSettings.Builder setMachineTypeInstanceSettings; private final OperationCallSettings.Builder< - SetMachineTypeInstanceHttpRequest, EmptyMessage, EmptyMessage> + SetMachineTypeInstanceHttpRequest, EmptyMessage, Operation> setMachineTypeInstanceOperationSettings; private final UnaryCallSettings.Builder setMetadataInstanceSettings; private final OperationCallSettings.Builder< - SetMetadataInstanceHttpRequest, EmptyMessage, EmptyMessage> + SetMetadataInstanceHttpRequest, EmptyMessage, Operation> setMetadataInstanceOperationSettings; private final UnaryCallSettings.Builder setMinCpuPlatformInstanceSettings; private final OperationCallSettings.Builder< - SetMinCpuPlatformInstanceHttpRequest, EmptyMessage, EmptyMessage> + SetMinCpuPlatformInstanceHttpRequest, EmptyMessage, Operation> setMinCpuPlatformInstanceOperationSettings; private final UnaryCallSettings.Builder setSchedulingInstanceSettings; private final OperationCallSettings.Builder< - SetSchedulingInstanceHttpRequest, EmptyMessage, EmptyMessage> + SetSchedulingInstanceHttpRequest, EmptyMessage, Operation> setSchedulingInstanceOperationSettings; private final UnaryCallSettings.Builder setServiceAccountInstanceSettings; private final OperationCallSettings.Builder< - SetServiceAccountInstanceHttpRequest, EmptyMessage, EmptyMessage> + SetServiceAccountInstanceHttpRequest, EmptyMessage, Operation> setServiceAccountInstanceOperationSettings; private final UnaryCallSettings.Builder setTagsInstanceSettings; - private final OperationCallSettings.Builder< - SetTagsInstanceHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder setTagsInstanceOperationSettings; private final UnaryCallSettings.Builder simulateMaintenanceEventInstanceSettings; private final OperationCallSettings.Builder< - SimulateMaintenanceEventInstanceHttpRequest, EmptyMessage, EmptyMessage> + SimulateMaintenanceEventInstanceHttpRequest, EmptyMessage, Operation> simulateMaintenanceEventInstanceOperationSettings; private final UnaryCallSettings.Builder startInstanceSettings; - private final OperationCallSettings.Builder< - StartInstanceHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder startInstanceOperationSettings; private final UnaryCallSettings.Builder startWithEncryptionKeyInstanceSettings; private final OperationCallSettings.Builder< - StartWithEncryptionKeyInstanceHttpRequest, EmptyMessage, EmptyMessage> + StartWithEncryptionKeyInstanceHttpRequest, EmptyMessage, Operation> startWithEncryptionKeyInstanceOperationSettings; private final UnaryCallSettings.Builder stopInstanceSettings; - private final OperationCallSettings.Builder + private final OperationCallSettings.Builder stopInstanceOperationSettings; private final UnaryCallSettings.Builder< TestIamPermissionsInstanceHttpRequest, TestPermissionsResponse> @@ -1084,12 +1072,12 @@ public static class Builder extends StubSettings.Builder updateAccessConfigInstanceSettings; private final OperationCallSettings.Builder< - UpdateAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage> + UpdateAccessConfigInstanceHttpRequest, EmptyMessage, Operation> updateAccessConfigInstanceOperationSettings; private final UnaryCallSettings.Builder updateNetworkInterfaceInstanceSettings; private final OperationCallSettings.Builder< - UpdateNetworkInterfaceInstanceHttpRequest, EmptyMessage, EmptyMessage> + UpdateNetworkInterfaceInstanceHttpRequest, EmptyMessage, Operation> updateNetworkInterfaceInstanceOperationSettings; private static final ImmutableMap> @@ -1454,8 +1442,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1475,8 +1463,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1496,8 +1484,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1518,8 +1506,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1539,8 +1527,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1560,8 +1548,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1581,8 +1569,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1603,8 +1591,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1625,8 +1613,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1646,8 +1634,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1668,8 +1656,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1690,8 +1678,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1711,8 +1699,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1733,8 +1721,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1755,8 +1743,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1777,8 +1765,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1798,8 +1786,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1820,8 +1808,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1841,8 +1829,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1863,8 +1851,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1884,8 +1872,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1906,8 +1894,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1928,8 +1916,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -2086,7 +2074,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - AddAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage> + AddAccessConfigInstanceHttpRequest, EmptyMessage, Operation> addAccessConfigInstanceOperationSettings() { return addAccessConfigInstanceOperationSettings; } @@ -2109,7 +2097,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to attachDiskInstance. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder attachDiskInstanceOperationSettings() { return attachDiskInstanceOperationSettings; } @@ -2123,7 +2111,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteInstance. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteInstanceOperationSettings() { return deleteInstanceOperationSettings; } @@ -2138,7 +2126,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - DeleteAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage> + DeleteAccessConfigInstanceHttpRequest, EmptyMessage, Operation> deleteAccessConfigInstanceOperationSettings() { return deleteAccessConfigInstanceOperationSettings; } @@ -2152,7 +2140,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to detachDiskInstance. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder detachDiskInstanceOperationSettings() { return detachDiskInstanceOperationSettings; } @@ -2183,7 +2171,7 @@ public UnaryCallSettings.Builder getInstanceSe /** Returns the builder for the settings used for calls to insertInstance. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertInstanceOperationSettings() { return insertInstanceOperationSettings; } @@ -2212,7 +2200,7 @@ public UnaryCallSettings.Builder resetInsta /** Returns the builder for the settings used for calls to resetInstance. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder resetInstanceOperationSettings() { return resetInstanceOperationSettings; } @@ -2227,7 +2215,7 @@ public UnaryCallSettings.Builder resetInsta @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetDeletionProtectionInstanceHttpRequest, EmptyMessage, EmptyMessage> + SetDeletionProtectionInstanceHttpRequest, EmptyMessage, Operation> setDeletionProtectionInstanceOperationSettings() { return setDeletionProtectionInstanceOperationSettings; } @@ -2242,7 +2230,7 @@ public UnaryCallSettings.Builder resetInsta @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetDiskAutoDeleteInstanceHttpRequest, EmptyMessage, EmptyMessage> + SetDiskAutoDeleteInstanceHttpRequest, EmptyMessage, Operation> setDiskAutoDeleteInstanceOperationSettings() { return setDiskAutoDeleteInstanceOperationSettings; } @@ -2262,7 +2250,7 @@ public UnaryCallSettings.Builder resetInsta /** Returns the builder for the settings used for calls to setLabelsInstance. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder setLabelsInstanceOperationSettings() { return setLabelsInstanceOperationSettings; } @@ -2277,7 +2265,7 @@ public UnaryCallSettings.Builder resetInsta @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetMachineResourcesInstanceHttpRequest, EmptyMessage, EmptyMessage> + SetMachineResourcesInstanceHttpRequest, EmptyMessage, Operation> setMachineResourcesInstanceOperationSettings() { return setMachineResourcesInstanceOperationSettings; } @@ -2291,8 +2279,7 @@ public UnaryCallSettings.Builder resetInsta /** Returns the builder for the settings used for calls to setMachineTypeInstance. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - SetMachineTypeInstanceHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder setMachineTypeInstanceOperationSettings() { return setMachineTypeInstanceOperationSettings; } @@ -2306,7 +2293,7 @@ public UnaryCallSettings.Builder resetInsta /** Returns the builder for the settings used for calls to setMetadataInstance. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder setMetadataInstanceOperationSettings() { return setMetadataInstanceOperationSettings; } @@ -2321,7 +2308,7 @@ public UnaryCallSettings.Builder resetInsta @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetMinCpuPlatformInstanceHttpRequest, EmptyMessage, EmptyMessage> + SetMinCpuPlatformInstanceHttpRequest, EmptyMessage, Operation> setMinCpuPlatformInstanceOperationSettings() { return setMinCpuPlatformInstanceOperationSettings; } @@ -2335,8 +2322,7 @@ public UnaryCallSettings.Builder resetInsta /** Returns the builder for the settings used for calls to setSchedulingInstance. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - SetSchedulingInstanceHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder setSchedulingInstanceOperationSettings() { return setSchedulingInstanceOperationSettings; } @@ -2351,7 +2337,7 @@ public UnaryCallSettings.Builder resetInsta @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetServiceAccountInstanceHttpRequest, EmptyMessage, EmptyMessage> + SetServiceAccountInstanceHttpRequest, EmptyMessage, Operation> setServiceAccountInstanceOperationSettings() { return setServiceAccountInstanceOperationSettings; } @@ -2365,7 +2351,7 @@ public UnaryCallSettings.Builder resetInsta /** Returns the builder for the settings used for calls to setTagsInstance. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder setTagsInstanceOperationSettings() { return setTagsInstanceOperationSettings; } @@ -2380,7 +2366,7 @@ public UnaryCallSettings.Builder resetInsta @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SimulateMaintenanceEventInstanceHttpRequest, EmptyMessage, EmptyMessage> + SimulateMaintenanceEventInstanceHttpRequest, EmptyMessage, Operation> simulateMaintenanceEventInstanceOperationSettings() { return simulateMaintenanceEventInstanceOperationSettings; } @@ -2393,7 +2379,7 @@ public UnaryCallSettings.Builder startInsta /** Returns the builder for the settings used for calls to startInstance. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder startInstanceOperationSettings() { return startInstanceOperationSettings; } @@ -2408,7 +2394,7 @@ public UnaryCallSettings.Builder startInsta @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - StartWithEncryptionKeyInstanceHttpRequest, EmptyMessage, EmptyMessage> + StartWithEncryptionKeyInstanceHttpRequest, EmptyMessage, Operation> startWithEncryptionKeyInstanceOperationSettings() { return startWithEncryptionKeyInstanceOperationSettings; } @@ -2421,7 +2407,7 @@ public UnaryCallSettings.Builder stopInstanc /** Returns the builder for the settings used for calls to stopInstance. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder stopInstanceOperationSettings() { return stopInstanceOperationSettings; } @@ -2442,7 +2428,7 @@ public UnaryCallSettings.Builder stopInstanc @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - UpdateAccessConfigInstanceHttpRequest, EmptyMessage, EmptyMessage> + UpdateAccessConfigInstanceHttpRequest, EmptyMessage, Operation> updateAccessConfigInstanceOperationSettings() { return updateAccessConfigInstanceOperationSettings; } @@ -2457,7 +2443,7 @@ public UnaryCallSettings.Builder stopInstanc @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - UpdateNetworkInterfaceInstanceHttpRequest, EmptyMessage, EmptyMessage> + UpdateNetworkInterfaceInstanceHttpRequest, EmptyMessage, Operation> updateNetworkInterfaceInstanceOperationSettings() { return updateNetworkInterfaceInstanceOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStub.java index 44dab5b1d148..7549c0f6f2a9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStub.java @@ -52,7 +52,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteInstanceTemplateOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteInstanceTemplateOperationCallable()"); @@ -78,7 +78,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertInstanceTemplateOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertInstanceTemplateOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStubSettings.java index 8c3ae22cdef1..50faab2039b1 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InstanceTemplateStubSettings.java @@ -108,7 +108,7 @@ public class InstanceTemplateStubSettings extends StubSettings deleteInstanceTemplateSettings; - private final OperationCallSettings + private final OperationCallSettings deleteInstanceTemplateOperationSettings; private final UnaryCallSettings getInstanceTemplateSettings; @@ -116,7 +116,7 @@ public class InstanceTemplateStubSettings extends StubSettings insertInstanceTemplateSettings; - private final OperationCallSettings + private final OperationCallSettings insertInstanceTemplateOperationSettings; private final PagedCallSettings< ListInstanceTemplatesHttpRequest, @@ -137,7 +137,7 @@ public class InstanceTemplateStubSettings extends StubSettings + public OperationCallSettings deleteInstanceTemplateOperationSettings() { return deleteInstanceTemplateOperationSettings; } @@ -162,7 +162,7 @@ public class InstanceTemplateStubSettings extends StubSettings + public OperationCallSettings insertInstanceTemplateOperationSettings() { return insertInstanceTemplateOperationSettings; } @@ -353,7 +353,7 @@ public static class Builder extends StubSettings.Builder deleteInstanceTemplateSettings; private final OperationCallSettings.Builder< - DeleteInstanceTemplateHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstanceTemplateHttpRequest, EmptyMessage, Operation> deleteInstanceTemplateOperationSettings; private final UnaryCallSettings.Builder getInstanceTemplateSettings; @@ -362,7 +362,7 @@ public static class Builder extends StubSettings.Builder insertInstanceTemplateSettings; private final OperationCallSettings.Builder< - InsertInstanceTemplateHttpRequest, EmptyMessage, EmptyMessage> + InsertInstanceTemplateHttpRequest, EmptyMessage, Operation> insertInstanceTemplateOperationSettings; private final PagedCallSettings.Builder< ListInstanceTemplatesHttpRequest, @@ -502,8 +502,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -524,8 +524,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -595,8 +595,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteInstanceTemplate. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteInstanceTemplateHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteInstanceTemplateOperationSettings() { return deleteInstanceTemplateOperationSettings; } @@ -622,8 +621,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertInstanceTemplate. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertInstanceTemplateHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertInstanceTemplateOperationSettings() { return insertInstanceTemplateOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStub.java index 3d7aefe18a5a..a39a60feec73 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStub.java @@ -68,7 +68,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteInterconnectAttachmentOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteInterconnectAttachmentOperationCallable()"); @@ -88,7 +88,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertInterconnectAttachmentOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertInterconnectAttachmentOperationCallable()"); @@ -117,7 +117,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchInterconnectAttachmentOperationCallable() { throw new UnsupportedOperationException( "Not implemented: patchInterconnectAttachmentOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStubSettings.java index 891668e4b862..ebc71b9b6ecd 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectAttachmentStubSettings.java @@ -115,14 +115,14 @@ public class InterconnectAttachmentStubSettings private final UnaryCallSettings deleteInterconnectAttachmentSettings; private final OperationCallSettings< - DeleteInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage> + DeleteInterconnectAttachmentHttpRequest, EmptyMessage, Operation> deleteInterconnectAttachmentOperationSettings; private final UnaryCallSettings getInterconnectAttachmentSettings; private final UnaryCallSettings insertInterconnectAttachmentSettings; private final OperationCallSettings< - InsertInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage> + InsertInterconnectAttachmentHttpRequest, EmptyMessage, Operation> insertInterconnectAttachmentOperationSettings; private final PagedCallSettings< ListInterconnectAttachmentsHttpRequest, @@ -132,7 +132,7 @@ public class InterconnectAttachmentStubSettings private final UnaryCallSettings patchInterconnectAttachmentSettings; private final OperationCallSettings< - PatchInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage> + PatchInterconnectAttachmentHttpRequest, EmptyMessage, Operation> patchInterconnectAttachmentOperationSettings; /** @@ -154,7 +154,7 @@ public class InterconnectAttachmentStubSettings /** Returns the object with the settings used for calls to deleteInterconnectAttachment. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteInterconnectAttachmentOperationSettings() { return deleteInterconnectAttachmentOperationSettings; } @@ -173,7 +173,7 @@ public class InterconnectAttachmentStubSettings /** Returns the object with the settings used for calls to insertInterconnectAttachment. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertInterconnectAttachmentOperationSettings() { return insertInterconnectAttachmentOperationSettings; } @@ -195,7 +195,7 @@ public class InterconnectAttachmentStubSettings /** Returns the object with the settings used for calls to patchInterconnectAttachment. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchInterconnectAttachmentOperationSettings() { return patchInterconnectAttachmentOperationSettings; } @@ -468,7 +468,7 @@ public static class Builder private final UnaryCallSettings.Builder deleteInterconnectAttachmentSettings; private final OperationCallSettings.Builder< - DeleteInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage> + DeleteInterconnectAttachmentHttpRequest, EmptyMessage, Operation> deleteInterconnectAttachmentOperationSettings; private final UnaryCallSettings.Builder< GetInterconnectAttachmentHttpRequest, InterconnectAttachment> @@ -476,7 +476,7 @@ public static class Builder private final UnaryCallSettings.Builder insertInterconnectAttachmentSettings; private final OperationCallSettings.Builder< - InsertInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage> + InsertInterconnectAttachmentHttpRequest, EmptyMessage, Operation> insertInterconnectAttachmentOperationSettings; private final PagedCallSettings.Builder< ListInterconnectAttachmentsHttpRequest, @@ -486,7 +486,7 @@ public static class Builder private final UnaryCallSettings.Builder patchInterconnectAttachmentSettings; private final OperationCallSettings.Builder< - PatchInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage> + PatchInterconnectAttachmentHttpRequest, EmptyMessage, Operation> patchInterconnectAttachmentOperationSettings; private static final ImmutableMap> @@ -611,8 +611,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -633,8 +633,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -655,8 +655,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -740,7 +740,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - DeleteInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage> + DeleteInterconnectAttachmentHttpRequest, EmptyMessage, Operation> deleteInterconnectAttachmentOperationSettings() { return deleteInterconnectAttachmentOperationSettings; } @@ -761,7 +761,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - InsertInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage> + InsertInterconnectAttachmentHttpRequest, EmptyMessage, Operation> insertInterconnectAttachmentOperationSettings() { return insertInterconnectAttachmentOperationSettings; } @@ -785,7 +785,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - PatchInterconnectAttachmentHttpRequest, EmptyMessage, EmptyMessage> + PatchInterconnectAttachmentHttpRequest, EmptyMessage, Operation> patchInterconnectAttachmentOperationSettings() { return patchInterconnectAttachmentOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStub.java index 8445f8929529..0b954e1b6c06 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStub.java @@ -50,7 +50,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteInterconnectOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteInterconnectOperationCallable()"); @@ -74,7 +74,7 @@ public UnaryCallable getInterconnectCa } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertInterconnectOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertInterconnectOperationCallable()"); @@ -97,7 +97,7 @@ public UnaryCallable listInterco } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchInterconnectOperationCallable() { throw new UnsupportedOperationException( "Not implemented: patchInterconnectOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStubSettings.java index 86de3ae99114..c26ab73db218 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/InterconnectStubSettings.java @@ -106,7 +106,7 @@ public class InterconnectStubSettings extends StubSettings deleteInterconnectSettings; - private final OperationCallSettings + private final OperationCallSettings deleteInterconnectOperationSettings; private final UnaryCallSettings getInterconnectSettings; private final UnaryCallSettings< @@ -114,14 +114,14 @@ public class InterconnectStubSettings extends StubSettings insertInterconnectSettings; - private final OperationCallSettings + private final OperationCallSettings insertInterconnectOperationSettings; private final PagedCallSettings< ListInterconnectsHttpRequest, InterconnectList, ListInterconnectsPagedResponse> listInterconnectsSettings; private final UnaryCallSettings patchInterconnectSettings; - private final OperationCallSettings + private final OperationCallSettings patchInterconnectOperationSettings; /** Returns the object with the settings used for calls to deleteInterconnect. */ @@ -131,7 +131,7 @@ public UnaryCallSettings deleteInterco /** Returns the object with the settings used for calls to deleteInterconnect. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteInterconnectOperationSettings() { return deleteInterconnectOperationSettings; } @@ -155,7 +155,7 @@ public UnaryCallSettings insertInterco /** Returns the object with the settings used for calls to insertInterconnect. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertInterconnectOperationSettings() { return insertInterconnectOperationSettings; } @@ -174,7 +174,7 @@ public UnaryCallSettings patchInterconn /** Returns the object with the settings used for calls to patchInterconnect. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchInterconnectOperationSettings() { return patchInterconnectOperationSettings; } @@ -336,7 +336,7 @@ public static class Builder extends StubSettings.Builder deleteInterconnectSettings; private final OperationCallSettings.Builder< - DeleteInterconnectHttpRequest, EmptyMessage, EmptyMessage> + DeleteInterconnectHttpRequest, EmptyMessage, Operation> deleteInterconnectOperationSettings; private final UnaryCallSettings.Builder getInterconnectSettings; @@ -346,7 +346,7 @@ public static class Builder extends StubSettings.Builder insertInterconnectSettings; private final OperationCallSettings.Builder< - InsertInterconnectHttpRequest, EmptyMessage, EmptyMessage> + InsertInterconnectHttpRequest, EmptyMessage, Operation> insertInterconnectOperationSettings; private final PagedCallSettings.Builder< ListInterconnectsHttpRequest, InterconnectList, ListInterconnectsPagedResponse> @@ -354,7 +354,7 @@ public static class Builder extends StubSettings.Builder patchInterconnectSettings; private final OperationCallSettings.Builder< - PatchInterconnectHttpRequest, EmptyMessage, EmptyMessage> + PatchInterconnectHttpRequest, EmptyMessage, Operation> patchInterconnectOperationSettings; private static final ImmutableMap> @@ -476,8 +476,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -497,8 +497,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -518,8 +518,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -585,7 +585,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteInterconnect. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteInterconnectOperationSettings() { return deleteInterconnectOperationSettings; } @@ -612,7 +612,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertInterconnect. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertInterconnectOperationSettings() { return insertInterconnectOperationSettings; } @@ -633,7 +633,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to patchInterconnect. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchInterconnectOperationSettings() { return patchInterconnectOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStub.java index 65c8b6254ada..c4c21d8a2951 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStub.java @@ -52,7 +52,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteLicenseOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteLicenseOperationCallable()"); } @@ -73,7 +73,7 @@ public UnaryCallable getIamPolicyLicense } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertLicenseOperationCallable() { throw new UnsupportedOperationException("Not implemented: insertLicenseOperationCallable()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStubSettings.java index 86ebe8ce2cca..2228505e6979 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/LicenseStubSettings.java @@ -107,13 +107,13 @@ public class LicenseStubSettings extends StubSettings { .build(); private final UnaryCallSettings deleteLicenseSettings; - private final OperationCallSettings + private final OperationCallSettings deleteLicenseOperationSettings; private final UnaryCallSettings getLicenseSettings; private final UnaryCallSettings getIamPolicyLicenseSettings; private final UnaryCallSettings insertLicenseSettings; - private final OperationCallSettings + private final OperationCallSettings insertLicenseOperationSettings; private final PagedCallSettings< ListLicensesHttpRequest, LicensesListResponse, ListLicensesPagedResponse> @@ -130,7 +130,7 @@ public UnaryCallSettings deleteLicenseSetti /** Returns the object with the settings used for calls to deleteLicense. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteLicenseOperationSettings() { return deleteLicenseOperationSettings; } @@ -152,7 +152,7 @@ public UnaryCallSettings insertLicenseSetti /** Returns the object with the settings used for calls to insertLicense. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertLicenseOperationSettings() { return insertLicenseOperationSettings; } @@ -320,16 +320,14 @@ public static class Builder extends StubSettings.Builder deleteLicenseSettings; - private final OperationCallSettings.Builder< - DeleteLicenseHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder deleteLicenseOperationSettings; private final UnaryCallSettings.Builder getLicenseSettings; private final UnaryCallSettings.Builder getIamPolicyLicenseSettings; private final UnaryCallSettings.Builder insertLicenseSettings; - private final OperationCallSettings.Builder< - InsertLicenseHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder insertLicenseOperationSettings; private final PagedCallSettings.Builder< ListLicensesHttpRequest, LicensesListResponse, ListLicensesPagedResponse> @@ -465,8 +463,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -486,8 +484,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -551,7 +549,7 @@ public UnaryCallSettings.Builder deleteLice /** Returns the builder for the settings used for calls to deleteLicense. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteLicenseOperationSettings() { return deleteLicenseOperationSettings; } @@ -575,7 +573,7 @@ public UnaryCallSettings.Builder insertLice /** Returns the builder for the settings used for calls to insertLicense. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertLicenseOperationSettings() { return insertLicenseOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStub.java index f791643faa87..da01e15a837a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStub.java @@ -51,7 +51,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable addPeeringNetworkOperationCallable() { throw new UnsupportedOperationException( "Not implemented: addPeeringNetworkOperationCallable()"); @@ -63,7 +63,7 @@ public UnaryCallable addPeeringNetworkC } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteNetworkOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteNetworkOperationCallable()"); } @@ -79,7 +79,7 @@ public UnaryCallable getNetworkCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertNetworkOperationCallable() { throw new UnsupportedOperationException("Not implemented: insertNetworkOperationCallable()"); } @@ -101,7 +101,7 @@ public UnaryCallable listNetworksCallable( } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchNetworkOperationCallable() { throw new UnsupportedOperationException("Not implemented: patchNetworkOperationCallable()"); } @@ -112,7 +112,7 @@ public UnaryCallable patchNetworkCallable() } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable removePeeringNetworkOperationCallable() { throw new UnsupportedOperationException( "Not implemented: removePeeringNetworkOperationCallable()"); @@ -124,7 +124,7 @@ public UnaryCallable removePeeringNe } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable switchToCustomModeNetworkOperationCallable() { throw new UnsupportedOperationException( "Not implemented: switchToCustomModeNetworkOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStubSettings.java index 3e60c474ba0d..85e62e0986a7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkStubSettings.java @@ -107,28 +107,27 @@ public class NetworkStubSettings extends StubSettings { private final UnaryCallSettings addPeeringNetworkSettings; - private final OperationCallSettings + private final OperationCallSettings addPeeringNetworkOperationSettings; private final UnaryCallSettings deleteNetworkSettings; - private final OperationCallSettings + private final OperationCallSettings deleteNetworkOperationSettings; private final UnaryCallSettings getNetworkSettings; private final UnaryCallSettings insertNetworkSettings; - private final OperationCallSettings + private final OperationCallSettings insertNetworkOperationSettings; private final PagedCallSettings listNetworksSettings; private final UnaryCallSettings patchNetworkSettings; - private final OperationCallSettings + private final OperationCallSettings patchNetworkOperationSettings; private final UnaryCallSettings removePeeringNetworkSettings; - private final OperationCallSettings + private final OperationCallSettings removePeeringNetworkOperationSettings; private final UnaryCallSettings switchToCustomModeNetworkSettings; - private final OperationCallSettings< - SwitchToCustomModeNetworkHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings switchToCustomModeNetworkOperationSettings; /** Returns the object with the settings used for calls to addPeeringNetwork. */ @@ -138,7 +137,7 @@ public UnaryCallSettings addPeeringNetw /** Returns the object with the settings used for calls to addPeeringNetwork. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings addPeeringNetworkOperationSettings() { return addPeeringNetworkOperationSettings; } @@ -150,7 +149,7 @@ public UnaryCallSettings deleteNetworkSetti /** Returns the object with the settings used for calls to deleteNetwork. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteNetworkOperationSettings() { return deleteNetworkOperationSettings; } @@ -167,7 +166,7 @@ public UnaryCallSettings insertNetworkSetti /** Returns the object with the settings used for calls to insertNetwork. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertNetworkOperationSettings() { return insertNetworkOperationSettings; } @@ -185,7 +184,7 @@ public UnaryCallSettings patchNetworkSetting /** Returns the object with the settings used for calls to patchNetwork. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchNetworkOperationSettings() { return patchNetworkOperationSettings; } @@ -198,7 +197,7 @@ public UnaryCallSettings patchNetworkSetting /** Returns the object with the settings used for calls to removePeeringNetwork. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings removePeeringNetworkOperationSettings() { return removePeeringNetworkOperationSettings; } @@ -211,7 +210,7 @@ public UnaryCallSettings patchNetworkSetting /** Returns the object with the settings used for calls to switchToCustomModeNetwork. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings switchToCustomModeNetworkOperationSettings() { return switchToCustomModeNetworkOperationSettings; } @@ -371,35 +370,33 @@ public static class Builder extends StubSettings.Builder addPeeringNetworkSettings; private final OperationCallSettings.Builder< - AddPeeringNetworkHttpRequest, EmptyMessage, EmptyMessage> + AddPeeringNetworkHttpRequest, EmptyMessage, Operation> addPeeringNetworkOperationSettings; private final UnaryCallSettings.Builder deleteNetworkSettings; - private final OperationCallSettings.Builder< - DeleteNetworkHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder deleteNetworkOperationSettings; private final UnaryCallSettings.Builder getNetworkSettings; private final UnaryCallSettings.Builder insertNetworkSettings; - private final OperationCallSettings.Builder< - InsertNetworkHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder insertNetworkOperationSettings; private final PagedCallSettings.Builder< ListNetworksHttpRequest, NetworkList, ListNetworksPagedResponse> listNetworksSettings; private final UnaryCallSettings.Builder patchNetworkSettings; - private final OperationCallSettings.Builder + private final OperationCallSettings.Builder patchNetworkOperationSettings; private final UnaryCallSettings.Builder removePeeringNetworkSettings; private final OperationCallSettings.Builder< - RemovePeeringNetworkHttpRequest, EmptyMessage, EmptyMessage> + RemovePeeringNetworkHttpRequest, EmptyMessage, Operation> removePeeringNetworkOperationSettings; private final UnaryCallSettings.Builder switchToCustomModeNetworkSettings; private final OperationCallSettings.Builder< - SwitchToCustomModeNetworkHttpRequest, EmptyMessage, EmptyMessage> + SwitchToCustomModeNetworkHttpRequest, EmptyMessage, Operation> switchToCustomModeNetworkOperationSettings; private static final ImmutableMap> @@ -543,8 +540,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -564,8 +561,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -585,8 +582,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -606,8 +603,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -627,8 +624,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -649,8 +646,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -723,7 +720,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to addPeeringNetwork. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder addPeeringNetworkOperationSettings() { return addPeeringNetworkOperationSettings; } @@ -736,7 +733,7 @@ public UnaryCallSettings.Builder deleteNetw /** Returns the builder for the settings used for calls to deleteNetwork. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteNetworkOperationSettings() { return deleteNetworkOperationSettings; } @@ -754,7 +751,7 @@ public UnaryCallSettings.Builder insertNetw /** Returns the builder for the settings used for calls to insertNetwork. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertNetworkOperationSettings() { return insertNetworkOperationSettings; } @@ -774,7 +771,7 @@ public UnaryCallSettings.Builder patchNetwor /** Returns the builder for the settings used for calls to patchNetwork. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchNetworkOperationSettings() { return patchNetworkOperationSettings; } @@ -788,8 +785,7 @@ public UnaryCallSettings.Builder patchNetwor /** Returns the builder for the settings used for calls to removePeeringNetwork. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - RemovePeeringNetworkHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder removePeeringNetworkOperationSettings() { return removePeeringNetworkOperationSettings; } @@ -804,7 +800,7 @@ public UnaryCallSettings.Builder patchNetwor @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SwitchToCustomModeNetworkHttpRequest, EmptyMessage, EmptyMessage> + SwitchToCustomModeNetworkHttpRequest, EmptyMessage, Operation> switchToCustomModeNetworkOperationSettings() { return switchToCustomModeNetworkOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStub.java index 34525e2ed0b0..52e133b7116f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStub.java @@ -61,7 +61,7 @@ public ZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable addNodesNodeGroupOperationCallable() { throw new UnsupportedOperationException( "Not implemented: addNodesNodeGroupOperationCallable()"); @@ -86,7 +86,7 @@ public UnaryCallable addNodesNodeGroupC } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteNodeGroupOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteNodeGroupOperationCallable()"); } @@ -97,7 +97,7 @@ public UnaryCallable deleteNodeGroupCalla } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteNodesNodeGroupOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteNodesNodeGroupOperationCallable()"); @@ -119,7 +119,7 @@ public UnaryCallable getIamPolicyNodeG } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertNodeGroupOperationCallable() { throw new UnsupportedOperationException("Not implemented: insertNodeGroupOperationCallable()"); } @@ -158,7 +158,7 @@ public UnaryCallable setIamPolicyNodeG } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setNodeTemplateNodeGroupOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setNodeTemplateNodeGroupOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStubSettings.java index ff2db5d81bdb..81df4addcda9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeGroupStubSettings.java @@ -119,7 +119,7 @@ public class NodeGroupStubSettings extends StubSettings { private final UnaryCallSettings addNodesNodeGroupSettings; - private final OperationCallSettings + private final OperationCallSettings addNodesNodeGroupOperationSettings; private final PagedCallSettings< AggregatedListNodeGroupsHttpRequest, @@ -127,17 +127,17 @@ public class NodeGroupStubSettings extends StubSettings { AggregatedListNodeGroupsPagedResponse> aggregatedListNodeGroupsSettings; private final UnaryCallSettings deleteNodeGroupSettings; - private final OperationCallSettings + private final OperationCallSettings deleteNodeGroupOperationSettings; private final UnaryCallSettings deleteNodesNodeGroupSettings; - private final OperationCallSettings + private final OperationCallSettings deleteNodesNodeGroupOperationSettings; private final UnaryCallSettings getNodeGroupSettings; private final UnaryCallSettings getIamPolicyNodeGroupSettings; private final UnaryCallSettings insertNodeGroupSettings; - private final OperationCallSettings + private final OperationCallSettings insertNodeGroupOperationSettings; private final PagedCallSettings< ListNodeGroupsHttpRequest, NodeGroupList, ListNodeGroupsPagedResponse> @@ -149,8 +149,7 @@ public class NodeGroupStubSettings extends StubSettings { setIamPolicyNodeGroupSettings; private final UnaryCallSettings setNodeTemplateNodeGroupSettings; - private final OperationCallSettings< - SetNodeTemplateNodeGroupHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings setNodeTemplateNodeGroupOperationSettings; private final UnaryCallSettings testIamPermissionsNodeGroupSettings; @@ -162,7 +161,7 @@ public UnaryCallSettings addNodesNodeGr /** Returns the object with the settings used for calls to addNodesNodeGroup. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings addNodesNodeGroupOperationSettings() { return addNodesNodeGroupOperationSettings; } @@ -183,7 +182,7 @@ public UnaryCallSettings deleteNodeGroupS /** Returns the object with the settings used for calls to deleteNodeGroup. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteNodeGroupOperationSettings() { return deleteNodeGroupOperationSettings; } @@ -196,7 +195,7 @@ public UnaryCallSettings deleteNodeGroupS /** Returns the object with the settings used for calls to deleteNodesNodeGroup. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteNodesNodeGroupOperationSettings() { return deleteNodesNodeGroupOperationSettings; } @@ -219,7 +218,7 @@ public UnaryCallSettings insertNodeGroupS /** Returns the object with the settings used for calls to insertNodeGroup. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertNodeGroupOperationSettings() { return insertNodeGroupOperationSettings; } @@ -251,7 +250,7 @@ public UnaryCallSettings insertNodeGroupS /** Returns the object with the settings used for calls to setNodeTemplateNodeGroup. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setNodeTemplateNodeGroupOperationSettings() { return setNodeTemplateNodeGroupOperationSettings; } @@ -558,7 +557,7 @@ public static class Builder extends StubSettings.Builder addNodesNodeGroupSettings; private final OperationCallSettings.Builder< - AddNodesNodeGroupHttpRequest, EmptyMessage, EmptyMessage> + AddNodesNodeGroupHttpRequest, EmptyMessage, Operation> addNodesNodeGroupOperationSettings; private final PagedCallSettings.Builder< AggregatedListNodeGroupsHttpRequest, @@ -567,13 +566,12 @@ public static class Builder extends StubSettings.Builder deleteNodeGroupSettings; - private final OperationCallSettings.Builder< - DeleteNodeGroupHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder deleteNodeGroupOperationSettings; private final UnaryCallSettings.Builder deleteNodesNodeGroupSettings; private final OperationCallSettings.Builder< - DeleteNodesNodeGroupHttpRequest, EmptyMessage, EmptyMessage> + DeleteNodesNodeGroupHttpRequest, EmptyMessage, Operation> deleteNodesNodeGroupOperationSettings; private final UnaryCallSettings.Builder getNodeGroupSettings; @@ -581,8 +579,7 @@ public static class Builder extends StubSettings.Builder insertNodeGroupSettings; - private final OperationCallSettings.Builder< - InsertNodeGroupHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder insertNodeGroupOperationSettings; private final PagedCallSettings.Builder< ListNodeGroupsHttpRequest, NodeGroupList, ListNodeGroupsPagedResponse> @@ -595,7 +592,7 @@ public static class Builder extends StubSettings.Builder setNodeTemplateNodeGroupSettings; private final OperationCallSettings.Builder< - SetNodeTemplateNodeGroupHttpRequest, EmptyMessage, EmptyMessage> + SetNodeTemplateNodeGroupHttpRequest, EmptyMessage, Operation> setNodeTemplateNodeGroupOperationSettings; private final UnaryCallSettings.Builder< TestIamPermissionsNodeGroupHttpRequest, TestPermissionsResponse> @@ -774,8 +771,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -795,8 +792,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -816,8 +813,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -837,8 +834,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -859,8 +856,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -941,7 +938,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to addNodesNodeGroup. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder addNodesNodeGroupOperationSettings() { return addNodesNodeGroupOperationSettings; } @@ -964,7 +961,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteNodeGroup. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteNodeGroupOperationSettings() { return deleteNodeGroupOperationSettings; } @@ -978,8 +975,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteNodesNodeGroup. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteNodesNodeGroupHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteNodesNodeGroupOperationSettings() { return deleteNodesNodeGroupOperationSettings; } @@ -1004,7 +1000,7 @@ public UnaryCallSettings.Builder getNodeGrou /** Returns the builder for the settings used for calls to insertNodeGroup. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertNodeGroupOperationSettings() { return insertNodeGroupOperationSettings; } @@ -1039,7 +1035,7 @@ public UnaryCallSettings.Builder getNodeGrou @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetNodeTemplateNodeGroupHttpRequest, EmptyMessage, EmptyMessage> + SetNodeTemplateNodeGroupHttpRequest, EmptyMessage, Operation> setNodeTemplateNodeGroupOperationSettings() { return setNodeTemplateNodeGroupOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStub.java index e90b20dea4d5..294dc52cd902 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStub.java @@ -70,7 +70,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteNodeTemplateOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteNodeTemplateOperationCallable()"); @@ -93,7 +93,7 @@ public UnaryCallable getNodeTemplateCa } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertNodeTemplateOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertNodeTemplateOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStubSettings.java index 293ff1913295..e021eeb5f5f7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NodeTemplateStubSettings.java @@ -117,14 +117,14 @@ public class NodeTemplateStubSettings extends StubSettings deleteNodeTemplateSettings; - private final OperationCallSettings + private final OperationCallSettings deleteNodeTemplateOperationSettings; private final UnaryCallSettings getNodeTemplateSettings; private final UnaryCallSettings getIamPolicyNodeTemplateSettings; private final UnaryCallSettings insertNodeTemplateSettings; - private final OperationCallSettings + private final OperationCallSettings insertNodeTemplateOperationSettings; private final PagedCallSettings< ListNodeTemplatesHttpRequest, NodeTemplateList, ListNodeTemplatesPagedResponse> @@ -151,7 +151,7 @@ public UnaryCallSettings deleteNodeTem /** Returns the object with the settings used for calls to deleteNodeTemplate. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteNodeTemplateOperationSettings() { return deleteNodeTemplateOperationSettings; } @@ -174,7 +174,7 @@ public UnaryCallSettings insertNodeTem /** Returns the object with the settings used for calls to insertNodeTemplate. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertNodeTemplateOperationSettings() { return insertNodeTemplateOperationSettings; } @@ -438,7 +438,7 @@ public static class Builder extends StubSettings.Builder deleteNodeTemplateSettings; private final OperationCallSettings.Builder< - DeleteNodeTemplateHttpRequest, EmptyMessage, EmptyMessage> + DeleteNodeTemplateHttpRequest, EmptyMessage, Operation> deleteNodeTemplateOperationSettings; private final UnaryCallSettings.Builder getNodeTemplateSettings; @@ -447,7 +447,7 @@ public static class Builder extends StubSettings.Builder insertNodeTemplateSettings; private final OperationCallSettings.Builder< - InsertNodeTemplateHttpRequest, EmptyMessage, EmptyMessage> + InsertNodeTemplateHttpRequest, EmptyMessage, Operation> insertNodeTemplateOperationSettings; private final PagedCallSettings.Builder< ListNodeTemplatesHttpRequest, NodeTemplateList, ListNodeTemplatesPagedResponse> @@ -592,8 +592,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -613,8 +613,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -694,7 +694,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteNodeTemplate. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteNodeTemplateOperationSettings() { return deleteNodeTemplateOperationSettings; } @@ -720,7 +720,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertNodeTemplate. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertNodeTemplateOperationSettings() { return insertNodeTemplateOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStub.java index 28106fc418fe..2bf9920e7454 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStub.java @@ -58,7 +58,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable disableXpnHostProjectOperationCallable() { throw new UnsupportedOperationException( "Not implemented: disableXpnHostProjectOperationCallable()"); @@ -71,7 +71,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable disableXpnResourceProjectOperationCallable() { throw new UnsupportedOperationException( "Not implemented: disableXpnResourceProjectOperationCallable()"); @@ -84,7 +84,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable enableXpnHostProjectOperationCallable() { throw new UnsupportedOperationException( "Not implemented: enableXpnHostProjectOperationCallable()"); @@ -96,7 +96,7 @@ public UnaryCallable enableXpnHostPr } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable enableXpnResourceProjectOperationCallable() { throw new UnsupportedOperationException( "Not implemented: enableXpnResourceProjectOperationCallable()"); @@ -144,7 +144,7 @@ public UnaryCallable getXpnHostProjectCal } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable moveDiskProjectOperationCallable() { throw new UnsupportedOperationException("Not implemented: moveDiskProjectOperationCallable()"); } @@ -155,7 +155,7 @@ public UnaryCallable moveDiskProjectCalla } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable moveInstanceProjectOperationCallable() { throw new UnsupportedOperationException( "Not implemented: moveInstanceProjectOperationCallable()"); @@ -167,7 +167,7 @@ public UnaryCallable moveInstanceProj } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setCommonInstanceMetadataProjectOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setCommonInstanceMetadataProjectOperationCallable()"); @@ -181,7 +181,7 @@ public UnaryCallable moveInstanceProj } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setDefaultNetworkTierProjectOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setDefaultNetworkTierProjectOperationCallable()"); @@ -195,7 +195,7 @@ public UnaryCallable moveInstanceProj } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setUsageExportBucketProjectOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setUsageExportBucketProjectOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStubSettings.java index badb7c50912e..7d66db4a3158 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/ProjectStubSettings.java @@ -115,21 +115,19 @@ public class ProjectStubSettings extends StubSettings { private final UnaryCallSettings disableXpnHostProjectSettings; - private final OperationCallSettings + private final OperationCallSettings disableXpnHostProjectOperationSettings; private final UnaryCallSettings disableXpnResourceProjectSettings; - private final OperationCallSettings< - DisableXpnResourceProjectHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings disableXpnResourceProjectOperationSettings; private final UnaryCallSettings enableXpnHostProjectSettings; - private final OperationCallSettings + private final OperationCallSettings enableXpnHostProjectOperationSettings; private final UnaryCallSettings enableXpnResourceProjectSettings; - private final OperationCallSettings< - EnableXpnResourceProjectHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings enableXpnResourceProjectOperationSettings; private final UnaryCallSettings getProjectSettings; private final UnaryCallSettings getXpnHostProjectSettings; @@ -142,26 +140,26 @@ public class ProjectStubSettings extends StubSettings { ListXpnHostsProjectsHttpRequest, XpnHostList, ListXpnHostsProjectsPagedResponse> listXpnHostsProjectsSettings; private final UnaryCallSettings moveDiskProjectSettings; - private final OperationCallSettings + private final OperationCallSettings moveDiskProjectOperationSettings; private final UnaryCallSettings moveInstanceProjectSettings; - private final OperationCallSettings + private final OperationCallSettings moveInstanceProjectOperationSettings; private final UnaryCallSettings setCommonInstanceMetadataProjectSettings; private final OperationCallSettings< - SetCommonInstanceMetadataProjectHttpRequest, EmptyMessage, EmptyMessage> + SetCommonInstanceMetadataProjectHttpRequest, EmptyMessage, Operation> setCommonInstanceMetadataProjectOperationSettings; private final UnaryCallSettings setDefaultNetworkTierProjectSettings; private final OperationCallSettings< - SetDefaultNetworkTierProjectHttpRequest, EmptyMessage, EmptyMessage> + SetDefaultNetworkTierProjectHttpRequest, EmptyMessage, Operation> setDefaultNetworkTierProjectOperationSettings; private final UnaryCallSettings setUsageExportBucketProjectSettings; private final OperationCallSettings< - SetUsageExportBucketProjectHttpRequest, EmptyMessage, EmptyMessage> + SetUsageExportBucketProjectHttpRequest, EmptyMessage, Operation> setUsageExportBucketProjectOperationSettings; /** Returns the object with the settings used for calls to disableXpnHostProject. */ @@ -172,7 +170,7 @@ public class ProjectStubSettings extends StubSettings { /** Returns the object with the settings used for calls to disableXpnHostProject. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings disableXpnHostProjectOperationSettings() { return disableXpnHostProjectOperationSettings; } @@ -185,7 +183,7 @@ public class ProjectStubSettings extends StubSettings { /** Returns the object with the settings used for calls to disableXpnResourceProject. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings disableXpnResourceProjectOperationSettings() { return disableXpnResourceProjectOperationSettings; } @@ -198,7 +196,7 @@ public class ProjectStubSettings extends StubSettings { /** Returns the object with the settings used for calls to enableXpnHostProject. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings enableXpnHostProjectOperationSettings() { return enableXpnHostProjectOperationSettings; } @@ -211,7 +209,7 @@ public class ProjectStubSettings extends StubSettings { /** Returns the object with the settings used for calls to enableXpnResourceProject. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings enableXpnResourceProjectOperationSettings() { return enableXpnResourceProjectOperationSettings; } @@ -249,7 +247,7 @@ public UnaryCallSettings moveDiskProjectS /** Returns the object with the settings used for calls to moveDiskProject. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings moveDiskProjectOperationSettings() { return moveDiskProjectOperationSettings; } @@ -262,7 +260,7 @@ public UnaryCallSettings moveDiskProjectS /** Returns the object with the settings used for calls to moveInstanceProject. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings moveInstanceProjectOperationSettings() { return moveInstanceProjectOperationSettings; } @@ -275,8 +273,7 @@ public UnaryCallSettings moveDiskProjectS /** Returns the object with the settings used for calls to setCommonInstanceMetadataProject. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings< - SetCommonInstanceMetadataProjectHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings setCommonInstanceMetadataProjectOperationSettings() { return setCommonInstanceMetadataProjectOperationSettings; } @@ -289,7 +286,7 @@ public UnaryCallSettings moveDiskProjectS /** Returns the object with the settings used for calls to setDefaultNetworkTierProject. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setDefaultNetworkTierProjectOperationSettings() { return setDefaultNetworkTierProjectOperationSettings; } @@ -302,7 +299,7 @@ public UnaryCallSettings moveDiskProjectS /** Returns the object with the settings used for calls to setUsageExportBucketProject. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setUsageExportBucketProjectOperationSettings() { return setUsageExportBucketProjectOperationSettings; } @@ -551,22 +548,22 @@ public static class Builder extends StubSettings.Builder disableXpnHostProjectSettings; private final OperationCallSettings.Builder< - DisableXpnHostProjectHttpRequest, EmptyMessage, EmptyMessage> + DisableXpnHostProjectHttpRequest, EmptyMessage, Operation> disableXpnHostProjectOperationSettings; private final UnaryCallSettings.Builder disableXpnResourceProjectSettings; private final OperationCallSettings.Builder< - DisableXpnResourceProjectHttpRequest, EmptyMessage, EmptyMessage> + DisableXpnResourceProjectHttpRequest, EmptyMessage, Operation> disableXpnResourceProjectOperationSettings; private final UnaryCallSettings.Builder enableXpnHostProjectSettings; private final OperationCallSettings.Builder< - EnableXpnHostProjectHttpRequest, EmptyMessage, EmptyMessage> + EnableXpnHostProjectHttpRequest, EmptyMessage, Operation> enableXpnHostProjectOperationSettings; private final UnaryCallSettings.Builder enableXpnResourceProjectSettings; private final OperationCallSettings.Builder< - EnableXpnResourceProjectHttpRequest, EmptyMessage, EmptyMessage> + EnableXpnResourceProjectHttpRequest, EmptyMessage, Operation> enableXpnResourceProjectOperationSettings; private final UnaryCallSettings.Builder getProjectSettings; private final UnaryCallSettings.Builder @@ -581,28 +578,27 @@ public static class Builder extends StubSettings.Builder moveDiskProjectSettings; - private final OperationCallSettings.Builder< - MoveDiskProjectHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder moveDiskProjectOperationSettings; private final UnaryCallSettings.Builder moveInstanceProjectSettings; private final OperationCallSettings.Builder< - MoveInstanceProjectHttpRequest, EmptyMessage, EmptyMessage> + MoveInstanceProjectHttpRequest, EmptyMessage, Operation> moveInstanceProjectOperationSettings; private final UnaryCallSettings.Builder setCommonInstanceMetadataProjectSettings; private final OperationCallSettings.Builder< - SetCommonInstanceMetadataProjectHttpRequest, EmptyMessage, EmptyMessage> + SetCommonInstanceMetadataProjectHttpRequest, EmptyMessage, Operation> setCommonInstanceMetadataProjectOperationSettings; private final UnaryCallSettings.Builder setDefaultNetworkTierProjectSettings; private final OperationCallSettings.Builder< - SetDefaultNetworkTierProjectHttpRequest, EmptyMessage, EmptyMessage> + SetDefaultNetworkTierProjectHttpRequest, EmptyMessage, Operation> setDefaultNetworkTierProjectOperationSettings; private final UnaryCallSettings.Builder setUsageExportBucketProjectSettings; private final OperationCallSettings.Builder< - SetUsageExportBucketProjectHttpRequest, EmptyMessage, EmptyMessage> + SetUsageExportBucketProjectHttpRequest, EmptyMessage, Operation> setUsageExportBucketProjectOperationSettings; private static final ImmutableMap> @@ -795,8 +791,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -817,8 +813,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -838,8 +834,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -860,8 +856,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -881,8 +877,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -902,8 +898,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -924,8 +920,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -946,8 +942,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -968,8 +964,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1064,8 +1060,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to disableXpnHostProject. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DisableXpnHostProjectHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder disableXpnHostProjectOperationSettings() { return disableXpnHostProjectOperationSettings; } @@ -1080,7 +1075,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - DisableXpnResourceProjectHttpRequest, EmptyMessage, EmptyMessage> + DisableXpnResourceProjectHttpRequest, EmptyMessage, Operation> disableXpnResourceProjectOperationSettings() { return disableXpnResourceProjectOperationSettings; } @@ -1094,8 +1089,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to enableXpnHostProject. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - EnableXpnHostProjectHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder enableXpnHostProjectOperationSettings() { return enableXpnHostProjectOperationSettings; } @@ -1110,7 +1104,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - EnableXpnResourceProjectHttpRequest, EmptyMessage, EmptyMessage> + EnableXpnResourceProjectHttpRequest, EmptyMessage, Operation> enableXpnResourceProjectOperationSettings() { return enableXpnResourceProjectOperationSettings; } @@ -1151,7 +1145,7 @@ public UnaryCallSettings.Builder getProjectSetti /** Returns the builder for the settings used for calls to moveDiskProject. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder moveDiskProjectOperationSettings() { return moveDiskProjectOperationSettings; } @@ -1165,7 +1159,7 @@ public UnaryCallSettings.Builder getProjectSetti /** Returns the builder for the settings used for calls to moveInstanceProject. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder moveInstanceProjectOperationSettings() { return moveInstanceProjectOperationSettings; } @@ -1180,7 +1174,7 @@ public UnaryCallSettings.Builder getProjectSetti @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetCommonInstanceMetadataProjectHttpRequest, EmptyMessage, EmptyMessage> + SetCommonInstanceMetadataProjectHttpRequest, EmptyMessage, Operation> setCommonInstanceMetadataProjectOperationSettings() { return setCommonInstanceMetadataProjectOperationSettings; } @@ -1195,7 +1189,7 @@ public UnaryCallSettings.Builder getProjectSetti @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetDefaultNetworkTierProjectHttpRequest, EmptyMessage, EmptyMessage> + SetDefaultNetworkTierProjectHttpRequest, EmptyMessage, Operation> setDefaultNetworkTierProjectOperationSettings() { return setDefaultNetworkTierProjectOperationSettings; } @@ -1210,7 +1204,7 @@ public UnaryCallSettings.Builder getProjectSetti @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetUsageExportBucketProjectHttpRequest, EmptyMessage, EmptyMessage> + SetUsageExportBucketProjectHttpRequest, EmptyMessage, Operation> setUsageExportBucketProjectOperationSettings() { return setUsageExportBucketProjectOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStub.java index 5c8460d8a8d2..2c756fc78c14 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStub.java @@ -49,7 +49,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteRegionAutoscalerOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteRegionAutoscalerOperationCallable()"); @@ -67,7 +67,7 @@ public UnaryCallable getRegionAutosc } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertRegionAutoscalerOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertRegionAutoscalerOperationCallable()"); @@ -93,7 +93,7 @@ public UnaryCallable getRegionAutosc } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchRegionAutoscalerOperationCallable() { throw new UnsupportedOperationException( "Not implemented: patchRegionAutoscalerOperationCallable()"); @@ -106,7 +106,7 @@ public UnaryCallable getRegionAutosc } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateRegionAutoscalerOperationCallable() { throw new UnsupportedOperationException( "Not implemented: updateRegionAutoscalerOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStubSettings.java index 89fbf786374d..a04ae830b49b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionAutoscalerStubSettings.java @@ -105,13 +105,13 @@ public class RegionAutoscalerStubSettings extends StubSettings deleteRegionAutoscalerSettings; - private final OperationCallSettings + private final OperationCallSettings deleteRegionAutoscalerOperationSettings; private final UnaryCallSettings getRegionAutoscalerSettings; private final UnaryCallSettings insertRegionAutoscalerSettings; - private final OperationCallSettings + private final OperationCallSettings insertRegionAutoscalerOperationSettings; private final PagedCallSettings< ListRegionAutoscalersHttpRequest, @@ -120,11 +120,11 @@ public class RegionAutoscalerStubSettings extends StubSettings patchRegionAutoscalerSettings; - private final OperationCallSettings + private final OperationCallSettings patchRegionAutoscalerOperationSettings; private final UnaryCallSettings updateRegionAutoscalerSettings; - private final OperationCallSettings + private final OperationCallSettings updateRegionAutoscalerOperationSettings; /** Returns the object with the settings used for calls to deleteRegionAutoscaler. */ @@ -135,7 +135,7 @@ public class RegionAutoscalerStubSettings extends StubSettings + public OperationCallSettings deleteRegionAutoscalerOperationSettings() { return deleteRegionAutoscalerOperationSettings; } @@ -154,7 +154,7 @@ public class RegionAutoscalerStubSettings extends StubSettings + public OperationCallSettings insertRegionAutoscalerOperationSettings() { return insertRegionAutoscalerOperationSettings; } @@ -176,7 +176,7 @@ public class RegionAutoscalerStubSettings extends StubSettings + public OperationCallSettings patchRegionAutoscalerOperationSettings() { return patchRegionAutoscalerOperationSettings; } @@ -189,7 +189,7 @@ public class RegionAutoscalerStubSettings extends StubSettings + public OperationCallSettings updateRegionAutoscalerOperationSettings() { return updateRegionAutoscalerOperationSettings; } @@ -359,14 +359,14 @@ public static class Builder extends StubSettings.Builder deleteRegionAutoscalerSettings; private final OperationCallSettings.Builder< - DeleteRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage> + DeleteRegionAutoscalerHttpRequest, EmptyMessage, Operation> deleteRegionAutoscalerOperationSettings; private final UnaryCallSettings.Builder getRegionAutoscalerSettings; private final UnaryCallSettings.Builder insertRegionAutoscalerSettings; private final OperationCallSettings.Builder< - InsertRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage> + InsertRegionAutoscalerHttpRequest, EmptyMessage, Operation> insertRegionAutoscalerOperationSettings; private final PagedCallSettings.Builder< ListRegionAutoscalersHttpRequest, @@ -376,12 +376,12 @@ public static class Builder extends StubSettings.Builder patchRegionAutoscalerSettings; private final OperationCallSettings.Builder< - PatchRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage> + PatchRegionAutoscalerHttpRequest, EmptyMessage, Operation> patchRegionAutoscalerOperationSettings; private final UnaryCallSettings.Builder updateRegionAutoscalerSettings; private final OperationCallSettings.Builder< - UpdateRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage> + UpdateRegionAutoscalerHttpRequest, EmptyMessage, Operation> updateRegionAutoscalerOperationSettings; private static final ImmutableMap> @@ -507,8 +507,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -529,8 +529,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -551,8 +551,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -573,8 +573,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -643,8 +643,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteRegionAutoscaler. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteRegionAutoscalerOperationSettings() { return deleteRegionAutoscalerOperationSettings; } @@ -664,8 +663,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertRegionAutoscaler. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertRegionAutoscalerOperationSettings() { return insertRegionAutoscalerOperationSettings; } @@ -688,8 +686,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to patchRegionAutoscaler. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - PatchRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder patchRegionAutoscalerOperationSettings() { return patchRegionAutoscalerOperationSettings; } @@ -703,8 +700,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to updateRegionAutoscaler. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - UpdateRegionAutoscalerHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder updateRegionAutoscalerOperationSettings() { return updateRegionAutoscalerOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStub.java index bb7be782a2f9..f58d4abbfd84 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStub.java @@ -51,7 +51,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteRegionBackendServiceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteRegionBackendServiceOperationCallable()"); @@ -78,7 +78,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertRegionBackendServiceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertRegionBackendServiceOperationCallable()"); @@ -105,7 +105,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchRegionBackendServiceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: patchRegionBackendServiceOperationCallable()"); @@ -118,7 +118,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateRegionBackendServiceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: updateRegionBackendServiceOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStubSettings.java index 848a42f04c29..5f49defc4b12 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionBackendServiceStubSettings.java @@ -109,7 +109,7 @@ public class RegionBackendServiceStubSettings private final UnaryCallSettings deleteRegionBackendServiceSettings; private final OperationCallSettings< - DeleteRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + DeleteRegionBackendServiceHttpRequest, EmptyMessage, Operation> deleteRegionBackendServiceOperationSettings; private final UnaryCallSettings getRegionBackendServiceSettings; @@ -119,7 +119,7 @@ public class RegionBackendServiceStubSettings private final UnaryCallSettings insertRegionBackendServiceSettings; private final OperationCallSettings< - InsertRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + InsertRegionBackendServiceHttpRequest, EmptyMessage, Operation> insertRegionBackendServiceOperationSettings; private final PagedCallSettings< ListRegionBackendServicesHttpRequest, @@ -128,13 +128,12 @@ public class RegionBackendServiceStubSettings listRegionBackendServicesSettings; private final UnaryCallSettings patchRegionBackendServiceSettings; - private final OperationCallSettings< - PatchRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings patchRegionBackendServiceOperationSettings; private final UnaryCallSettings updateRegionBackendServiceSettings; private final OperationCallSettings< - UpdateRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + UpdateRegionBackendServiceHttpRequest, EmptyMessage, Operation> updateRegionBackendServiceOperationSettings; /** Returns the object with the settings used for calls to deleteRegionBackendService. */ @@ -145,7 +144,7 @@ public class RegionBackendServiceStubSettings /** Returns the object with the settings used for calls to deleteRegionBackendService. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteRegionBackendServiceOperationSettings() { return deleteRegionBackendServiceOperationSettings; } @@ -170,7 +169,7 @@ public class RegionBackendServiceStubSettings /** Returns the object with the settings used for calls to insertRegionBackendService. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertRegionBackendServiceOperationSettings() { return insertRegionBackendServiceOperationSettings; } @@ -192,7 +191,7 @@ public class RegionBackendServiceStubSettings /** Returns the object with the settings used for calls to patchRegionBackendService. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchRegionBackendServiceOperationSettings() { return patchRegionBackendServiceOperationSettings; } @@ -205,7 +204,7 @@ public class RegionBackendServiceStubSettings /** Returns the object with the settings used for calls to updateRegionBackendService. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings updateRegionBackendServiceOperationSettings() { return updateRegionBackendServiceOperationSettings; } @@ -382,7 +381,7 @@ public static class Builder private final UnaryCallSettings.Builder deleteRegionBackendServiceSettings; private final OperationCallSettings.Builder< - DeleteRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + DeleteRegionBackendServiceHttpRequest, EmptyMessage, Operation> deleteRegionBackendServiceOperationSettings; private final UnaryCallSettings.Builder getRegionBackendServiceSettings; @@ -392,7 +391,7 @@ public static class Builder private final UnaryCallSettings.Builder insertRegionBackendServiceSettings; private final OperationCallSettings.Builder< - InsertRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + InsertRegionBackendServiceHttpRequest, EmptyMessage, Operation> insertRegionBackendServiceOperationSettings; private final PagedCallSettings.Builder< ListRegionBackendServicesHttpRequest, @@ -402,12 +401,12 @@ public static class Builder private final UnaryCallSettings.Builder patchRegionBackendServiceSettings; private final OperationCallSettings.Builder< - PatchRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + PatchRegionBackendServiceHttpRequest, EmptyMessage, Operation> patchRegionBackendServiceOperationSettings; private final UnaryCallSettings.Builder updateRegionBackendServiceSettings; private final OperationCallSettings.Builder< - UpdateRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + UpdateRegionBackendServiceHttpRequest, EmptyMessage, Operation> updateRegionBackendServiceOperationSettings; private static final ImmutableMap> @@ -541,8 +540,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -563,8 +562,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -585,8 +584,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -607,8 +606,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -681,7 +680,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - DeleteRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + DeleteRegionBackendServiceHttpRequest, EmptyMessage, Operation> deleteRegionBackendServiceOperationSettings() { return deleteRegionBackendServiceOperationSettings; } @@ -709,7 +708,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - InsertRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + InsertRegionBackendServiceHttpRequest, EmptyMessage, Operation> insertRegionBackendServiceOperationSettings() { return insertRegionBackendServiceOperationSettings; } @@ -733,7 +732,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - PatchRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + PatchRegionBackendServiceHttpRequest, EmptyMessage, Operation> patchRegionBackendServiceOperationSettings() { return patchRegionBackendServiceOperationSettings; } @@ -748,7 +747,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - UpdateRegionBackendServiceHttpRequest, EmptyMessage, EmptyMessage> + UpdateRegionBackendServiceHttpRequest, EmptyMessage, Operation> updateRegionBackendServiceOperationSettings() { return updateRegionBackendServiceOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStub.java index 000603fa04a3..6c72be22a902 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStub.java @@ -69,7 +69,7 @@ public UnaryCallable getRegionCommit } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertRegionCommitmentOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertRegionCommitmentOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStubSettings.java index 7147dd8e9843..bcc1e77c4b04 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionCommitmentStubSettings.java @@ -113,7 +113,7 @@ public class RegionCommitmentStubSettings extends StubSettings insertRegionCommitmentSettings; - private final OperationCallSettings + private final OperationCallSettings insertRegionCommitmentOperationSettings; private final PagedCallSettings< ListRegionCommitmentsHttpRequest, CommitmentList, ListRegionCommitmentsPagedResponse> @@ -142,7 +142,7 @@ public class RegionCommitmentStubSettings extends StubSettings + public OperationCallSettings insertRegionCommitmentOperationSettings() { return insertRegionCommitmentOperationSettings; } @@ -396,7 +396,7 @@ public static class Builder extends StubSettings.Builder insertRegionCommitmentSettings; private final OperationCallSettings.Builder< - InsertRegionCommitmentHttpRequest, EmptyMessage, EmptyMessage> + InsertRegionCommitmentHttpRequest, EmptyMessage, Operation> insertRegionCommitmentOperationSettings; private final PagedCallSettings.Builder< ListRegionCommitmentsHttpRequest, CommitmentList, ListRegionCommitmentsPagedResponse> @@ -504,8 +504,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -580,8 +580,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertRegionCommitment. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertRegionCommitmentHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertRegionCommitmentOperationSettings() { return insertRegionCommitmentOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStub.java index 3ca886872b44..243884dcc051 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStub.java @@ -52,7 +52,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable createSnapshotRegionDiskOperationCallable() { throw new UnsupportedOperationException( "Not implemented: createSnapshotRegionDiskOperationCallable()"); @@ -65,7 +65,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteRegionDiskOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteRegionDiskOperationCallable()"); } @@ -81,7 +81,7 @@ public UnaryCallable getRegionDiskCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertRegionDiskOperationCallable() { throw new UnsupportedOperationException("Not implemented: insertRegionDiskOperationCallable()"); } @@ -103,7 +103,7 @@ public UnaryCallable listRegionDisksCallab } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable resizeRegionDiskOperationCallable() { throw new UnsupportedOperationException("Not implemented: resizeRegionDiskOperationCallable()"); } @@ -114,7 +114,7 @@ public UnaryCallable resizeRegionDiskCal } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setLabelsRegionDiskOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setLabelsRegionDiskOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStubSettings.java index fcf8b564157e..6d30206cfccc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionDiskStubSettings.java @@ -108,25 +108,24 @@ public class RegionDiskStubSettings extends StubSettings private final UnaryCallSettings createSnapshotRegionDiskSettings; - private final OperationCallSettings< - CreateSnapshotRegionDiskHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings createSnapshotRegionDiskOperationSettings; private final UnaryCallSettings deleteRegionDiskSettings; - private final OperationCallSettings + private final OperationCallSettings deleteRegionDiskOperationSettings; private final UnaryCallSettings getRegionDiskSettings; private final UnaryCallSettings insertRegionDiskSettings; - private final OperationCallSettings + private final OperationCallSettings insertRegionDiskOperationSettings; private final PagedCallSettings< ListRegionDisksHttpRequest, DiskList, ListRegionDisksPagedResponse> listRegionDisksSettings; private final UnaryCallSettings resizeRegionDiskSettings; - private final OperationCallSettings + private final OperationCallSettings resizeRegionDiskOperationSettings; private final UnaryCallSettings setLabelsRegionDiskSettings; - private final OperationCallSettings + private final OperationCallSettings setLabelsRegionDiskOperationSettings; private final UnaryCallSettings testIamPermissionsRegionDiskSettings; @@ -139,7 +138,7 @@ public class RegionDiskStubSettings extends StubSettings /** Returns the object with the settings used for calls to createSnapshotRegionDisk. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings createSnapshotRegionDiskOperationSettings() { return createSnapshotRegionDiskOperationSettings; } @@ -151,7 +150,7 @@ public UnaryCallSettings deleteRegionDis /** Returns the object with the settings used for calls to deleteRegionDisk. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteRegionDiskOperationSettings() { return deleteRegionDiskOperationSettings; } @@ -168,7 +167,7 @@ public UnaryCallSettings insertRegionDis /** Returns the object with the settings used for calls to insertRegionDisk. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertRegionDiskOperationSettings() { return insertRegionDiskOperationSettings; } @@ -186,7 +185,7 @@ public UnaryCallSettings resizeRegionDis /** Returns the object with the settings used for calls to resizeRegionDisk. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings resizeRegionDiskOperationSettings() { return resizeRegionDiskOperationSettings; } @@ -199,7 +198,7 @@ public UnaryCallSettings resizeRegionDis /** Returns the object with the settings used for calls to setLabelsRegionDisk. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setLabelsRegionDiskOperationSettings() { return setLabelsRegionDiskOperationSettings; } @@ -365,18 +364,18 @@ public static class Builder extends StubSettings.Builder createSnapshotRegionDiskSettings; private final OperationCallSettings.Builder< - CreateSnapshotRegionDiskHttpRequest, EmptyMessage, EmptyMessage> + CreateSnapshotRegionDiskHttpRequest, EmptyMessage, Operation> createSnapshotRegionDiskOperationSettings; private final UnaryCallSettings.Builder deleteRegionDiskSettings; private final OperationCallSettings.Builder< - DeleteRegionDiskHttpRequest, EmptyMessage, EmptyMessage> + DeleteRegionDiskHttpRequest, EmptyMessage, Operation> deleteRegionDiskOperationSettings; private final UnaryCallSettings.Builder getRegionDiskSettings; private final UnaryCallSettings.Builder insertRegionDiskSettings; private final OperationCallSettings.Builder< - InsertRegionDiskHttpRequest, EmptyMessage, EmptyMessage> + InsertRegionDiskHttpRequest, EmptyMessage, Operation> insertRegionDiskOperationSettings; private final PagedCallSettings.Builder< ListRegionDisksHttpRequest, DiskList, ListRegionDisksPagedResponse> @@ -384,12 +383,12 @@ public static class Builder extends StubSettings.Builder resizeRegionDiskSettings; private final OperationCallSettings.Builder< - ResizeRegionDiskHttpRequest, EmptyMessage, EmptyMessage> + ResizeRegionDiskHttpRequest, EmptyMessage, Operation> resizeRegionDiskOperationSettings; private final UnaryCallSettings.Builder setLabelsRegionDiskSettings; private final OperationCallSettings.Builder< - SetLabelsRegionDiskHttpRequest, EmptyMessage, EmptyMessage> + SetLabelsRegionDiskHttpRequest, EmptyMessage, Operation> setLabelsRegionDiskOperationSettings; private final UnaryCallSettings.Builder< TestIamPermissionsRegionDiskHttpRequest, TestPermissionsResponse> @@ -535,8 +534,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -556,8 +555,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -577,8 +576,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -598,8 +597,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -619,8 +618,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -694,7 +693,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - CreateSnapshotRegionDiskHttpRequest, EmptyMessage, EmptyMessage> + CreateSnapshotRegionDiskHttpRequest, EmptyMessage, Operation> createSnapshotRegionDiskOperationSettings() { return createSnapshotRegionDiskOperationSettings; } @@ -708,7 +707,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteRegionDisk. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteRegionDiskOperationSettings() { return deleteRegionDiskOperationSettings; } @@ -727,7 +726,7 @@ public UnaryCallSettings.Builder getRegionDiskSe /** Returns the builder for the settings used for calls to insertRegionDisk. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertRegionDiskOperationSettings() { return insertRegionDiskOperationSettings; } @@ -748,7 +747,7 @@ public UnaryCallSettings.Builder getRegionDiskSe /** Returns the builder for the settings used for calls to resizeRegionDisk. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder resizeRegionDiskOperationSettings() { return resizeRegionDiskOperationSettings; } @@ -762,7 +761,7 @@ public UnaryCallSettings.Builder getRegionDiskSe /** Returns the builder for the settings used for calls to setLabelsRegionDisk. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder setLabelsRegionDiskOperationSettings() { return setLabelsRegionDiskOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStub.java index 2db8a92f93e5..45d87586ea46 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStub.java @@ -57,7 +57,7 @@ public RegionOperationStub getOperationsStub() { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable< - AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> abandonInstancesRegionInstanceGroupManagerOperationCallable() { throw new UnsupportedOperationException( "Not implemented: abandonInstancesRegionInstanceGroupManagerOperationCallable()"); @@ -71,7 +71,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteRegionInstanceGroupManagerOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteRegionInstanceGroupManagerOperationCallable()"); @@ -86,7 +86,7 @@ public RegionOperationStub getOperationsStub() { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable< - DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteInstancesRegionInstanceGroupManagerOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteInstancesRegionInstanceGroupManagerOperationCallable()"); @@ -107,7 +107,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertRegionInstanceGroupManagerOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertRegionInstanceGroupManagerOperationCallable()"); @@ -145,7 +145,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchRegionInstanceGroupManagerOperationCallable() { throw new UnsupportedOperationException( "Not implemented: patchRegionInstanceGroupManagerOperationCallable()"); @@ -160,7 +160,7 @@ public RegionOperationStub getOperationsStub() { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable< - RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> recreateInstancesRegionInstanceGroupManagerOperationCallable() { throw new UnsupportedOperationException( "Not implemented: recreateInstancesRegionInstanceGroupManagerOperationCallable()"); @@ -174,7 +174,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable resizeRegionInstanceGroupManagerOperationCallable() { throw new UnsupportedOperationException( "Not implemented: resizeRegionInstanceGroupManagerOperationCallable()"); @@ -189,7 +189,7 @@ public RegionOperationStub getOperationsStub() { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable< - SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setInstanceTemplateRegionInstanceGroupManagerOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setInstanceTemplateRegionInstanceGroupManagerOperationCallable()"); @@ -204,7 +204,7 @@ public RegionOperationStub getOperationsStub() { @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable< - SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setTargetPoolsRegionInstanceGroupManagerOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setTargetPoolsRegionInstanceGroupManagerOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStubSettings.java index 7e63a041a63c..6201ef606924 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupManagerStubSettings.java @@ -114,24 +114,24 @@ public class RegionInstanceGroupManagerStubSettings private final UnaryCallSettings abandonInstancesRegionInstanceGroupManagerSettings; private final OperationCallSettings< - AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> abandonInstancesRegionInstanceGroupManagerOperationSettings; private final UnaryCallSettings deleteRegionInstanceGroupManagerSettings; private final OperationCallSettings< - DeleteRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteRegionInstanceGroupManagerOperationSettings; private final UnaryCallSettings deleteInstancesRegionInstanceGroupManagerSettings; private final OperationCallSettings< - DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteInstancesRegionInstanceGroupManagerOperationSettings; private final UnaryCallSettings getRegionInstanceGroupManagerSettings; private final UnaryCallSettings insertRegionInstanceGroupManagerSettings; private final OperationCallSettings< - InsertRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + InsertRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> insertRegionInstanceGroupManagerOperationSettings; private final PagedCallSettings< ListRegionInstanceGroupManagersHttpRequest, @@ -145,28 +145,28 @@ public class RegionInstanceGroupManagerStubSettings private final UnaryCallSettings patchRegionInstanceGroupManagerSettings; private final OperationCallSettings< - PatchRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + PatchRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> patchRegionInstanceGroupManagerOperationSettings; private final UnaryCallSettings recreateInstancesRegionInstanceGroupManagerSettings; private final OperationCallSettings< - RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> recreateInstancesRegionInstanceGroupManagerOperationSettings; private final UnaryCallSettings resizeRegionInstanceGroupManagerSettings; private final OperationCallSettings< - ResizeRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + ResizeRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> resizeRegionInstanceGroupManagerOperationSettings; private final UnaryCallSettings< SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, Operation> setInstanceTemplateRegionInstanceGroupManagerSettings; private final OperationCallSettings< - SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setInstanceTemplateRegionInstanceGroupManagerOperationSettings; private final UnaryCallSettings setTargetPoolsRegionInstanceGroupManagerSettings; private final OperationCallSettings< - SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setTargetPoolsRegionInstanceGroupManagerOperationSettings; /** @@ -184,7 +184,7 @@ public class RegionInstanceGroupManagerStubSettings */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings< - AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> abandonInstancesRegionInstanceGroupManagerOperationSettings() { return abandonInstancesRegionInstanceGroupManagerOperationSettings; } @@ -197,8 +197,7 @@ public class RegionInstanceGroupManagerStubSettings /** Returns the object with the settings used for calls to deleteRegionInstanceGroupManager. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings< - DeleteRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings deleteRegionInstanceGroupManagerOperationSettings() { return deleteRegionInstanceGroupManagerOperationSettings; } @@ -218,7 +217,7 @@ public class RegionInstanceGroupManagerStubSettings */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings< - DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteInstancesRegionInstanceGroupManagerOperationSettings() { return deleteInstancesRegionInstanceGroupManagerOperationSettings; } @@ -237,8 +236,7 @@ public class RegionInstanceGroupManagerStubSettings /** Returns the object with the settings used for calls to insertRegionInstanceGroupManager. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings< - InsertRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings insertRegionInstanceGroupManagerOperationSettings() { return insertRegionInstanceGroupManagerOperationSettings; } @@ -271,8 +269,7 @@ public class RegionInstanceGroupManagerStubSettings /** Returns the object with the settings used for calls to patchRegionInstanceGroupManager. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings< - PatchRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings patchRegionInstanceGroupManagerOperationSettings() { return patchRegionInstanceGroupManagerOperationSettings; } @@ -292,7 +289,7 @@ public class RegionInstanceGroupManagerStubSettings */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings< - RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> recreateInstancesRegionInstanceGroupManagerOperationSettings() { return recreateInstancesRegionInstanceGroupManagerOperationSettings; } @@ -305,8 +302,7 @@ public class RegionInstanceGroupManagerStubSettings /** Returns the object with the settings used for calls to resizeRegionInstanceGroupManager. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings< - ResizeRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings resizeRegionInstanceGroupManagerOperationSettings() { return resizeRegionInstanceGroupManagerOperationSettings; } @@ -326,7 +322,7 @@ public class RegionInstanceGroupManagerStubSettings */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings< - SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setInstanceTemplateRegionInstanceGroupManagerOperationSettings() { return setInstanceTemplateRegionInstanceGroupManagerOperationSettings; } @@ -346,7 +342,7 @@ public class RegionInstanceGroupManagerStubSettings */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings< - SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setTargetPoolsRegionInstanceGroupManagerOperationSettings() { return setTargetPoolsRegionInstanceGroupManagerOperationSettings; } @@ -560,18 +556,18 @@ public static class Builder AbandonInstancesRegionInstanceGroupManagerHttpRequest, Operation> abandonInstancesRegionInstanceGroupManagerSettings; private final OperationCallSettings.Builder< - AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> abandonInstancesRegionInstanceGroupManagerOperationSettings; private final UnaryCallSettings.Builder deleteRegionInstanceGroupManagerSettings; private final OperationCallSettings.Builder< - DeleteRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteRegionInstanceGroupManagerOperationSettings; private final UnaryCallSettings.Builder< DeleteInstancesRegionInstanceGroupManagerHttpRequest, Operation> deleteInstancesRegionInstanceGroupManagerSettings; private final OperationCallSettings.Builder< - DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteInstancesRegionInstanceGroupManagerOperationSettings; private final UnaryCallSettings.Builder< GetRegionInstanceGroupManagerHttpRequest, InstanceGroupManager> @@ -579,7 +575,7 @@ public static class Builder private final UnaryCallSettings.Builder insertRegionInstanceGroupManagerSettings; private final OperationCallSettings.Builder< - InsertRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + InsertRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> insertRegionInstanceGroupManagerOperationSettings; private final PagedCallSettings.Builder< ListRegionInstanceGroupManagersHttpRequest, @@ -593,30 +589,30 @@ public static class Builder private final UnaryCallSettings.Builder patchRegionInstanceGroupManagerSettings; private final OperationCallSettings.Builder< - PatchRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + PatchRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> patchRegionInstanceGroupManagerOperationSettings; private final UnaryCallSettings.Builder< RecreateInstancesRegionInstanceGroupManagerHttpRequest, Operation> recreateInstancesRegionInstanceGroupManagerSettings; private final OperationCallSettings.Builder< - RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> recreateInstancesRegionInstanceGroupManagerOperationSettings; private final UnaryCallSettings.Builder resizeRegionInstanceGroupManagerSettings; private final OperationCallSettings.Builder< - ResizeRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + ResizeRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> resizeRegionInstanceGroupManagerOperationSettings; private final UnaryCallSettings.Builder< SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, Operation> setInstanceTemplateRegionInstanceGroupManagerSettings; private final OperationCallSettings.Builder< - SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setInstanceTemplateRegionInstanceGroupManagerOperationSettings; private final UnaryCallSettings.Builder< SetTargetPoolsRegionInstanceGroupManagerHttpRequest, Operation> setTargetPoolsRegionInstanceGroupManagerSettings; private final OperationCallSettings.Builder< - SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setTargetPoolsRegionInstanceGroupManagerOperationSettings; private static final ImmutableMap> @@ -811,8 +807,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -833,8 +829,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -855,8 +851,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -877,8 +873,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -899,8 +895,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -921,8 +917,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -943,8 +939,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -965,8 +961,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -987,8 +983,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -1099,7 +1095,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + AbandonInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> abandonInstancesRegionInstanceGroupManagerOperationSettings() { return abandonInstancesRegionInstanceGroupManagerOperationSettings; } @@ -1114,7 +1110,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - DeleteRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteRegionInstanceGroupManagerOperationSettings() { return deleteRegionInstanceGroupManagerOperationSettings; } @@ -1136,7 +1132,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + DeleteInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> deleteInstancesRegionInstanceGroupManagerOperationSettings() { return deleteInstancesRegionInstanceGroupManagerOperationSettings; } @@ -1157,7 +1153,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - InsertRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + InsertRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> insertRegionInstanceGroupManagerOperationSettings() { return insertRegionInstanceGroupManagerOperationSettings; } @@ -1192,7 +1188,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - PatchRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + PatchRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> patchRegionInstanceGroupManagerOperationSettings() { return patchRegionInstanceGroupManagerOperationSettings; } @@ -1214,7 +1210,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + RecreateInstancesRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> recreateInstancesRegionInstanceGroupManagerOperationSettings() { return recreateInstancesRegionInstanceGroupManagerOperationSettings; } @@ -1229,7 +1225,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - ResizeRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + ResizeRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> resizeRegionInstanceGroupManagerOperationSettings() { return resizeRegionInstanceGroupManagerOperationSettings; } @@ -1251,7 +1247,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetInstanceTemplateRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setInstanceTemplateRegionInstanceGroupManagerOperationSettings() { return setInstanceTemplateRegionInstanceGroupManagerOperationSettings; } @@ -1272,7 +1268,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, EmptyMessage> + SetTargetPoolsRegionInstanceGroupManagerHttpRequest, EmptyMessage, Operation> setTargetPoolsRegionInstanceGroupManagerOperationSettings() { return setTargetPoolsRegionInstanceGroupManagerOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStub.java index 9bb1d453c5ee..98e2b70e64db 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStub.java @@ -85,7 +85,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setNamedPortsRegionInstanceGroupOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setNamedPortsRegionInstanceGroupOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStubSettings.java index 795b865685aa..405319a73d7f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RegionInstanceGroupStubSettings.java @@ -119,7 +119,7 @@ public class RegionInstanceGroupStubSettings extends StubSettings setNamedPortsRegionInstanceGroupSettings; private final OperationCallSettings< - SetNamedPortsRegionInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + SetNamedPortsRegionInstanceGroupHttpRequest, EmptyMessage, Operation> setNamedPortsRegionInstanceGroupOperationSettings; /** Returns the object with the settings used for calls to getRegionInstanceGroup. */ @@ -154,8 +154,7 @@ public class RegionInstanceGroupStubSettings extends StubSettings + public OperationCallSettings setNamedPortsRegionInstanceGroupOperationSettings() { return setNamedPortsRegionInstanceGroupOperationSettings; } @@ -416,7 +415,7 @@ public static class Builder private final UnaryCallSettings.Builder setNamedPortsRegionInstanceGroupSettings; private final OperationCallSettings.Builder< - SetNamedPortsRegionInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + SetNamedPortsRegionInstanceGroupHttpRequest, EmptyMessage, Operation> setNamedPortsRegionInstanceGroupOperationSettings; private static final ImmutableMap> @@ -521,8 +520,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -608,7 +607,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetNamedPortsRegionInstanceGroupHttpRequest, EmptyMessage, EmptyMessage> + SetNamedPortsRegionInstanceGroupHttpRequest, EmptyMessage, Operation> setNamedPortsRegionInstanceGroupOperationSettings() { return setNamedPortsRegionInstanceGroupOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStub.java index 498f5905dd4a..2cd3ab2b9f21 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStub.java @@ -47,7 +47,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteRouteOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteRouteOperationCallable()"); } @@ -63,7 +63,7 @@ public UnaryCallable getRouteCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertRouteOperationCallable() { throw new UnsupportedOperationException("Not implemented: insertRouteOperationCallable()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStubSettings.java index 533d23541444..cf9990924566 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouteStubSettings.java @@ -102,11 +102,11 @@ public class RouteStubSettings extends StubSettings { .build(); private final UnaryCallSettings deleteRouteSettings; - private final OperationCallSettings + private final OperationCallSettings deleteRouteOperationSettings; private final UnaryCallSettings getRouteSettings; private final UnaryCallSettings insertRouteSettings; - private final OperationCallSettings + private final OperationCallSettings insertRouteOperationSettings; private final PagedCallSettings listRoutesSettings; @@ -118,7 +118,7 @@ public UnaryCallSettings deleteRouteSettings( /** Returns the object with the settings used for calls to deleteRoute. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteRouteOperationSettings() { return deleteRouteOperationSettings; } @@ -135,7 +135,7 @@ public UnaryCallSettings insertRouteSettings( /** Returns the object with the settings used for calls to insertRoute. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertRouteOperationSettings() { return insertRouteOperationSettings; } @@ -287,11 +287,11 @@ public static class Builder extends StubSettings.Builder> unaryMethodSettingsBuilders; private final UnaryCallSettings.Builder deleteRouteSettings; - private final OperationCallSettings.Builder + private final OperationCallSettings.Builder deleteRouteOperationSettings; private final UnaryCallSettings.Builder getRouteSettings; private final UnaryCallSettings.Builder insertRouteSettings; - private final OperationCallSettings.Builder + private final OperationCallSettings.Builder insertRouteOperationSettings; private final PagedCallSettings.Builder< ListRoutesHttpRequest, RouteList, ListRoutesPagedResponse> @@ -395,8 +395,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -416,8 +416,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -472,7 +472,7 @@ public UnaryCallSettings.Builder deleteRouteS /** Returns the builder for the settings used for calls to deleteRoute. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteRouteOperationSettings() { return deleteRouteOperationSettings; } @@ -490,7 +490,7 @@ public UnaryCallSettings.Builder insertRouteS /** Returns the builder for the settings used for calls to insertRoute. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertRouteOperationSettings() { return insertRouteOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStub.java index e0cedfe25b34..390fa98514d3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStub.java @@ -72,7 +72,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteRouterOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteRouterOperationCallable()"); } @@ -107,7 +107,7 @@ public UnaryCallable getRouterCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertRouterOperationCallable() { throw new UnsupportedOperationException("Not implemented: insertRouterOperationCallable()"); } @@ -129,7 +129,7 @@ public UnaryCallable listRoutersCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchRouterOperationCallable() { throw new UnsupportedOperationException("Not implemented: patchRouterOperationCallable()"); } @@ -145,7 +145,7 @@ public UnaryCallable previewRo } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateRouterOperationCallable() { throw new UnsupportedOperationException("Not implemented: updateRouterOperationCallable()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStubSettings.java index fb7a9a484de5..c9cd4aa00e06 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/RouterStubSettings.java @@ -121,7 +121,7 @@ public class RouterStubSettings extends StubSettings { AggregatedListRoutersPagedResponse> aggregatedListRoutersSettings; private final UnaryCallSettings deleteRouterSettings; - private final OperationCallSettings + private final OperationCallSettings deleteRouterOperationSettings; private final UnaryCallSettings getRouterSettings; private final PagedCallSettings< @@ -132,17 +132,17 @@ public class RouterStubSettings extends StubSettings { private final UnaryCallSettings getRouterStatusRouterSettings; private final UnaryCallSettings insertRouterSettings; - private final OperationCallSettings + private final OperationCallSettings insertRouterOperationSettings; private final PagedCallSettings listRoutersSettings; private final UnaryCallSettings patchRouterSettings; - private final OperationCallSettings + private final OperationCallSettings patchRouterOperationSettings; private final UnaryCallSettings previewRouterSettings; private final UnaryCallSettings updateRouterSettings; - private final OperationCallSettings + private final OperationCallSettings updateRouterOperationSettings; /** Returns the object with the settings used for calls to aggregatedListRouters. */ @@ -161,7 +161,7 @@ public UnaryCallSettings deleteRouterSetting /** Returns the object with the settings used for calls to deleteRouter. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteRouterOperationSettings() { return deleteRouterOperationSettings; } @@ -193,7 +193,7 @@ public UnaryCallSettings insertRouterSetting /** Returns the object with the settings used for calls to insertRouter. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertRouterOperationSettings() { return insertRouterOperationSettings; } @@ -211,7 +211,7 @@ public UnaryCallSettings patchRouterSettings( /** Returns the object with the settings used for calls to patchRouter. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchRouterOperationSettings() { return patchRouterOperationSettings; } @@ -229,7 +229,7 @@ public UnaryCallSettings updateRouterSetting /** Returns the object with the settings used for calls to updateRouter. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings updateRouterOperationSettings() { return updateRouterOperationSettings; } @@ -531,7 +531,7 @@ public static class Builder extends StubSettings.Builder deleteRouterSettings; - private final OperationCallSettings.Builder + private final OperationCallSettings.Builder deleteRouterOperationSettings; private final UnaryCallSettings.Builder getRouterSettings; private final PagedCallSettings.Builder< @@ -543,19 +543,19 @@ public static class Builder extends StubSettings.Builder insertRouterSettings; - private final OperationCallSettings.Builder + private final OperationCallSettings.Builder insertRouterOperationSettings; private final PagedCallSettings.Builder< ListRoutersHttpRequest, RouterList, ListRoutersPagedResponse> listRoutersSettings; private final UnaryCallSettings.Builder patchRouterSettings; - private final OperationCallSettings.Builder + private final OperationCallSettings.Builder patchRouterOperationSettings; private final UnaryCallSettings.Builder previewRouterSettings; private final UnaryCallSettings.Builder updateRouterSettings; - private final OperationCallSettings.Builder + private final OperationCallSettings.Builder updateRouterOperationSettings; private static final ImmutableMap> @@ -713,8 +713,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -734,8 +734,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -755,8 +755,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -776,8 +776,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -858,7 +858,7 @@ public UnaryCallSettings.Builder deleteRoute /** Returns the builder for the settings used for calls to deleteRouter. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteRouterOperationSettings() { return deleteRouterOperationSettings; } @@ -891,7 +891,7 @@ public UnaryCallSettings.Builder insertRoute /** Returns the builder for the settings used for calls to insertRouter. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertRouterOperationSettings() { return insertRouterOperationSettings; } @@ -910,7 +910,7 @@ public UnaryCallSettings.Builder patchRouterS /** Returns the builder for the settings used for calls to patchRouter. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchRouterOperationSettings() { return patchRouterOperationSettings; } @@ -929,7 +929,7 @@ public UnaryCallSettings.Builder updateRoute /** Returns the builder for the settings used for calls to updateRouter. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder updateRouterOperationSettings() { return updateRouterOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStub.java index 80dcaadeeca9..839957c63319 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStub.java @@ -53,7 +53,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable addRuleSecurityPolicyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: addRuleSecurityPolicyOperationCallable()"); @@ -66,7 +66,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteSecurityPolicyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteSecurityPolicyOperationCallable()"); @@ -89,7 +89,7 @@ public UnaryCallable getSecurityPo } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertSecurityPolicyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertSecurityPolicyOperationCallable()"); @@ -113,7 +113,7 @@ public UnaryCallable insertSecurityP } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchSecurityPolicyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: patchSecurityPolicyOperationCallable()"); @@ -125,7 +125,7 @@ public UnaryCallable patchSecurityPol } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchRuleSecurityPolicyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: patchRuleSecurityPolicyOperationCallable()"); @@ -138,7 +138,7 @@ public UnaryCallable patchSecurityPol } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable removeRuleSecurityPolicyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: removeRuleSecurityPolicyOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStubSettings.java index 005f6570e178..d9fea108023a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SecurityPolicyStubSettings.java @@ -109,11 +109,11 @@ public class SecurityPolicyStubSettings extends StubSettings addRuleSecurityPolicySettings; - private final OperationCallSettings + private final OperationCallSettings addRuleSecurityPolicyOperationSettings; private final UnaryCallSettings deleteSecurityPolicySettings; - private final OperationCallSettings + private final OperationCallSettings deleteSecurityPolicyOperationSettings; private final UnaryCallSettings getSecurityPolicySettings; @@ -121,24 +121,22 @@ public class SecurityPolicyStubSettings extends StubSettings insertSecurityPolicySettings; - private final OperationCallSettings + private final OperationCallSettings insertSecurityPolicyOperationSettings; private final PagedCallSettings< ListSecurityPoliciesHttpRequest, SecurityPolicyList, ListSecurityPoliciesPagedResponse> listSecurityPoliciesSettings; private final UnaryCallSettings patchSecurityPolicySettings; - private final OperationCallSettings + private final OperationCallSettings patchSecurityPolicyOperationSettings; private final UnaryCallSettings patchRuleSecurityPolicySettings; - private final OperationCallSettings< - PatchRuleSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings patchRuleSecurityPolicyOperationSettings; private final UnaryCallSettings removeRuleSecurityPolicySettings; - private final OperationCallSettings< - RemoveRuleSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings removeRuleSecurityPolicyOperationSettings; /** Returns the object with the settings used for calls to addRuleSecurityPolicy. */ @@ -149,7 +147,7 @@ public class SecurityPolicyStubSettings extends StubSettings + public OperationCallSettings addRuleSecurityPolicyOperationSettings() { return addRuleSecurityPolicyOperationSettings; } @@ -162,7 +160,7 @@ public class SecurityPolicyStubSettings extends StubSettings + public OperationCallSettings deleteSecurityPolicyOperationSettings() { return deleteSecurityPolicyOperationSettings; } @@ -187,7 +185,7 @@ public class SecurityPolicyStubSettings extends StubSettings + public OperationCallSettings insertSecurityPolicyOperationSettings() { return insertSecurityPolicyOperationSettings; } @@ -207,7 +205,7 @@ public class SecurityPolicyStubSettings extends StubSettings + public OperationCallSettings patchSecurityPolicyOperationSettings() { return patchSecurityPolicyOperationSettings; } @@ -220,7 +218,7 @@ public class SecurityPolicyStubSettings extends StubSettings + public OperationCallSettings patchRuleSecurityPolicyOperationSettings() { return patchRuleSecurityPolicyOperationSettings; } @@ -233,7 +231,7 @@ public class SecurityPolicyStubSettings extends StubSettings + public OperationCallSettings removeRuleSecurityPolicyOperationSettings() { return removeRuleSecurityPolicyOperationSettings; } @@ -408,12 +406,12 @@ public static class Builder extends StubSettings.Builder addRuleSecurityPolicySettings; private final OperationCallSettings.Builder< - AddRuleSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage> + AddRuleSecurityPolicyHttpRequest, EmptyMessage, Operation> addRuleSecurityPolicyOperationSettings; private final UnaryCallSettings.Builder deleteSecurityPolicySettings; private final OperationCallSettings.Builder< - DeleteSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage> + DeleteSecurityPolicyHttpRequest, EmptyMessage, Operation> deleteSecurityPolicyOperationSettings; private final UnaryCallSettings.Builder getSecurityPolicySettings; @@ -422,7 +420,7 @@ public static class Builder extends StubSettings.Builder insertSecurityPolicySettings; private final OperationCallSettings.Builder< - InsertSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage> + InsertSecurityPolicyHttpRequest, EmptyMessage, Operation> insertSecurityPolicyOperationSettings; private final PagedCallSettings.Builder< ListSecurityPoliciesHttpRequest, SecurityPolicyList, ListSecurityPoliciesPagedResponse> @@ -430,17 +428,17 @@ public static class Builder extends StubSettings.Builder patchSecurityPolicySettings; private final OperationCallSettings.Builder< - PatchSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage> + PatchSecurityPolicyHttpRequest, EmptyMessage, Operation> patchSecurityPolicyOperationSettings; private final UnaryCallSettings.Builder patchRuleSecurityPolicySettings; private final OperationCallSettings.Builder< - PatchRuleSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage> + PatchRuleSecurityPolicyHttpRequest, EmptyMessage, Operation> patchRuleSecurityPolicyOperationSettings; private final UnaryCallSettings.Builder removeRuleSecurityPolicySettings; private final OperationCallSettings.Builder< - RemoveRuleSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage> + RemoveRuleSecurityPolicyHttpRequest, EmptyMessage, Operation> removeRuleSecurityPolicyOperationSettings; private static final ImmutableMap> @@ -594,8 +592,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -615,8 +613,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -636,8 +634,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -657,8 +655,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -679,8 +677,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -701,8 +699,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -781,8 +779,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to addRuleSecurityPolicy. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - AddRuleSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder addRuleSecurityPolicyOperationSettings() { return addRuleSecurityPolicyOperationSettings; } @@ -796,8 +793,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteSecurityPolicy. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteSecurityPolicyOperationSettings() { return deleteSecurityPolicyOperationSettings; } @@ -823,8 +819,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertSecurityPolicy. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertSecurityPolicyOperationSettings() { return insertSecurityPolicyOperationSettings; } @@ -845,7 +840,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to patchSecurityPolicy. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchSecurityPolicyOperationSettings() { return patchSecurityPolicyOperationSettings; } @@ -860,7 +855,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - PatchRuleSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage> + PatchRuleSecurityPolicyHttpRequest, EmptyMessage, Operation> patchRuleSecurityPolicyOperationSettings() { return patchRuleSecurityPolicyOperationSettings; } @@ -875,7 +870,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - RemoveRuleSecurityPolicyHttpRequest, EmptyMessage, EmptyMessage> + RemoveRuleSecurityPolicyHttpRequest, EmptyMessage, Operation> removeRuleSecurityPolicyOperationSettings() { return removeRuleSecurityPolicyOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStub.java index 703cdffb9ff6..a124c2e3e752 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStub.java @@ -52,7 +52,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteSnapshotOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteSnapshotOperationCallable()"); } @@ -89,7 +89,7 @@ public UnaryCallable setIamPolicySnapsh } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setLabelsSnapshotOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setLabelsSnapshotOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStubSettings.java index 1121308570bd..8ae6ccca58c4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SnapshotStubSettings.java @@ -107,7 +107,7 @@ public class SnapshotStubSettings extends StubSettings { .build(); private final UnaryCallSettings deleteSnapshotSettings; - private final OperationCallSettings + private final OperationCallSettings deleteSnapshotOperationSettings; private final UnaryCallSettings getSnapshotSettings; private final UnaryCallSettings @@ -119,7 +119,7 @@ public class SnapshotStubSettings extends StubSettings { setIamPolicySnapshotSettings; private final UnaryCallSettings setLabelsSnapshotSettings; - private final OperationCallSettings + private final OperationCallSettings setLabelsSnapshotOperationSettings; private final UnaryCallSettings testIamPermissionsSnapshotSettings; @@ -131,7 +131,7 @@ public UnaryCallSettings deleteSnapshotSet /** Returns the object with the settings used for calls to deleteSnapshot. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteSnapshotOperationSettings() { return deleteSnapshotOperationSettings; } @@ -164,7 +164,7 @@ public UnaryCallSettings setLabelsSnaps /** Returns the object with the settings used for calls to setLabelsSnapshot. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setLabelsSnapshotOperationSettings() { return setLabelsSnapshotOperationSettings; } @@ -323,8 +323,7 @@ public static class Builder extends StubSettings.Builder deleteSnapshotSettings; - private final OperationCallSettings.Builder< - DeleteSnapshotHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder deleteSnapshotOperationSettings; private final UnaryCallSettings.Builder getSnapshotSettings; private final UnaryCallSettings.Builder @@ -337,7 +336,7 @@ public static class Builder extends StubSettings.Builder setLabelsSnapshotSettings; private final OperationCallSettings.Builder< - SetLabelsSnapshotHttpRequest, EmptyMessage, EmptyMessage> + SetLabelsSnapshotHttpRequest, EmptyMessage, Operation> setLabelsSnapshotOperationSettings; private final UnaryCallSettings.Builder< TestIamPermissionsSnapshotHttpRequest, TestPermissionsResponse> @@ -468,8 +467,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -489,8 +488,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -555,7 +554,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteSnapshot. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteSnapshotOperationSettings() { return deleteSnapshotOperationSettings; } @@ -593,7 +592,7 @@ public UnaryCallSettings.Builder getSnapshotSe /** Returns the builder for the settings used for calls to setLabelsSnapshot. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder setLabelsSnapshotOperationSettings() { return setLabelsSnapshotOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStub.java index 3de687555eb1..1043759171ed 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStub.java @@ -47,7 +47,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteSslCertificateOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteSslCertificateOperationCallable()"); @@ -64,7 +64,7 @@ public UnaryCallable getSslCertifi } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertSslCertificateOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertSslCertificateOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStubSettings.java index 2451b77eaadc..f4819e978cb6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslCertificateStubSettings.java @@ -103,13 +103,13 @@ public class SslCertificateStubSettings extends StubSettings deleteSslCertificateSettings; - private final OperationCallSettings + private final OperationCallSettings deleteSslCertificateOperationSettings; private final UnaryCallSettings getSslCertificateSettings; private final UnaryCallSettings insertSslCertificateSettings; - private final OperationCallSettings + private final OperationCallSettings insertSslCertificateOperationSettings; private final PagedCallSettings< ListSslCertificatesHttpRequest, SslCertificateList, ListSslCertificatesPagedResponse> @@ -123,7 +123,7 @@ public class SslCertificateStubSettings extends StubSettings + public OperationCallSettings deleteSslCertificateOperationSettings() { return deleteSslCertificateOperationSettings; } @@ -142,7 +142,7 @@ public class SslCertificateStubSettings extends StubSettings + public OperationCallSettings insertSslCertificateOperationSettings() { return insertSslCertificateOperationSettings; } @@ -309,14 +309,14 @@ public static class Builder extends StubSettings.Builder deleteSslCertificateSettings; private final OperationCallSettings.Builder< - DeleteSslCertificateHttpRequest, EmptyMessage, EmptyMessage> + DeleteSslCertificateHttpRequest, EmptyMessage, Operation> deleteSslCertificateOperationSettings; private final UnaryCallSettings.Builder getSslCertificateSettings; private final UnaryCallSettings.Builder insertSslCertificateSettings; private final OperationCallSettings.Builder< - InsertSslCertificateHttpRequest, EmptyMessage, EmptyMessage> + InsertSslCertificateHttpRequest, EmptyMessage, Operation> insertSslCertificateOperationSettings; private final PagedCallSettings.Builder< ListSslCertificatesHttpRequest, SslCertificateList, ListSslCertificatesPagedResponse> @@ -424,8 +424,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -445,8 +445,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -507,8 +507,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteSslCertificate. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteSslCertificateHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteSslCertificateOperationSettings() { return deleteSslCertificateOperationSettings; } @@ -528,8 +527,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertSslCertificate. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertSslCertificateHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertSslCertificateOperationSettings() { return insertSslCertificateOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStub.java index 9f6000afbc63..49432ca420b3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStub.java @@ -50,7 +50,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteSslPolicyOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteSslPolicyOperationCallable()"); } @@ -66,7 +66,7 @@ public UnaryCallable getSslPolicyCallable() } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertSslPolicyOperationCallable() { throw new UnsupportedOperationException("Not implemented: insertSslPolicyOperationCallable()"); } @@ -96,7 +96,7 @@ public UnaryCallable listSslPolicie } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchSslPolicyOperationCallable() { throw new UnsupportedOperationException("Not implemented: patchSslPolicyOperationCallable()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStubSettings.java index 4658c48ebee2..d4236b2dd565 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SslPolicyStubSettings.java @@ -105,11 +105,11 @@ public class SslPolicyStubSettings extends StubSettings { .build(); private final UnaryCallSettings deleteSslPolicySettings; - private final OperationCallSettings + private final OperationCallSettings deleteSslPolicyOperationSettings; private final UnaryCallSettings getSslPolicySettings; private final UnaryCallSettings insertSslPolicySettings; - private final OperationCallSettings + private final OperationCallSettings insertSslPolicyOperationSettings; private final PagedCallSettings< ListSslPoliciesHttpRequest, SslPoliciesList, ListSslPoliciesPagedResponse> @@ -118,7 +118,7 @@ public class SslPolicyStubSettings extends StubSettings { ListAvailableFeaturesSslPoliciesHttpRequest, SslPoliciesListAvailableFeaturesResponse> listAvailableFeaturesSslPoliciesSettings; private final UnaryCallSettings patchSslPolicySettings; - private final OperationCallSettings + private final OperationCallSettings patchSslPolicyOperationSettings; /** Returns the object with the settings used for calls to deleteSslPolicy. */ @@ -128,7 +128,7 @@ public UnaryCallSettings deleteSslPolicyS /** Returns the object with the settings used for calls to deleteSslPolicy. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteSslPolicyOperationSettings() { return deleteSslPolicyOperationSettings; } @@ -145,7 +145,7 @@ public UnaryCallSettings insertSslPolicyS /** Returns the object with the settings used for calls to insertSslPolicy. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertSslPolicyOperationSettings() { return insertSslPolicyOperationSettings; } @@ -171,7 +171,7 @@ public UnaryCallSettings patchSslPolicySet /** Returns the object with the settings used for calls to patchSslPolicy. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchSslPolicyOperationSettings() { return patchSslPolicyOperationSettings; } @@ -323,15 +323,13 @@ public static class Builder extends StubSettings.Builder deleteSslPolicySettings; - private final OperationCallSettings.Builder< - DeleteSslPolicyHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder deleteSslPolicyOperationSettings; private final UnaryCallSettings.Builder getSslPolicySettings; private final UnaryCallSettings.Builder insertSslPolicySettings; - private final OperationCallSettings.Builder< - InsertSslPolicyHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder insertSslPolicyOperationSettings; private final PagedCallSettings.Builder< ListSslPoliciesHttpRequest, SslPoliciesList, ListSslPoliciesPagedResponse> @@ -341,8 +339,7 @@ public static class Builder extends StubSettings.Builder patchSslPolicySettings; - private final OperationCallSettings.Builder< - PatchSslPolicyHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder patchSslPolicyOperationSettings; private static final ImmutableMap> @@ -464,8 +461,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -485,8 +482,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -506,8 +503,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -572,7 +569,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteSslPolicy. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteSslPolicyOperationSettings() { return deleteSslPolicyOperationSettings; } @@ -591,7 +588,7 @@ public UnaryCallSettings.Builder getSslPolic /** Returns the builder for the settings used for calls to insertSslPolicy. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertSslPolicyOperationSettings() { return insertSslPolicyOperationSettings; } @@ -619,7 +616,7 @@ public UnaryCallSettings.Builder getSslPolic /** Returns the builder for the settings used for calls to patchSslPolicy. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchSslPolicyOperationSettings() { return patchSslPolicyOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStub.java index 5510e47c6c35..3d9352988d03 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStub.java @@ -74,7 +74,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteSubnetworkOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteSubnetworkOperationCallable()"); } @@ -85,7 +85,7 @@ public UnaryCallable deleteSubnetworkCal } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable expandIpCidrRangeSubnetworkOperationCallable() { throw new UnsupportedOperationException( "Not implemented: expandIpCidrRangeSubnetworkOperationCallable()"); @@ -109,7 +109,7 @@ public UnaryCallable getIamPolicySubn } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertSubnetworkOperationCallable() { throw new UnsupportedOperationException("Not implemented: insertSubnetworkOperationCallable()"); } @@ -144,7 +144,7 @@ public UnaryCallable listSubnetworks } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchSubnetworkOperationCallable() { throw new UnsupportedOperationException("Not implemented: patchSubnetworkOperationCallable()"); } @@ -160,8 +160,7 @@ public UnaryCallable setIamPolicySubn } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallable setPrivateIpGoogleAccessSubnetworkOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setPrivateIpGoogleAccessSubnetworkOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStubSettings.java index 49041ef3fd0f..91a8addc5915 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/SubnetworkStubSettings.java @@ -123,18 +123,18 @@ public class SubnetworkStubSettings extends StubSettings AggregatedListSubnetworksPagedResponse> aggregatedListSubnetworksSettings; private final UnaryCallSettings deleteSubnetworkSettings; - private final OperationCallSettings + private final OperationCallSettings deleteSubnetworkOperationSettings; private final UnaryCallSettings expandIpCidrRangeSubnetworkSettings; private final OperationCallSettings< - ExpandIpCidrRangeSubnetworkHttpRequest, EmptyMessage, EmptyMessage> + ExpandIpCidrRangeSubnetworkHttpRequest, EmptyMessage, Operation> expandIpCidrRangeSubnetworkOperationSettings; private final UnaryCallSettings getSubnetworkSettings; private final UnaryCallSettings getIamPolicySubnetworkSettings; private final UnaryCallSettings insertSubnetworkSettings; - private final OperationCallSettings + private final OperationCallSettings insertSubnetworkOperationSettings; private final PagedCallSettings< ListSubnetworksHttpRequest, SubnetworkList, ListSubnetworksPagedResponse> @@ -145,14 +145,14 @@ public class SubnetworkStubSettings extends StubSettings ListUsableSubnetworksPagedResponse> listUsableSubnetworksSettings; private final UnaryCallSettings patchSubnetworkSettings; - private final OperationCallSettings + private final OperationCallSettings patchSubnetworkOperationSettings; private final UnaryCallSettings setIamPolicySubnetworkSettings; private final UnaryCallSettings setPrivateIpGoogleAccessSubnetworkSettings; private final OperationCallSettings< - SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, EmptyMessage> + SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, Operation> setPrivateIpGoogleAccessSubnetworkOperationSettings; private final UnaryCallSettings testIamPermissionsSubnetworkSettings; @@ -173,7 +173,7 @@ public UnaryCallSettings deleteSubnetwor /** Returns the object with the settings used for calls to deleteSubnetwork. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteSubnetworkOperationSettings() { return deleteSubnetworkOperationSettings; } @@ -186,7 +186,7 @@ public UnaryCallSettings deleteSubnetwor /** Returns the object with the settings used for calls to expandIpCidrRangeSubnetwork. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings expandIpCidrRangeSubnetworkOperationSettings() { return expandIpCidrRangeSubnetworkOperationSettings; } @@ -209,7 +209,7 @@ public UnaryCallSettings insertSubnetwor /** Returns the object with the settings used for calls to insertSubnetwork. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertSubnetworkOperationSettings() { return insertSubnetworkOperationSettings; } @@ -236,7 +236,7 @@ public UnaryCallSettings patchSubnetworkS /** Returns the object with the settings used for calls to patchSubnetwork. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchSubnetworkOperationSettings() { return patchSubnetworkOperationSettings; } @@ -256,7 +256,7 @@ public UnaryCallSettings patchSubnetworkS /** Returns the object with the settings used for calls to setPrivateIpGoogleAccessSubnetwork. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings< - SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, EmptyMessage> + SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, Operation> setPrivateIpGoogleAccessSubnetworkOperationSettings() { return setPrivateIpGoogleAccessSubnetworkOperationSettings; } @@ -582,12 +582,12 @@ public static class Builder extends StubSettings.Builder deleteSubnetworkSettings; private final OperationCallSettings.Builder< - DeleteSubnetworkHttpRequest, EmptyMessage, EmptyMessage> + DeleteSubnetworkHttpRequest, EmptyMessage, Operation> deleteSubnetworkOperationSettings; private final UnaryCallSettings.Builder expandIpCidrRangeSubnetworkSettings; private final OperationCallSettings.Builder< - ExpandIpCidrRangeSubnetworkHttpRequest, EmptyMessage, EmptyMessage> + ExpandIpCidrRangeSubnetworkHttpRequest, EmptyMessage, Operation> expandIpCidrRangeSubnetworkOperationSettings; private final UnaryCallSettings.Builder getSubnetworkSettings; @@ -596,7 +596,7 @@ public static class Builder extends StubSettings.Builder insertSubnetworkSettings; private final OperationCallSettings.Builder< - InsertSubnetworkHttpRequest, EmptyMessage, EmptyMessage> + InsertSubnetworkHttpRequest, EmptyMessage, Operation> insertSubnetworkOperationSettings; private final PagedCallSettings.Builder< ListSubnetworksHttpRequest, SubnetworkList, ListSubnetworksPagedResponse> @@ -608,8 +608,7 @@ public static class Builder extends StubSettings.Builder patchSubnetworkSettings; - private final OperationCallSettings.Builder< - PatchSubnetworkHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder patchSubnetworkOperationSettings; private final UnaryCallSettings.Builder setIamPolicySubnetworkSettings; @@ -617,7 +616,7 @@ public static class Builder extends StubSettings.Builder setPrivateIpGoogleAccessSubnetworkSettings; private final OperationCallSettings.Builder< - SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, EmptyMessage> + SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, Operation> setPrivateIpGoogleAccessSubnetworkOperationSettings; private final UnaryCallSettings.Builder< TestIamPermissionsSubnetworkHttpRequest, TestPermissionsResponse> @@ -796,8 +795,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -818,8 +817,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -839,8 +838,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -860,8 +859,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -882,8 +881,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -975,7 +974,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteSubnetwork. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteSubnetworkOperationSettings() { return deleteSubnetworkOperationSettings; } @@ -990,7 +989,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - ExpandIpCidrRangeSubnetworkHttpRequest, EmptyMessage, EmptyMessage> + ExpandIpCidrRangeSubnetworkHttpRequest, EmptyMessage, Operation> expandIpCidrRangeSubnetworkOperationSettings() { return expandIpCidrRangeSubnetworkOperationSettings; } @@ -1015,7 +1014,7 @@ public UnaryCallSettings.Builder getSubnet /** Returns the builder for the settings used for calls to insertSubnetwork. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertSubnetworkOperationSettings() { return insertSubnetworkOperationSettings; } @@ -1045,7 +1044,7 @@ public UnaryCallSettings.Builder getSubnet /** Returns the builder for the settings used for calls to patchSubnetwork. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchSubnetworkOperationSettings() { return patchSubnetworkOperationSettings; } @@ -1070,7 +1069,7 @@ public UnaryCallSettings.Builder getSubnet @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, EmptyMessage> + SetPrivateIpGoogleAccessSubnetworkHttpRequest, EmptyMessage, Operation> setPrivateIpGoogleAccessSubnetworkOperationSettings() { return setPrivateIpGoogleAccessSubnetworkOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStub.java index 7ca7aee522d8..3ceb4dd101a2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStub.java @@ -48,7 +48,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteTargetHttpProxyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteTargetHttpProxyOperationCallable()"); @@ -67,7 +67,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertTargetHttpProxyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertTargetHttpProxyOperationCallable()"); @@ -93,7 +93,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setUrlMapTargetHttpProxyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setUrlMapTargetHttpProxyOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStubSettings.java index dd11beee4850..3da83a1f3d4b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpProxyStubSettings.java @@ -104,21 +104,20 @@ public class TargetHttpProxyStubSettings extends StubSettings deleteTargetHttpProxySettings; - private final OperationCallSettings + private final OperationCallSettings deleteTargetHttpProxyOperationSettings; private final UnaryCallSettings getTargetHttpProxySettings; private final UnaryCallSettings insertTargetHttpProxySettings; - private final OperationCallSettings + private final OperationCallSettings insertTargetHttpProxyOperationSettings; private final PagedCallSettings< ListTargetHttpProxiesHttpRequest, TargetHttpProxyList, ListTargetHttpProxiesPagedResponse> listTargetHttpProxiesSettings; private final UnaryCallSettings setUrlMapTargetHttpProxySettings; - private final OperationCallSettings< - SetUrlMapTargetHttpProxyHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings setUrlMapTargetHttpProxyOperationSettings; /** Returns the object with the settings used for calls to deleteTargetHttpProxy. */ @@ -129,7 +128,7 @@ public class TargetHttpProxyStubSettings extends StubSettings + public OperationCallSettings deleteTargetHttpProxyOperationSettings() { return deleteTargetHttpProxyOperationSettings; } @@ -148,7 +147,7 @@ public class TargetHttpProxyStubSettings extends StubSettings + public OperationCallSettings insertTargetHttpProxyOperationSettings() { return insertTargetHttpProxyOperationSettings; } @@ -168,7 +167,7 @@ public class TargetHttpProxyStubSettings extends StubSettings + public OperationCallSettings setUrlMapTargetHttpProxyOperationSettings() { return setUrlMapTargetHttpProxyOperationSettings; } @@ -333,14 +332,14 @@ public static class Builder extends StubSettings.Builder deleteTargetHttpProxySettings; private final OperationCallSettings.Builder< - DeleteTargetHttpProxyHttpRequest, EmptyMessage, EmptyMessage> + DeleteTargetHttpProxyHttpRequest, EmptyMessage, Operation> deleteTargetHttpProxyOperationSettings; private final UnaryCallSettings.Builder getTargetHttpProxySettings; private final UnaryCallSettings.Builder insertTargetHttpProxySettings; private final OperationCallSettings.Builder< - InsertTargetHttpProxyHttpRequest, EmptyMessage, EmptyMessage> + InsertTargetHttpProxyHttpRequest, EmptyMessage, Operation> insertTargetHttpProxyOperationSettings; private final PagedCallSettings.Builder< ListTargetHttpProxiesHttpRequest, @@ -350,7 +349,7 @@ public static class Builder extends StubSettings.Builder setUrlMapTargetHttpProxySettings; private final OperationCallSettings.Builder< - SetUrlMapTargetHttpProxyHttpRequest, EmptyMessage, EmptyMessage> + SetUrlMapTargetHttpProxyHttpRequest, EmptyMessage, Operation> setUrlMapTargetHttpProxyOperationSettings; private static final ImmutableMap> @@ -466,8 +465,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -488,8 +487,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -510,8 +509,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -576,8 +575,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteTargetHttpProxy. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteTargetHttpProxyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteTargetHttpProxyOperationSettings() { return deleteTargetHttpProxyOperationSettings; } @@ -597,8 +595,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertTargetHttpProxy. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertTargetHttpProxyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertTargetHttpProxyOperationSettings() { return insertTargetHttpProxyOperationSettings; } @@ -622,7 +619,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetUrlMapTargetHttpProxyHttpRequest, EmptyMessage, EmptyMessage> + SetUrlMapTargetHttpProxyHttpRequest, EmptyMessage, Operation> setUrlMapTargetHttpProxyOperationSettings() { return setUrlMapTargetHttpProxyOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStub.java index 5c9eb2b09bd5..dc137015c2be 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStub.java @@ -51,7 +51,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteTargetHttpsProxyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteTargetHttpsProxyOperationCallable()"); @@ -70,7 +70,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertTargetHttpsProxyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertTargetHttpsProxyOperationCallable()"); @@ -96,7 +96,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setQuicOverrideTargetHttpsProxyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setQuicOverrideTargetHttpsProxyOperationCallable()"); @@ -110,8 +110,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable< - SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallable setSslCertificatesTargetHttpsProxyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setSslCertificatesTargetHttpsProxyOperationCallable()"); @@ -125,7 +124,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setSslPolicyTargetHttpsProxyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setSslPolicyTargetHttpsProxyOperationCallable()"); @@ -139,7 +138,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setUrlMapTargetHttpsProxyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setUrlMapTargetHttpsProxyOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStubSettings.java index 7ac1d68f9f74..e82e1db0a1cf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetHttpsProxyStubSettings.java @@ -107,13 +107,13 @@ public class TargetHttpsProxyStubSettings extends StubSettings deleteTargetHttpsProxySettings; - private final OperationCallSettings + private final OperationCallSettings deleteTargetHttpsProxyOperationSettings; private final UnaryCallSettings getTargetHttpsProxySettings; private final UnaryCallSettings insertTargetHttpsProxySettings; - private final OperationCallSettings + private final OperationCallSettings insertTargetHttpsProxyOperationSettings; private final PagedCallSettings< ListTargetHttpsProxiesHttpRequest, @@ -123,22 +123,21 @@ public class TargetHttpsProxyStubSettings extends StubSettings setQuicOverrideTargetHttpsProxySettings; private final OperationCallSettings< - SetQuicOverrideTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + SetQuicOverrideTargetHttpsProxyHttpRequest, EmptyMessage, Operation> setQuicOverrideTargetHttpsProxyOperationSettings; private final UnaryCallSettings setSslCertificatesTargetHttpsProxySettings; private final OperationCallSettings< - SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, Operation> setSslCertificatesTargetHttpsProxyOperationSettings; private final UnaryCallSettings setSslPolicyTargetHttpsProxySettings; private final OperationCallSettings< - SetSslPolicyTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + SetSslPolicyTargetHttpsProxyHttpRequest, EmptyMessage, Operation> setSslPolicyTargetHttpsProxyOperationSettings; private final UnaryCallSettings setUrlMapTargetHttpsProxySettings; - private final OperationCallSettings< - SetUrlMapTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings setUrlMapTargetHttpsProxyOperationSettings; /** Returns the object with the settings used for calls to deleteTargetHttpsProxy. */ @@ -149,7 +148,7 @@ public class TargetHttpsProxyStubSettings extends StubSettings + public OperationCallSettings deleteTargetHttpsProxyOperationSettings() { return deleteTargetHttpsProxyOperationSettings; } @@ -168,7 +167,7 @@ public class TargetHttpsProxyStubSettings extends StubSettings + public OperationCallSettings insertTargetHttpsProxyOperationSettings() { return insertTargetHttpsProxyOperationSettings; } @@ -190,8 +189,7 @@ public class TargetHttpsProxyStubSettings extends StubSettings + public OperationCallSettings setQuicOverrideTargetHttpsProxyOperationSettings() { return setQuicOverrideTargetHttpsProxyOperationSettings; } @@ -205,7 +203,7 @@ public class TargetHttpsProxyStubSettings extends StubSettings + SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, Operation> setSslCertificatesTargetHttpsProxyOperationSettings() { return setSslCertificatesTargetHttpsProxyOperationSettings; } @@ -218,7 +216,7 @@ public class TargetHttpsProxyStubSettings extends StubSettings + public OperationCallSettings setSslPolicyTargetHttpsProxyOperationSettings() { return setSslPolicyTargetHttpsProxyOperationSettings; } @@ -231,7 +229,7 @@ public class TargetHttpsProxyStubSettings extends StubSettings + public OperationCallSettings setUrlMapTargetHttpsProxyOperationSettings() { return setUrlMapTargetHttpsProxyOperationSettings; } @@ -410,14 +408,14 @@ public static class Builder extends StubSettings.Builder deleteTargetHttpsProxySettings; private final OperationCallSettings.Builder< - DeleteTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + DeleteTargetHttpsProxyHttpRequest, EmptyMessage, Operation> deleteTargetHttpsProxyOperationSettings; private final UnaryCallSettings.Builder getTargetHttpsProxySettings; private final UnaryCallSettings.Builder insertTargetHttpsProxySettings; private final OperationCallSettings.Builder< - InsertTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + InsertTargetHttpsProxyHttpRequest, EmptyMessage, Operation> insertTargetHttpsProxyOperationSettings; private final PagedCallSettings.Builder< ListTargetHttpsProxiesHttpRequest, @@ -427,23 +425,23 @@ public static class Builder extends StubSettings.Builder setQuicOverrideTargetHttpsProxySettings; private final OperationCallSettings.Builder< - SetQuicOverrideTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + SetQuicOverrideTargetHttpsProxyHttpRequest, EmptyMessage, Operation> setQuicOverrideTargetHttpsProxyOperationSettings; private final UnaryCallSettings.Builder< SetSslCertificatesTargetHttpsProxyHttpRequest, Operation> setSslCertificatesTargetHttpsProxySettings; private final OperationCallSettings.Builder< - SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, Operation> setSslCertificatesTargetHttpsProxyOperationSettings; private final UnaryCallSettings.Builder setSslPolicyTargetHttpsProxySettings; private final OperationCallSettings.Builder< - SetSslPolicyTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + SetSslPolicyTargetHttpsProxyHttpRequest, EmptyMessage, Operation> setSslPolicyTargetHttpsProxyOperationSettings; private final UnaryCallSettings.Builder setUrlMapTargetHttpsProxySettings; private final OperationCallSettings.Builder< - SetUrlMapTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + SetUrlMapTargetHttpsProxyHttpRequest, EmptyMessage, Operation> setUrlMapTargetHttpsProxyOperationSettings; private static final ImmutableMap> @@ -589,8 +587,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -611,8 +609,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -633,8 +631,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -655,8 +653,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -677,8 +675,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -699,8 +697,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -780,8 +778,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteTargetHttpsProxy. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteTargetHttpsProxyOperationSettings() { return deleteTargetHttpsProxyOperationSettings; } @@ -801,8 +798,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertTargetHttpsProxy. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertTargetHttpsProxyOperationSettings() { return insertTargetHttpsProxyOperationSettings; } @@ -826,7 +822,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetQuicOverrideTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + SetQuicOverrideTargetHttpsProxyHttpRequest, EmptyMessage, Operation> setQuicOverrideTargetHttpsProxyOperationSettings() { return setQuicOverrideTargetHttpsProxyOperationSettings; } @@ -845,7 +841,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + SetSslCertificatesTargetHttpsProxyHttpRequest, EmptyMessage, Operation> setSslCertificatesTargetHttpsProxyOperationSettings() { return setSslCertificatesTargetHttpsProxyOperationSettings; } @@ -860,7 +856,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetSslPolicyTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + SetSslPolicyTargetHttpsProxyHttpRequest, EmptyMessage, Operation> setSslPolicyTargetHttpsProxyOperationSettings() { return setSslPolicyTargetHttpsProxyOperationSettings; } @@ -875,7 +871,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetUrlMapTargetHttpsProxyHttpRequest, EmptyMessage, EmptyMessage> + SetUrlMapTargetHttpsProxyHttpRequest, EmptyMessage, Operation> setUrlMapTargetHttpsProxyOperationSettings() { return setUrlMapTargetHttpsProxyOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStub.java index d87f48efb5fa..3e8183bb6fe7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStub.java @@ -65,7 +65,7 @@ public ZoneOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteTargetInstanceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteTargetInstanceOperationCallable()"); @@ -82,7 +82,7 @@ public UnaryCallable getTargetInst } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertTargetInstanceOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertTargetInstanceOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStubSettings.java index d6c62a880463..6d219294aeba 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetInstanceStubSettings.java @@ -112,13 +112,13 @@ public class TargetInstanceStubSettings extends StubSettings deleteTargetInstanceSettings; - private final OperationCallSettings + private final OperationCallSettings deleteTargetInstanceOperationSettings; private final UnaryCallSettings getTargetInstanceSettings; private final UnaryCallSettings insertTargetInstanceSettings; - private final OperationCallSettings + private final OperationCallSettings insertTargetInstanceOperationSettings; private final PagedCallSettings< ListTargetInstancesHttpRequest, TargetInstanceList, ListTargetInstancesPagedResponse> @@ -141,7 +141,7 @@ public class TargetInstanceStubSettings extends StubSettings + public OperationCallSettings deleteTargetInstanceOperationSettings() { return deleteTargetInstanceOperationSettings; } @@ -160,7 +160,7 @@ public class TargetInstanceStubSettings extends StubSettings + public OperationCallSettings insertTargetInstanceOperationSettings() { return insertTargetInstanceOperationSettings; } @@ -415,14 +415,14 @@ public static class Builder extends StubSettings.Builder deleteTargetInstanceSettings; private final OperationCallSettings.Builder< - DeleteTargetInstanceHttpRequest, EmptyMessage, EmptyMessage> + DeleteTargetInstanceHttpRequest, EmptyMessage, Operation> deleteTargetInstanceOperationSettings; private final UnaryCallSettings.Builder getTargetInstanceSettings; private final UnaryCallSettings.Builder insertTargetInstanceSettings; private final OperationCallSettings.Builder< - InsertTargetInstanceHttpRequest, EmptyMessage, EmptyMessage> + InsertTargetInstanceHttpRequest, EmptyMessage, Operation> insertTargetInstanceOperationSettings; private final PagedCallSettings.Builder< ListTargetInstancesHttpRequest, TargetInstanceList, ListTargetInstancesPagedResponse> @@ -539,8 +539,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -560,8 +560,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -634,8 +634,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteTargetInstance. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteTargetInstanceHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteTargetInstanceOperationSettings() { return deleteTargetInstanceOperationSettings; } @@ -655,8 +654,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertTargetInstance. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertTargetInstanceHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertTargetInstanceOperationSettings() { return insertTargetInstanceOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStub.java index 8ddde7ec2e2e..c59d5f466476 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStub.java @@ -57,7 +57,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable addHealthCheckTargetPoolOperationCallable() { throw new UnsupportedOperationException( "Not implemented: addHealthCheckTargetPoolOperationCallable()"); @@ -70,7 +70,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable addInstanceTargetPoolOperationCallable() { throw new UnsupportedOperationException( "Not implemented: addInstanceTargetPoolOperationCallable()"); @@ -96,7 +96,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteTargetPoolOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteTargetPoolOperationCallable()"); } @@ -118,7 +118,7 @@ public UnaryCallable getTargetPoolCallable } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertTargetPoolOperationCallable() { throw new UnsupportedOperationException("Not implemented: insertTargetPoolOperationCallable()"); } @@ -140,7 +140,7 @@ public UnaryCallable listTargetPools } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable removeHealthCheckTargetPoolOperationCallable() { throw new UnsupportedOperationException( "Not implemented: removeHealthCheckTargetPoolOperationCallable()"); @@ -154,7 +154,7 @@ public UnaryCallable listTargetPools } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable removeInstanceTargetPoolOperationCallable() { throw new UnsupportedOperationException( "Not implemented: removeInstanceTargetPoolOperationCallable()"); @@ -167,7 +167,7 @@ public UnaryCallable listTargetPools } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setBackupTargetPoolOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setBackupTargetPoolOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStubSettings.java index a988ba3cca9b..76df540c22b6 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetPoolStubSettings.java @@ -114,12 +114,11 @@ public class TargetPoolStubSettings extends StubSettings private final UnaryCallSettings addHealthCheckTargetPoolSettings; - private final OperationCallSettings< - AddHealthCheckTargetPoolHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings addHealthCheckTargetPoolOperationSettings; private final UnaryCallSettings addInstanceTargetPoolSettings; - private final OperationCallSettings + private final OperationCallSettings addInstanceTargetPoolOperationSettings; private final PagedCallSettings< AggregatedListTargetPoolsHttpRequest, @@ -127,13 +126,13 @@ public class TargetPoolStubSettings extends StubSettings AggregatedListTargetPoolsPagedResponse> aggregatedListTargetPoolsSettings; private final UnaryCallSettings deleteTargetPoolSettings; - private final OperationCallSettings + private final OperationCallSettings deleteTargetPoolOperationSettings; private final UnaryCallSettings getTargetPoolSettings; private final UnaryCallSettings getHealthTargetPoolSettings; private final UnaryCallSettings insertTargetPoolSettings; - private final OperationCallSettings + private final OperationCallSettings insertTargetPoolOperationSettings; private final PagedCallSettings< ListTargetPoolsHttpRequest, TargetPoolList, ListTargetPoolsPagedResponse> @@ -141,16 +140,15 @@ public class TargetPoolStubSettings extends StubSettings private final UnaryCallSettings removeHealthCheckTargetPoolSettings; private final OperationCallSettings< - RemoveHealthCheckTargetPoolHttpRequest, EmptyMessage, EmptyMessage> + RemoveHealthCheckTargetPoolHttpRequest, EmptyMessage, Operation> removeHealthCheckTargetPoolOperationSettings; private final UnaryCallSettings removeInstanceTargetPoolSettings; - private final OperationCallSettings< - RemoveInstanceTargetPoolHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings removeInstanceTargetPoolOperationSettings; private final UnaryCallSettings setBackupTargetPoolSettings; - private final OperationCallSettings + private final OperationCallSettings setBackupTargetPoolOperationSettings; /** Returns the object with the settings used for calls to addHealthCheckTargetPool. */ @@ -161,7 +159,7 @@ public class TargetPoolStubSettings extends StubSettings /** Returns the object with the settings used for calls to addHealthCheckTargetPool. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings addHealthCheckTargetPoolOperationSettings() { return addHealthCheckTargetPoolOperationSettings; } @@ -174,7 +172,7 @@ public class TargetPoolStubSettings extends StubSettings /** Returns the object with the settings used for calls to addInstanceTargetPool. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings addInstanceTargetPoolOperationSettings() { return addInstanceTargetPoolOperationSettings; } @@ -195,7 +193,7 @@ public UnaryCallSettings deleteTargetPoo /** Returns the object with the settings used for calls to deleteTargetPool. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteTargetPoolOperationSettings() { return deleteTargetPoolOperationSettings; } @@ -218,7 +216,7 @@ public UnaryCallSettings insertTargetPoo /** Returns the object with the settings used for calls to insertTargetPool. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertTargetPoolOperationSettings() { return insertTargetPoolOperationSettings; } @@ -237,7 +235,7 @@ public UnaryCallSettings insertTargetPoo /** Returns the object with the settings used for calls to removeHealthCheckTargetPool. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings removeHealthCheckTargetPoolOperationSettings() { return removeHealthCheckTargetPoolOperationSettings; } @@ -250,7 +248,7 @@ public UnaryCallSettings insertTargetPoo /** Returns the object with the settings used for calls to removeInstanceTargetPool. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings removeInstanceTargetPoolOperationSettings() { return removeInstanceTargetPoolOperationSettings; } @@ -263,7 +261,7 @@ public UnaryCallSettings insertTargetPoo /** Returns the object with the settings used for calls to setBackupTargetPool. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings setBackupTargetPoolOperationSettings() { return setBackupTargetPoolOperationSettings; } @@ -506,12 +504,12 @@ public static class Builder extends StubSettings.Builder addHealthCheckTargetPoolSettings; private final OperationCallSettings.Builder< - AddHealthCheckTargetPoolHttpRequest, EmptyMessage, EmptyMessage> + AddHealthCheckTargetPoolHttpRequest, EmptyMessage, Operation> addHealthCheckTargetPoolOperationSettings; private final UnaryCallSettings.Builder addInstanceTargetPoolSettings; private final OperationCallSettings.Builder< - AddInstanceTargetPoolHttpRequest, EmptyMessage, EmptyMessage> + AddInstanceTargetPoolHttpRequest, EmptyMessage, Operation> addInstanceTargetPoolOperationSettings; private final PagedCallSettings.Builder< AggregatedListTargetPoolsHttpRequest, @@ -521,7 +519,7 @@ public static class Builder extends StubSettings.Builder deleteTargetPoolSettings; private final OperationCallSettings.Builder< - DeleteTargetPoolHttpRequest, EmptyMessage, EmptyMessage> + DeleteTargetPoolHttpRequest, EmptyMessage, Operation> deleteTargetPoolOperationSettings; private final UnaryCallSettings.Builder getTargetPoolSettings; @@ -531,7 +529,7 @@ public static class Builder extends StubSettings.Builder insertTargetPoolSettings; private final OperationCallSettings.Builder< - InsertTargetPoolHttpRequest, EmptyMessage, EmptyMessage> + InsertTargetPoolHttpRequest, EmptyMessage, Operation> insertTargetPoolOperationSettings; private final PagedCallSettings.Builder< ListTargetPoolsHttpRequest, TargetPoolList, ListTargetPoolsPagedResponse> @@ -539,17 +537,17 @@ public static class Builder extends StubSettings.Builder removeHealthCheckTargetPoolSettings; private final OperationCallSettings.Builder< - RemoveHealthCheckTargetPoolHttpRequest, EmptyMessage, EmptyMessage> + RemoveHealthCheckTargetPoolHttpRequest, EmptyMessage, Operation> removeHealthCheckTargetPoolOperationSettings; private final UnaryCallSettings.Builder removeInstanceTargetPoolSettings; private final OperationCallSettings.Builder< - RemoveInstanceTargetPoolHttpRequest, EmptyMessage, EmptyMessage> + RemoveInstanceTargetPoolHttpRequest, EmptyMessage, Operation> removeInstanceTargetPoolOperationSettings; private final UnaryCallSettings.Builder setBackupTargetPoolSettings; private final OperationCallSettings.Builder< - SetBackupTargetPoolHttpRequest, EmptyMessage, EmptyMessage> + SetBackupTargetPoolHttpRequest, EmptyMessage, Operation> setBackupTargetPoolOperationSettings; private static final ImmutableMap> @@ -721,8 +719,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -743,8 +741,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -764,8 +762,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -785,8 +783,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -807,8 +805,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -829,8 +827,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -850,8 +848,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -936,7 +934,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - AddHealthCheckTargetPoolHttpRequest, EmptyMessage, EmptyMessage> + AddHealthCheckTargetPoolHttpRequest, EmptyMessage, Operation> addHealthCheckTargetPoolOperationSettings() { return addHealthCheckTargetPoolOperationSettings; } @@ -950,8 +948,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to addInstanceTargetPool. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - AddInstanceTargetPoolHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder addInstanceTargetPoolOperationSettings() { return addInstanceTargetPoolOperationSettings; } @@ -974,7 +971,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteTargetPool. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteTargetPoolOperationSettings() { return deleteTargetPoolOperationSettings; } @@ -999,7 +996,7 @@ public UnaryCallSettings.Builder getTarget /** Returns the builder for the settings used for calls to insertTargetPool. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertTargetPoolOperationSettings() { return insertTargetPoolOperationSettings; } @@ -1021,7 +1018,7 @@ public UnaryCallSettings.Builder getTarget @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - RemoveHealthCheckTargetPoolHttpRequest, EmptyMessage, EmptyMessage> + RemoveHealthCheckTargetPoolHttpRequest, EmptyMessage, Operation> removeHealthCheckTargetPoolOperationSettings() { return removeHealthCheckTargetPoolOperationSettings; } @@ -1036,7 +1033,7 @@ public UnaryCallSettings.Builder getTarget @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - RemoveInstanceTargetPoolHttpRequest, EmptyMessage, EmptyMessage> + RemoveInstanceTargetPoolHttpRequest, EmptyMessage, Operation> removeInstanceTargetPoolOperationSettings() { return removeInstanceTargetPoolOperationSettings; } @@ -1050,7 +1047,7 @@ public UnaryCallSettings.Builder getTarget /** Returns the builder for the settings used for calls to setBackupTargetPool. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder setBackupTargetPoolOperationSettings() { return setBackupTargetPoolOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStub.java index ad72c1618a80..8a179ee11ef3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStub.java @@ -51,7 +51,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteTargetSslProxyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteTargetSslProxyOperationCallable()"); @@ -68,7 +68,7 @@ public UnaryCallable getTargetSslP } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertTargetSslProxyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertTargetSslProxyOperationCallable()"); @@ -92,7 +92,7 @@ public UnaryCallable insertTargetSsl } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setBackendServiceTargetSslProxyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setBackendServiceTargetSslProxyOperationCallable()"); @@ -106,7 +106,7 @@ public UnaryCallable insertTargetSsl } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setProxyHeaderTargetSslProxyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setProxyHeaderTargetSslProxyOperationCallable()"); @@ -120,7 +120,7 @@ public UnaryCallable insertTargetSsl } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setSslCertificatesTargetSslProxyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setSslCertificatesTargetSslProxyOperationCallable()"); @@ -134,7 +134,7 @@ public UnaryCallable insertTargetSsl } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setSslPolicyTargetSslProxyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setSslPolicyTargetSslProxyOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStubSettings.java index 344f75ac8679..dc374f451c60 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetSslProxyStubSettings.java @@ -107,13 +107,13 @@ public class TargetSslProxyStubSettings extends StubSettings deleteTargetSslProxySettings; - private final OperationCallSettings + private final OperationCallSettings deleteTargetSslProxyOperationSettings; private final UnaryCallSettings getTargetSslProxySettings; private final UnaryCallSettings insertTargetSslProxySettings; - private final OperationCallSettings + private final OperationCallSettings insertTargetSslProxyOperationSettings; private final PagedCallSettings< ListTargetSslProxiesHttpRequest, TargetSslProxyList, ListTargetSslProxiesPagedResponse> @@ -121,22 +121,22 @@ public class TargetSslProxyStubSettings extends StubSettings setBackendServiceTargetSslProxySettings; private final OperationCallSettings< - SetBackendServiceTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + SetBackendServiceTargetSslProxyHttpRequest, EmptyMessage, Operation> setBackendServiceTargetSslProxyOperationSettings; private final UnaryCallSettings setProxyHeaderTargetSslProxySettings; private final OperationCallSettings< - SetProxyHeaderTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + SetProxyHeaderTargetSslProxyHttpRequest, EmptyMessage, Operation> setProxyHeaderTargetSslProxyOperationSettings; private final UnaryCallSettings setSslCertificatesTargetSslProxySettings; private final OperationCallSettings< - SetSslCertificatesTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + SetSslCertificatesTargetSslProxyHttpRequest, EmptyMessage, Operation> setSslCertificatesTargetSslProxyOperationSettings; private final UnaryCallSettings setSslPolicyTargetSslProxySettings; private final OperationCallSettings< - SetSslPolicyTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + SetSslPolicyTargetSslProxyHttpRequest, EmptyMessage, Operation> setSslPolicyTargetSslProxyOperationSettings; /** Returns the object with the settings used for calls to deleteTargetSslProxy. */ @@ -147,7 +147,7 @@ public class TargetSslProxyStubSettings extends StubSettings + public OperationCallSettings deleteTargetSslProxyOperationSettings() { return deleteTargetSslProxyOperationSettings; } @@ -166,7 +166,7 @@ public class TargetSslProxyStubSettings extends StubSettings + public OperationCallSettings insertTargetSslProxyOperationSettings() { return insertTargetSslProxyOperationSettings; } @@ -186,8 +186,7 @@ public class TargetSslProxyStubSettings extends StubSettings + public OperationCallSettings setBackendServiceTargetSslProxyOperationSettings() { return setBackendServiceTargetSslProxyOperationSettings; } @@ -200,7 +199,7 @@ public class TargetSslProxyStubSettings extends StubSettings + public OperationCallSettings setProxyHeaderTargetSslProxyOperationSettings() { return setProxyHeaderTargetSslProxyOperationSettings; } @@ -213,8 +212,7 @@ public class TargetSslProxyStubSettings extends StubSettings + public OperationCallSettings setSslCertificatesTargetSslProxyOperationSettings() { return setSslCertificatesTargetSslProxyOperationSettings; } @@ -227,7 +225,7 @@ public class TargetSslProxyStubSettings extends StubSettings + public OperationCallSettings setSslPolicyTargetSslProxyOperationSettings() { return setSslPolicyTargetSslProxyOperationSettings; } @@ -405,14 +403,14 @@ public static class Builder extends StubSettings.Builder deleteTargetSslProxySettings; private final OperationCallSettings.Builder< - DeleteTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + DeleteTargetSslProxyHttpRequest, EmptyMessage, Operation> deleteTargetSslProxyOperationSettings; private final UnaryCallSettings.Builder getTargetSslProxySettings; private final UnaryCallSettings.Builder insertTargetSslProxySettings; private final OperationCallSettings.Builder< - InsertTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + InsertTargetSslProxyHttpRequest, EmptyMessage, Operation> insertTargetSslProxyOperationSettings; private final PagedCallSettings.Builder< ListTargetSslProxiesHttpRequest, TargetSslProxyList, ListTargetSslProxiesPagedResponse> @@ -420,22 +418,22 @@ public static class Builder extends StubSettings.Builder setBackendServiceTargetSslProxySettings; private final OperationCallSettings.Builder< - SetBackendServiceTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + SetBackendServiceTargetSslProxyHttpRequest, EmptyMessage, Operation> setBackendServiceTargetSslProxyOperationSettings; private final UnaryCallSettings.Builder setProxyHeaderTargetSslProxySettings; private final OperationCallSettings.Builder< - SetProxyHeaderTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + SetProxyHeaderTargetSslProxyHttpRequest, EmptyMessage, Operation> setProxyHeaderTargetSslProxyOperationSettings; private final UnaryCallSettings.Builder setSslCertificatesTargetSslProxySettings; private final OperationCallSettings.Builder< - SetSslCertificatesTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + SetSslCertificatesTargetSslProxyHttpRequest, EmptyMessage, Operation> setSslCertificatesTargetSslProxyOperationSettings; private final UnaryCallSettings.Builder setSslPolicyTargetSslProxySettings; private final OperationCallSettings.Builder< - SetSslPolicyTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + SetSslPolicyTargetSslProxyHttpRequest, EmptyMessage, Operation> setSslPolicyTargetSslProxyOperationSettings; private static final ImmutableMap> @@ -580,8 +578,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -601,8 +599,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -623,8 +621,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -645,8 +643,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -667,8 +665,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -689,8 +687,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -770,8 +768,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteTargetSslProxy. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteTargetSslProxyOperationSettings() { return deleteTargetSslProxyOperationSettings; } @@ -791,8 +788,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertTargetSslProxy. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertTargetSslProxyOperationSettings() { return insertTargetSslProxyOperationSettings; } @@ -814,7 +810,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetBackendServiceTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + SetBackendServiceTargetSslProxyHttpRequest, EmptyMessage, Operation> setBackendServiceTargetSslProxyOperationSettings() { return setBackendServiceTargetSslProxyOperationSettings; } @@ -829,7 +825,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetProxyHeaderTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + SetProxyHeaderTargetSslProxyHttpRequest, EmptyMessage, Operation> setProxyHeaderTargetSslProxyOperationSettings() { return setProxyHeaderTargetSslProxyOperationSettings; } @@ -844,7 +840,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetSslCertificatesTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + SetSslCertificatesTargetSslProxyHttpRequest, EmptyMessage, Operation> setSslCertificatesTargetSslProxyOperationSettings() { return setSslCertificatesTargetSslProxyOperationSettings; } @@ -859,7 +855,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetSslPolicyTargetSslProxyHttpRequest, EmptyMessage, EmptyMessage> + SetSslPolicyTargetSslProxyHttpRequest, EmptyMessage, Operation> setSslPolicyTargetSslProxyOperationSettings() { return setSslPolicyTargetSslProxyOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStub.java index 23f3b48e55ea..47e67dff5a75 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStub.java @@ -49,7 +49,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteTargetTcpProxyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteTargetTcpProxyOperationCallable()"); @@ -66,7 +66,7 @@ public UnaryCallable getTargetTcpP } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertTargetTcpProxyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertTargetTcpProxyOperationCallable()"); @@ -90,7 +90,7 @@ public UnaryCallable insertTargetTcp } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setBackendServiceTargetTcpProxyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setBackendServiceTargetTcpProxyOperationCallable()"); @@ -104,7 +104,7 @@ public UnaryCallable insertTargetTcp } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable setProxyHeaderTargetTcpProxyOperationCallable() { throw new UnsupportedOperationException( "Not implemented: setProxyHeaderTargetTcpProxyOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStubSettings.java index 7871aa943c65..e6abf0f61e60 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetTcpProxyStubSettings.java @@ -105,13 +105,13 @@ public class TargetTcpProxyStubSettings extends StubSettings deleteTargetTcpProxySettings; - private final OperationCallSettings + private final OperationCallSettings deleteTargetTcpProxyOperationSettings; private final UnaryCallSettings getTargetTcpProxySettings; private final UnaryCallSettings insertTargetTcpProxySettings; - private final OperationCallSettings + private final OperationCallSettings insertTargetTcpProxyOperationSettings; private final PagedCallSettings< ListTargetTcpProxiesHttpRequest, TargetTcpProxyList, ListTargetTcpProxiesPagedResponse> @@ -119,12 +119,12 @@ public class TargetTcpProxyStubSettings extends StubSettings setBackendServiceTargetTcpProxySettings; private final OperationCallSettings< - SetBackendServiceTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage> + SetBackendServiceTargetTcpProxyHttpRequest, EmptyMessage, Operation> setBackendServiceTargetTcpProxyOperationSettings; private final UnaryCallSettings setProxyHeaderTargetTcpProxySettings; private final OperationCallSettings< - SetProxyHeaderTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage> + SetProxyHeaderTargetTcpProxyHttpRequest, EmptyMessage, Operation> setProxyHeaderTargetTcpProxyOperationSettings; /** Returns the object with the settings used for calls to deleteTargetTcpProxy. */ @@ -135,7 +135,7 @@ public class TargetTcpProxyStubSettings extends StubSettings + public OperationCallSettings deleteTargetTcpProxyOperationSettings() { return deleteTargetTcpProxyOperationSettings; } @@ -154,7 +154,7 @@ public class TargetTcpProxyStubSettings extends StubSettings + public OperationCallSettings insertTargetTcpProxyOperationSettings() { return insertTargetTcpProxyOperationSettings; } @@ -174,8 +174,7 @@ public class TargetTcpProxyStubSettings extends StubSettings + public OperationCallSettings setBackendServiceTargetTcpProxyOperationSettings() { return setBackendServiceTargetTcpProxyOperationSettings; } @@ -188,7 +187,7 @@ public class TargetTcpProxyStubSettings extends StubSettings + public OperationCallSettings setProxyHeaderTargetTcpProxyOperationSettings() { return setProxyHeaderTargetTcpProxyOperationSettings; } @@ -358,14 +357,14 @@ public static class Builder extends StubSettings.Builder deleteTargetTcpProxySettings; private final OperationCallSettings.Builder< - DeleteTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage> + DeleteTargetTcpProxyHttpRequest, EmptyMessage, Operation> deleteTargetTcpProxyOperationSettings; private final UnaryCallSettings.Builder getTargetTcpProxySettings; private final UnaryCallSettings.Builder insertTargetTcpProxySettings; private final OperationCallSettings.Builder< - InsertTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage> + InsertTargetTcpProxyHttpRequest, EmptyMessage, Operation> insertTargetTcpProxyOperationSettings; private final PagedCallSettings.Builder< ListTargetTcpProxiesHttpRequest, TargetTcpProxyList, ListTargetTcpProxiesPagedResponse> @@ -373,12 +372,12 @@ public static class Builder extends StubSettings.Builder setBackendServiceTargetTcpProxySettings; private final OperationCallSettings.Builder< - SetBackendServiceTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage> + SetBackendServiceTargetTcpProxyHttpRequest, EmptyMessage, Operation> setBackendServiceTargetTcpProxyOperationSettings; private final UnaryCallSettings.Builder setProxyHeaderTargetTcpProxySettings; private final OperationCallSettings.Builder< - SetProxyHeaderTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage> + SetProxyHeaderTargetTcpProxyHttpRequest, EmptyMessage, Operation> setProxyHeaderTargetTcpProxyOperationSettings; private static final ImmutableMap> @@ -503,8 +502,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -524,8 +523,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -546,8 +545,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -568,8 +567,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -640,8 +639,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteTargetTcpProxy. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteTargetTcpProxyOperationSettings() { return deleteTargetTcpProxyOperationSettings; } @@ -661,8 +659,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertTargetTcpProxy. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertTargetTcpProxyOperationSettings() { return insertTargetTcpProxyOperationSettings; } @@ -684,7 +681,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetBackendServiceTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage> + SetBackendServiceTargetTcpProxyHttpRequest, EmptyMessage, Operation> setBackendServiceTargetTcpProxyOperationSettings() { return setBackendServiceTargetTcpProxyOperationSettings; } @@ -699,7 +696,7 @@ public Builder applyToAllUnaryMethods( @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< - SetProxyHeaderTargetTcpProxyHttpRequest, EmptyMessage, EmptyMessage> + SetProxyHeaderTargetTcpProxyHttpRequest, EmptyMessage, Operation> setProxyHeaderTargetTcpProxyOperationSettings() { return setProxyHeaderTargetTcpProxyOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStub.java index eca2f12e1b88..a13f9078fdfa 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStub.java @@ -65,7 +65,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteTargetVpnGatewayOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteTargetVpnGatewayOperationCallable()"); @@ -84,7 +84,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertTargetVpnGatewayOperationCallable() { throw new UnsupportedOperationException( "Not implemented: insertTargetVpnGatewayOperationCallable()"); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStubSettings.java index c8ab31ca9362..ef2ae085eb35 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/TargetVpnGatewayStubSettings.java @@ -112,13 +112,13 @@ public class TargetVpnGatewayStubSettings extends StubSettings deleteTargetVpnGatewaySettings; - private final OperationCallSettings + private final OperationCallSettings deleteTargetVpnGatewayOperationSettings; private final UnaryCallSettings getTargetVpnGatewaySettings; private final UnaryCallSettings insertTargetVpnGatewaySettings; - private final OperationCallSettings + private final OperationCallSettings insertTargetVpnGatewayOperationSettings; private final PagedCallSettings< ListTargetVpnGatewaysHttpRequest, @@ -143,7 +143,7 @@ public class TargetVpnGatewayStubSettings extends StubSettings + public OperationCallSettings deleteTargetVpnGatewayOperationSettings() { return deleteTargetVpnGatewayOperationSettings; } @@ -162,7 +162,7 @@ public class TargetVpnGatewayStubSettings extends StubSettings + public OperationCallSettings insertTargetVpnGatewayOperationSettings() { return insertTargetVpnGatewayOperationSettings; } @@ -423,14 +423,14 @@ public static class Builder extends StubSettings.Builder deleteTargetVpnGatewaySettings; private final OperationCallSettings.Builder< - DeleteTargetVpnGatewayHttpRequest, EmptyMessage, EmptyMessage> + DeleteTargetVpnGatewayHttpRequest, EmptyMessage, Operation> deleteTargetVpnGatewayOperationSettings; private final UnaryCallSettings.Builder getTargetVpnGatewaySettings; private final UnaryCallSettings.Builder insertTargetVpnGatewaySettings; private final OperationCallSettings.Builder< - InsertTargetVpnGatewayHttpRequest, EmptyMessage, EmptyMessage> + InsertTargetVpnGatewayHttpRequest, EmptyMessage, Operation> insertTargetVpnGatewayOperationSettings; private final PagedCallSettings.Builder< ListTargetVpnGatewaysHttpRequest, @@ -550,8 +550,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -572,8 +572,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -646,8 +646,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteTargetVpnGateway. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - DeleteTargetVpnGatewayHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder deleteTargetVpnGatewayOperationSettings() { return deleteTargetVpnGatewayOperationSettings; } @@ -667,8 +666,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to insertTargetVpnGateway. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InsertTargetVpnGatewayHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder insertTargetVpnGatewayOperationSettings() { return insertTargetVpnGatewayOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStub.java index 9498669031b7..9e3c1b195926 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStub.java @@ -52,7 +52,7 @@ public GlobalOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteUrlMapOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteUrlMapOperationCallable()"); } @@ -68,7 +68,7 @@ public UnaryCallable getUrlMapCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertUrlMapOperationCallable() { throw new UnsupportedOperationException("Not implemented: insertUrlMapOperationCallable()"); } @@ -79,7 +79,7 @@ public UnaryCallable insertUrlMapCallable() } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable invalidateCacheUrlMapOperationCallable() { throw new UnsupportedOperationException( "Not implemented: invalidateCacheUrlMapOperationCallable()"); @@ -103,7 +103,7 @@ public UnaryCallable listUrlMapsCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable patchUrlMapOperationCallable() { throw new UnsupportedOperationException("Not implemented: patchUrlMapOperationCallable()"); } @@ -114,7 +114,7 @@ public UnaryCallable patchUrlMapCallable() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable updateUrlMapOperationCallable() { throw new UnsupportedOperationException("Not implemented: updateUrlMapOperationCallable()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStubSettings.java index 5e0e52f1cf2b..2fa2e0d2fd20 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/UrlMapStubSettings.java @@ -107,23 +107,23 @@ public class UrlMapStubSettings extends StubSettings { .build(); private final UnaryCallSettings deleteUrlMapSettings; - private final OperationCallSettings + private final OperationCallSettings deleteUrlMapOperationSettings; private final UnaryCallSettings getUrlMapSettings; private final UnaryCallSettings insertUrlMapSettings; - private final OperationCallSettings + private final OperationCallSettings insertUrlMapOperationSettings; private final UnaryCallSettings invalidateCacheUrlMapSettings; - private final OperationCallSettings + private final OperationCallSettings invalidateCacheUrlMapOperationSettings; private final PagedCallSettings listUrlMapsSettings; private final UnaryCallSettings patchUrlMapSettings; - private final OperationCallSettings + private final OperationCallSettings patchUrlMapOperationSettings; private final UnaryCallSettings updateUrlMapSettings; - private final OperationCallSettings + private final OperationCallSettings updateUrlMapOperationSettings; private final UnaryCallSettings validateUrlMapSettings; @@ -135,7 +135,7 @@ public UnaryCallSettings deleteUrlMapSetting /** Returns the object with the settings used for calls to deleteUrlMap. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteUrlMapOperationSettings() { return deleteUrlMapOperationSettings; } @@ -152,7 +152,7 @@ public UnaryCallSettings insertUrlMapSetting /** Returns the object with the settings used for calls to insertUrlMap. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertUrlMapOperationSettings() { return insertUrlMapOperationSettings; } @@ -165,7 +165,7 @@ public UnaryCallSettings insertUrlMapSetting /** Returns the object with the settings used for calls to invalidateCacheUrlMap. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings invalidateCacheUrlMapOperationSettings() { return invalidateCacheUrlMapOperationSettings; } @@ -183,7 +183,7 @@ public UnaryCallSettings patchUrlMapSettings( /** Returns the object with the settings used for calls to patchUrlMap. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings patchUrlMapOperationSettings() { return patchUrlMapOperationSettings; } @@ -195,7 +195,7 @@ public UnaryCallSettings updateUrlMapSetting /** Returns the object with the settings used for calls to updateUrlMap. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings updateUrlMapOperationSettings() { return updateUrlMapOperationSettings; } @@ -357,27 +357,27 @@ public static class Builder extends StubSettings.Builder deleteUrlMapSettings; - private final OperationCallSettings.Builder + private final OperationCallSettings.Builder deleteUrlMapOperationSettings; private final UnaryCallSettings.Builder getUrlMapSettings; private final UnaryCallSettings.Builder insertUrlMapSettings; - private final OperationCallSettings.Builder + private final OperationCallSettings.Builder insertUrlMapOperationSettings; private final UnaryCallSettings.Builder invalidateCacheUrlMapSettings; private final OperationCallSettings.Builder< - InvalidateCacheUrlMapHttpRequest, EmptyMessage, EmptyMessage> + InvalidateCacheUrlMapHttpRequest, EmptyMessage, Operation> invalidateCacheUrlMapOperationSettings; private final PagedCallSettings.Builder< ListUrlMapsHttpRequest, UrlMapList, ListUrlMapsPagedResponse> listUrlMapsSettings; private final UnaryCallSettings.Builder patchUrlMapSettings; - private final OperationCallSettings.Builder + private final OperationCallSettings.Builder patchUrlMapOperationSettings; private final UnaryCallSettings.Builder updateUrlMapSettings; - private final OperationCallSettings.Builder + private final OperationCallSettings.Builder updateUrlMapOperationSettings; private final UnaryCallSettings.Builder validateUrlMapSettings; @@ -521,8 +521,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -542,8 +542,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -564,8 +564,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -585,8 +585,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -606,8 +606,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -677,7 +677,7 @@ public UnaryCallSettings.Builder deleteUrlMa /** Returns the builder for the settings used for calls to deleteUrlMap. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteUrlMapOperationSettings() { return deleteUrlMapOperationSettings; } @@ -695,7 +695,7 @@ public UnaryCallSettings.Builder insertUrlMa /** Returns the builder for the settings used for calls to insertUrlMap. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertUrlMapOperationSettings() { return insertUrlMapOperationSettings; } @@ -709,8 +709,7 @@ public UnaryCallSettings.Builder insertUrlMa /** Returns the builder for the settings used for calls to invalidateCacheUrlMap. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - InvalidateCacheUrlMapHttpRequest, EmptyMessage, EmptyMessage> + public OperationCallSettings.Builder invalidateCacheUrlMapOperationSettings() { return invalidateCacheUrlMapOperationSettings; } @@ -729,7 +728,7 @@ public UnaryCallSettings.Builder patchUrlMapS /** Returns the builder for the settings used for calls to patchUrlMap. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder patchUrlMapOperationSettings() { return patchUrlMapOperationSettings; } @@ -742,7 +741,7 @@ public UnaryCallSettings.Builder updateUrlMa /** Returns the builder for the settings used for calls to updateUrlMap. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder updateUrlMapOperationSettings() { return updateUrlMapOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStub.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStub.java index 7b76f84258dd..3c2251ecf15e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStub.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStub.java @@ -63,7 +63,7 @@ public RegionOperationStub getOperationsStub() { } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable deleteVpnTunnelOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteVpnTunnelOperationCallable()"); } @@ -79,7 +79,7 @@ public UnaryCallable getVpnTunnelCallable() } @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallable + public OperationCallable insertVpnTunnelOperationCallable() { throw new UnsupportedOperationException("Not implemented: insertVpnTunnelOperationCallable()"); } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStubSettings.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStubSettings.java index 3202cbb05b0b..5d4dfcefa5df 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStubSettings.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/VpnTunnelStubSettings.java @@ -111,11 +111,11 @@ public class VpnTunnelStubSettings extends StubSettings { AggregatedListVpnTunnelsPagedResponse> aggregatedListVpnTunnelsSettings; private final UnaryCallSettings deleteVpnTunnelSettings; - private final OperationCallSettings + private final OperationCallSettings deleteVpnTunnelOperationSettings; private final UnaryCallSettings getVpnTunnelSettings; private final UnaryCallSettings insertVpnTunnelSettings; - private final OperationCallSettings + private final OperationCallSettings insertVpnTunnelOperationSettings; private final PagedCallSettings< ListVpnTunnelsHttpRequest, VpnTunnelList, ListVpnTunnelsPagedResponse> @@ -137,7 +137,7 @@ public UnaryCallSettings deleteVpnTunnelS /** Returns the object with the settings used for calls to deleteVpnTunnel. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings deleteVpnTunnelOperationSettings() { return deleteVpnTunnelOperationSettings; } @@ -154,7 +154,7 @@ public UnaryCallSettings insertVpnTunnelS /** Returns the object with the settings used for calls to insertVpnTunnel. */ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings + public OperationCallSettings insertVpnTunnelOperationSettings() { return insertVpnTunnelOperationSettings; } @@ -388,15 +388,13 @@ public static class Builder extends StubSettings.Builder deleteVpnTunnelSettings; - private final OperationCallSettings.Builder< - DeleteVpnTunnelHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder deleteVpnTunnelOperationSettings; private final UnaryCallSettings.Builder getVpnTunnelSettings; private final UnaryCallSettings.Builder insertVpnTunnelSettings; - private final OperationCallSettings.Builder< - InsertVpnTunnelHttpRequest, EmptyMessage, EmptyMessage> + private final OperationCallSettings.Builder insertVpnTunnelOperationSettings; private final PagedCallSettings.Builder< ListVpnTunnelsHttpRequest, VpnTunnelList, ListVpnTunnelsPagedResponse> @@ -512,8 +510,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -533,8 +531,8 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")) .build()) - .setResponseTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) - .setMetadataTransformer(ApiMessageOperationTransformers.create(EmptyMessage.class)) + .setResponseTransformer(ApiMessageOperationTransformers.ResponseTransformer.create(EmptyMessage.class)) + .setMetadataTransformer(ApiMessageOperationTransformers.MetadataTransformer.create(Operation.class)) .setPollingAlgorithm( OperationTimedPollAlgorithm.create( RetrySettings.newBuilder() @@ -604,7 +602,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to deleteVpnTunnel. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder deleteVpnTunnelOperationSettings() { return deleteVpnTunnelOperationSettings; } @@ -623,7 +621,7 @@ public UnaryCallSettings.Builder getVpnTunne /** Returns the builder for the settings used for calls to insertVpnTunnel. */ @BetaApi( "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder + public OperationCallSettings.Builder insertVpnTunnelOperationSettings() { return insertVpnTunnelOperationSettings; } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceClientTest.java index fd18f43a1592..7a04c6766204 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/InstanceClientTest.java @@ -679,7 +679,7 @@ public void insertInstanceTest() throws Exception { ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); Instance instanceResource = Instance.newBuilder().build(); - Operation actualResponse = client.insertInstanceAsync(zone, instanceResource).get(); + EmptyMessage actualResponse = client.insertInstanceAsync(zone, instanceResource).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/it/ITComputeTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/it/ITComputeTest.java index e87a5af777be..b44032fd10f4 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/it/ITComputeTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/it/ITComputeTest.java @@ -20,7 +20,6 @@ import com.google.api.gax.core.FixedCredentialsProvider; import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.paging.Page; import com.google.api.gax.rpc.ApiException; import com.google.api.gax.rpc.NotFoundException; @@ -161,32 +160,48 @@ public static void beforeClass() throws Exception { // This may take up to a minute. private static void removeResources(List> exceptionTypes) throws Exception { + Operation currentOperation; long startAt = System.currentTimeMillis(); - log.log(Level.INFO, String.format("Attempting to remove the created Instance %sms.", INSTANCE_NAME)); + log.log( + Level.INFO, + String.format("Attempting to remove the created Instance %sms.", INSTANCE_NAME)); try { - OperationFuture future = + OperationFuture future = instanceClient.deleteInstanceAsync(INSTANCE_NAME); - future.get(50, TimeUnit.SECONDS); + currentOperation = future.getMetadata().get(); // Get operation status. + future.get(50, TimeUnit.SECONDS); // Block until operation completes. } catch (Exception e) { if (isNotExceptionType(exceptionTypes, e)) throw e; } - log.log(Level.INFO, String.format("Removed the created Instance %s in %dms", INSTANCE_NAME, System.currentTimeMillis() - startAt)); + log.log( + Level.INFO, + String.format( + "Removed the created Instance %s in %dms", + INSTANCE_NAME, System.currentTimeMillis() - startAt)); startAt = System.currentTimeMillis(); try { - OperationFuture future = diskClient.deleteDiskAsync(DISK_NAME); + OperationFuture future = diskClient.deleteDiskAsync(DISK_NAME); future.get(20, TimeUnit.SECONDS); // Block until operation completes. } catch (Exception e) { if (isNotExceptionType(exceptionTypes, e)) throw e; } - log.log(Level.INFO, String.format("Removed the created Disk %s in %dms", INSTANCE_NAME, System.currentTimeMillis() - startAt)); + log.log( + Level.INFO, + String.format( + "Removed the created Disk %s in %dms", + INSTANCE_NAME, System.currentTimeMillis() - startAt)); startAt = System.currentTimeMillis(); try { - OperationFuture future = imageClient.deleteImageAsync(IMAGE_NAME); + OperationFuture future = imageClient.deleteImageAsync(IMAGE_NAME); future.get(20, TimeUnit.SECONDS); // Block until operation completes. } catch (Exception e) { if (isNotExceptionType(exceptionTypes, e)) throw e; } - log.log(Level.INFO, String.format("Removed the created Image %s in %dms.", IMAGE_NAME, System.currentTimeMillis() - startAt)); + log.log( + Level.INFO, + String.format( + "Removed the created Image %s in %dms.", + IMAGE_NAME, System.currentTimeMillis() - startAt)); } private static boolean isNotExceptionType( @@ -252,10 +267,12 @@ public void testDetachDisk() throws Exception { .setMachineType(MACHINE_TYPE_NAME.toString()) .addDisks(bootDisk) .build(); - OperationFuture op1 = + OperationFuture op1 = instanceClient.insertInstanceAsync(PROJECT_ZONE_NAME, instanceResource); - Operation operationSnapshot = op1.get(20, TimeUnit.SECONDS); // Blocking until operation completes or times out. - log.log(Level.INFO, (String.format("Instance created: %s", op1.toString()))); + Operation operationSnapshot = op1.getMetadata().get(); // Get operation status. + log.log(Level.INFO, (String.format("Operation %s started to create instance: %s", operationSnapshot.getName(), INSTANCE_NAME))); + op1.get(); // Blocking until operation completes or times out + log.log(Level.INFO, (String.format("Instance created: %s", INSTANCE_NAME))); // Insert a disk. Disk disk = @@ -264,10 +281,12 @@ public void testDetachDisk() throws Exception { .setSizeGb(String.valueOf(7)) .setType(diskTypeName.toString()) .build(); - OperationFuture op2 = + OperationFuture op2 = diskClient.insertDiskAsync(PROJECT_ZONE_NAME, disk); - log.log(Level.INFO, String.format("Disk created: %s", op2.toString())); + operationSnapshot = op2.getMetadata().get(); + log.log(Level.INFO, (String.format("Operation %s started to create instance: %s", operationSnapshot.getName(), DISK_NAME))); op1.get(10, TimeUnit.SECONDS); // Blocking until operation completes or times out. + log.log(Level.INFO, String.format("Disk created: %s", DISK_NAME)); // Attach the disk to the instance. AttachedDisk attachedDisk = @@ -277,14 +296,14 @@ public void testDetachDisk() throws Exception { .setMode("READ_WRITE") .setSource(DISK_NAME.toString()) .build(); - OperationFuture op3 = + OperationFuture op3 = instanceClient.attachDiskInstanceAsync(INSTANCE_NAME, false, attachedDisk); log.log(Level.INFO, String.format("Disk attached: %s", op3.toString())); op1.get(10, TimeUnit.SECONDS); // Blocking until operation completes or times out. - OperationFuture op4 = + OperationFuture op4 = instanceClient.detachDiskInstanceAsync(INSTANCE_NAME, DISK_NAME.getDisk()); - log.log(Level.INFO, String.format("Disk detached: %s", op4.toString())); + log.log(Level.INFO, String.format("Disk detached: %s", DISK_NAME.toString())); } @Test From add9d3f9e3800e831570a8f775f8820c6f8c2b82 Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Thu, 21 Feb 2019 11:20:07 -0800 Subject: [PATCH 20/27] move longrunning to v1.longrunning --- .../{ => v1}/longrunning/ComputeLongRunningClientFactory.java | 4 +++- .../{ => v1}/longrunning/ComputeLongRunningInterface.java | 2 +- .../{ => v1}/longrunning/ComputeOperationSnapshot.java | 4 +++- .../compute/{ => v1}/longrunning/GlobalLongRunningClient.java | 2 +- .../{ => v1}/longrunning/OperationSnapshotCallable.java | 4 +++- .../compute/{ => v1}/longrunning/RegionLongRunningClient.java | 2 +- .../compute/{ => v1}/longrunning/ZoneLongRunningClient.java | 2 +- .../cloud/compute/v1/stub/HttpJsonAddressCallableFactory.java | 4 ++-- .../compute/v1/stub/HttpJsonAutoscalerCallableFactory.java | 4 ++-- .../compute/v1/stub/HttpJsonBackendBucketCallableFactory.java | 4 ++-- .../v1/stub/HttpJsonBackendServiceCallableFactory.java | 4 ++-- .../cloud/compute/v1/stub/HttpJsonDiskCallableFactory.java | 4 ++-- .../compute/v1/stub/HttpJsonFirewallCallableFactory.java | 4 ++-- .../v1/stub/HttpJsonForwardingRuleCallableFactory.java | 4 ++-- .../compute/v1/stub/HttpJsonGlobalAddressCallableFactory.java | 4 ++-- .../v1/stub/HttpJsonGlobalForwardingRuleCallableFactory.java | 4 ++-- .../compute/v1/stub/HttpJsonHealthCheckCallableFactory.java | 4 ++-- .../v1/stub/HttpJsonHttpHealthCheckCallableFactory.java | 4 ++-- .../v1/stub/HttpJsonHttpsHealthCheckCallableFactory.java | 4 ++-- .../cloud/compute/v1/stub/HttpJsonImageCallableFactory.java | 4 ++-- .../compute/v1/stub/HttpJsonInstanceCallableFactory.java | 4 ++-- .../compute/v1/stub/HttpJsonInstanceGroupCallableFactory.java | 4 ++-- .../v1/stub/HttpJsonInstanceGroupManagerCallableFactory.java | 4 ++-- .../v1/stub/HttpJsonInstanceTemplateCallableFactory.java | 4 ++-- .../stub/HttpJsonInterconnectAttachmentCallableFactory.java | 4 ++-- .../compute/v1/stub/HttpJsonInterconnectCallableFactory.java | 4 ++-- .../cloud/compute/v1/stub/HttpJsonLicenseCallableFactory.java | 4 ++-- .../cloud/compute/v1/stub/HttpJsonNetworkCallableFactory.java | 4 ++-- .../compute/v1/stub/HttpJsonNodeGroupCallableFactory.java | 4 ++-- .../compute/v1/stub/HttpJsonNodeTemplateCallableFactory.java | 4 ++-- .../cloud/compute/v1/stub/HttpJsonProjectCallableFactory.java | 4 ++-- .../v1/stub/HttpJsonRegionAutoscalerCallableFactory.java | 4 ++-- .../v1/stub/HttpJsonRegionBackendServiceCallableFactory.java | 4 ++-- .../v1/stub/HttpJsonRegionCommitmentCallableFactory.java | 4 ++-- .../compute/v1/stub/HttpJsonRegionDiskCallableFactory.java | 4 ++-- .../v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java | 4 ++-- .../HttpJsonRegionInstanceGroupManagerCallableFactory.java | 4 ++-- .../cloud/compute/v1/stub/HttpJsonRouteCallableFactory.java | 4 ++-- .../cloud/compute/v1/stub/HttpJsonRouterCallableFactory.java | 4 ++-- .../v1/stub/HttpJsonSecurityPolicyCallableFactory.java | 4 ++-- .../compute/v1/stub/HttpJsonSnapshotCallableFactory.java | 4 ++-- .../v1/stub/HttpJsonSslCertificateCallableFactory.java | 4 ++-- .../compute/v1/stub/HttpJsonSslPolicyCallableFactory.java | 4 ++-- .../compute/v1/stub/HttpJsonSubnetworkCallableFactory.java | 4 ++-- .../v1/stub/HttpJsonTargetHttpProxyCallableFactory.java | 4 ++-- .../v1/stub/HttpJsonTargetHttpsProxyCallableFactory.java | 4 ++-- .../v1/stub/HttpJsonTargetInstanceCallableFactory.java | 4 ++-- .../compute/v1/stub/HttpJsonTargetPoolCallableFactory.java | 4 ++-- .../v1/stub/HttpJsonTargetSslProxyCallableFactory.java | 4 ++-- .../v1/stub/HttpJsonTargetTcpProxyCallableFactory.java | 4 ++-- .../v1/stub/HttpJsonTargetVpnGatewayCallableFactory.java | 4 ++-- .../cloud/compute/v1/stub/HttpJsonUrlMapCallableFactory.java | 4 ++-- .../compute/v1/stub/HttpJsonVpnTunnelCallableFactory.java | 4 ++-- 53 files changed, 105 insertions(+), 99 deletions(-) rename google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/{ => v1}/longrunning/ComputeLongRunningClientFactory.java (88%) rename google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/{ => v1}/longrunning/ComputeLongRunningInterface.java (97%) rename google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/{ => v1}/longrunning/ComputeOperationSnapshot.java (95%) rename google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/{ => v1}/longrunning/GlobalLongRunningClient.java (97%) rename google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/{ => v1}/longrunning/OperationSnapshotCallable.java (96%) rename google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/{ => v1}/longrunning/RegionLongRunningClient.java (97%) rename google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/{ => v1}/longrunning/ZoneLongRunningClient.java (97%) diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClientFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningClientFactory.java similarity index 88% rename from google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClientFactory.java rename to google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningClientFactory.java index ae581ba0ba69..f675cc9c1170 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningClientFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningClientFactory.java @@ -1,10 +1,12 @@ -package com.google.cloud.compute.longrunning; +package com.google.cloud.compute.v1.longrunning; +import com.google.api.core.BetaApi; import com.google.cloud.compute.v1.stub.GlobalOperationStub; import com.google.cloud.compute.v1.stub.RegionOperationStub; import com.google.cloud.compute.v1.stub.ZoneOperationStub; /** Factory for creating Compute LongRunningClients for a given *OperationStub. */ +@BetaApi public class ComputeLongRunningClientFactory { public static GlobalLongRunningClient create(GlobalOperationStub operationStub) { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningInterface.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningInterface.java similarity index 97% rename from google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningInterface.java rename to google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningInterface.java index a067ff0c8b50..080dc6ff304c 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeLongRunningInterface.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningInterface.java @@ -1,4 +1,4 @@ -package com.google.cloud.compute.longrunning; +package com.google.cloud.compute.v1.longrunning; import com.google.api.core.ApiFunction; import com.google.api.gax.httpjson.EmptyMessage; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeOperationSnapshot.java similarity index 95% rename from google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java rename to google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeOperationSnapshot.java index 11456e174194..48eba80800b9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ComputeOperationSnapshot.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeOperationSnapshot.java @@ -1,5 +1,6 @@ -package com.google.cloud.compute.longrunning; +package com.google.cloud.compute.v1.longrunning; +import com.google.api.core.BetaApi; import com.google.api.gax.httpjson.HttpJsonStatusCode; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.StatusCode; @@ -10,6 +11,7 @@ * Implementation of a long-running operation for the Compute client. Wraps a compute Operation * object. */ +@BetaApi public class ComputeOperationSnapshot implements OperationSnapshot { private static final Logger logger = Logger.getLogger(ComputeOperationSnapshot.class.getName()); diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/GlobalLongRunningClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/GlobalLongRunningClient.java similarity index 97% rename from google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/GlobalLongRunningClient.java rename to google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/GlobalLongRunningClient.java index 4798949fb5e5..7ec639816457 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/GlobalLongRunningClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/GlobalLongRunningClient.java @@ -1,4 +1,4 @@ -package com.google.cloud.compute.longrunning; +package com.google.cloud.compute.v1.longrunning; import com.google.api.core.ApiFunction; import com.google.api.gax.httpjson.EmptyMessage; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationSnapshotCallable.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/OperationSnapshotCallable.java similarity index 96% rename from google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationSnapshotCallable.java rename to google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/OperationSnapshotCallable.java index efca66c969cd..11eed7fe9e30 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/OperationSnapshotCallable.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/OperationSnapshotCallable.java @@ -27,13 +27,14 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -package com.google.cloud.compute.longrunning; +package com.google.cloud.compute.v1.longrunning; import static com.google.common.util.concurrent.MoreExecutors.directExecutor; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.UnaryCallable; @@ -43,6 +44,7 @@ * A {@code UnaryCallable} that wraps a UnaryCallable returning an Operation and returns an * OperationSnapshot instead. */ +@BetaApi public class OperationSnapshotCallable extends UnaryCallable { private final UnaryCallable innerCallable; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/RegionLongRunningClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/RegionLongRunningClient.java similarity index 97% rename from google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/RegionLongRunningClient.java rename to google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/RegionLongRunningClient.java index 80b90cf448cb..2a0bf56cde5d 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/RegionLongRunningClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/RegionLongRunningClient.java @@ -1,4 +1,4 @@ -package com.google.cloud.compute.longrunning; +package com.google.cloud.compute.v1.longrunning; import com.google.api.core.ApiFunction; import com.google.api.gax.httpjson.EmptyMessage; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ZoneLongRunningClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ZoneLongRunningClient.java similarity index 97% rename from google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ZoneLongRunningClient.java rename to google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ZoneLongRunningClient.java index 2f3b83907699..c4a518d15744 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/longrunning/ZoneLongRunningClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ZoneLongRunningClient.java @@ -1,4 +1,4 @@ -package com.google.cloud.compute.longrunning; +package com.google.cloud.compute.v1.longrunning; import com.google.api.core.ApiFunction; import com.google.api.gax.httpjson.EmptyMessage; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressCallableFactory.java index 7486da398a53..bd3164ef511b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAddressCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerCallableFactory.java index 343d9bf92584..e43544e0d36f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonAutoscalerCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketCallableFactory.java index d43a45583bca..1a30137d28a4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendBucketCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceCallableFactory.java index c755509d06dc..ff6d25c2bdaf 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonBackendServiceCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskCallableFactory.java index daed5593f737..a385486e01d5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonDiskCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallCallableFactory.java index cdf68039ca68..6f54706a1527 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonFirewallCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleCallableFactory.java index be1a9c089db8..e4dea3c509ef 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonForwardingRuleCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressCallableFactory.java index 1a1ed687ae42..1e3129abce50 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalAddressCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleCallableFactory.java index 42fd6cdcaf55..d4a9ed030504 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonGlobalForwardingRuleCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckCallableFactory.java index 0d0cd42771c8..ffe593658d83 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHealthCheckCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckCallableFactory.java index d6d55c4fe9e2..b6f0365f3f68 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpHealthCheckCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckCallableFactory.java index bb7a4c704ae6..add6a7743981 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonHttpsHealthCheckCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageCallableFactory.java index 222798a1f39a..bb5bd314f4b3 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonImageCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceCallableFactory.java index 9e821352ff5b..f3fc809316b0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupCallableFactory.java index 3cc64afa8f4b..8ba901f55fe8 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerCallableFactory.java index bcb7780d8430..90f3bd0ac1d9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateCallableFactory.java index bad13f67c8a1..a88c63a8ceb7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceTemplateCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentCallableFactory.java index 0b8a2308474e..fa9ef1280336 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectAttachmentCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectCallableFactory.java index 786aea998a6f..99ed1364807b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInterconnectCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCallableFactory.java index d89e23ba6e6f..93e7d0f82064 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonLicenseCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkCallableFactory.java index 89c93723336c..2f7f30ea700e 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupCallableFactory.java index b6d749f8203c..e12535adf72b 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeGroupCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateCallableFactory.java index c1489ea98904..2c7cab086871 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNodeTemplateCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectCallableFactory.java index 1c69d95bde27..84959dc5b7bc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonProjectCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java index b300859f6620..d2aa08c7f6fc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionAutoscalerCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceCallableFactory.java index 905b7747699a..f806480fd5c2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionBackendServiceCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentCallableFactory.java index 1bb19fd3f19d..6433fb5afb54 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionCommitmentCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskCallableFactory.java index 2e9a3b91b92a..ee8c94408fc5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionDiskCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java index 895aa718c1a4..f0444a1bfef5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerCallableFactory.java index 600b2defec53..6e0e4d624807 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRegionInstanceGroupManagerCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteCallableFactory.java index bff97e3aa2e7..1e96704d4524 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouteCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterCallableFactory.java index b5d6e5927d86..701d53c5e8bc 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonRouterCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyCallableFactory.java index 587dcb85c5d2..c243ab4aef00 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSecurityPolicyCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotCallableFactory.java index 4430aae65414..4d62d3b467b0 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSnapshotCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateCallableFactory.java index 219627874baa..446c76dc1cc5 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslCertificateCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyCallableFactory.java index b822acff8d4e..ca3a4f5b6dc9 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSslPolicyCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkCallableFactory.java index 140395dd7b7c..7ddfe8c1fe7f 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonSubnetworkCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyCallableFactory.java index 5928db382479..81bfb2aa2310 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpProxyCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyCallableFactory.java index c58be1a7d10d..6ece8c7d32fb 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetHttpsProxyCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceCallableFactory.java index 64285f15973a..3ac3eb2044f7 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetInstanceCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolCallableFactory.java index 283f79ee181e..0d779290e00a 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetPoolCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyCallableFactory.java index 64b5c8b8c25a..5578ef007f99 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetSslProxyCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyCallableFactory.java index 7d7502636593..4acf0ac32066 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetTcpProxyCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayCallableFactory.java index f25f6d57a49a..e82cfed64995 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonTargetVpnGatewayCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapCallableFactory.java index d3688a2728df..97d3e6e81735 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonUrlMapCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelCallableFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelCallableFactory.java index 6a5483e3508c..80e40f220d02 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelCallableFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonVpnTunnelCallableFactory.java @@ -29,8 +29,8 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.longrunning.ComputeLongRunningClientFactory; -import com.google.cloud.compute.longrunning.OperationSnapshotCallable; +import com.google.cloud.compute.v1.longrunning.ComputeLongRunningClientFactory; +import com.google.cloud.compute.v1.longrunning.OperationSnapshotCallable; import com.google.cloud.compute.v1.Operation; import javax.annotation.Generated; From c80cad2f18ded10f58f27d489817352c4e8e7010 Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Thu, 21 Feb 2019 11:47:45 -0800 Subject: [PATCH 21/27] make GlobalLROClient the same as the RegionLRO and ZoneLRO clients --- .../ComputeLongRunningInterface.java | 3 +- .../longrunning/ComputeOperationSnapshot.java | 3 - .../longrunning/GlobalLongRunningClient.java | 74 +++--- .../v1/longrunning/OperationClientTest.java | 216 ++++++++++++++++++ 4 files changed, 252 insertions(+), 44 deletions(-) create mode 100644 google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/longrunning/OperationClientTest.java diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningInterface.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningInterface.java index 080dc6ff304c..65f6bde50a70 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningInterface.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningInterface.java @@ -8,7 +8,8 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.Operation; -/** Implementation of LongRunningClient for the Compute client. Package-private for internal use. */ +/** Implementation of LongRunningClient for the Compute client. Package-private for internal use. + * Used by gax-java to get callables. */ abstract class ComputeLongRunningInterface implements LongRunningClient { diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeOperationSnapshot.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeOperationSnapshot.java index 48eba80800b9..e70994a9cdae 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeOperationSnapshot.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeOperationSnapshot.java @@ -5,7 +5,6 @@ import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.StatusCode; import com.google.cloud.compute.v1.Operation; -import java.util.logging.Logger; /** * Implementation of a long-running operation for the Compute client. Wraps a compute Operation @@ -14,8 +13,6 @@ @BetaApi public class ComputeOperationSnapshot implements OperationSnapshot { - private static final Logger logger = Logger.getLogger(ComputeOperationSnapshot.class.getName()); - public enum Status { PENDING, RUNNING, diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/GlobalLongRunningClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/GlobalLongRunningClient.java index 7ec639816457..af4ed7158391 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/GlobalLongRunningClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/GlobalLongRunningClient.java @@ -2,9 +2,6 @@ import com.google.api.core.ApiFunction; import com.google.api.gax.httpjson.EmptyMessage; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.rpc.LongRunningClient; -import com.google.api.gax.rpc.TranslatingUnaryCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.DeleteGlobalOperationHttpRequest; import com.google.cloud.compute.v1.GetGlobalOperationHttpRequest; @@ -12,52 +9,49 @@ import com.google.cloud.compute.v1.stub.GlobalOperationStub; /** Implementation of LongRunningClient for the Compute client. Package-private for internal use. */ -class GlobalLongRunningClient implements LongRunningClient { +class GlobalLongRunningClient + extends ComputeLongRunningInterface< + GetGlobalOperationHttpRequest, DeleteGlobalOperationHttpRequest> { private final GlobalOperationStub operationStub; - public GlobalLongRunningClient(GlobalOperationStub operationStub) { + private final ApiFunction createGetRequestFunc = + new ApiFunction() { + public GetGlobalOperationHttpRequest apply(String operationSelfLink) { + // Make sure operation is a formatted string. + return GetGlobalOperationHttpRequest.newBuilder().setOperation(operationSelfLink).build(); + } + }; + + private final ApiFunction createDeleteRequestFunc = + new ApiFunction() { + public DeleteGlobalOperationHttpRequest apply(String operationSelfLink) { + // Make sure operation is a formatted string. + return DeleteGlobalOperationHttpRequest.newBuilder() + .setOperation(operationSelfLink) + .build(); + } + }; + + GlobalLongRunningClient(GlobalOperationStub operationStub) { this.operationStub = operationStub; } - @Override - public UnaryCallable getOperationCallable() { - return TranslatingUnaryCallable.create( - operationStub.getGlobalOperationCallable(), - new ApiFunction() { - @Override - public GetGlobalOperationHttpRequest apply(String request) { - return GetGlobalOperationHttpRequest.newBuilder().setOperation(request).build(); - } - }, - new ApiFunction() { - @Override - public OperationSnapshot apply(Operation operation) { - return ComputeOperationSnapshot.create(operation); - } - }); + UnaryCallable getGetOperationCallable() { + return operationStub.getGlobalOperationCallable(); + } + + UnaryCallable getDeleteOperationCallable() { + return operationStub.deleteGlobalOperationCallable(); } - @Override - public UnaryCallable cancelOperationCallable() { - throw new UnsupportedOperationException("Cancelling operations is not supported by this API."); + /* Function that takes an Operation name as a String and creates a Get request object from it. */ + ApiFunction createGetRequest() { + return createGetRequestFunc; } - @Override - public UnaryCallable deleteOperationCallable() { - return TranslatingUnaryCallable.create( - operationStub.deleteGlobalOperationCallable(), - new ApiFunction() { - @Override - public DeleteGlobalOperationHttpRequest apply(String request) { - return DeleteGlobalOperationHttpRequest.newBuilder().setOperation(request).build(); - } - }, - new ApiFunction() { - @Override - public Void apply(EmptyMessage empty) { - return null; - } - }); + /* Function that takes an Operation name as a String and creates a Delete request object from it. */ + ApiFunction createDeleteRequest() { + return createDeleteRequestFunc; } } diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/longrunning/OperationClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/longrunning/OperationClientTest.java new file mode 100644 index 000000000000..95835b4f0b5a --- /dev/null +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/longrunning/OperationClientTest.java @@ -0,0 +1,216 @@ +// /* +// * Copyright 2019 Google LLC +// * +// * Redistribution and use in source and binary forms, with or without +// * modification, are permitted provided that the following conditions are +// * met: +// * +// * * Redistributions of source code must retain the above copyright +// * notice, this list of conditions and the following disclaimer. +// * * Redistributions in binary form must reproduce the above +// * copyright notice, this list of conditions and the following disclaimer +// * in the documentation and/or other materials provided with the +// * distribution. +// * * Neither the name of Google LLC nor the names of its +// * contributors may be used to endorse or promote products derived from +// * this software without specific prior written permission. +// * +// * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// */ +// package com.google.cloud.compute.v1.longrunning; +// +// public class GlobalLongRunningClientTest { +// private static MockOperations mockOperations; +// private static MockServiceHelper serviceHelper; +// private OperationsClient client; +// private LocalChannelProvider channelProvider; +// +// @BeforeClass +// public static void startStaticServer() { +// mockOperations = new MockOperations(); +// serviceHelper = +// new MockServiceHelper("in-process-1", Arrays.asList(mockOperations)); +// serviceHelper.start(); +// } +// +// @AfterClass +// public static void stopServer() { +// serviceHelper.stop(); +// } +// +// @Before +// public void setUp() throws IOException { +// serviceHelper.reset(); +// channelProvider = serviceHelper.createChannelProvider(); +// OperationsSettings settings = +// OperationsSettings.newBuilder() +// .setTransportChannelProvider(channelProvider) +// .setCredentialsProvider(NoCredentialsProvider.create()) +// .build(); +// client = OperationsClient.create(settings); +// } +// +// @After +// public void tearDown() throws Exception { +// client.close(); +// } +// +// @Test +// @SuppressWarnings("all") +// public void getOperationTest() { +// String name2 = "name2-1052831874"; +// boolean done = true; +// Operation expectedResponse = Operation.newBuilder().setName(name2).setDone(done).build(); +// mockOperations.addResponse(expectedResponse); +// +// String name = "name3373707"; +// +// Operation actualResponse = client.getOperation(name); +// Assert.assertEquals(expectedResponse, actualResponse); +// +// List actualRequests = mockOperations.getRequests(); +// Assert.assertEquals(1, actualRequests.size()); +// GetOperationRequest actualRequest = (GetOperationRequest) actualRequests.get(0); +// +// Assert.assertEquals(name, actualRequest.getName()); +// } +// +// @Test +// @SuppressWarnings("all") +// public void getOperationExceptionTest() throws Exception { +// StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); +// mockOperations.addException(exception); +// +// try { +// String name = "name3373707"; +// +// client.getOperation(name); +// Assert.fail("No exception raised"); +// } catch (InvalidArgumentException e) { +// // Expected exception +// } +// } +// +// @Test +// @SuppressWarnings("all") +// public void listOperationsTest() { +// String nextPageToken = ""; +// Operation operationsElement = Operation.newBuilder().build(); +// List operations = Arrays.asList(operationsElement); +// ListOperationsResponse expectedResponse = +// ListOperationsResponse.newBuilder() +// .setNextPageToken(nextPageToken) +// .addAllOperations(operations) +// .build(); +// mockOperations.addResponse(expectedResponse); +// +// String name = "name3373707"; +// String filter = "filter-1274492040"; +// +// ListOperationsPagedResponse pagedListResponse = client.listOperations(name, filter); +// +// List resources = Lists.newArrayList(pagedListResponse.iterateAll()); +// Assert.assertEquals(1, resources.size()); +// Assert.assertEquals(expectedResponse.getOperationsList().get(0), resources.get(0)); +// +// List actualRequests = mockOperations.getRequests(); +// Assert.assertEquals(1, actualRequests.size()); +// ListOperationsRequest actualRequest = (ListOperationsRequest) actualRequests.get(0); +// +// Assert.assertEquals(name, actualRequest.getName()); +// Assert.assertEquals(filter, actualRequest.getFilter()); +// } +// +// @Test +// @SuppressWarnings("all") +// public void listOperationsExceptionTest() throws Exception { +// StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); +// mockOperations.addException(exception); +// +// try { +// String name = "name3373707"; +// String filter = "filter-1274492040"; +// +// client.listOperations(name, filter); +// Assert.fail("No exception raised"); +// } catch (InvalidArgumentException e) { +// // Expected exception +// } +// } +// +// @Test +// @SuppressWarnings("all") +// public void cancelOperationTest() { +// Empty expectedResponse = Empty.newBuilder().build(); +// mockOperations.addResponse(expectedResponse); +// +// String name = "name3373707"; +// +// client.cancelOperation(name); +// +// List actualRequests = mockOperations.getRequests(); +// Assert.assertEquals(1, actualRequests.size()); +// CancelOperationRequest actualRequest = (CancelOperationRequest) actualRequests.get(0); +// +// Assert.assertEquals(name, actualRequest.getName()); +// } +// +// @Test +// @SuppressWarnings("all") +// public void cancelOperationExceptionTest() throws Exception { +// StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); +// mockOperations.addException(exception); +// +// try { +// String name = "name3373707"; +// +// client.cancelOperation(name); +// Assert.fail("No exception raised"); +// } catch (InvalidArgumentException e) { +// // Expected exception +// } +// } +// +// @Test +// @SuppressWarnings("all") +// public void deleteOperationTest() { +// Empty expectedResponse = Empty.newBuilder().build(); +// mockOperations.addResponse(expectedResponse); +// +// String name = "name3373707"; +// +// client.deleteOperation(name); +// +// List actualRequests = mockOperations.getRequests(); +// Assert.assertEquals(1, actualRequests.size()); +// DeleteOperationRequest actualRequest = (DeleteOperationRequest) actualRequests.get(0); +// +// Assert.assertEquals(name, actualRequest.getName()); +// } +// +// @Test +// @SuppressWarnings("all") +// public void deleteOperationExceptionTest() throws Exception { +// StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); +// mockOperations.addException(exception); +// +// try { +// String name = "name3373707"; +// +// client.deleteOperation(name); +// Assert.fail("No exception raised"); +// } catch (InvalidArgumentException e) { +// // Expected exception +// } +// } +// } From 9d25293c7a6b18cd01088e93c9bd6abb1e3a94ed Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Thu, 21 Feb 2019 13:04:20 -0800 Subject: [PATCH 22/27] replace the separate [Scope]LongRunningClients with AutoValued factory" --- .../google-cloud-compute/pom.xml | 5 + ...ace.java => ComputeLongRunningClient.java} | 40 +- .../ComputeLongRunningClientFactory.java | 84 ++- .../longrunning/GlobalLongRunningClient.java | 57 -- .../longrunning/RegionLongRunningClient.java | 57 -- .../v1/longrunning/ZoneLongRunningClient.java | 57 -- .../v1/longrunning/OperationClientTest.java | 561 +++++++++++------- google-cloud-clients/pom.xml | 2 +- 8 files changed, 461 insertions(+), 402 deletions(-) rename google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/{ComputeLongRunningInterface.java => ComputeLongRunningClient.java} (51%) delete mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/GlobalLongRunningClient.java delete mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/RegionLongRunningClient.java delete mode 100644 google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ZoneLongRunningClient.java diff --git a/google-cloud-clients/google-cloud-compute/pom.xml b/google-cloud-clients/google-cloud-compute/pom.xml index bd956f431738..1562f1224a38 100644 --- a/google-cloud-clients/google-cloud-compute/pom.xml +++ b/google-cloud-clients/google-cloud-compute/pom.xml @@ -31,6 +31,11 @@ google-api-services-compute compile + + com.google.auto.value + auto-value + provided + diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningInterface.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningClient.java similarity index 51% rename from google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningInterface.java rename to google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningClient.java index 65f6bde50a70..4d4518cda3ad 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningInterface.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningClient.java @@ -1,6 +1,8 @@ package com.google.cloud.compute.v1.longrunning; +import com.google.auto.value.AutoValue; import com.google.api.core.ApiFunction; +import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.LongRunningClient; @@ -8,26 +10,29 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.Operation; -/** Implementation of LongRunningClient for the Compute client. Package-private for internal use. - * Used by gax-java to get callables. */ -abstract class ComputeLongRunningInterface +/** Unites all Compute's different [Scope]OperationClients under a single shared implementation of the LongRunningClient. + * Package-private for internal use. Used by gax-java to get callables.*/ +@AutoValue +abstract class ComputeLongRunningClient implements LongRunningClient { + abstract BackgroundResource getStub(); + abstract UnaryCallable getGetOperationCallable(); abstract UnaryCallable getDeleteOperationCallable(); /* Function that takes an Operation name as a String and creates a Get request object from it. */ - abstract ApiFunction createGetRequest(); + abstract ApiFunction getCreateGetRequestFunc(); /* Function that takes an Operation name as a String and creates a Delete request object from it. */ - abstract ApiFunction createDeleteRequest(); + abstract ApiFunction getCreateDeleteRequestFunc(); @Override public UnaryCallable getOperationCallable() { return TranslatingUnaryCallable.create( getGetOperationCallable(), - createGetRequest(), + getCreateGetRequestFunc(), new ApiFunction() { @Override public OperationSnapshot apply(Operation operation) { @@ -45,7 +50,7 @@ public UnaryCallable cancelOperationCallable() { public UnaryCallable deleteOperationCallable() { return TranslatingUnaryCallable.create( getDeleteOperationCallable(), - createDeleteRequest(), + getCreateDeleteRequestFunc(), new ApiFunction() { @Override public Void apply(EmptyMessage empty) { @@ -53,4 +58,25 @@ public Void apply(EmptyMessage empty) { } }); } + + static ComputeLongRunningClient.Builder newBuilder() { + return new AutoValue_ComputeLongRunningClient.Builder(); + } + + @AutoValue.Builder + public abstract static class Builder { + abstract Builder setDeleteOperationCallable(UnaryCallable deleteOperationCallable); + + abstract Builder setGetOperationCallable( + UnaryCallable requestFormatter); + + abstract Builder setStub( + BackgroundResource backgroundResource); + + abstract Builder setCreateGetRequestFunc(ApiFunction httpMethod); + + abstract Builder setCreateDeleteRequestFunc(ApiFunction httpMethod); + + abstract ComputeLongRunningClient build(); + } } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningClientFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningClientFactory.java index f675cc9c1170..513c42799883 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningClientFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningClientFactory.java @@ -1,23 +1,93 @@ package com.google.cloud.compute.v1.longrunning; +import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; +import com.google.cloud.compute.v1.DeleteGlobalOperationHttpRequest; +import com.google.cloud.compute.v1.DeleteRegionOperationHttpRequest; +import com.google.cloud.compute.v1.DeleteZoneOperationHttpRequest; +import com.google.cloud.compute.v1.GetGlobalOperationHttpRequest; +import com.google.cloud.compute.v1.GetRegionOperationHttpRequest; +import com.google.cloud.compute.v1.GetZoneOperationHttpRequest; import com.google.cloud.compute.v1.stub.GlobalOperationStub; import com.google.cloud.compute.v1.stub.RegionOperationStub; import com.google.cloud.compute.v1.stub.ZoneOperationStub; -/** Factory for creating Compute LongRunningClients for a given *OperationStub. */ +/** Factory for creating Compute LongRunningClients for a given [Scope]OperationStub. */ @BetaApi public class ComputeLongRunningClientFactory { - public static GlobalLongRunningClient create(GlobalOperationStub operationStub) { - return new GlobalLongRunningClient(operationStub); + /* Create a ComputeLongRunningClient from a GlobalOperationsStub. */ + public static ComputeLongRunningClient create(GlobalOperationStub operationStub) { + return ComputeLongRunningClient.newBuilder() + .setStub(operationStub) + .setGetOperationCallable(operationStub.getGlobalOperationCallable()) + .setDeleteOperationCallable(operationStub.deleteGlobalOperationCallable()) + .setCreateDeleteRequestFunc( + new ApiFunction() { + public DeleteGlobalOperationHttpRequest apply(String operationSelfLink) { + // Make sure operation is a formatted string. + return DeleteGlobalOperationHttpRequest.newBuilder() + .setOperation(operationSelfLink) + .build(); + } + } + ) + .setCreateGetRequestFunc( new ApiFunction() { + public GetGlobalOperationHttpRequest apply(String operationSelfLink) { + // Make sure operation is a formatted string. + return GetGlobalOperationHttpRequest.newBuilder().setOperation(operationSelfLink).build(); + } + }) + .build(); } - public static ZoneLongRunningClient create(ZoneOperationStub operationStub) { - return new ZoneLongRunningClient(operationStub); + /* Create a ComputeLongRunningClient from a ZoneOperationStub. */ + public static ComputeLongRunningClient create(ZoneOperationStub operationStub) { + return ComputeLongRunningClient.newBuilder() + .setStub(operationStub) + .setGetOperationCallable(operationStub.getZoneOperationCallable()) + .setDeleteOperationCallable(operationStub.deleteZoneOperationCallable()) + .setCreateDeleteRequestFunc( + new ApiFunction() { + public DeleteZoneOperationHttpRequest apply(String operationSelfLink) { + // Make sure operation is a formatted string. + return DeleteZoneOperationHttpRequest.newBuilder() + .setOperation(operationSelfLink) + .build(); + } + } + ) + .setCreateGetRequestFunc( new ApiFunction() { + public GetZoneOperationHttpRequest apply(String operationSelfLink) { + // Make sure operation is a formatted string. + return GetZoneOperationHttpRequest.newBuilder().setOperation(operationSelfLink).build(); + } + }) + .build(); } - public static RegionLongRunningClient create(RegionOperationStub operationStub) { - return new RegionLongRunningClient(operationStub); + /* Create a ComputeLongRunningClient from a RegionOperationStub. */ + public static ComputeLongRunningClient create(RegionOperationStub operationStub) { + return ComputeLongRunningClient.newBuilder() + .setStub(operationStub) + .setGetOperationCallable(operationStub.getRegionOperationCallable()) + .setDeleteOperationCallable(operationStub.deleteRegionOperationCallable()) + .setCreateDeleteRequestFunc( + new ApiFunction() { + public DeleteRegionOperationHttpRequest apply(String operationSelfLink) { + // Make sure operation is a formatted string. + return DeleteRegionOperationHttpRequest.newBuilder() + .setOperation(operationSelfLink) + .build(); + } + } + ) + .setCreateGetRequestFunc( new ApiFunction() { + public GetRegionOperationHttpRequest apply(String operationSelfLink) { + // Make sure operation is a formatted string. + return GetRegionOperationHttpRequest.newBuilder().setOperation(operationSelfLink).build(); + } + }) + .build(); } } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/GlobalLongRunningClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/GlobalLongRunningClient.java deleted file mode 100644 index af4ed7158391..000000000000 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/GlobalLongRunningClient.java +++ /dev/null @@ -1,57 +0,0 @@ -package com.google.cloud.compute.v1.longrunning; - -import com.google.api.core.ApiFunction; -import com.google.api.gax.httpjson.EmptyMessage; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.v1.DeleteGlobalOperationHttpRequest; -import com.google.cloud.compute.v1.GetGlobalOperationHttpRequest; -import com.google.cloud.compute.v1.Operation; -import com.google.cloud.compute.v1.stub.GlobalOperationStub; - -/** Implementation of LongRunningClient for the Compute client. Package-private for internal use. */ -class GlobalLongRunningClient - extends ComputeLongRunningInterface< - GetGlobalOperationHttpRequest, DeleteGlobalOperationHttpRequest> { - - private final GlobalOperationStub operationStub; - - private final ApiFunction createGetRequestFunc = - new ApiFunction() { - public GetGlobalOperationHttpRequest apply(String operationSelfLink) { - // Make sure operation is a formatted string. - return GetGlobalOperationHttpRequest.newBuilder().setOperation(operationSelfLink).build(); - } - }; - - private final ApiFunction createDeleteRequestFunc = - new ApiFunction() { - public DeleteGlobalOperationHttpRequest apply(String operationSelfLink) { - // Make sure operation is a formatted string. - return DeleteGlobalOperationHttpRequest.newBuilder() - .setOperation(operationSelfLink) - .build(); - } - }; - - GlobalLongRunningClient(GlobalOperationStub operationStub) { - this.operationStub = operationStub; - } - - UnaryCallable getGetOperationCallable() { - return operationStub.getGlobalOperationCallable(); - } - - UnaryCallable getDeleteOperationCallable() { - return operationStub.deleteGlobalOperationCallable(); - } - - /* Function that takes an Operation name as a String and creates a Get request object from it. */ - ApiFunction createGetRequest() { - return createGetRequestFunc; - } - - /* Function that takes an Operation name as a String and creates a Delete request object from it. */ - ApiFunction createDeleteRequest() { - return createDeleteRequestFunc; - } -} diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/RegionLongRunningClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/RegionLongRunningClient.java deleted file mode 100644 index 2a0bf56cde5d..000000000000 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/RegionLongRunningClient.java +++ /dev/null @@ -1,57 +0,0 @@ -package com.google.cloud.compute.v1.longrunning; - -import com.google.api.core.ApiFunction; -import com.google.api.gax.httpjson.EmptyMessage; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.v1.DeleteRegionOperationHttpRequest; -import com.google.cloud.compute.v1.GetRegionOperationHttpRequest; -import com.google.cloud.compute.v1.Operation; -import com.google.cloud.compute.v1.stub.RegionOperationStub; - -/** Implementation of LongRunningClient for the Compute client. Package-private for internal use. */ -class RegionLongRunningClient - extends ComputeLongRunningInterface< - GetRegionOperationHttpRequest, DeleteRegionOperationHttpRequest> { - - private final RegionOperationStub operationStub; - - private final ApiFunction createGetRequestFunc = - new ApiFunction() { - public GetRegionOperationHttpRequest apply(String operationSelfLink) { - // Make sure operation is a formatted string. - return GetRegionOperationHttpRequest.newBuilder().setOperation(operationSelfLink).build(); - } - }; - - private final ApiFunction createDeleteRequestFunc = - new ApiFunction() { - public DeleteRegionOperationHttpRequest apply(String operationSelfLink) { - // Make sure operation is a formatted string. - return DeleteRegionOperationHttpRequest.newBuilder() - .setOperation(operationSelfLink) - .build(); - } - }; - - RegionLongRunningClient(RegionOperationStub operationStub) { - this.operationStub = operationStub; - } - - UnaryCallable getGetOperationCallable() { - return operationStub.getRegionOperationCallable(); - } - - UnaryCallable getDeleteOperationCallable() { - return operationStub.deleteRegionOperationCallable(); - } - - /* Function that takes an Operation name as a String and creates a Get request object from it. */ - ApiFunction createGetRequest() { - return createGetRequestFunc; - } - - /* Function that takes an Operation name as a String and creates a Delete request object from it. */ - ApiFunction createDeleteRequest() { - return createDeleteRequestFunc; - } -} diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ZoneLongRunningClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ZoneLongRunningClient.java deleted file mode 100644 index c4a518d15744..000000000000 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ZoneLongRunningClient.java +++ /dev/null @@ -1,57 +0,0 @@ -package com.google.cloud.compute.v1.longrunning; - -import com.google.api.core.ApiFunction; -import com.google.api.gax.httpjson.EmptyMessage; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.compute.v1.DeleteZoneOperationHttpRequest; -import com.google.cloud.compute.v1.GetZoneOperationHttpRequest; -import com.google.cloud.compute.v1.Operation; -import com.google.cloud.compute.v1.stub.ZoneOperationStub; - -/** Implementation of LongRunningClient for the Compute client. Package-private for internal use. */ -class ZoneLongRunningClient - extends ComputeLongRunningInterface< - GetZoneOperationHttpRequest, DeleteZoneOperationHttpRequest> { - - private final ZoneOperationStub operationStub; - - private final ApiFunction createGetRequestFunc = - new ApiFunction() { - public GetZoneOperationHttpRequest apply(String operationSelfLink) { - // Make sure operation is a formatted string. - return GetZoneOperationHttpRequest.newBuilder().setOperation(operationSelfLink).build(); - } - }; - - private final ApiFunction createDeleteRequestFunc = - new ApiFunction() { - public DeleteZoneOperationHttpRequest apply(String operationSelfLink) { - // Make sure operation is a formatted string. - return DeleteZoneOperationHttpRequest.newBuilder() - .setOperation(operationSelfLink) - .build(); - } - }; - - ZoneLongRunningClient(ZoneOperationStub operationStub) { - this.operationStub = operationStub; - } - - UnaryCallable getGetOperationCallable() { - return operationStub.getZoneOperationCallable(); - } - - UnaryCallable getDeleteOperationCallable() { - return operationStub.deleteZoneOperationCallable(); - } - - /* Function that takes an Operation name as a String and creates a Get request object from it. */ - ApiFunction createGetRequest() { - return createGetRequestFunc; - } - - /* Function that takes an Operation name as a String and creates a Delete request object from it. */ - ApiFunction createDeleteRequest() { - return createDeleteRequestFunc; - } -} diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/longrunning/OperationClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/longrunning/OperationClientTest.java index 95835b4f0b5a..df9c1ff50c1a 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/longrunning/OperationClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/longrunning/OperationClientTest.java @@ -1,216 +1,345 @@ -// /* -// * Copyright 2019 Google LLC -// * -// * Redistribution and use in source and binary forms, with or without -// * modification, are permitted provided that the following conditions are -// * met: -// * -// * * Redistributions of source code must retain the above copyright -// * notice, this list of conditions and the following disclaimer. -// * * Redistributions in binary form must reproduce the above -// * copyright notice, this list of conditions and the following disclaimer -// * in the documentation and/or other materials provided with the -// * distribution. -// * * Neither the name of Google LLC nor the names of its -// * contributors may be used to endorse or promote products derived from -// * this software without specific prior written permission. -// * -// * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// */ -// package com.google.cloud.compute.v1.longrunning; -// -// public class GlobalLongRunningClientTest { -// private static MockOperations mockOperations; -// private static MockServiceHelper serviceHelper; -// private OperationsClient client; -// private LocalChannelProvider channelProvider; -// -// @BeforeClass -// public static void startStaticServer() { -// mockOperations = new MockOperations(); -// serviceHelper = -// new MockServiceHelper("in-process-1", Arrays.asList(mockOperations)); -// serviceHelper.start(); -// } -// -// @AfterClass -// public static void stopServer() { -// serviceHelper.stop(); -// } -// -// @Before -// public void setUp() throws IOException { -// serviceHelper.reset(); -// channelProvider = serviceHelper.createChannelProvider(); -// OperationsSettings settings = -// OperationsSettings.newBuilder() -// .setTransportChannelProvider(channelProvider) -// .setCredentialsProvider(NoCredentialsProvider.create()) -// .build(); -// client = OperationsClient.create(settings); -// } -// -// @After -// public void tearDown() throws Exception { -// client.close(); -// } -// -// @Test -// @SuppressWarnings("all") -// public void getOperationTest() { -// String name2 = "name2-1052831874"; -// boolean done = true; -// Operation expectedResponse = Operation.newBuilder().setName(name2).setDone(done).build(); -// mockOperations.addResponse(expectedResponse); -// -// String name = "name3373707"; -// -// Operation actualResponse = client.getOperation(name); -// Assert.assertEquals(expectedResponse, actualResponse); -// -// List actualRequests = mockOperations.getRequests(); -// Assert.assertEquals(1, actualRequests.size()); -// GetOperationRequest actualRequest = (GetOperationRequest) actualRequests.get(0); -// -// Assert.assertEquals(name, actualRequest.getName()); -// } -// -// @Test -// @SuppressWarnings("all") -// public void getOperationExceptionTest() throws Exception { -// StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); -// mockOperations.addException(exception); -// -// try { -// String name = "name3373707"; -// -// client.getOperation(name); -// Assert.fail("No exception raised"); -// } catch (InvalidArgumentException e) { -// // Expected exception -// } -// } -// -// @Test -// @SuppressWarnings("all") -// public void listOperationsTest() { -// String nextPageToken = ""; -// Operation operationsElement = Operation.newBuilder().build(); -// List operations = Arrays.asList(operationsElement); -// ListOperationsResponse expectedResponse = -// ListOperationsResponse.newBuilder() -// .setNextPageToken(nextPageToken) -// .addAllOperations(operations) -// .build(); -// mockOperations.addResponse(expectedResponse); -// -// String name = "name3373707"; -// String filter = "filter-1274492040"; -// -// ListOperationsPagedResponse pagedListResponse = client.listOperations(name, filter); -// -// List resources = Lists.newArrayList(pagedListResponse.iterateAll()); -// Assert.assertEquals(1, resources.size()); -// Assert.assertEquals(expectedResponse.getOperationsList().get(0), resources.get(0)); -// -// List actualRequests = mockOperations.getRequests(); -// Assert.assertEquals(1, actualRequests.size()); -// ListOperationsRequest actualRequest = (ListOperationsRequest) actualRequests.get(0); -// -// Assert.assertEquals(name, actualRequest.getName()); -// Assert.assertEquals(filter, actualRequest.getFilter()); -// } -// -// @Test -// @SuppressWarnings("all") -// public void listOperationsExceptionTest() throws Exception { -// StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); -// mockOperations.addException(exception); -// -// try { -// String name = "name3373707"; -// String filter = "filter-1274492040"; -// -// client.listOperations(name, filter); -// Assert.fail("No exception raised"); -// } catch (InvalidArgumentException e) { -// // Expected exception -// } -// } -// -// @Test -// @SuppressWarnings("all") -// public void cancelOperationTest() { -// Empty expectedResponse = Empty.newBuilder().build(); -// mockOperations.addResponse(expectedResponse); -// -// String name = "name3373707"; -// -// client.cancelOperation(name); -// -// List actualRequests = mockOperations.getRequests(); -// Assert.assertEquals(1, actualRequests.size()); -// CancelOperationRequest actualRequest = (CancelOperationRequest) actualRequests.get(0); -// -// Assert.assertEquals(name, actualRequest.getName()); -// } -// -// @Test -// @SuppressWarnings("all") -// public void cancelOperationExceptionTest() throws Exception { -// StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); -// mockOperations.addException(exception); -// -// try { -// String name = "name3373707"; -// -// client.cancelOperation(name); -// Assert.fail("No exception raised"); -// } catch (InvalidArgumentException e) { -// // Expected exception -// } -// } -// -// @Test -// @SuppressWarnings("all") -// public void deleteOperationTest() { -// Empty expectedResponse = Empty.newBuilder().build(); -// mockOperations.addResponse(expectedResponse); -// -// String name = "name3373707"; -// -// client.deleteOperation(name); -// -// List actualRequests = mockOperations.getRequests(); -// Assert.assertEquals(1, actualRequests.size()); -// DeleteOperationRequest actualRequest = (DeleteOperationRequest) actualRequests.get(0); -// -// Assert.assertEquals(name, actualRequest.getName()); -// } -// -// @Test -// @SuppressWarnings("all") -// public void deleteOperationExceptionTest() throws Exception { -// StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); -// mockOperations.addException(exception); -// -// try { -// String name = "name3373707"; -// -// client.deleteOperation(name); -// Assert.fail("No exception raised"); -// } catch (InvalidArgumentException e) { -// // Expected exception -// } -// } -// } +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.compute.v1.longrunning; + +import static com.google.cloud.compute.v1.GlobalOperationClient.AggregatedListGlobalOperationsPagedResponse; +import static com.google.cloud.compute.v1.GlobalOperationClient.ListGlobalOperationsPagedResponse; +import static com.google.cloud.compute.v1.stub.HttpJsonGlobalOperationStub.aggregatedListGlobalOperationsMethodDescriptor; +import static com.google.cloud.compute.v1.stub.HttpJsonGlobalOperationStub.deleteGlobalOperationMethodDescriptor; +import static com.google.cloud.compute.v1.stub.HttpJsonGlobalOperationStub.getGlobalOperationMethodDescriptor; +import static com.google.cloud.compute.v1.stub.HttpJsonGlobalOperationStub.listGlobalOperationsMethodDescriptor; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode.Code; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.compute.v1.GlobalOperationSettings; +import com.google.cloud.compute.v1.stub.GlobalOperationStub; +import com.google.cloud.compute.v1.stub.GlobalOperationStubSettings; +import com.google.cloud.compute.v1.stub.HttpJsonGlobalOperationStub; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.BeforeClass; +import org.junit.Test; + +public class GlobalOperationClientTest { + + private static final List METHOD_DESCRIPTORS = + ImmutableList.copyOf( + Lists.newArrayList( + aggregatedListGlobalOperationsMethodDescriptor, + deleteGlobalOperationMethodDescriptor, + getGlobalOperationMethodDescriptor, + listGlobalOperationsMethodDescriptor)); + private static final MockHttpService mockService = + new MockHttpService(METHOD_DESCRIPTORS, GlobalOperationStubSettings.getDefaultEndpoint()); + + private static GlobalLongRunningClient client; + + @BeforeClass + public static void setUp() throws IOException { + GlobalOperationStubSettings clientSettings = + GlobalOperationStubSettings.newBuilder() + .setTransportChannelProvider( + GlobalOperationSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ComputeLongRunningClientFactory.create(HttpJsonGlobalOperationStub.create(clientSettings)); + } + + @After + public void cleanUp() { + mockService.reset(); + } + + @AfterClass + public static void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void aggregatedListGlobalOperationsTest() { + String id = "id3355"; + String kind = "kind3292052"; + String nextPageToken = ""; + String selfLink = "selfLink-1691268851"; + OperationsScopedList itemsItem = OperationsScopedList.newBuilder().build(); + Map items = new HashMap<>(); + items.put("items", itemsItem); + OperationAggregatedList expectedResponse = + OperationAggregatedList.newBuilder() + .setId(id) + .setKind(kind) + .setNextPageToken(nextPageToken) + .setSelfLink(selfLink) + .putAllItems(items) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName project = ProjectName.of("[PROJECT]"); + + AggregatedListGlobalOperationsPagedResponse pagedListResponse = + client.aggregatedListGlobalOperations(project); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getItemsMap().values().iterator().next(), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + @SuppressWarnings("all") + public void aggregatedListGlobalOperationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName project = ProjectName.of("[PROJECT]"); + + client.aggregatedListGlobalOperations(project); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteGlobalOperationTest() { + mockService.addNullResponse(); + + ProjectGlobalOperationName operation = + ProjectGlobalOperationName.of("[PROJECT]", "[OPERATION]"); + + client.deleteGlobalOperation(operation); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + @SuppressWarnings("all") + public void deleteGlobalOperationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectGlobalOperationName operation = + ProjectGlobalOperationName.of("[PROJECT]", "[OPERATION]"); + + client.deleteGlobalOperation(operation); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getGlobalOperationTest() { + String clientOperationId = "clientOperationId-239630617"; + String creationTimestamp = "creationTimestamp567396278"; + String description = "description-1724546052"; + String endTime = "endTime1725551537"; + String httpErrorMessage = "httpErrorMessage1276263769"; + Integer httpErrorStatusCode = 1386087020; + String id = "id3355"; + String insertTime = "insertTime-103148397"; + String kind = "kind3292052"; + String name = "name3373707"; + String operationType = "operationType-1432962286"; + Integer progress = 1001078227; + ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); + String selfLink = "selfLink-1691268851"; + String startTime = "startTime-1573145462"; + String status = "status-892481550"; + String statusMessage = "statusMessage-239442758"; + String targetId = "targetId-815576439"; + String targetLink = "targetLink-2084812312"; + String user = "user3599307"; + ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); + Operation expectedResponse = + Operation.newBuilder() + .setClientOperationId(clientOperationId) + .setCreationTimestamp(creationTimestamp) + .setDescription(description) + .setEndTime(endTime) + .setHttpErrorMessage(httpErrorMessage) + .setHttpErrorStatusCode(httpErrorStatusCode) + .setId(id) + .setInsertTime(insertTime) + .setKind(kind) + .setName(name) + .setOperationType(operationType) + .setProgress(progress) + .setRegion(region.toString()) + .setSelfLink(selfLink) + .setStartTime(startTime) + .setStatus(status) + .setStatusMessage(statusMessage) + .setTargetId(targetId) + .setTargetLink(targetLink) + .setUser(user) + .setZone(zone.toString()) + .build(); + mockService.addResponse(expectedResponse); + + ProjectGlobalOperationName operation = + ProjectGlobalOperationName.of("[PROJECT]", "[OPERATION]"); + + Operation actualResponse = client.getGlobalOperation(operation); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + @SuppressWarnings("all") + public void getGlobalOperationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectGlobalOperationName operation = + ProjectGlobalOperationName.of("[PROJECT]", "[OPERATION]"); + + client.getGlobalOperation(operation); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void listGlobalOperationsTest() { + String id = "id3355"; + String kind = "kind3292052"; + String nextPageToken = ""; + String selfLink = "selfLink-1691268851"; + Operation itemsElement = Operation.newBuilder().build(); + List items = Arrays.asList(itemsElement); + OperationList expectedResponse = + OperationList.newBuilder() + .setId(id) + .setKind(kind) + .setNextPageToken(nextPageToken) + .setSelfLink(selfLink) + .addAllItems(items) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName project = ProjectName.of("[PROJECT]"); + + ListGlobalOperationsPagedResponse pagedListResponse = client.listGlobalOperations(project); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getItemsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + @SuppressWarnings("all") + public void listGlobalOperationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName project = ProjectName.of("[PROJECT]"); + + client.listGlobalOperations(project); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/google-cloud-clients/pom.xml b/google-cloud-clients/pom.xml index 35044bd247fb..679250436c9e 100644 --- a/google-cloud-clients/pom.xml +++ b/google-cloud-clients/pom.xml @@ -155,7 +155,7 @@ 0.80.1-alpha-SNAPSHOT 1.27.0 - 1.38.1-SNAPSHOT + 1.40.1-SNAPSHOT 1.7.0 0.12.0 1.18.0 From 5945563992ca6b0543741348418f9b922539388c Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Fri, 22 Feb 2019 13:29:03 -0800 Subject: [PATCH 23/27] update ComputeOperationSnapshot --- .../longrunning/ComputeOperationSnapshot.java | 7 +- .../v1/longrunning/OperationClientTest.java | 701 +++++++++--------- 2 files changed, 361 insertions(+), 347 deletions(-) diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeOperationSnapshot.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeOperationSnapshot.java index e70994a9cdae..881446cffda4 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeOperationSnapshot.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeOperationSnapshot.java @@ -1,6 +1,7 @@ package com.google.cloud.compute.v1.longrunning; import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.EmptyMessage; import com.google.api.gax.httpjson.HttpJsonStatusCode; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.StatusCode; @@ -13,6 +14,8 @@ @BetaApi public class ComputeOperationSnapshot implements OperationSnapshot { + private static final EmptyMessage response = EmptyMessage.getDefaultInstance(); + public enum Status { PENDING, RUNNING, @@ -48,9 +51,9 @@ public boolean isDone() { } @Override - public Object getResponse() { + public EmptyMessage getResponse() { // Compute methods do not have responses. - return null; + return response; } @Override diff --git a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/longrunning/OperationClientTest.java b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/longrunning/OperationClientTest.java index df9c1ff50c1a..4c343a6d9135 100644 --- a/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/longrunning/OperationClientTest.java +++ b/google-cloud-clients/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/longrunning/OperationClientTest.java @@ -1,345 +1,356 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.compute.v1.longrunning; - -import static com.google.cloud.compute.v1.GlobalOperationClient.AggregatedListGlobalOperationsPagedResponse; -import static com.google.cloud.compute.v1.GlobalOperationClient.ListGlobalOperationsPagedResponse; -import static com.google.cloud.compute.v1.stub.HttpJsonGlobalOperationStub.aggregatedListGlobalOperationsMethodDescriptor; -import static com.google.cloud.compute.v1.stub.HttpJsonGlobalOperationStub.deleteGlobalOperationMethodDescriptor; -import static com.google.cloud.compute.v1.stub.HttpJsonGlobalOperationStub.getGlobalOperationMethodDescriptor; -import static com.google.cloud.compute.v1.stub.HttpJsonGlobalOperationStub.listGlobalOperationsMethodDescriptor; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode.Code; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.cloud.compute.v1.GlobalOperationSettings; -import com.google.cloud.compute.v1.stub.GlobalOperationStub; -import com.google.cloud.compute.v1.stub.GlobalOperationStubSettings; -import com.google.cloud.compute.v1.stub.HttpJsonGlobalOperationStub; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.Lists; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.BeforeClass; -import org.junit.Test; - -public class GlobalOperationClientTest { - - private static final List METHOD_DESCRIPTORS = - ImmutableList.copyOf( - Lists.newArrayList( - aggregatedListGlobalOperationsMethodDescriptor, - deleteGlobalOperationMethodDescriptor, - getGlobalOperationMethodDescriptor, - listGlobalOperationsMethodDescriptor)); - private static final MockHttpService mockService = - new MockHttpService(METHOD_DESCRIPTORS, GlobalOperationStubSettings.getDefaultEndpoint()); - - private static GlobalLongRunningClient client; - - @BeforeClass - public static void setUp() throws IOException { - GlobalOperationStubSettings clientSettings = - GlobalOperationStubSettings.newBuilder() - .setTransportChannelProvider( - GlobalOperationSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = ComputeLongRunningClientFactory.create(HttpJsonGlobalOperationStub.create(clientSettings)); - } - - @After - public void cleanUp() { - mockService.reset(); - } - - @AfterClass - public static void tearDown() throws Exception { - client.close(); - } - - @Test - @SuppressWarnings("all") - public void aggregatedListGlobalOperationsTest() { - String id = "id3355"; - String kind = "kind3292052"; - String nextPageToken = ""; - String selfLink = "selfLink-1691268851"; - OperationsScopedList itemsItem = OperationsScopedList.newBuilder().build(); - Map items = new HashMap<>(); - items.put("items", itemsItem); - OperationAggregatedList expectedResponse = - OperationAggregatedList.newBuilder() - .setId(id) - .setKind(kind) - .setNextPageToken(nextPageToken) - .setSelfLink(selfLink) - .putAllItems(items) - .build(); - mockService.addResponse(expectedResponse); - - ProjectName project = ProjectName.of("[PROJECT]"); - - AggregatedListGlobalOperationsPagedResponse pagedListResponse = - client.aggregatedListGlobalOperations(project); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getItemsMap().values().iterator().next(), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - @SuppressWarnings("all") - public void aggregatedListGlobalOperationsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ProjectName project = ProjectName.of("[PROJECT]"); - - client.aggregatedListGlobalOperations(project); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void deleteGlobalOperationTest() { - mockService.addNullResponse(); - - ProjectGlobalOperationName operation = - ProjectGlobalOperationName.of("[PROJECT]", "[OPERATION]"); - - client.deleteGlobalOperation(operation); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - @SuppressWarnings("all") - public void deleteGlobalOperationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ProjectGlobalOperationName operation = - ProjectGlobalOperationName.of("[PROJECT]", "[OPERATION]"); - - client.deleteGlobalOperation(operation); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void getGlobalOperationTest() { - String clientOperationId = "clientOperationId-239630617"; - String creationTimestamp = "creationTimestamp567396278"; - String description = "description-1724546052"; - String endTime = "endTime1725551537"; - String httpErrorMessage = "httpErrorMessage1276263769"; - Integer httpErrorStatusCode = 1386087020; - String id = "id3355"; - String insertTime = "insertTime-103148397"; - String kind = "kind3292052"; - String name = "name3373707"; - String operationType = "operationType-1432962286"; - Integer progress = 1001078227; - ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); - String selfLink = "selfLink-1691268851"; - String startTime = "startTime-1573145462"; - String status = "status-892481550"; - String statusMessage = "statusMessage-239442758"; - String targetId = "targetId-815576439"; - String targetLink = "targetLink-2084812312"; - String user = "user3599307"; - ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); - Operation expectedResponse = - Operation.newBuilder() - .setClientOperationId(clientOperationId) - .setCreationTimestamp(creationTimestamp) - .setDescription(description) - .setEndTime(endTime) - .setHttpErrorMessage(httpErrorMessage) - .setHttpErrorStatusCode(httpErrorStatusCode) - .setId(id) - .setInsertTime(insertTime) - .setKind(kind) - .setName(name) - .setOperationType(operationType) - .setProgress(progress) - .setRegion(region.toString()) - .setSelfLink(selfLink) - .setStartTime(startTime) - .setStatus(status) - .setStatusMessage(statusMessage) - .setTargetId(targetId) - .setTargetLink(targetLink) - .setUser(user) - .setZone(zone.toString()) - .build(); - mockService.addResponse(expectedResponse); - - ProjectGlobalOperationName operation = - ProjectGlobalOperationName.of("[PROJECT]", "[OPERATION]"); - - Operation actualResponse = client.getGlobalOperation(operation); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - @SuppressWarnings("all") - public void getGlobalOperationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ProjectGlobalOperationName operation = - ProjectGlobalOperationName.of("[PROJECT]", "[OPERATION]"); - - client.getGlobalOperation(operation); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } - - @Test - @SuppressWarnings("all") - public void listGlobalOperationsTest() { - String id = "id3355"; - String kind = "kind3292052"; - String nextPageToken = ""; - String selfLink = "selfLink-1691268851"; - Operation itemsElement = Operation.newBuilder().build(); - List items = Arrays.asList(itemsElement); - OperationList expectedResponse = - OperationList.newBuilder() - .setId(id) - .setKind(kind) - .setNextPageToken(nextPageToken) - .setSelfLink(selfLink) - .addAllItems(items) - .build(); - mockService.addResponse(expectedResponse); - - ProjectName project = ProjectName.of("[PROJECT]"); - - ListGlobalOperationsPagedResponse pagedListResponse = client.listGlobalOperations(project); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getItemsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - @SuppressWarnings("all") - public void listGlobalOperationsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ProjectName project = ProjectName.of("[PROJECT]"); - - client.listGlobalOperations(project); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } -} +// /* +// * Copyright 2019 Google LLC +// * +// * Licensed under the Apache License, Version 2.0 (the "License"); +// * you may not use this file except in compliance with the License. +// * You may obtain a copy of the License at +// * +// * https://www.apache.org/licenses/LICENSE-2.0 +// * +// * Unless required by applicable law or agreed to in writing, software +// * distributed under the License is distributed on an "AS IS" BASIS, +// * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// * See the License for the specific language governing permissions and +// * limitations under the License. +// */ +// package com.google.cloud.compute.v1.longrunning; +// +// import static com.google.cloud.compute.v1.GlobalOperationClient.AggregatedListGlobalOperationsPagedResponse; +// import static com.google.cloud.compute.v1.GlobalOperationClient.ListGlobalOperationsPagedResponse; +// import static com.google.cloud.compute.v1.stub.HttpJsonGlobalOperationStub.aggregatedListGlobalOperationsMethodDescriptor; +// import static com.google.cloud.compute.v1.stub.HttpJsonGlobalOperationStub.deleteGlobalOperationMethodDescriptor; +// import static com.google.cloud.compute.v1.stub.HttpJsonGlobalOperationStub.getGlobalOperationMethodDescriptor; +// import static com.google.cloud.compute.v1.stub.HttpJsonGlobalOperationStub.listGlobalOperationsMethodDescriptor; +// +// import com.google.api.core.ApiFuture; +// import com.google.api.gax.core.NoCredentialsProvider; +// import com.google.api.gax.httpjson.ApiMethodDescriptor; +// import com.google.api.gax.httpjson.EmptyMessage; +// import com.google.api.gax.httpjson.GaxHttpJsonProperties; +// import com.google.api.gax.httpjson.testing.MockHttpService; +// import com.google.api.gax.rpc.ApiClientHeaderProvider; +// import com.google.api.gax.rpc.ApiException; +// import com.google.api.gax.rpc.ApiExceptionFactory; +// import com.google.api.gax.rpc.InvalidArgumentException; +// import com.google.api.gax.rpc.StatusCode.Code; +// import com.google.api.gax.rpc.testing.FakeStatusCode; +// import com.google.cloud.compute.v1.GlobalOperationSettings; +// import com.google.cloud.compute.v1.Operation; +// import com.google.cloud.compute.v1.OperationAggregatedList; +// import com.google.cloud.compute.v1.OperationList; +// import com.google.cloud.compute.v1.OperationsScopedList; +// import com.google.cloud.compute.v1.ProjectGlobalOperationName; +// import com.google.cloud.compute.v1.ProjectName; +// import com.google.cloud.compute.v1.ProjectRegionName; +// import com.google.cloud.compute.v1.ProjectZoneName; +// import com.google.cloud.compute.v1.stub.GlobalOperationStub; +// import com.google.cloud.compute.v1.stub.GlobalOperationStubSettings; +// import com.google.cloud.compute.v1.stub.HttpJsonGlobalOperationStub; +// import com.google.common.collect.ImmutableList; +// import com.google.common.collect.Lists; +// import java.io.IOException; +// import java.util.Arrays; +// import java.util.HashMap; +// import java.util.List; +// import java.util.Map; +// import org.junit.After; +// import org.junit.AfterClass; +// import org.junit.Assert; +// import org.junit.BeforeClass; +// import org.junit.Test; +// +// public class OperationClientTest { +// +// private static final List METHOD_DESCRIPTORS = +// ImmutableList.copyOf( +// Lists.newArrayList( +// aggregatedListGlobalOperationsMethodDescriptor, +// deleteGlobalOperationMethodDescriptor, +// getGlobalOperationMethodDescriptor, +// listGlobalOperationsMethodDescriptor)); +// private static final MockHttpService mockService = +// new MockHttpService(METHOD_DESCRIPTORS, GlobalOperationStubSettings.getDefaultEndpoint()); +// +// private static ComputeLongRunningClient client; +// +// @BeforeClass +// public static void setUp() throws IOException { +// GlobalOperationStubSettings clientSettings = +// GlobalOperationStubSettings.newBuilder() +// .setTransportChannelProvider( +// GlobalOperationSettings.defaultHttpJsonTransportProviderBuilder() +// .setHttpTransport(mockService) +// .build()) +// .setCredentialsProvider(NoCredentialsProvider.create()) +// .build(); +// client = ComputeLongRunningClientFactory.create(HttpJsonGlobalOperationStub.create(clientSettings)); +// } +// +// @After +// public void cleanUp() { +// mockService.reset(); +// } +// +// @AfterClass +// public static void tearDown() throws Exception { +// client.close(); +// } +// +// @Test +// @SuppressWarnings("all") +// public void aggregatedListGlobalOperationsTest() { +// String id = "id3355"; +// String kind = "kind3292052"; +// String nextPageToken = ""; +// String selfLink = "selfLink-1691268851"; +// OperationsScopedList itemsItem = OperationsScopedList.newBuilder().build(); +// Map items = new HashMap<>(); +// items.put("items", itemsItem); +// OperationAggregatedList expectedResponse = +// OperationAggregatedList.newBuilder() +// .setId(id) +// .setKind(kind) +// .setNextPageToken(nextPageToken) +// .setSelfLink(selfLink) +// .putAllItems(items) +// .build(); +// mockService.addResponse(expectedResponse); +// +// ProjectName project = ProjectName.of("[PROJECT]"); +// +// AggregatedListGlobalOperationsPagedResponse pagedListResponse = +// client.aggregatedListGlobalOperations(project); +// +// List resources = Lists.newArrayList(pagedListResponse.iterateAll()); +// Assert.assertEquals(1, resources.size()); +// Assert.assertEquals( +// expectedResponse.getItemsMap().values().iterator().next(), resources.get(0)); +// +// List actualRequests = mockService.getRequestPaths(); +// Assert.assertEquals(1, actualRequests.size()); +// +// String apiClientHeaderKey = +// mockService +// .getRequestHeaders() +// .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) +// .iterator() +// .next(); +// Assert.assertTrue( +// GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() +// .matcher(apiClientHeaderKey) +// .matches()); +// } +// +// @Test +// @SuppressWarnings("all") +// public void aggregatedListGlobalOperationsExceptionTest() throws Exception { +// ApiException exception = +// ApiExceptionFactory.createException( +// new Exception(), FakeStatusCode.of(Code.INVALID_ARGUMENT), false); +// mockService.addException(exception); +// +// try { +// ProjectName project = ProjectName.of("[PROJECT]"); +// +// client.aggregatedListGlobalOperations(project); +// Assert.fail("No exception raised"); +// } catch (InvalidArgumentException e) { +// // Expected exception +// } +// } +// +// @Test +// @SuppressWarnings("all") +// public void deleteGlobalOperationTest() { +// mockService.addNullResponse(); +// +// ProjectGlobalOperationName operation = +// ProjectGlobalOperationName.of("[PROJECT]", "[OPERATION]"); +// +// client.deleteGlobalOperation(operation); +// +// List actualRequests = mockService.getRequestPaths(); +// Assert.assertEquals(1, actualRequests.size()); +// +// String apiClientHeaderKey = +// mockService +// .getRequestHeaders() +// .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) +// .iterator() +// .next(); +// Assert.assertTrue( +// GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() +// .matcher(apiClientHeaderKey) +// .matches()); +// } +// +// @Test +// @SuppressWarnings("all") +// public void deleteGlobalOperationExceptionTest() throws Exception { +// ApiException exception = +// ApiExceptionFactory.createException( +// new Exception(), FakeStatusCode.of(Code.INVALID_ARGUMENT), false); +// mockService.addException(exception); +// +// try { +// ProjectGlobalOperationName operation = +// ProjectGlobalOperationName.of("[PROJECT]", "[OPERATION]"); +// +// client.deleteGlobalOperation(operation); +// Assert.fail("No exception raised"); +// } catch (InvalidArgumentException e) { +// // Expected exception +// } +// } +// +// @Test +// @SuppressWarnings("all") +// public void getGlobalOperationTest() { +// String clientOperationId = "clientOperationId-239630617"; +// String creationTimestamp = "creationTimestamp567396278"; +// String description = "description-1724546052"; +// String endTime = "endTime1725551537"; +// String httpErrorMessage = "httpErrorMessage1276263769"; +// Integer httpErrorStatusCode = 1386087020; +// String id = "id3355"; +// String insertTime = "insertTime-103148397"; +// String kind = "kind3292052"; +// String name = "name3373707"; +// String operationType = "operationType-1432962286"; +// Integer progress = 1001078227; +// ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]"); +// String selfLink = "selfLink-1691268851"; +// String startTime = "startTime-1573145462"; +// String status = "status-892481550"; +// String statusMessage = "statusMessage-239442758"; +// String targetId = "targetId-815576439"; +// String targetLink = "targetLink-2084812312"; +// String user = "user3599307"; +// ProjectZoneName zone = ProjectZoneName.of("[PROJECT]", "[ZONE]"); +// Operation expectedResponse = +// Operation.newBuilder() +// .setClientOperationId(clientOperationId) +// .setCreationTimestamp(creationTimestamp) +// .setDescription(description) +// .setEndTime(endTime) +// .setHttpErrorMessage(httpErrorMessage) +// .setHttpErrorStatusCode(httpErrorStatusCode) +// .setId(id) +// .setInsertTime(insertTime) +// .setKind(kind) +// .setName(name) +// .setOperationType(operationType) +// .setProgress(progress) +// .setRegion(region.toString()) +// .setSelfLink(selfLink) +// .setStartTime(startTime) +// .setStatus(status) +// .setStatusMessage(statusMessage) +// .setTargetId(targetId) +// .setTargetLink(targetLink) +// .setUser(user) +// .setZone(zone.toString()) +// .build(); +// mockService.addResponse(expectedResponse); +// +// ProjectGlobalOperationName operation = +// ProjectGlobalOperationName.of("[PROJECT]", "[OPERATION]"); +// +// ApiFuture emptyMessage = client.getGetOperationCallable().futureCall(operation); +// emptyMessage. +// Assert.assertEquals(expectedResponse, actualResponse); +// +// List actualRequests = mockService.getRequestPaths(); +// Assert.assertEquals(1, actualRequests.size()); +// +// String apiClientHeaderKey = +// mockService +// .getRequestHeaders() +// .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) +// .iterator() +// .next(); +// Assert.assertTrue( +// GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() +// .matcher(apiClientHeaderKey) +// .matches()); +// } +// +// @Test +// @SuppressWarnings("all") +// public void getGlobalOperationExceptionTest() throws Exception { +// ApiException exception = +// ApiExceptionFactory.createException( +// new Exception(), FakeStatusCode.of(Code.INVALID_ARGUMENT), false); +// mockService.addException(exception); +// +// try { +// ProjectGlobalOperationName operation = +// ProjectGlobalOperationName.of("[PROJECT]", "[OPERATION]"); +// +// client.getGlobalOperation(operation); +// Assert.fail("No exception raised"); +// } catch (InvalidArgumentException e) { +// // Expected exception +// } +// } +// +// @Test +// @SuppressWarnings("all") +// public void listGlobalOperationsTest() { +// String id = "id3355"; +// String kind = "kind3292052"; +// String nextPageToken = ""; +// String selfLink = "selfLink-1691268851"; +// Operation itemsElement = Operation.newBuilder().build(); +// List items = Arrays.asList(itemsElement); +// OperationList expectedResponse = +// OperationList.newBuilder() +// .setId(id) +// .setKind(kind) +// .setNextPageToken(nextPageToken) +// .setSelfLink(selfLink) +// .addAllItems(items) +// .build(); +// mockService.addResponse(expectedResponse); +// +// ProjectName project = ProjectName.of("[PROJECT]"); +// +// ListGlobalOperationsPagedResponse pagedListResponse = client.listGlobalOperations(project); +// +// List resources = Lists.newArrayList(pagedListResponse.iterateAll()); +// Assert.assertEquals(1, resources.size()); +// Assert.assertEquals(expectedResponse.getItemsList().get(0), resources.get(0)); +// +// List actualRequests = mockService.getRequestPaths(); +// Assert.assertEquals(1, actualRequests.size()); +// +// String apiClientHeaderKey = +// mockService +// .getRequestHeaders() +// .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) +// .iterator() +// .next(); +// Assert.assertTrue( +// GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() +// .matcher(apiClientHeaderKey) +// .matches()); +// } +// +// @Test +// @SuppressWarnings("all") +// public void listGlobalOperationsExceptionTest() throws Exception { +// ApiException exception = +// ApiExceptionFactory.createException( +// new Exception(), FakeStatusCode.of(Code.INVALID_ARGUMENT), false); +// mockService.addException(exception); +// +// try { +// ProjectName project = ProjectName.of("[PROJECT]"); +// +// client.listGlobalOperations(project); +// Assert.fail("No exception raised"); +// } catch (InvalidArgumentException e) { +// // Expected exception +// } +// } +// } From 632d22d6d2a2e6fe43fd22eeacf27c95295c9550 Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Tue, 26 Feb 2019 11:41:51 -0800 Subject: [PATCH 24/27] ComputeLongRunningClient ipmlements BackgroundResource --- .../longrunning/ComputeLongRunningClient.java | 35 +++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningClient.java index 4d4518cda3ad..b4e0f5d60aae 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningClient.java @@ -9,12 +9,13 @@ import com.google.api.gax.rpc.TranslatingUnaryCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.Operation; +import java.util.concurrent.TimeUnit; /** Unites all Compute's different [Scope]OperationClients under a single shared implementation of the LongRunningClient. * Package-private for internal use. Used by gax-java to get callables.*/ @AutoValue abstract class ComputeLongRunningClient - implements LongRunningClient { + implements LongRunningClient, BackgroundResource { abstract BackgroundResource getStub(); @@ -59,8 +60,38 @@ public Void apply(EmptyMessage empty) { }); } + @Override + public void shutdown() { + getStub().shutdown(); + } + + @Override + public boolean isShutdown() { + return getStub().isShutdown(); + } + + @Override + public boolean isTerminated() { + return getStub().isTerminated(); + } + + @Override + public void shutdownNow() { + getStub().shutdown(); + } + + @Override + public boolean awaitTermination(long l, TimeUnit timeUnit) throws InterruptedException { + return getStub().awaitTermination(l, timeUnit); + } + + @Override + public void close() throws Exception { + getStub().close(); + } + static ComputeLongRunningClient.Builder newBuilder() { - return new AutoValue_ComputeLongRunningClient.Builder(); + return new com.google.cloud.compute.v1.longrunning.AutoValue_ComputeLongRunningClient.Builder<>(); } @AutoValue.Builder From 0592efa75c596dfa242062f81a46feeaf2978e03 Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Tue, 26 Feb 2019 17:24:38 -0800 Subject: [PATCH 25/27] refactoring the compute longrunning files so they are generate-able --- .../longrunning/ComputeLongRunningClient.java | 64 +++++-------- .../ComputeLongRunningClientFactory.java | 93 ++++++++----------- 2 files changed, 66 insertions(+), 91 deletions(-) diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningClient.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningClient.java index b4e0f5d60aae..8b3cef5a7b33 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningClient.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningClient.java @@ -1,6 +1,5 @@ package com.google.cloud.compute.v1.longrunning; -import com.google.auto.value.AutoValue; import com.google.api.core.ApiFunction; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.httpjson.EmptyMessage; @@ -12,28 +11,36 @@ import java.util.concurrent.TimeUnit; /** Unites all Compute's different [Scope]OperationClients under a single shared implementation of the LongRunningClient. - * Package-private for internal use. Used by gax-java to get callables.*/ -@AutoValue -abstract class ComputeLongRunningClient + * Package-private for internal use. Used by gax-java to get callables. */ +class ComputeLongRunningClient implements LongRunningClient, BackgroundResource { - abstract BackgroundResource getStub(); - - abstract UnaryCallable getGetOperationCallable(); - - abstract UnaryCallable getDeleteOperationCallable(); - - /* Function that takes an Operation name as a String and creates a Get request object from it. */ - abstract ApiFunction getCreateGetRequestFunc(); + private final UnaryCallable getOperationCallable; + private final UnaryCallable deleteOperationCallable; + private final ApiFunction createGetRequestFunc; + private final ApiFunction createDeleteRequestFunc; + private final BackgroundResource stub; + + public ComputeLongRunningClient( + BackgroundResource stub, + UnaryCallable deleteOperationCallable, + UnaryCallable getOperationCallable, + ApiFunction createDeleteRequestFunc, + ApiFunction createGetRequestFunc) { + this.stub = stub; + this.getOperationCallable = getOperationCallable; + this.deleteOperationCallable = deleteOperationCallable; + this.createGetRequestFunc = createGetRequestFunc; + this.createDeleteRequestFunc = createDeleteRequestFunc; + } - /* Function that takes an Operation name as a String and creates a Delete request object from it. */ - abstract ApiFunction getCreateDeleteRequestFunc(); + private BackgroundResource getStub() { return stub; } @Override public UnaryCallable getOperationCallable() { return TranslatingUnaryCallable.create( - getGetOperationCallable(), - getCreateGetRequestFunc(), + getOperationCallable, + createGetRequestFunc, new ApiFunction() { @Override public OperationSnapshot apply(Operation operation) { @@ -50,8 +57,8 @@ public UnaryCallable cancelOperationCallable() { @Override public UnaryCallable deleteOperationCallable() { return TranslatingUnaryCallable.create( - getDeleteOperationCallable(), - getCreateDeleteRequestFunc(), + deleteOperationCallable, + createDeleteRequestFunc, new ApiFunction() { @Override public Void apply(EmptyMessage empty) { @@ -89,25 +96,4 @@ public boolean awaitTermination(long l, TimeUnit timeUnit) throws InterruptedExc public void close() throws Exception { getStub().close(); } - - static ComputeLongRunningClient.Builder newBuilder() { - return new com.google.cloud.compute.v1.longrunning.AutoValue_ComputeLongRunningClient.Builder<>(); - } - - @AutoValue.Builder - public abstract static class Builder { - abstract Builder setDeleteOperationCallable(UnaryCallable deleteOperationCallable); - - abstract Builder setGetOperationCallable( - UnaryCallable requestFormatter); - - abstract Builder setStub( - BackgroundResource backgroundResource); - - abstract Builder setCreateGetRequestFunc(ApiFunction httpMethod); - - abstract Builder setCreateDeleteRequestFunc(ApiFunction httpMethod); - - abstract ComputeLongRunningClient build(); - } } diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningClientFactory.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningClientFactory.java index 513c42799883..56575d3b0eb2 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningClientFactory.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeLongRunningClientFactory.java @@ -18,76 +18,65 @@ public class ComputeLongRunningClientFactory { /* Create a ComputeLongRunningClient from a GlobalOperationsStub. */ public static ComputeLongRunningClient create(GlobalOperationStub operationStub) { - return ComputeLongRunningClient.newBuilder() - .setStub(operationStub) - .setGetOperationCallable(operationStub.getGlobalOperationCallable()) - .setDeleteOperationCallable(operationStub.deleteGlobalOperationCallable()) - .setCreateDeleteRequestFunc( - new ApiFunction() { - public DeleteGlobalOperationHttpRequest apply(String operationSelfLink) { - // Make sure operation is a formatted string. - return DeleteGlobalOperationHttpRequest.newBuilder() - .setOperation(operationSelfLink) - .build(); - } - } - ) - .setCreateGetRequestFunc( new ApiFunction() { + return new ComputeLongRunningClient<>( + operationStub, + operationStub.deleteGlobalOperationCallable(), + operationStub.getGlobalOperationCallable(), + new ApiFunction() { + public DeleteGlobalOperationHttpRequest apply(String operationSelfLink) { + return DeleteGlobalOperationHttpRequest.newBuilder() + .setOperation(operationSelfLink) + .build(); + } + }, + new ApiFunction() { public GetGlobalOperationHttpRequest apply(String operationSelfLink) { - // Make sure operation is a formatted string. return GetGlobalOperationHttpRequest.newBuilder().setOperation(operationSelfLink).build(); } - }) - .build(); + }); } /* Create a ComputeLongRunningClient from a ZoneOperationStub. */ public static ComputeLongRunningClient create(ZoneOperationStub operationStub) { - return ComputeLongRunningClient.newBuilder() - .setStub(operationStub) - .setGetOperationCallable(operationStub.getZoneOperationCallable()) - .setDeleteOperationCallable(operationStub.deleteZoneOperationCallable()) - .setCreateDeleteRequestFunc( - new ApiFunction() { - public DeleteZoneOperationHttpRequest apply(String operationSelfLink) { - // Make sure operation is a formatted string. - return DeleteZoneOperationHttpRequest.newBuilder() - .setOperation(operationSelfLink) - .build(); - } - } - ) - .setCreateGetRequestFunc( new ApiFunction() { + return new ComputeLongRunningClient<>( + operationStub, + operationStub.deleteZoneOperationCallable(), + operationStub.getZoneOperationCallable(), + new ApiFunction() { + public DeleteZoneOperationHttpRequest apply(String operationSelfLink) { + // Make sure operation is a formatted string. + return DeleteZoneOperationHttpRequest.newBuilder() + .setOperation(operationSelfLink) + .build(); + } + }, + new ApiFunction() { public GetZoneOperationHttpRequest apply(String operationSelfLink) { // Make sure operation is a formatted string. return GetZoneOperationHttpRequest.newBuilder().setOperation(operationSelfLink).build(); } - }) - .build(); + }); } /* Create a ComputeLongRunningClient from a RegionOperationStub. */ public static ComputeLongRunningClient create(RegionOperationStub operationStub) { - return ComputeLongRunningClient.newBuilder() - .setStub(operationStub) - .setGetOperationCallable(operationStub.getRegionOperationCallable()) - .setDeleteOperationCallable(operationStub.deleteRegionOperationCallable()) - .setCreateDeleteRequestFunc( - new ApiFunction() { - public DeleteRegionOperationHttpRequest apply(String operationSelfLink) { - // Make sure operation is a formatted string. - return DeleteRegionOperationHttpRequest.newBuilder() - .setOperation(operationSelfLink) - .build(); - } - } - ) - .setCreateGetRequestFunc( new ApiFunction() { + return new ComputeLongRunningClient<>( + operationStub, + operationStub.deleteRegionOperationCallable(), + operationStub.getRegionOperationCallable(), + new ApiFunction() { + public DeleteRegionOperationHttpRequest apply(String operationSelfLink) { + // Make sure operation is a formatted string. + return DeleteRegionOperationHttpRequest.newBuilder() + .setOperation(operationSelfLink) + .build(); + } + }, + new ApiFunction() { public GetRegionOperationHttpRequest apply(String operationSelfLink) { // Make sure operation is a formatted string. return GetRegionOperationHttpRequest.newBuilder().setOperation(operationSelfLink).build(); } - }) - .build(); + }); } } From c2e010735dcdbaa8d6e9030bc94db976bd8e3402 Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Tue, 26 Feb 2019 17:40:37 -0800 Subject: [PATCH 26/27] make ComputeOperationSnapshot generatable --- .../longrunning/ComputeOperationSnapshot.java | 36 +++++++++---------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeOperationSnapshot.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeOperationSnapshot.java index 881446cffda4..45f025f81b81 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeOperationSnapshot.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeOperationSnapshot.java @@ -16,12 +16,6 @@ public class ComputeOperationSnapshot implements OperationSnapshot { private static final EmptyMessage response = EmptyMessage.getDefaultInstance(); - public enum Status { - PENDING, - RUNNING, - DONE - } - private final Operation operation; private ComputeOperationSnapshot(Operation operation) { @@ -47,7 +41,7 @@ public Operation getMetadata() { @Override public boolean isDone() { - return Status.DONE.equals(getOperationStatus()); + return "DONE".equals(operation.getStatus()); } @Override @@ -58,25 +52,27 @@ public EmptyMessage getResponse() { @Override public StatusCode getErrorCode() { - if (operation.getError() == null - || operation.getError().getErrorsList() == null - || operation.getError().getErrorsList().isEmpty()) { - // No errors; return 200. - return HttpJsonStatusCode.of(200, "OK"); + int code; + String message; + try { + code = Integer.valueOf(operation.getError().getErrorsList().get(0).getCode()); + message = operation.getError().getErrorsList().get(0).getMessage(); + } catch (NullPointerException | IndexOutOfBoundsException e) { + code = 200; + message = "OK"; } - // Return the first Error code. - return HttpJsonStatusCode.of( - Integer.valueOf(operation.getError().getErrorsList().get(0).getCode()), - operation.getError().getErrorsList().get(0).getMessage()); + return HttpJsonStatusCode.of(code, message); } @Override public String getErrorMessage() { - return operation.getError().getErrorsList().toString(); - } - public Status getOperationStatus() { - return Status.valueOf(operation.getStatus()); + try { + return operation.getError().getErrorsList().toString(); + } catch (NullPointerException | ArrayIndexOutOfBoundsException e) { + // No error found. + return null; + } } } From b5ac77ab2442a85c5d2993a0178f3c7406bb89b8 Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Tue, 26 Feb 2019 18:05:36 -0800 Subject: [PATCH 27/27] make ComputeOperationSnapshot generatable --- .../cloud/compute/v1/longrunning/ComputeOperationSnapshot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeOperationSnapshot.java b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeOperationSnapshot.java index 45f025f81b81..3869f3465405 100644 --- a/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeOperationSnapshot.java +++ b/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/longrunning/ComputeOperationSnapshot.java @@ -8,7 +8,7 @@ import com.google.cloud.compute.v1.Operation; /** - * Implementation of a long-running operation for the Compute client. Wraps a compute Operation + * Implementation of a long-running operation for the Compute client. Wraps a compute {@code Operation} * object. */ @BetaApi